:root {
  --black: #000;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --soft: #f4f4f4;
  --white: #fff;
  --header-h: 100px;
  --gutter: 16px;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Syncopate", "Archivo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px;
}
.logo { justify-self: start; display: flex; }
.logo img { height: 26px; width: auto; display: block; }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.main-nav a:hover { opacity: 0.7; }
.header-icons { display: flex; gap: 38px; justify-self: end; align-items: center; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -10px;
  right: -12px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.cart-count.bump { transform: scale(1.35); }
.menu-toggle { display: none; color: var(--white); }
.menu-toggle .icon-close { display: none; }
.mobile-buy { display: none; }

/* ---------- Product ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 448px;
  gap: 50px;
  padding: 75px var(--gutter) 0;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.gallery .shot {
  aspect-ratio: 4 / 5;
  background: #e9e9e9;
  overflow: hidden;
}
.gallery-dots { display: none; }
.gallery .shot.crop img.photo { transform: scale(2.1); transform-origin: 76% 38%; }
.gallery .shot,
.card-img,
.color-swatches button { position: relative; }
.gallery .shot svg,
.card-img svg,
img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.color-swatches img.photo { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }

.product-info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding-right: 10px;
}
.product-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: #2a2a2a;
}
.price { font-size: 20px; margin: 0 0 22px; }
.installments { font-size: 16px; margin: 0 0 12px; }
.pay-badges { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.badge-mintpay {
  background: #0d1b3e;
  color: #fff;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.badge-koko {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  color: #d9b3f5;
  -webkit-text-stroke: 1px #4b6cf5;
  letter-spacing: 0.04em;
}
.option-label { font-size: 16px; margin: 0 0 12px; }
.option-label strong { font-weight: 600; margin-right: 4px; }

.color-swatches { display: flex; gap: 12px; margin-bottom: 30px; }
.color-swatches button {
  width: 65px;
  height: 74px;
  padding: 2px;
  border: 1px solid transparent;
  background: var(--soft);
}
.color-swatches button.active { border: 2px solid var(--black); }

.size-head { display: flex; justify-content: space-between; align-items: baseline; }
.size-head .option-label { color: #444; }
.size-guide { font-size: 14px; text-decoration: underline; display: inline-flex; gap: 6px; align-items: center; }
.sizes { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 26px; }
.sizes button {
  width: 66px;
  height: 55px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}
.sizes button:hover { border-color: var(--black); }
.sizes button.active { background: var(--black); color: var(--white); border-color: var(--black); }
.sizes button:disabled { color: #bbb; text-decoration: line-through; cursor: not-allowed; }

.add-to-cart {
  width: 100%;
  height: 60px;
  border-radius: 30px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.15s, opacity 0.15s;
}
.check-trust {
  width: 100%;
  height: 60px;
  margin-bottom: 12px;
  border-radius: 30px;
  background: #ff6b4a;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
  transition: transform 0.15s, opacity 0.15s;
}
.check-trust:hover,
.add-to-cart:hover { opacity: 0.88; }
.check-trust:active { transform: scale(0.98); }
/* After verifying: the long Truth button and a round mic button on one line. */
.truth-row { display: flex; gap: 12px; margin-bottom: 12px; }
.truth-row[hidden] { display: none; }
.truth-open { flex: 1; min-width: 0; width: auto; margin-bottom: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.truth-mic {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff6b4a;
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.15s, opacity 0.15s;
}
.truth-mic:hover { opacity: 0.88; }
.truth-mic:active { transform: scale(0.96); }
.check-trust[hidden] { display: none; }
.trust-status { margin: 0 0 0 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.trust-status:empty { display: none; }
/* No dark default outline on the coral buttons; keyboard focus gets a soft coral ring. */
.check-trust:focus,
.truth-mic:focus { outline: none; }
.check-trust:focus-visible,
.truth-mic:focus-visible { box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.35); }
.check-trust__avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.check-trust__divider { flex: none; width: 1px; height: 24px; background: rgba(255, 255, 255, 0.6); }
.check-trust__label { display: inline-flex; align-items: center; gap: 6px; }
.check-trust__label svg { flex: none; }
.check-trust:disabled { opacity: 0.6; cursor: wait; }

/* Email and code steps revealed above Check trust */
.trust-step {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.25s ease, opacity 0.2s ease;
}
.trust-step.open { grid-template-rows: 1fr; opacity: 1; }
/* Vertical rhythm: 4px inside a label group, 8px between a field and its
   error, 12px between groups, 20px before the button. The padding sits on an
   inner body so a collapsed step is truly 0px tall; its 3px sides (offset by
   the negative margin) keep the focus ring from being clipped. */
.trust-step-inner { overflow: hidden; min-height: 0; margin: 0 -3px; }
.trust-step-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 3px 3px 20px;
}
.trust-field-head { display: flex; flex-direction: column; gap: 4px; }
.trust-control { display: flex; flex-direction: column; gap: 8px; }
.trust-step label { display: block; margin: 0; font-size: 14px; font-weight: 600; color: #444; }
.trust-step input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid #ccc;
  border-radius: 26px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trust-step input:focus { border-color: #ff6b4a; box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.2); }
.trust-step input[aria-invalid="true"] { border-color: #d93025; }
.trust-error { margin: 0 0 0 4px; font-size: 13px; line-height: 1.4; color: #d93025; }
.trust-error:empty { display: none; }
.trust-hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.trust-hint strong { color: var(--ink); font-weight: 600; }
.trust-link { padding: 0; font-size: 13px; font-weight: 600; color: #e0512f; text-decoration: underline; }
.otp-boxes { display: flex; gap: 10px; }
.trust-step input.otp-box {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0;
  border-radius: 14px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  caret-color: #ff6b4a;
}
.trust-step input.otp-box:not(:placeholder-shown) { border-color: #1f1f1f; }
.trust-step input.otp-box:focus { border-color: #ff6b4a; }
.trust-step input.otp-box[aria-invalid="true"] { border-color: #d93025; }
.add-to-cart:active { transform: scale(0.98); }

.accordion {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 10px 18px 0;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { transition: transform 0.2s; }
.accordion[open] summary svg { transform: rotate(180deg); }
.accordion-body { padding: 0 0 18px; color: #444; font-size: 15px; line-height: 1.6; }
.accordion-body ul { padding-left: 18px; margin: 8px 0 0; }

.returns {
  margin-top: 20px;
  background: var(--soft);
  border: 1px solid #ececec;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: 16px;
}

/* ---------- Related ---------- */
.related { padding: 140px var(--gutter) 130px; }
.related-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.related h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
  margin: 0 0 0 4px;
  color: #2a2a2a;
}
.carousel-arrows { display: flex; gap: 6px; }
.carousel-arrows button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
  background: var(--white);
}
.carousel-arrows button:disabled { opacity: 0.35; cursor: default; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 30px) / 4);
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.card-img { aspect-ratio: 445 / 590; background: #e9eaec; overflow: hidden; margin-bottom: 10px; }
.card-img svg { transition: transform 0.4s; }
.card-img img.photo { transition: transform 0.4s; }
.card:hover .card-img svg,
.card:hover .card-img img.photo { transform: scale(1.03); }
.card-swatches { display: flex; gap: 5px; margin-bottom: 8px; }
.card-swatches span { width: 20px; height: 20px; border: 1px solid #ddd; }
.card h3 { margin: 0 0 4px; font-weight: 400; font-size: 18px; }
.card .variant { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.card .card-price { margin: 0; font-weight: 700; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 30px 0 40px; overflow: hidden; }
.footer-wordmark {
  display: block;
  width: calc(100% - 28px);
  height: auto;
  margin: 0 14px 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 580px 230px 230px;
  gap: 80px 0;
  column-gap: 80px;
  padding: 0 40px;
}
.footer-grid .footer-col:first-of-type { margin-left: -0px; }
.signup h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 21px; margin: 0 0 12px; }
.signup p { color: #ccc; font-size: 15px; margin: 0 0 28px; }
.signup form { display: flex; border-bottom: 1px solid #888; padding-bottom: 10px; }
.signup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  font: inherit;
  font-size: 15px;
}
.signup input::placeholder { color: #999; }
.signup button { font-weight: 700; font-size: 15px; }
.signup-msg { margin-top: 12px !important; color: #9be29b !important; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #bbb; letter-spacing: 0.02em; }
.footer-col a { font-size: 16px; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 100px 40px 0;
}
.socials { display: flex; gap: 18px; color: #aaa; }
.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 21px;
  text-transform: uppercase;
}
.copyright { justify-self: end; margin: 0; color: #888; font-size: 14px; }

/* ---------- Trust check overlay ---------- */
.trust-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  /* The store page stays visible but blurred behind the message. */
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--white);
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  animation: trust-fade 0.2s ease;
}
.trust-overlay[hidden] { display: none; }
@keyframes trust-fade { from { opacity: 0; } }
.trust-overlay-content { max-width: 320px; display: flex; flex-direction: column; gap: 4px; }
.trust-overlay h2 { margin: 0; font: inherit; font-weight: 600; }
.trust-overlay p { margin: 0; font-weight: 400; }
body.trust-overlay-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .product { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .product-title { font-size: 32px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 15px; }
  .header-icons { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 200px 220px; column-gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; --gutter: 16px; }

  /* Header: menu | logo | search + cart */
  .site-header { grid-template-columns: 1fr auto 1fr; padding: 0 12px; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; justify-self: start; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .logo img { height: 18px; }
  .header-icons { grid-column: 3; grid-row: 1; gap: 6px; }
  .header-icons button { width: 40px; height: 40px; display: grid; place-items: center; }
  .header-icons button[aria-label="Account"] { display: none; }
  .cart-count { top: 2px; right: 0; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    gap: 0;
    background: var(--black);
    padding: 12px 20px 32px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 18px 0; border-bottom: 1px solid #222; font-size: 22px; font-style: italic; font-weight: 900; }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-buy { display: none; }

  /* Product */
  .product { grid-template-columns: 1fr; padding: 0 0 0; gap: 0; }
  .gallery-wrap { position: relative; }
  .gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .shot { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .gallery-dots[hidden] { display: none; }
  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
  }
  .gallery-dots button {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    transition: width 0.2s, background 0.2s;
  }
  .gallery-dots button.active { width: 20px; background: var(--black); }

  .product-info { position: static; padding: 22px var(--gutter) 0; }
  .product-title { font-size: 26px; line-height: 1.1; margin-bottom: 12px; }
  .price { font-size: 18px; margin-bottom: 10px; }
  .installments { font-size: 14px; margin-bottom: 10px; }
  .pay-badges { margin-bottom: 22px; }
  .option-label { font-size: 15px; margin-bottom: 10px; }
  .color-swatches { gap: 10px; margin-bottom: 22px; }
  .color-swatches button { width: 56px; height: 66px; }
  .sizes { flex-wrap: nowrap; gap: 8px; margin-bottom: 18px; }
  .sizes button { flex: 1; width: auto; min-width: 0; height: 46px; font-size: 15px; }
  .add-to-cart { height: 52px; font-size: 15px; }
  .check-trust { height: 52px; font-size: 15px; }
  .check-trust__avatar { width: 28px; height: 28px; }
  .truth-row { gap: 10px; }
  .truth-mic { width: 52px; height: 52px; }
  .check-trust__divider { height: 20px; }
  .otp-boxes { gap: 8px; }
  .trust-step input.otp-box { height: 52px; font-size: 22px; border-radius: 12px; }
  .accordion summary { font-size: 16px; }
  .returns { padding: 16px 18px; font-size: 15px; }

  /* Related: two cards per view */
  .related { padding: 64px 0 56px; }
  .related-head { padding: 0 var(--gutter); margin-bottom: 20px; }
  .related h2 { font-size: 22px; margin-left: 0; }
  .carousel-arrows button { width: 36px; height: 36px; }
  .carousel {
    grid-auto-columns: calc((100% - 2 * var(--gutter) - 10px) / 2);
    gap: 10px;
    padding: 0 var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .card-swatches span { width: 14px; height: 14px; }
  .card-swatches { gap: 4px; margin-bottom: 6px; }
  .card h3 { font-size: 14px; }
  .card .variant { font-size: 12px; }
  .card .card-price { font-size: 13px; }

  /* Footer */
  .site-footer { padding-top: 32px; }
  .footer-wordmark { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 0 20px; column-gap: 24px; row-gap: 40px; }
  .signup { grid-column: 1 / -1; }
  .signup h3 { font-size: 20px; }
  .footer-col a { font-size: 15px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 18px; justify-items: center; padding: 48px 20px 96px; }
  .tagline { font-size: 18px; }
  .copyright { justify-self: center; padding-right: 0; font-size: 12px; }

  /* Sticky buy bar once the main button scrolls away */
  .mobile-buy {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    gap: 12px;
    align-items: center;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(110%);
    transition: transform 0.25s;
  }
  .mobile-buy.show { transform: translateY(0); }
  .mobile-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .mobile-buy-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-buy-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-buy .add-to-cart { width: auto; height: 44px; padding: 0 22px; font-size: 13px; flex-shrink: 0; }
}
