:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #566070;
  --line: #d5d9d9;
  --panel: #ffffff;
  --page: #eaeded;
  --nav: #131921;
  --nav-2: #232f3e;
  --gold: #ffd814;
  --gold-dark: #f7ca00;
  --orange: #ffa41c;
  --teal: #007185;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: #c7511f;
  text-decoration: underline;
}

.topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 10px 22px;
  background: var(--nav);
  color: #fff;
}

.brand {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0;
}

.search {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 82px;
  min-height: 42px;
}

.search select,
.search input,
.search button {
  border: 0;
  font: inherit;
}

.search select {
  min-width: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 10px;
  background: #e6e6e6;
  color: #111827;
}

.search input {
  min-width: 0;
  padding: 0 14px;
}

.search button {
  border-radius: 0 4px 4px 0;
  background: #febd69;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.top-actions a,
.brand:hover {
  color: #fff;
}

.category-bar {
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: 40px;
  padding: 0 22px;
  background: var(--nav-2);
  overflow-x: auto;
}

.category-bar a {
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.store-page {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.store-hero {
  min-height: 260px;
  display: grid;
  align-items: end;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34), transparent 20%),
    linear-gradient(135deg, #0f766e, #111827 74%);
}

.store-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.store-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  line-height: 1.75;
}

.hero-kicker {
  margin: 0 0 10px;
  font-weight: 850;
}

.store-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto auto auto auto;
  gap: 8px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.card-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
}

.card-rating span,
.review-grid span {
  color: #f59e0b;
}

.card-price {
  color: #b12704;
  font-size: 1.12rem;
}

.detail-link {
  font-weight: 800;
  font-size: 0.9rem;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  background: var(--gold);
  color: #111827;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--gold-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.card-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.review-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.review-grid strong,
.review-grid span {
  display: block;
}

.review-grid p,
.support p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.support h2 {
  margin: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.detail-image {
  background: #f8fafc;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 480px;
}

.detail-image img {
  width: min(90%, 520px);
  border-radius: 8px;
}

.detail-main h1 {
  margin: 8px 0 12px;
  font-size: 1.8rem;
  line-height: 1.35;
}

.detail-description,
.delivery {
  color: var(--muted);
  line-height: 1.7;
}

.detail-main ul {
  padding-left: 1.2rem;
  line-height: 1.8;
}

.detail-buy {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.detail-price {
  margin: 0 0 12px;
  color: #b12704;
  font-size: 2.4rem;
  font-weight: 700;
}

.stock {
  margin: 0 0 8px;
  color: #067d62;
  font-weight: 800;
}

.detail-buy button {
  width: 100%;
  margin-top: 14px;
}

.single-review {
  grid-template-columns: minmax(0, 1fr);
}

.review-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.review-summary-box {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.review-average {
  font-size: 1.15rem;
}

.review-form {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.review-form h3 {
  margin: 0;
}

.review-form label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.result {
  width: min(880px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.result section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 32px;
}

.result .eyebrow {
  margin: 0 0 10px;
  color: #067d62;
  font-weight: 800;
}

.result h1 {
  margin: 0;
  font-size: 2.2rem;
}

.result .lead {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.result .link-button {
  width: fit-content;
  min-height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  margin-top: 28px;
  padding: 0 18px;
  background: var(--gold);
  color: #111827;
  font-weight: 800;
}

.download-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.download-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-button {
  width: fit-content;
  min-height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  margin-top: 14px;
  padding: 0 18px;
  background: var(--orange);
  color: #111827;
  font-weight: 850;
}

@media (max-width: 1200px) {
  .product-grid,
  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .store-page {
    padding: 10px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
  }

  .product-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .detail-image {
    min-height: 320px;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-summary-box {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .search {
    grid-template-columns: 82px minmax(0, 1fr) 58px;
  }

  .store-hero {
    min-height: 220px;
    padding: 20px;
  }
}
