:root {
  --bg: #f4f6fb;
  --bg-accent: #e8eef9;
  --surface: #ffffff;
  --surface-strong: #174d84;
  --surface-soft: #1f5f9d;
  --text: #132033;
  --muted: #5d6b82;
  --line: rgba(19, 32, 51, 0.1);
  --primary: #0f5fa8;
  --primary-dark: #0a4479;
  --secondary: #f38b2a;
  --shadow: 0 16px 40px rgba(26, 43, 69, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(15, 95, 168, 0.08), transparent 26%),
    linear-gradient(180deg, #f7f9fd 0%, #edf2fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(17, 39, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 39, 68, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 82%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(243, 139, 42, 0.08), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(15, 95, 168, 0.08), transparent 24%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

main {
  padding-top: 24px;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.disclosure-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.disclosure-banner p:first-child {
  color: var(--text);
  font-weight: 800;
}

.site-header {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
  margin-top: 18px;
  z-index: 10;
  background: linear-gradient(135deg, #154c86 0%, #1f5f9d 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 36px rgba(17, 53, 92, 0.22);
}

.header-top-row,
.header-search-row {
  display: flex;
  align-items: center;
}

.header-top-row {
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-tag,
.hero-kicker,
.panel-badge {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.section-tag,
.hero-kicker {
  color: var(--secondary);
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
}

.brand-divider,
.header-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  font-weight: 700;
}

.header-link {
  text-decoration: none;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 620px);
  flex: 0 1 620px;
  padding: 0 18px;
  min-height: 62px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(17, 53, 92, 0.12);
}

.search-icon {
  color: #5f6f86;
  font-size: 1.5rem;
}

.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.02rem;
}

.search-input::placeholder {
  color: #72839b;
}

.category-chip-bar {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  padding: 4px 2px 2px;
  cursor: grab;
}

.category-chip-bar::-webkit-scrollbar {
  display: none;
}

.category-chip-bar.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.category-chip-deals {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 206, 120, 0.54);
}

.category-chip-deals i {
  color: #ffb347;
}

.category-chip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.category-chip.is-active,
.category-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.category-chip-bar.is-dragging .category-chip {
  pointer-events: none;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-card-link {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.catalog-shell,
.detail-shell {
  padding: 10px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.catalog-shell {
  margin-bottom: 24px;
}

.catalog-head h1 {
  margin: 10px 0 16px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.catalog-copy,
.category-band-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-description,
.product-meta li,
.product-price-note,
.product-footer span,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.category-chip:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #03171d;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 16px 28px rgba(25, 198, 189, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
}

.product-card,
.category-band {
  border-radius: var(--radius-md);
  padding: 0;
}

.product-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(243, 139, 42, 0.12);
  color: #ce6d12;
  font-weight: 800;
  border: 1px solid rgba(243, 139, 42, 0.18);
}

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

.category-preview-list,
.category-detail-list {
  display: grid;
  gap: 22px;
}

.category-band {
  display: grid;
  gap: 18px;
  padding: 0;
}

.category-band-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding: 0 4px;
}

.category-band-head h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: "Sora", sans-serif;
}

.product-grid {
  display: grid;
  gap: 22px;
}

.preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-band-count {
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 800;
}

.category-band-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 4px;
}

.is-preview-footer {
  margin-top: -4px;
}

.section-more-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  text-transform: lowercase;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.product-card.is-out-of-stock {
  background: linear-gradient(180deg, rgba(255, 232, 231, 0.94), rgba(255, 245, 244, 0.96));
  border-color: rgba(203, 66, 56, 0.24);
}

.product-card.is-out-of-stock::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, rgba(203, 66, 56, 0.1), rgba(203, 66, 56, 0.95), rgba(203, 66, 56, 0.1));
  transform: rotate(-14deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.product-card-compact {
  padding: 14px;
}

.product-review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.review-score {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 18px;
  background: #f3f6fb;
  border: 1px solid var(--line);
}

.review-score strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.review-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: #24c36b;
  color: #03171d;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.review-score.is-excellent .review-score-badge {
  background: #16c56f;
}

.review-score.is-great .review-score-badge {
  background: #46c95e;
}

.review-score.is-very-good .review-score-badge {
  background: #8bc74b;
}

.review-score.is-recommended .review-score-badge {
  background: #f1b640;
}

.review-score.is-good .review-score-badge {
  background: #ef8c44;
}

.review-score-copy {
  display: grid;
  gap: 1px;
}

.review-score-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 95, 168, 0.04), transparent 36%);
  pointer-events: none;
}

.product-visual {
  border-radius: 18px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 95, 168, 0.1), rgba(243, 139, 42, 0.08));
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-visual-inner {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}

.compact-visual {
  height: clamp(240px, 20vw, 300px);
  padding: 8px;
}

.compact-visual .product-visual-inner {
  height: 100%;
  padding: 18px;
}

.product-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

.product-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.compact-header h3 {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-header h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-family: "Sora", sans-serif;
}

.product-asin {
  margin: 0;
  color: var(--secondary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-price {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.product-price.is-unavailable {
  color: #cb4238;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: #cb4238;
}

.product-card-snippet {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-detail {
  margin-top: -8px;
  font-size: 1.2rem;
}

.product-stock {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-stock.is-available {
  color: #1d9157;
}

.product-stock.is-unavailable {
  color: #cb4238;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(203, 66, 56, 0.12);
  border: 1px solid rgba(203, 66, 56, 0.16);
}

.product-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.compact-meta {
  gap: 14px;
}

.product-highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.product-meta strong,
.product-footer strong {
  color: var(--text);
}

.product-meta strong {
  display: block;
  margin-bottom: 2px;
}

.product-meta span {
  display: block;
}

.product-price-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f5f8fc;
  border: 1px solid rgba(15, 95, 168, 0.1);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-link {
  min-width: 180px;
}

.button-disabled {
  color: #7b8798;
  background: #edf2f7;
  border-color: rgba(19, 32, 51, 0.1);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 28px 4px 8px;
  border-top: 1px solid rgba(126, 165, 201, 0.12);
  margin-top: 24px;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 650ms ease forwards;
}

.product-page {
  padding-top: 24px;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.product-detail-shell > * {
  min-width: 0;
}

.product-detail-visual {
  position: sticky;
  top: 24px;
  align-self: start;
}

.product-detail-image-wrap {
  aspect-ratio: 1 / 1;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 95, 168, 0.1), rgba(243, 139, 42, 0.08));
  border: 1px solid var(--line);
}

.product-detail-image-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-copy {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.product-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.product-detail-top > div:first-child {
  min-width: 0;
}

.product-detail-top h1 {
  margin: 10px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.product-detail-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.product-detail-review {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  min-width: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.16), rgba(15, 95, 168, 0.08));
  border: 1px solid rgba(15, 95, 168, 0.12);
}

.product-detail-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.product-detail-review p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.product-detail-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-detail-panel {
  padding: 18px;
  min-width: 0;
  border-radius: 18px;
  background: #f7f9fd;
  border: 1px solid rgba(15, 95, 168, 0.08);
}

.product-detail-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: "Sora", sans-serif;
}

.product-detail-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.product-detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-detail-back {
  min-width: 180px;
}

.product-missing {
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.product-missing h1 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
}

.product-missing p {
  margin: 0 0 20px;
  color: var(--muted);
}

.legal-page {
  padding-top: 24px;
}

.legal-shell {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-shell h1,
.legal-shell h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.legal-shell h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-shell section {
  display: grid;
  gap: 10px;
}

.legal-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-shell a {
  color: var(--primary);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .preview-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-head {
    align-items: start;
    flex-direction: column;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
  }

  .product-detail-visual {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .site-header,
  .catalog-head,
  .site-footer,
  .category-band-head,
  .preview-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .catalog-head,
  .site-footer,
  .category-band-head {
    display: grid;
  }

  .site-header {
    padding: 22px 18px;
  }

  .catalog-head h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .search-shell {
    width: 100%;
    flex-basis: 100%;
  }

  .category-chip-bar {
    gap: 10px;
  }

  .product-footer {
    justify-content: stretch;
  }

  .product-link {
    width: 100%;
  }

  .compact-visual {
    height: 220px;
  }

  .product-detail-panels {
    grid-template-columns: 1fr;
  }

  .product-detail-top {
    flex-direction: column;
  }

  .product-detail-review-head {
    flex-direction: column;
    align-items: start;
  }

  .product-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-shell {
    padding: 22px;
  }
}

