:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #0d0d0f;
  --surface-raised: #121215;
  --surface-soft: #18181c;
  --text: #f5f5f7;
  --text-secondary: #b0b0b7;
  --muted: #777780;
  --line: rgb(255 255 255 / 8%);
  --line-strong: rgb(255 255 255 / 14%);
  --accent: #f5f5f7;
  --accent-text: #08080a;
  --success: #95d5a6;
  --radius-card: 28px;
  --radius-image: 20px;
  --container: 1400px;
  --ease: 220ms cubic-bezier(.2, .75, .25, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 255 255 / 4%), transparent 32rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #f5f5f7; color: #08080a; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 72px;
  border-bottom: 1px solid transparent;
  background: rgb(5 5 6 / 52%);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgb(5 5 6 / 82%);
  box-shadow: 0 12px 40px rgb(0 0 0 / 22%);
}
.header-inner {
  display: flex;
  width: min(100%, var(--container));
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -.045em;
}
.wordmark-mark {
  width: 17px;
  height: 17px;
  border: 4px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg);
}
.language-toggle {
  min-width: 76px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
}

main { overflow: clip; }
.hero,
.catalog,
.footer-inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.hero {
  display: flex;
  min-height: clamp(480px, 66vh, 680px);
  align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: 980px;
  padding-block: clamp(72px, 10vh, 112px) clamp(54px, 8vh, 92px);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .2em;
}
h1, h2, h3 { margin: 0; letter-spacing: -.055em; }
h1 {
  max-width: 920px;
  font-size: clamp(3.65rem, 10vw, 8rem);
  line-height: .92;
  font-weight: 650;
}
.hero-copy {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}
.hero-link {
  display: inline-flex;
  min-height: 50px;
  margin-top: 34px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  align-items: center;
  gap: 18px;
  font-size: .86rem;
  font-weight: 720;
  transition: transform var(--ease), box-shadow var(--ease);
}
.hero-link-icon { font-size: 1rem; transition: transform var(--ease); }

.catalog { padding-block: 24px clamp(92px, 10vw, 152px); }
.section-heading {
  display: flex;
  margin-bottom: 26px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading .eyebrow { margin-bottom: 12px; }
h2 {
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: .98;
  font-weight: 620;
}
.result-count {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}
.search {
  position: relative;
  display: flex;
  width: min(100%, 760px);
  min-height: 58px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgb(18 18 21 / 88%);
  box-shadow: 0 16px 50px rgb(0 0 0 / 26%), inset 0 1px 0 rgb(255 255 255 / 4%);
  align-items: center;
  gap: 13px;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  backdrop-filter: blur(18px);
}
.search:focus-within {
  border-color: rgb(255 255 255 / 26%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 38%), 0 0 0 4px rgb(255 255 255 / 4%);
  transform: translateY(-1px);
}
.search-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 1.8px solid var(--muted);
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.8px;
  border-radius: 99px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}
.search input {
  min-width: 0;
  height: 56px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: .94rem;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #66666e; }
.search-clear {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
  color: var(--text-secondary);
  place-items: center;
  cursor: pointer;
}
kbd {
  display: none;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
  color: var(--muted);
  font: inherit;
  font-size: .68rem;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.3vw, 30px);
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #121215, #0d0d0f);
  box-shadow: 0 16px 50px rgb(0 0 0 / 15%);
  opacity: 0;
  transform: translateY(12px);
  animation: card-in 360ms cubic-bezier(.2, .75, .25, 1) forwards;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: var(--radius-image);
  background:
    radial-gradient(circle at 50% 30%, rgb(255 255 255 / 7%), transparent 45%),
    #17171a;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .75, .25, 1);
}
.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  color: #55555d;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  place-items: center;
  text-transform: uppercase;
}
.visual-badges {
  position: absolute;
  z-index: 2;
  inset: 14px 14px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.serial,
.status {
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(5 5 6 / 68%);
  color: #e8e8eb;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .07em;
  backdrop-filter: blur(12px);
}
.status { color: var(--text-secondary); letter-spacing: .02em; }
.status[data-status="available"] { color: var(--success); }
.product-body { display: flex; min-height: 320px; padding: 24px; flex-direction: column; }
.category {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.brand {
  margin: 14px 0 0;
  color: #8b8b94;
  font-size: .75rem;
  font-weight: 650;
}
.product-card h3 {
  margin-top: 5px;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.1;
  font-weight: 620;
}
.description {
  display: -webkit-box;
  min-height: 3em;
  margin: 13px 0 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.commerce-row {
  display: flex;
  margin-top: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rating {
  margin: 0;
  color: #c9c9cf;
  font-size: .76rem;
  white-space: nowrap;
}
.rating-star { color: #eeeef0; }
.price {
  margin: 0;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -.03em;
}
.tags {
  display: flex;
  min-height: 28px;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  padding: 6px 9px;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #92929a;
  font-size: .68rem;
}
.card-actions { margin-top: auto; padding-top: 20px; }
.amazon-button {
  display: flex;
  min-height: 50px;
  padding: 0 17px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--accent-text);
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 750;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}
.empty-state {
  padding: 72px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  color: var(--muted);
  text-align: center;
}
.empty-state button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.skeleton-card { opacity: 1; transform: none; animation: none; }
.skeleton {
  display: block;
  overflow: hidden;
  background: #18181b;
}
.skeleton::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 5%), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.45s infinite;
}
.skeleton-visual { aspect-ratio: 4 / 3; margin: 10px 10px 0; border-radius: var(--radius-image); }
.skeleton-line { width: 100%; height: 12px; margin-top: 16px; border-radius: 99px; }
.skeleton-line.short { width: 28%; margin-top: 0; }
.skeleton-line.title { width: 66%; height: 25px; }
.skeleton-button { height: 50px; margin-top: auto; border-radius: 15px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  min-height: 112px;
  padding-block: 28px;
  color: #67676f;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-size: .7rem;
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

@media (hover: hover) {
  .language-toggle:hover { border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 9%); color: var(--text); }
  .hero-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(255 255 255 / 12%); }
  .hero-link:hover .hero-link-icon { transform: translateY(2px); }
  .product-card:hover { border-color: rgb(255 255 255 / 15%); box-shadow: 0 26px 70px rgb(0 0 0 / 34%), 0 0 35px rgb(255 255 255 / 2%); transform: translateY(-6px); }
  .product-card:hover .product-visual img { transform: scale(1.035); }
  .amazon-button:hover { background: #fff; box-shadow: 0 10px 26px rgb(255 255 255 / 10%); transform: translateY(-2px); }
}

@media (min-width: 640px) {
  kbd { display: inline-block; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 960px) {
  .hero { min-height: min(72vh, 760px); }
  .catalog { padding-top: 34px; }
  .product-body { padding: 26px; }
}
@media (min-width: 1280px) {
  .product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .site-header { height: 64px; }
  .hero { min-height: 500px; }
  .hero-inner { padding-top: 68px; }
  .section-heading { align-items: flex-end; }
  .section-heading .eyebrow { margin-bottom: 9px; }
  .result-count { margin-bottom: 2px; }
  .product-body { min-height: 308px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
