/* =========================================================
   KINO — e-commerce storefront
   Direction: ink black · cool mist · signal red
   ========================================================= */

:root {
  --ink: #0e0f12;
  --ink-2: #17191f;
  --ink-3: #22252e;
  --mist: #eef1f4;
  --mist-2: #d8dde5;
  --paper: #f5f6f8;
  --muted: #8b929e;
  --signal: #ff3b2e;
  --signal-deep: #d92b20;
  --ok: #1f9d6c;
  --warn: #c9851a;

  --font-display: 'Syne', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
  --max: 1240px;
  --nav-h: 72px;

  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* 防止 .pdp { display:grid } 等样式盖掉 hidden */
[hidden] {
  display: none !important;
}

img.is-loaded {
  animation: imgFadeIn 0.45s ease both;
}

img.is-fallback {
  object-fit: cover;
  background: #17191f;
}

@keyframes imgFadeIn {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.hero-media,
.feature-main,
.feature-side,
.story-visual,
.product-media,
.pdp-main,
.pdp-thumbs button,
.cart-item a,
.checkout-line img {
  background:
    linear-gradient(110deg, #e8ebf0 0%, #f5f6f8 40%, #e8ebf0 80%);
  background-size: 200% 100%;
}

.product-media img,
.hero-media img,
.feature-main img,
.feature-side img,
.story-visual img,
.pdp-main img {
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price .compare {
  margin-left: 0.45rem;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- Layout ---------- */
.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.shell-wide {
  width: min(100% - 2rem, 1440px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.35s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--signal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--signal-deep);
  box-shadow: 0 12px 30px rgba(255, 59, 46, 0.28);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink-2);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 15, 18, 0.06);
}

.site-header.is-solid {
  background: rgba(14, 15, 18, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  justify-self: start;
}

.brand span {
  color: var(--signal);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: rgba(14, 15, 18, 0.06);
}

.site-header.is-solid .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease) forwards;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 15, 18, 0.78) 0%, rgba(14, 15, 18, 0.35) 48%, rgba(14, 15, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(14, 15, 18, 0.55) 0%, transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4.5rem 0 5rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 1.1rem;
}

.hero-brand span {
  color: var(--signal);
}

.hero h1 {
  max-width: 14ch;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  max-width: 36ch;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

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

.section-head h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--signal);
  font-weight: 600;
  white-space: nowrap;
}

.section-ink {
  background: var(--ink);
  color: #fff;
}

.section-mist {
  background: var(--mist);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(14, 15, 18, 0.08);
  background: #fff;
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.marquee-track span::before {
  content: '●';
  color: var(--signal);
  margin-right: 2.5rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Featured editorial ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  min-height: 620px;
}

.feature-main,
.feature-side {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: #fff;
  min-height: 320px;
}

.feature-main img,
.feature-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.feature-main:hover img,
.feature-side:hover img {
  transform: scale(1.04);
}

.feature-main::after,
.feature-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 18, 0.72) 0%, transparent 55%);
}

.feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.75rem;
}

.feature-copy h3 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.03em;
}

.feature-copy p {
  margin: 0 0 1rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
}

.feature-stack {
  display: grid;
  gap: 1.25rem;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(14, 15, 18, 0.06);
  transition: border-color 0.25s ease, transform 0.4s var(--ease);
}

.product-card:hover {
  border-color: rgba(14, 15, 18, 0.18);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.28rem 0.55rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.product-body {
  padding: 1rem 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.product-rating {
  font-size: 0.82rem;
  color: var(--muted);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.product-actions .btn {
  min-height: 42px;
  padding: 0 0.9rem;
  font-size: 0.9rem;
}

.icon-cart-add,
.icon-wish {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-wish {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(14, 15, 18, 0.16);
  font-size: 1rem;
}

.icon-wish.is-on {
  color: var(--signal);
  border-color: var(--signal);
}

.icon-cart-add:hover {
  background: var(--signal);
}

.header-search {
  display: none;
}

@media (min-width: 980px) {
  .header-search {
    display: block;
  }

  .header-search input {
    width: 160px;
    min-height: 38px;
    padding: 0 0.75rem;
    border: 1px solid rgba(14, 15, 18, 0.14);
    border-radius: 999px;
    background: #fff;
    outline: none;
  }

  .header-search input:focus {
    border-color: var(--ink);
    width: 200px;
  }
}

.catalog-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.catalog-search input {
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(14, 15, 18, 0.16);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
}

.catalog-search input:focus {
  border-color: var(--ink);
}

.empty-state {
  padding: 3rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(14, 15, 18, 0.18);
}

.empty-state h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.empty-state p {
  margin: 0 0 1.25rem;
  color: #5c6470;
}

.pdp-wish {
  margin-bottom: 1rem;
}

.pdp-wish .icon-wish {
  width: auto;
  min-height: 40px;
  padding: 0 0.95rem;
  gap: 0.35rem;
  display: inline-flex;
  align-items: center;
}

.checkout-layout,
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

.form-card {
  background: #fff;
  border: 1px solid rgba(14, 15, 18, 0.08);
  padding: 1.35rem;
}

.form-card h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(14, 15, 18, 0.16);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.pay-options {
  display: grid;
  gap: 0.55rem;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(14, 15, 18, 0.14);
  background: #fff;
  cursor: pointer;
}

.pay-option:has(input:checked),
.pay-option.is-active {
  border-color: var(--ink);
  background: var(--mist);
}

.balance-chip {
  display: none;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid rgba(14, 15, 18, 0.14);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  color: #4a5160;
  white-space: nowrap;
}

.balance-chip strong {
  color: var(--ink);
  font-family: var(--font-display);
}

@media (min-width: 980px) {
  .balance-chip {
    display: inline-flex;
  }
}

.balance-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--mist);
  border: 1px solid rgba(14, 15, 18, 0.08);
}

.balance-box-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.balance-box-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.balance-tip {
  margin: 0 0 0.85rem;
  color: var(--signal-deep);
  font-size: 0.9rem;
}

.balance-tip a {
  color: var(--signal);
  font-weight: 600;
  text-decoration: underline;
}

.balance-hero {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(14, 15, 18, 0.08);
}

.balance-hero-amount {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.balance-need {
  margin: 0.65rem 0 0;
  color: var(--signal-deep);
  font-size: 0.92rem;
}

.recharge-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.recharge-pack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 76px;
  padding: 0.85rem;
  border: 1px solid rgba(14, 15, 18, 0.14);
  background: #fff;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.recharge-pack strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.recharge-pack span {
  font-size: 0.78rem;
  color: var(--muted);
}

.recharge-pack.is-active,
.recharge-pack:hover {
  border-color: var(--ink);
  background: var(--mist);
}

.recharge-log {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(14, 15, 18, 0.08);
  font-size: 0.9rem;
  color: #5c6470;
}

.recharge-log strong {
  color: var(--ok);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 560px) {
  .recharge-packs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkout-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-line:last-child {
  border-bottom: 0;
}

.checkout-line img {
  width: 64px;
  height: 72px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.checkout-line .meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.order-card {
  background: #fff;
  border: 1px solid rgba(14, 15, 18, 0.08);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.order-card h3 {
  margin: 0.2rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.order-card .meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.order-items {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: #4a5160;
}

.success-box {
  max-width: 640px;
  margin: 0 auto 4rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(14, 15, 18, 0.08);
  text-align: center;
}

.success-box h1 {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.success-box .order-items {
  text-align: left;
  display: inline-block;
}

.prose-page {
  max-width: 720px;
  padding-bottom: 4rem;
}

.prose-page h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.prose-page p,
.prose-page li {
  color: #4a5160;
  line-height: 1.7;
}

.prose-page ul {
  padding-left: 1.2rem;
  list-style: disc;
}

@media (max-width: 900px) {
  .checkout-layout,
  .form-layout {
    grid-template-columns: 1fr;
  }

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

/* ---------- Story band ---------- */
.story {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.story-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink-2);
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-visual::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(14, 15, 18, 0.45), transparent);
  z-index: 1;
}

.story-copy h2 {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.story-copy p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.story-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.story-stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Promise strip ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.promise {
  padding: 1.35rem 0;
  border-top: 2px solid var(--ink);
}

.promise h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.promise p {
  margin: 0;
  color: #5c6470;
  font-size: 0.95rem;
}

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.newsletter h2 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.newsletter p {
  margin: 0;
  color: #5c6470;
  max-width: 40ch;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.newsletter-form input {
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid rgba(14, 15, 18, 0.18);
  background: #fff;
  border-radius: var(--radius);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--ink);
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  padding: 3.25rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  color: #5c6470;
  max-width: 48ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.crumbs a:hover {
  color: var(--ink);
}

/* ---------- Catalog tools ---------- */
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  min-height: 38px;
  padding: 0 0.95rem;
  border: 1px solid rgba(14, 15, 18, 0.14);
  background: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a5160;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sort-select {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(14, 15, 18, 0.14);
  background: #fff;
  border-radius: var(--radius);
}

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.pdp-gallery {
  display: grid;
  gap: 0.75rem;
}

.pdp-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

.pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.pdp-thumbs button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--mist);
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.pdp-thumbs button.is-active,
.pdp-thumbs button:hover {
  opacity: 1;
  border-color: var(--ink);
}

.pdp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info .eyebrow {
  margin-bottom: 0.55rem;
}

.pdp-info h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pdp-price-row .price {
  font-size: 1.55rem;
}

.pdp-rating {
  color: var(--muted);
  font-size: 0.92rem;
}

.pdp-blurb {
  margin: 0 0 1.5rem;
  color: #4a5160;
  max-width: 42ch;
}

.option-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.swatch {
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid rgba(14, 15, 18, 0.16);
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.swatch.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(14, 15, 18, 0.16);
  background: #fff;
}

.qty button {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
}

.qty input {
  width: 48px;
  height: 42px;
  text-align: center;
  border: 0;
  border-inline: 1px solid rgba(14, 15, 18, 0.12);
  outline: none;
}

.pdp-buy {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.pdp-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.pdp-detail {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(14, 15, 18, 0.1);
}

.pdp-detail h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.pdp-detail p {
  margin: 0;
  color: #4a5160;
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}

.cart-list {
  background: #fff;
  border: 1px solid rgba(14, 15, 18, 0.08);
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  padding: 1.15rem;
  border-bottom: 1px solid rgba(14, 15, 18, 0.08);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 110px;
  height: 130px;
  object-fit: cover;
  background: var(--mist);
}

.cart-item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.cart-item .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.link-danger {
  color: var(--signal);
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-line-total {
  font-family: var(--font-display);
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding: 1.5rem;
  background: var(--ink);
  color: #fff;
}

.cart-summary h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-summary .btn {
  margin-top: 1.25rem;
}

.cart-empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(14, 15, 18, 0.18);
}

.cart-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.cart-empty p {
  margin: 0 0 1.25rem;
  color: #5c6470;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--signal);
}

.footer-grid h4 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.45rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-grid a:hover {
  opacity: 1;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  padding: 0.85rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Add-to-cart motion ---------- */
.cart-flyer {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: cartFly 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.cart-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes cartFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--fx-x), var(--fx-y)) scale(0.2);
    opacity: 0.15;
  }
}

.nav-actions .icon-btn.is-cart-bump {
  animation: cartBump 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

.cart-count.is-badge-pop {
  animation: badgePop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes badgePop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.icon-cart-add.is-add-pulse,
.btn.is-add-pulse {
  animation: addPulse 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes addPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-flyer {
    animation-duration: 0.01ms;
    opacity: 0;
  }

  .nav-actions .icon-btn.is-cart-bump,
  .cart-count.is-badge-pop,
  .icon-cart-add.is-add-pulse,
  .btn.is-add-pulse {
    animation: none;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: center;
  }

  .feature-split,
  .story,
  .newsletter,
  .pdp,
  .cart-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-split {
    min-height: 0;
  }

  .story-visual {
    min-height: 360px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdp-buy {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-line-total {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-copy {
    padding: 3rem 0 3.5rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .product-grid {
    gap: 0.85rem 0.65rem;
  }

  .promises {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .story-stats {
    grid-template-columns: 1fr;
  }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 15, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(82vw, 320px);
  height: 100%;
  background: #fff;
  padding: 1.25rem;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
}

.mobile-nav.is-open .mobile-panel {
  transform: translateX(0);
}

.mobile-panel a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(14, 15, 18, 0.08);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* ---------- Debug panel ---------- */
.debug-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  min-height: 40px;
  padding: 0 0.9rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.debug-fab:hover {
  background: var(--signal);
}

.debug-panel {
  position: fixed;
  right: 1rem;
  bottom: 3.6rem;
  z-index: 120;
  width: min(92vw, 380px);
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #111318;
  color: #e8eaef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  display: none;
}

.debug-panel.is-open {
  display: block;
}

.debug-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.debug-panel header button {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.debug-panel .debug-body {
  padding: 0.85rem 0.9rem 1rem;
}

.debug-panel .debug-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
}

.debug-panel .debug-row strong {
  color: #fff;
  font-weight: 600;
}

.debug-panel pre {
  margin: 0.65rem 0 0.9rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: auto;
  max-height: 180px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #b8f0c8;
  font-size: 0.72rem;
  line-height: 1.4;
}

.debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.debug-actions button {
  min-height: 34px;
  padding: 0 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-size: 0.78rem;
}

.debug-actions button:hover {
  background: var(--signal);
  border-color: var(--signal);
}

.debug-hint {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}
