/* ============================================================
   KIRAMYKI — full e-commerce design system
   Premium black & white aesthetic
   ============================================================ */

/* ---------- Clash Display (display font — hero/H1/H2 only, never below 24px) ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/clash-display-700.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ---------- General Sans (UI/body font) ---------- */
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/general-sans-700.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ---------- JetBrains Mono (technical/spec font — SKUs, pH, badges) ---------- */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

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

:root {
  --black: #000;
  --ink: #111;
  --ink-2: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #3d3d3d;
  --gray-600: #666;
  --gray-500: #8a8a8a;
  --gray-300: #d9d9d9;
  --gray-200: #ededed;
  --gray-100: #f5f5f5;
  --white: #fff;

  --success: #1e6b3a;
  --danger: #b0342c;

  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-ui: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 5rem;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 2px 14px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(0.25, 0.7, 0.3, 1);
}

/* ---------- Preloader (front page only) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  transition: opacity 0.85s var(--ease), visibility 0.85s var(--ease);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease), opacity 0.85s var(--ease);
}

.preloader-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.6));
  transition: opacity 0.85s var(--ease);
}

.preloader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  text-align: center;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.preloader-eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  opacity: 0;
}

.preloader-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  white-space: nowrap;
}

.pl-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  clip-path: inset(0 0 100% 0);
}

.preloader-line {
  display: block;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--white) 50%, rgba(255, 255, 255, 0));
  opacity: 0;
  transform: scaleX(0);
}

.preloader.run .preloader-eyebrow {
  animation: preloader-fade-up 0.7s var(--ease) 0.2s forwards;
}

.preloader.run .pl-letter {
  animation: preloader-letter 0.9s var(--ease) forwards;
}

.preloader.run .preloader-line {
  animation: preloader-line 1s var(--ease) 1.2s forwards;
}

.preloader.leaving .preloader-inner {
  opacity: 0;
  transform: translateY(-10px);
}

.preloader.leaving .preloader-video {
  opacity: 1;
  transform: scale(1);
}

.preloader.leaving .preloader-veil {
  opacity: 0;
}

@keyframes preloader-letter {
  0% {
    opacity: 0;
    transform: translateY(0.55em);
    clip-path: inset(0 0 100% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes preloader-fade-up {
  from { opacity: 0; transform: translateY(0.6em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-line {
  0% { opacity: 0; transform: scaleX(0); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1); }
}

.preloader.run .pl-letter:nth-child(1) { animation-delay: 0.35s; }
.preloader.run .pl-letter:nth-child(2) { animation-delay: 0.43s; }
.preloader.run .pl-letter:nth-child(3) { animation-delay: 0.51s; }
.preloader.run .pl-letter:nth-child(4) { animation-delay: 0.59s; }
.preloader.run .pl-letter:nth-child(5) { animation-delay: 0.67s; }
.preloader.run .pl-letter:nth-child(6) { animation-delay: 0.75s; }
.preloader.run .pl-letter:nth-child(7) { animation-delay: 0.83s; }
.preloader.run .pl-letter:nth-child(8) { animation-delay: 0.91s; }

@media (prefers-reduced-motion: reduce) {
  .preloader,
  .preloader-inner,
  .preloader-video,
  .preloader-veil {
    transition-duration: 0.15s;
  }

  .preloader.run .preloader-eyebrow,
  .preloader.run .preloader-line,
  .preloader.run .pl-letter {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.hide {
  display: none !important;
}

.muted {
  color: var(--gray-500);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Display headings (Clash Display — never below 24px) ---------- */
h1,
h2 {
  font-family: var(--font-display);
}

/* Small / functional headings stay in the UI font */
.drawer-head h2,
.filter-head h2,
.cart-summary h2,
.step h2,
.checkout-side h2,
.account-side .card h2,
.order-main h2,
.order-side h2,
.contact-layout .card h2,
.contact-info h2,
.sm-col h2 {
  font-family: var(--font-ui);
}

/* ---------- Typography ---------- */
.kicker {
  display: block;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #9a9a9a;
}

.page-head {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.page-head h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--black);
  margin: 0.4rem 0;
}

.page-head .lead {
  color: var(--gray-600);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-lg {
  padding: 1.05rem 2.5rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
  padding: 1rem 1.5rem;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-ghost {
  background: var(--gray-100);
  color: var(--black);
}

.btn-ghost:hover {
  background: var(--gray-200);
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.link-more:hover {
  color: var(--gray-600);
}

.link-btn {
  background: none;
  border: 0;
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--danger);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-sale {
  background: var(--black);
  color: var(--white);
}

.badge-out {
  background: var(--gray-500);
  color: var(--white);
}

.badge-count {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-status {
  background: var(--gray-100);
  color: var(--gray-700);
}

.status-pending,
.status-cancelled {
  background: var(--gray-300);
  color: var(--black);
}

.status-processing,
.status-paid,
.status-shipped {
  background: var(--gray-800);
  color: var(--white);
}

.status-delivered {
  background: var(--success);
  color: var(--white);
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.announce,
.announce a { display: none; }

.header-inner {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
  flex: none;
}

.icon-btn:hover {
  background: var(--gray-100);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 0.1rem;
}

.menu-btn {
  justify-self: start;
}

.logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-transform: uppercase;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
  font-weight: 900;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--black);
}

.logo-sm .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.logo-sm .logo-text {
  font-size: 1rem;
}

.main-nav {
  border-top: 1px solid var(--gray-200);
}

.main-nav ul {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.main-nav a {
  display: block;
  padding: 0.9rem 1.1rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.main-nav a:hover {
  color: var(--gray-600);
}

/* ---------- Mobile drawer ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 95;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(400px, 92vw);
  background: var(--white);
  z-index: 100;
  transform: translateX(102%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
}

#drawer {
  left: 0;
  right: auto;
  transform: translateX(-102%);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.18);
}

.drawer.open {
  transform: translateX(0) !important;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.drawer-head h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.5rem;
}

.drawer-nav li a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, padding-left 0.2s var(--ease);
}

.drawer-nav li a:hover {
  color: var(--gray-600);
  padding-left: 6px;
}

.drawer-divider {
  border-bottom: 2px solid var(--gray-200);
  margin: 0.4rem 0;
}

.drawer-foot {
  padding: 1.15rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: grid;
  gap: 0.7rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* ---------- Cart drawer ---------- */
.free-ship-bar {
  padding: 0.9rem 1.5rem;
  background: var(--gray-100);
  font-size: 0.8rem;
  font-weight: 600;
}

.fs-track {
  height: 6px;
  background: var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.fs-fill {
  height: 100%;
  background: var(--black);
  width: 0;
  transition: width 0.4s var(--ease);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem;
}

.cd-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}

.cd-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
  filter: grayscale(0.35);
}

.cd-info .cd-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  display: block;
}

.cd-opt {
  font-size: 0.76rem;
  color: var(--gray-500);
}

.cd-price {
  font-weight: 800;
  font-size: 0.9rem;
}

.cd-qty {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.cd-remove {
  position: absolute;
  top: 0.7rem;
  right: 0;
  border: 0;
  background: none;
  font-size: 1.1rem;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1;
}

.cd-remove:hover {
  color: var(--danger);
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.cart-empty p {
  margin-bottom: 1.2rem;
}

/* ---------- Search ---------- */
.search-pop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
  padding: 1.25rem 1.5rem 1.5rem;
}

.search-pop-head {
  width: min(760px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.4rem;
}

.search-pop-head svg {
  color: var(--gray-600);
  flex: none;
}

.search-pop-head input {
  flex: 1;
  border: 0;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  font-family: var(--font-ui);
  padding: 0.4rem 0.5rem;
}

.search-pop-head input:focus {
  outline: none;
}

.search-sugg {
  width: min(760px, 100%);
  margin: 1rem auto 0;
  max-height: 60vh;
  overflow-y: auto;
}

.sugg-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}

.sugg-links {
  display: grid;
  gap: 0.2rem;
}

.sugg-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.sugg-item:hover {
  background: var(--gray-100);
}

.sugg-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
  filter: grayscale(0.35);
  flex: none;
}

.sugg-item span {
  flex: 1;
}

.sugg-item strong {
  font-weight: 800;
}

.sugg-empty {
  color: var(--gray-500);
  font-size: 0.92rem;
  padding: 0.5rem 0.4rem;
}

.search-all {
  width: min(760px, 100%);
  margin: 1rem auto 0;
  display: flex;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(480px, 76vh, 720px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(160deg, #141414 0%, #000 60%, #0a0a0a 100%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  padding: var(--sp-2) 0 var(--sp-3);
  text-align: center;
}

.hero-content .kicker {
  color: var(--gray-300);
  margin-bottom: var(--sp-2);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.hero-content h1 em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38ch;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}

.hero-cta {
  position: relative;
  z-index: 2;
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  margin-top: auto;
  margin-bottom: var(--sp-5);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-meta {
  position: relative;
  z-index: 2;
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem 0;
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Marquee ticker */
.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-inline: 0.5rem;
}

.marquee .sep {
  color: var(--gray-600);
  padding-inline: 0;
  font-size: 0.8rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ============================================================
   HOME: HEADER OVER HERO VIDEO (combined background)
   ============================================================ */
body.home .site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

body.home .main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body.home .logo-text,
body.home .main-nav a,
body.home .icon-btn {
  color: var(--white);
}

body.home .icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.home .main-nav a:hover {
  color: rgba(255, 255, 255, 0.75);
}

body.home .logo-mark {
  background: var(--white);
  color: var(--black);
}

body.home .hero {
  margin-top: calc(-1 * var(--hero-header-offset, 127px));
  padding-top: var(--hero-header-offset, 127px);
}

/* Scrolled: header returns to solid so it stays readable over page content */
body.home.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

body.home.is-scrolled .site-header {
  border-bottom-color: var(--gray-200);
}

body.home.is-scrolled .main-nav {
  border-top-color: var(--gray-200);
}

body.home.is-scrolled .logo-text,
body.home.is-scrolled .main-nav a,
body.home.is-scrolled .icon-btn {
  color: var(--ink);
}

body.home.is-scrolled .icon-btn:hover {
  background: var(--gray-100);
}

body.home.is-scrolled .main-nav a:hover {
  color: var(--gray-600);
}

body.home.is-scrolled .logo-mark {
  background: var(--black);
  color: var(--white);
}

/* ============================================================
   SECTIONS + GRIDS
   ============================================================ */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-narrow {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

.section-dark {
  background: var(--black);
}

.section-dark h2 {
  color: var(--white);
}

.section-dark .kicker {
  color: var(--gray-500);
}

.section-dark .link-more {
  color: var(--white);
}

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

.section-head {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-head .kicker {
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--black);
}

.section-head.sm h2 {
  font-size: clamp(1.5rem, 3vw, 1.7rem);
  margin: 0;
}

.product-grid {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

/* ---------- Product card ---------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.section-dark .card {
  background: var(--white);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: var(--radius);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 0.6s var(--ease);
}

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

.badges {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover .quick,
.card:focus-within .quick {
  opacity: 1;
  transform: translateY(0);
}

.quick:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card-body {
  padding: 1rem 0.4rem 0.5rem;
}

.card-body .cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.card-body h3 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.card-body h3 a:hover {
  color: var(--gray-600);
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.now {
  font-weight: 800;
  font-size: 1rem;
}

.was {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.stars .count {
  color: var(--gray-500);
}

.star {
  color: var(--black);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ---------- Category cards ---------- */
.cat-grid {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cat-card:hover img {
  transform: scale(1.06);
}

.cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.cat-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

.cat-overlay h3 {
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.cat-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.cat-arrow svg {
  width: 20px;
  height: 20px;
}

.cat-card:hover .cat-arrow {
  transform: translateX(4px);
  background: var(--gray-200);
}

/* ---------- Kit cards ---------- */
.kit-grid {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2rem);
}

.kit-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.kit-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.kit-top {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}

.kit-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 0.6s var(--ease);
}

.kit-card:hover .kit-top img {
  transform: scale(1.04);
}

.kit-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
}

.kit-body {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kit-body .cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.3rem;
}

.kit-body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.kit-price {
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.kit-price .was {
  font-weight: 500;
  font-size: 0.95rem;
}

.checklist {
  margin-bottom: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.checklist li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--black);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.perfect-for {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 1.2rem;
}

.perfect-for strong {
  color: var(--black);
  font-weight: 800;
}

.kit-body .btn {
  margin-top: auto;
}

/* ---------- Promise strip ---------- */
.promise {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-5);
}

.promise-item {
  padding: 0 1.5rem;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.promise-item:last-child {
  border-right: 0;
}

.promise-item strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

.promise-item span {
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ============================================================
   SHOP / LISTING
   ============================================================ */
.shop-layout {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: var(--sp-5) 0;
}

.filter-panel {
  position: sticky;
  top: 130px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.filter-head h2 {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-head .icon-btn {
  display: none;
}

.filter-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group h3 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.6rem;
}

.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.price-range input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

.price-range span {
  color: var(--gray-500);
}

.shop-main {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.shop-toolbar #filtersToggle {
  display: none;
}

.result-count {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-right: auto;
}

.sort-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

#sortSelect {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-ui);
  background: var(--white);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.6rem;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
}

.page-btn:hover {
  border-color: var(--black);
}

.page-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.crumbs {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.p-gallery {
  display: grid;
  gap: 0.9rem;
}

.p-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4 / 5;
}

.p-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
}

.p-main .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

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

.thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--gray-100);
  aspect-ratio: 1;
}

.thumb.active {
  border-color: var(--black);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
}

.p-info .cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}

.p-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.p-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.p-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.p-price .now {
  font-size: 1.7rem;
  font-weight: 900;
}

.p-price .was {
  font-size: 1.05rem;
}

.p-desc {
  color: var(--gray-700);
  margin-bottom: 1.4rem;
}

.p-form {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.2rem;
}

.opt-group {
  margin-bottom: 1rem;
}

.opt-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.opt-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.opt-pill {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.opt-pill:hover {
  border-color: var(--black);
}

.opt-pill.selected {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.opt-pill:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

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

.qty-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

.qty-btn:hover {
  background: var(--gray-100);
}

.qty input,
.qty .qty-input {
  width: 48px;
  text-align: center;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-ui);
}

.p-cta {
  display: flex;
  gap: 0.8rem;
}

.p-cta .btn-lg {
  flex: 1;
}

.p-stock {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--success);
}

.p-stock.out {
  color: var(--danger);
}

.p-perks {
  margin-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.perk {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.perk strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.perk span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ---------- Tabs ---------- */
.p-tabs {
  margin-top: var(--sp-6);
  border-top: 1px solid var(--gray-200);
}

.tab-btns {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem 1.5rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.tab-pane {
  display: none;
  padding: var(--sp-4) 0;
}

.tab-pane.active {
  display: block;
}

.review {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.review-head strong {
  font-weight: 800;
  font-size: 0.95rem;
}

.review p {
  color: var(--gray-700);
  font-size: 0.92rem;
}

.review .stars {
  margin-top: 0;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: var(--sp-4) 0 var(--sp-6);
}

.fs-note {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cart-items {
  border-top: 1px solid var(--gray-200);
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}

.cart-item > a img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  filter: grayscale(0.35);
}

.ci-info .ci-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ci-opt {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.ci-price {
  font-weight: 800;
  font-size: 1rem;
  margin-top: 0.3rem;
}

.ci-remove {
  background: none;
  border: 0;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ci-remove:hover {
  color: var(--danger);
}

.cart-summary {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: sticky;
  top: 130px;
}

.cart-summary h2 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.totals {
  display: grid;
  gap: 0.45rem;
}

.t-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.t-total {
  font-weight: 900;
  font-size: 1.15rem;
  border-top: 1.5px solid var(--gray-300);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

.discount-box {
  display: flex;
  gap: 0.5rem;
  margin: 1.1rem 0 0.4rem;
}

.discount-box input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.discount-box input:focus {
  outline: none;
  border-color: var(--black);
}

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

.cart-summary > .btn + .btn {
  margin-top: 0.6rem;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: var(--sp-4) 0 var(--sp-6);
}

.step {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.step h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.ship-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s, background 0.2s;
}

.ship-option:has(input:checked) {
  border-color: var(--black);
  background: var(--gray-100);
}

.ship-option input {
  accent-color: var(--black);
  width: 18px;
  height: 18px;
  flex: none;
}

.ship-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ship-eta {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.ship-price {
  font-weight: 800;
  white-space: nowrap;
}

.payment-method {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.payment-method .field-hint {
  margin-top: 0.6rem;
}

.pm-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pm-card:has(input:checked) {
  border-color: var(--black);
  background: var(--gray-100);
}

.pm-card input {
  accent-color: var(--black);
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.2rem;
}

.pm-card label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pm-sub {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.pm-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--gray-700);
  margin-left: 0.4rem;
  vertical-align: middle;
}

.checkout-side {
  position: sticky;
  top: 130px;
  padding: 1.8rem;
}

.checkout-side h2 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.co-items {
  margin-bottom: 1rem;
}

.co-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.co-item img,
.co-ph {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
  filter: grayscale(0.35);
  flex: none;
}

.co-item > div {
  flex: 1;
  min-width: 0;
}

.co-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.co-opt {
  font-size: 0.76rem;
  color: var(--gray-500);
}

.co-qty {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.co-item > .money {
  font-weight: 800;
  white-space: nowrap;
}

/* ============================================================
   ACCOUNT / AUTH
   ============================================================ */
.account-layout {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: var(--sp-4) 0 var(--sp-6);
}

.account-section {
  margin-bottom: var(--sp-5);
}

.account-section .section-head {
  width: 100%;
  margin-inline: 0;
  margin-bottom: 1.5rem;
}

.order-card {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.1rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.order-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.oc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.oc-number {
  font-weight: 900;
  font-size: 1.05rem;
}

.oc-date {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.oc-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
  padding-top: 0.8rem;
}

.oc-foot strong {
  color: var(--black);
  font-size: 1.05rem;
}

.account-side {
  display: grid;
  gap: 1.5rem;
}

.account-side .card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.account-side .card h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

.account-side .card > .btn {
  margin-top: 0.7rem;
}

.address-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.address-card.selected {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black) inset;
}

.ac-actions {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.7rem;
}

.ac-line {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.ac-line:first-child {
  font-weight: 700;
  color: var(--black);
}

.auth-wrap {
  width: min(480px, 100% - 2rem);
  margin: var(--sp-5) auto var(--sp-7);
}

.auth-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}

.auth-card.center {
  text-align: center;
}

.auth-card h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0.4rem 0;
}

.auth-card .lead {
  color: var(--gray-600);
  margin-bottom: 1.6rem;
}

.auth-card form .btn {
  margin-top: 0.4rem;
}

.auth-switch {
  margin-top: 1.3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.auth-switch a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card .field-hint {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================================================
   ORDER CONFIRMATION
   ============================================================ */
.success-banner {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2rem;
}

.success-banner strong {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.4rem;
}

.success-banner p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

.order-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.order-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.order-main h2,
.order-side h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 1rem;
}

.order-main h2:first-child {
  margin-top: 0;
}

.order-side .totals {
  margin-bottom: 1.2rem;
}

/* ============================================================
   CONTENT PAGES
   ============================================================ */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.75rem;
  text-transform: uppercase;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  padding: 0.2rem 0;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.prose code {
  background: var(--gray-100);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
}

.prose table {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.prose th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--gray-600);
  border-bottom: 2px solid var(--black);
  padding: 0.6rem 0.8rem;
}

.prose td {
  border-bottom: 1px solid var(--gray-200);
  padding: 0.7rem 0.8rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--gray-200);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gray-500);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 0 1.2rem;
  color: var(--gray-700);
}

.faq a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-layout .card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.contact-layout .card h2 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.contact-info h2 {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-item strong {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.contact-item span {
  font-size: 0.95rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  background: var(--gray-900);
  color: var(--white, #fff);
  border-color: var(--gray-900);
}

/* ---------- Sitemap ---------- */
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.sm-col h2 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.9rem;
}

.sm-col ul {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.sm-col a {
  font-weight: 600;
}

.sm-col a:hover {
  color: var(--gray-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   LOADING / EMPTY STATES
   ============================================================ */
.loader {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid var(--gray-300);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-row {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.p-loading {
  text-align: center;
  padding: 4rem 0;
  color: var(--gray-500);
}

.p-loading p {
  margin-top: 0.8rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: var(--sp-6) 0;
  color: var(--gray-600);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  margin: 1rem 0;
}

.empty-state h3 {
  color: var(--black);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.empty-state p {
  margin-bottom: 1.4rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius);
  min-height: 280px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 150%);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease);
  z-index: 120;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.show {
  transform: translate(-50%, 0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--sp-6) 0 0;
  margin-top: var(--sp-5);
}

.footer-inner {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
}

.footer-brand .logo {
  justify-self: start;
  margin-bottom: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: #ffffff;
  color: var(--black);
}

.footer-brand .logo-text {
  color: #000000;
  background: #ffffff;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  max-width: 32ch;
  margin-bottom: 1.2rem;
}

.footer-pay {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.legal-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.legal-links a:hover {
  color: var(--white);
}

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

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .p-grid,
  .cart-layout,
  .checkout-layout,
  .account-layout,
  .order-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    z-index: 100;
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.18);
  }

  .filter-panel.open {
    transform: translateX(0);
  }

  .filter-head .icon-btn {
    display: inline-flex;
  }

  .shop-toolbar #filtersToggle {
    display: inline-flex;
  }

  .cart-summary,
  .checkout-side,
  .account-side .card {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

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

  .cat-grid {
    grid-template-columns: repeat(5, 76vw);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }

  .cat-grid::-webkit-scrollbar {
    display: none;
  }

  .cat-card {
    scroll-snap-align: start;
  }

  .promise {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .promise-item {
    border-right: 0;
    padding: 0 0.5rem;
  }

  .hero-meta {
    gap: 0.9rem;
  }

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

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

  .cart-item .qty {
    grid-column: 2;
  }

  .ci-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .section-head {
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand .logo,
  .footer-brand .logo .logo-text {
    margin-inline: auto;
    justify-self: center;
    align-items: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    justify-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }

  .account-layout,
  .order-layout {
    padding-bottom: var(--sp-4);
  }
}

@media (max-width: 480px) {
  .product-grid,
  .skeleton-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .p-cta {
    flex-direction: column;
  }

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

  .kit-body {
    padding: 1.25rem;
  }

  .order-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .t-row,
  .t-total {
    font-size: 0.92rem;
  }

  .search-pop {
    padding: 0.9rem 1rem 1.1rem;
  }
}

/* ---------- Overflow safety (no horizontal scroll on any size) ---------- */
html,
body {
  overflow-x: clip;
}

.product-grid > *,
.p-grid > *,
.kit-grid > *,
.cart-item > *,
.cart-summary,
.checkout-side,
.account-side .card,
.step,
.auth-card,
.order-card {
  min-width: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 480px;
}

@media (max-width: 1024px) {
  .shop-layout {
    gap: 1.75rem;
  }

  .p-grid {
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .checkout-layout,
  .account-layout,
  .order-layout {
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .header-inner,
  .page-head,
  .section-narrow,
  .section-head,
  .product-grid,
  .kit-grid,
  .shop-layout,
  .checkout-layout,
  .account-layout,
  .order-layout,
  .hero-content,
  .hero-meta {
    width: min(1240px, 100% - 2rem);
  }

  .header-inner {
    height: 60px;
    gap: 0.6rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .drawer {
    width: min(360px, 88vw);
  }

  .hero {
    min-height: clamp(440px, 84vh, 600px);
  }

  .hero-content {
    padding: var(--sp-1) 0 var(--sp-3);
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }

  .section {
    padding: clamp(2.5rem, 8vw, 4rem) 0;
  }

  .section-head {
    gap: 0.75rem;
  }

  .step,
  .cart-summary,
  .checkout-side,
  .account-side .card {
    padding: 1.4rem;
  }

  .cart-item > a img {
    width: 72px;
    height: 72px;
  }

  .shop-toolbar {
    gap: 0.7rem;
  }

  .result-count {
    width: 100%;
  }

  .p-grid {
    gap: 1.5rem;
  }

  .footer-inner {
    gap: 2rem;
  }

  .search-pop {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .skeleton-grid {
    gap: 0.8rem;
  }

  .card-body {
    padding: 0.8rem 0.3rem 0.4rem;
  }

  .card-body h3 {
    font-size: 0.88rem;
  }

  .cart-item {
    gap: 0.8rem;
  }

  .search-pop-head input {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .header-inner {
    width: min(1240px, 100% - 1.5rem);
    gap: 0.4rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 0;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-video {
    display: none;
  }
}

/* ============================================================
   Before / After comparison slider
   ============================================================ */
.ba-hint {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0;
}

.ba-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--gray-700);
  vertical-align: middle;
}

.ba-tag-after {
  background: var(--black);
  color: var(--white);
}

.ba-wrap {
  width: min(940px, 100% - 3rem);
  margin-inline: auto;
}

.ba-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 74vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after {
  width: 100%;
}

.ba-before {
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.ba-before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.ba-grip::before,
.ba-grip::after {
  content: "";
  width: 7px;
  height: 14px;
  background: var(--black);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ba-grip::after {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.ba-label {
  position: absolute;
  top: 1.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
}

.ba-label-before {
  left: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
}

.ba-label-after {
  right: 1.2rem;
  background: var(--white);
  color: var(--black);
}

.ba-drag-active .ba-handle,
.ba-compare.ba-drag-active {
  cursor: ew-resize;
}
