/* ==========================================================================
   TOKO — shared stylesheet
   Design tokens live at the top as CSS custom properties so the whole
   site's look can be retuned from one place.
   ========================================================================== */

:root {
  /* Color: strict black / white / off-white, no color accent */
  --black: #0b0b0b;
  --white: #ffffff;
  --paper: #f4f2ec;
  --grey-600: #6b6b68;
  --grey-300: #d9d6cd;
  --line: rgba(11, 11, 11, 0.15);

  /* Type */
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-width: 1240px;
  --gutter: 24px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

/* Visible focus ring everywhere, no exceptions */
:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

::selection {
  background: var(--black);
  color: var(--white);
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--grey-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--black);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Signature element — "The Measure Rule"
   A tailoring tape-measure divider: alternating tick marks, used in place
   of a plain <hr>. Ties every section back to fit and construction.
   ========================================================================== */
.measure-rule {
  --tick: var(--grey-300);
  height: 14px;
  background-image: repeating-linear-gradient(
      90deg,
      var(--tick) 0,
      var(--tick) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      90deg,
      var(--black) 0,
      var(--black) 1px,
      transparent 1px,
      transparent 60px
    );
  background-position: bottom left, bottom left;
  background-size: 100% 7px, 100% 14px;
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--black);
  margin-block: 56px;
}

.measure-rule--tight {
  margin-block: 32px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  padding: 15px 28px;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

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

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

.btn--ghost {
  border-color: transparent;
  padding-inline: 0;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey-600);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--black);
  border-color: var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Currency selector — minimal, matches the mono nav-link styling.
   Purely a display preference: it never touches the INR prices stored
   in products-data.js, only how tokoFormatPrice() renders them. */
.currency-select-wrap {
  display: flex;
  align-items: center;
}

.currency-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0L4 5L8 0Z' fill='%236b6b68'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 22px 6px 9px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.currency-select:hover,
.currency-select:focus-visible {
  color: var(--black);
  border-color: var(--black);
  outline: none;
}

.mobile-panel {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--white);
  z-index: 150;
  padding: 40px var(--gutter);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Forces the panel onto its own GPU compositing layer. Without this,
     iOS Safari/Chrome can briefly repaint the page underneath through a
     fixed-position overlay during scroll/rubber-banding, which is what
     let the hero show through the open menu. */
  -webkit-transform: translateZ(0) translateY(-8px);
  will-change: transform;
  /* opacity/visibility switch instantly (no partial-transparency frame
     where homepage text could show through the menu background);
     only the slide-down is animated. */
  transition: transform 0.2s ease, visibility 0s linear 0.2s, opacity 0s linear 0.2s;
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  -webkit-transform: translateZ(0) translateY(0);
  pointer-events: auto;
  transition: transform 0.2s ease, visibility 0s linear 0s, opacity 0s linear 0s;
}

.mobile-panel ul {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.mobile-panel a {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header-actions {
    gap: 10px;
  }
  .currency-select {
    font-size: 10px;
    padding: 5px 20px 5px 8px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding-block: 72px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 12ch;
}

.hero-copy {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--grey-600);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-visual {
  aspect-ratio: 3 / 4;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hero-visual-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
  background: var(--black);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-block: 48px;
  }
}

/* ==========================================================================
   Sections / headings
   ========================================================================== */
.section {
  padding-block: 80px;
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 18ch;
}

.collection-view-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

/* ==========================================================================
   Product grid + cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
  margin-top: 48px;
}

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

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-card-trigger {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  /* iOS Safari applies its own default (blue) text tint to text sitting
     inside a native <button> unless appearance/colour are forced explicitly. */
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Size + colour selection (Round 2) ---- */
.product-options {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  margin-bottom: 6px;
}

.size-options,
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.size-btn.is-selected {
  background: var(--black);
  color: var(--white);
}

.size-btn.is-special {
  border-style: dashed;
  color: var(--grey-600);
}

.size-btn.is-special.is-selected {
  background: var(--grey-600);
  border-color: var(--grey-600);
  color: var(--white);
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  padding: 0;
  border: 1.5px solid var(--black);
  background: var(--white);
  position: relative;
}

.color-swatch[data-color="Black"] {
  background: var(--black);
}

.color-swatch[data-color="White"] {
  background: var(--white);
}

.color-swatch.is-selected {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.selection-summary {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.modal-body .product-options {
  margin-top: 24px;
}

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

.product-media .texture {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px,
    transparent 7px
  );
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0 20px;
}

.product-tag {
  position: absolute;
  top: 0;
  left: 14px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px 8px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.product-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--black);
  -webkit-text-fill-color: currentColor;
}

.product-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--grey-600);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  white-space: nowrap;
  margin-top: 2px;
  color: var(--black);
  -webkit-text-fill-color: currentColor;
}

.product-sizes {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.btn--card {
  margin-top: 14px;
  width: 100%;
  padding: 13px 20px;
  font-size: 11px;
}

.product-card--reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Category filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.filter-btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey-600);
  transition: all 0.15s ease;
}

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

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

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--grey-600);
}

/* ==========================================================================
   Product modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--white);
  max-width: 880px;
  width: 100%;
  max-height: 90vh; /* fallback for browsers without svh support */
  max-height: 90svh; /* uses the smallest viewport height so iOS Safari's
                         toolbar can never push content below the fold */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--black);
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}

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

.modal-body {
  padding: 40px;
}

.modal-body h3 {
  font-size: 1.8rem;
  margin-top: 12px;
}

.modal-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-top: 10px;
}

.modal-desc {
  margin-top: 20px;
  color: var(--grey-600);
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

.prose[data-modal-details] {
  overflow-wrap: break-word;
  word-break: break-word;
}

.modal-specs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.modal-specs dt {
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.modal-specs dd {
  margin: 4px 0 0;
}

@media (max-width: 640px) {
  .modal {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TOKO Secure Checkout — opens on "Order Now". One product, no cart.
   Reuses .modal-overlay for the backdrop/centering/fixed positioning;
   .checkout-card is its own (narrower, single-column) inner card so this
   reads as a focused checkout step rather than the two-column product
   modal.
   ========================================================================== */
.checkout-overlay {
  z-index: 210; /* above the product modal (200), in case both exist in
                   the DOM at once — openCheckout() also closes the product
                   modal itself, this is just a safety net */
}

.checkout-card {
  background: var(--white);
  max-width: 420px;
  width: 100%;
  max-height: 90vh; /* fallback for browsers without svh support */
  max-height: 90svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  padding: 44px 36px 36px;
}

.checkout-wordmark {
  text-align: center;
}

.checkout-eyebrow {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.checkout-product {
  margin-top: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.checkout-product-media {
  width: 120px;
  aspect-ratio: 4/5;
  margin: 0 auto;
  background: var(--black);
  overflow: hidden;
  position: relative;
}

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

.checkout-product-name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

.checkout-product-specs {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.checkout-product-specs dt {
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.checkout-product-specs dd {
  margin: 4px 0 0;
}

.checkout-product-price {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.checkout-card form {
  margin-top: 28px;
}

.checkout-submit {
  width: 100%;
  margin-top: 6px;
}

.checkout-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: none;
}

.checkout-status.is-visible {
  display: block;
}

.checkout-status.is-error {
  color: #b3261e;
}

.checkout-powered-by {
  margin-top: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
}

/* ==========================================================================
   Process / steps (About + Home)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--grey-600);
}

.step h3 {
  font-size: 1.15rem;
  margin-top: 10px;
}

.step p {
  margin-top: 10px;
  color: var(--grey-600);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-field label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey-600);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline-offset: 2px;
}



.phone-input-row {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid var(--black);
  background: var(--white);
}

.phone-code {
  display: flex;
  align-items: center;
  padding: 13px 12px;
  border-right: 1px solid var(--black);
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
  min-width: 54px;
  justify-content: center;
}

.phone-input-row input {
  border: 0;
  min-width: 0;
}

.phone-input-row input:focus {
  outline: 0;
}

.checkout-country-note,
.checkout-phone-note {
  margin-top: 7px;
  color: var(--grey-600);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #b3261e;
}

/* ==========================================================================
   FAQ accordion (native <details>)
   ========================================================================== */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--black);
}

.faq-item {
  border-bottom: 1px solid var(--black);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 24px;
  max-width: 64ch;
  color: var(--grey-600);
  line-height: 1.65;
}

/* ==========================================================================
   Unit toggle (unused — no page currently references this component)
   ========================================================================== */
.unit-toggle {
  display: inline-flex;
  border: 1px solid var(--black);
  margin-top: 24px;
}

.unit-toggle button {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  background: var(--white);
  color: var(--black);
  border: none;
}

.unit-toggle button.is-active {
  background: var(--black);
  color: var(--white);
}

.size-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}

table.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.size-table th,
.size-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

.size-table thead th {
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.how-to-measure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 720px) {
  .how-to-measure {
    grid-template-columns: 1fr;
  }
}

.measure-diagram {
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-logo {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-size: 1.6rem;
}

.footer-tagline {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Utility / page-level helpers
   ========================================================================== */
.page-head {
  padding-block: 64px 0;
}

.page-head h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 18ch;
}

.page-lede {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--grey-600);
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 18px;
}

.prose {
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 60ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.spec-list {
  border-left: 1px solid var(--black);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.spec-list dt {
  color: var(--grey-600);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.spec-list dd {
  margin: 4px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Mobile responsiveness pass (320–430px)
   Desktop styles above are untouched — everything below is gated behind
   max-width media queries and only ever applies on small screens.
   ========================================================================== */

/* Belt-and-braces guard against any accidental horizontal scroll from a
   slightly-too-wide element; does not affect sticky header behaviour. */
html {
  overflow-x: hidden;
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  /* ---- Section / spacing rhythm ---- */
  .section {
    padding-block: 56px;
  }

  .hero .container {
    padding-block: 40px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 5.2rem);
    max-width: 14ch;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .section-head {
    gap: 16px;
  }

  .measure-rule {
    margin-block: 36px;
  }

  /* ---- Product grid + cards ---- */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }

  .product-name {
    font-size: 0.92rem;
  }

  .product-desc {
    font-size: 0.82rem;
  }

  /* Larger, easier-to-tap size/colour controls on touch screens */
  .size-btn {
    padding: 9px 12px;
    font-size: 11.5px;
  }

  .size-options,
  .color-options {
    gap: 10px;
  }

  .color-swatch {
    width: 30px;
    height: 30px;
  }

  .btn--card {
    padding: 14px 18px;
  }

  /* ---- Product modal ---- */
  .modal-overlay {
    padding: 12px;
  }

  .modal {
    max-height: 94vh; /* fallback */
    max-height: 94svh;
  }

  .modal-body {
    padding: 24px 20px 32px;
  }

  .modal-body h3 {
    font-size: 1.4rem;
  }

  .modal-specs {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }

  /* ---- TOKO Secure Checkout ---- */
  .checkout-overlay {
    padding: 12px;
  }

  .checkout-card {
    max-height: 94vh; /* fallback */
    max-height: 94svh;
    padding: 32px 22px 28px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  /* ---- Steps ---- */
  .steps {
    gap: 24px;
    margin-top: 36px;
  }

  /* ---- Footer ---- */
  .site-footer {
    padding-block: 48px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-bottom {
    margin-top: 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* ---- Forms ---- */
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
  }

  /* ---- Mobile nav panel ---- */
  .mobile-panel {
    padding: 32px var(--gutter);
  }

  .mobile-panel ul {
    gap: 22px;
  }

  .mobile-panel a {
    font-size: 26px;
  }

  /* ---- Page headers ---- */
  .page-head {
    padding-block: 44px 0;
  }

  .page-lede {
    font-size: 1rem;
  }
}

/* Very narrow phones (iPhone SE and similar) — cards get tight enough
   that a single column reads cleaner than two cramped ones. */
@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-inline: auto;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }
}
