/* =========================================================
   EXUREN — estilos base
   Paleta: negro casi puro, blanco, gris para texto secundario.
   Tipografía: Chakra Petch (títulos/logo, look técnico/cortado)
               + Inter (texto de interfaz).
   ========================================================= */

:root {
  --bg: #060607;
  --bg-panel: #101012;
  --bg-panel-border: #232326;
  --white: #f5f5f5;
  --grey-500: #8a8a8f;
  --grey-600: #5c5c61;
  --line: #1c1c1f;
  --focus: #f5f5f5;

  --font-display: "Chakra Petch", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
}

/* Ligero degradado orgánico en la esquina inferior derecha,
   como una firma sutil de marca sin ser decoración gratuita. */
body::before {
  content: "";
  position: fixed;
  right: -10%;
  bottom: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 60% 40%, rgba(245, 245, 245, 0.05), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  display: block;
  height: 26px;
  width: auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--grey-500);
  transition: color 0.15s ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--white);
}

.header-link svg {
  width: 12px;
  height: 12px;
}

/* ---------- Hero / coming soon ---------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
}

.hero__inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

/* Hero con fotografía de fondo (solo la home).
   La imagen cubre toda la sección sin deformarse; el overlay oscuro
   (::before) garantiza que logo, textos y formulario se lean bien. */
.hero--photo {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image: url("../img/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 45%;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 6, 7, 0.55);
}

.hero--photo .tagline {
  color: #c4c4c8;
}

.hero--photo .signup__label {
  color: #d2d2d6;
}

.hero--photo .preventa-btn {
  color: #d2d2d6;
  border-color: rgba(245, 245, 245, 0.4);
}

.hero--photo .preventa-btn:hover,
.hero--photo .preventa-btn:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

/* Tablet / móvil: encuadre vertical. Desplazamos el foco hacia el sujeto
   de pie (a ~66% del ancho de la foto) para que no quede cortado. */
@media (max-width: 900px) {
  .hero--photo {
    background-position: 66% center;
  }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.wordmark-img {
  display: block;
  width: min(560px, 82vw);
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin: var(--space-3) 0 0;
  color: var(--grey-600);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.9;
}

.signup {
  margin-top: var(--space-6);
}

.signup__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 0 0 var(--space-2);
}

.signup__form {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup__field {
  flex: 1 1 200px;
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.signup__field::placeholder {
  color: var(--grey-600);
  letter-spacing: 0.02em;
}

.signup__field:focus-visible {
  border-color: var(--white);
  background: #16161a;
}

.signup__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 22px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.signup__submit:hover {
  background: #e2e2e2;
}

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

.signup__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup__submit svg {
  width: 14px;
  height: 14px;
}

.signup__message {
  min-height: 20px;
  margin-top: var(--space-2);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.signup__message[data-state="success"] {
  color: #9be79b;
}

.signup__message[data-state="error"] {
  color: #e79b9b;
}

.preventa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  padding: 14px 28px;
  border: 1px solid var(--bg-panel-border);
  color: var(--grey-500);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.preventa-btn:hover,
.preventa-btn:focus-visible {
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Acceso a la preventa (preventa.html) ---------- */

.access-gate {
  text-align: center;
}

.access-gate .wordmark-img {
  width: min(360px, 70vw);
  margin-bottom: var(--space-4);
}

.access-gate__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 var(--space-2);
}

.access-gate__desc {
  color: var(--grey-500);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.access-gate__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 420px;
  margin: 0 auto;
}

.access-gate__field {
  flex: 1 1 220px;
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 16px 18px;
  outline: none;
  text-align: center;
  letter-spacing: 0.1em;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.access-gate__field::placeholder {
  color: var(--grey-600);
  letter-spacing: 0.02em;
}

.access-gate__field:focus-visible {
  border-color: var(--white);
  background: #16161a;
}

.access-gate__submit {
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.access-gate__submit:hover {
  background: #e2e2e2;
}

.access-gate__submit svg {
  width: 14px;
  height: 14px;
}

.access-gate__message {
  min-height: 20px;
  margin-top: var(--space-3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-gate__message[data-state="error"] {
  color: #e79b9b;
}

@media (max-width: 480px) {
  .access-gate__field,
  .access-gate__submit {
    flex: 1 1 100%;
  }
}

/* Honeypot anti-spam, oculto para personas, visible para bots */
.signup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Collection ---------- */

.collection {
  border-top: 1px solid var(--line);
  padding: var(--space-6) var(--space-4);
}

.collection__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.collection__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.collection__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 6px;
}

.collection__title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 0;
}

.collection__note {
  max-width: 280px;
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--grey-600);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

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

.product-card__image {
  aspect-ratio: 1 / 1;
  background: #f4f3f1;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

.product-card__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.product-card__name {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.product-card__status {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
  white-space: nowrap;
  margin: 0;
}

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

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

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

  .collection__note {
    text-align: left;
    max-width: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

/* ---------- Header: nav + carrito ---------- */

.site-header__left,
.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-link {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  color: var(--grey-500);
  cursor: pointer;
  transition: color 0.15s ease;
}

.cart-trigger:hover,
.cart-trigger:focus-visible {
  color: var(--white);
}

.cart-trigger svg {
  width: 19px;
  height: 19px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Cesta lateral ---------- */

body.no-scroll {
  overflow: hidden;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 60;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-panel);
  border-left: 1px solid var(--bg-panel-border);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.cart-drawer__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin: 0;
}

.cart-drawer__close {
  background: none;
  border: none;
  color: var(--grey-500);
  cursor: pointer;
  padding: 4px;
}

.cart-drawer__close:hover {
  color: var(--white);
}

.cart-drawer__close svg {
  width: 18px;
  height: 18px;
}

.cart-drawer__lines {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart-empty {
  color: var(--grey-500);
  font-size: 0.85rem;
  text-align: center;
  margin-top: var(--space-5);
}

.cart-line {
  display: flex;
  gap: var(--space-2);
}

.cart-line__image {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  background: #f4f3f1;
  overflow: hidden;
}

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

.cart-line__info {
  flex: 1;
  min-width: 0;
}

.cart-line__name {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.cart-line__variant {
  font-size: 0.72rem;
  color: var(--grey-500);
  margin: 0 0 8px;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bg-panel-border);
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.78rem;
}

.cart-line__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-line__price {
  font-size: 0.78rem;
  margin: 0;
}

.cart-line__remove {
  background: none;
  border: none;
  color: var(--grey-600);
  cursor: pointer;
  padding: 4px;
}

.cart-line__remove:hover {
  color: #e79b9b;
}

.cart-line__remove svg {
  width: 16px;
  height: 16px;
}

.cart-drawer__footer {
  border-top: 1px solid var(--line);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart-discount__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 0 0 8px;
}

.cart-discount__form {
  display: flex;
  gap: 2px;
}

.cart-discount__form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--bg-panel-border);
  color: var(--white);
  padding: 10px 12px;
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.cart-discount__form button {
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-discount__message {
  min-height: 16px;
  font-size: 0.72rem;
  margin: 6px 0 0;
  color: #e79b9b;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--grey-500);
  padding: 2px 0;
}

.cart-totals__row--total {
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.cart-checkout-btn {
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-checkout-btn:hover {
  background: #e2e2e2;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  background: var(--white);
  color: var(--bg);
  padding: 12px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Page hero (Collections / Checkout) ---------- */

.page-hero {
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.3rem;
  margin: 0;
}

.page-hero__desc {
  color: var(--grey-500);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin: 8px 0 0;
}

/* ---------- Collections: secciones por Drop ---------- */

.drop-section {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.drop-section:last-child {
  border-bottom: none;
}

.drop-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.drop-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--white);
  margin: 0 0 var(--space-3);
}

.drop-section__empty {
  color: var(--grey-600);
  font-size: 0.8rem;
}

/* product-card como enlace: hereda .product-grid / .product-card ya definidos */
a.product-card {
  color: inherit;
}

.product-card__status[data-in-stock="true"] {
  color: var(--white);
}

.product-card__promo {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--grey-500);
  margin: 4px 0 0;
}

/* ---------- Página de producto ---------- */

.product-page {
  padding: var(--space-5) var(--space-4) var(--space-6);
}

.product-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.product-page__back {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.product-page__back:hover {
  color: var(--white);
}

.gallery {
  flex: 0 0 58%;
  max-width: 58%;
}

.gallery__viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f3f1;
  overflow: hidden;
}

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

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 6, 7, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery__arrow:hover {
  background: rgba(6, 6, 7, 0.85);
}

.gallery__arrow--prev {
  left: 16px;
}

.gallery__arrow--next {
  right: 16px;
}

.gallery__arrow svg {
  width: 16px;
  height: 16px;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-2);
}

.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-panel-border);
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery__dot.is-active {
  background: var(--white);
}

.product-info {
  flex: 1 1 42%;
  max-width: 42%;
}

.product-info__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.product-info__price {
  font-size: 0.95rem;
  color: var(--grey-500);
  margin: 10px 0 6px;
}

.product-info__price[data-status="agotado"] {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: var(--space-4);
}

.product-info__promo {
  font-size: 0.78rem;
  color: var(--white);
  margin: 0 0 var(--space-4);
}

.product-info__promo strong {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.option-block {
  margin-bottom: var(--space-4);
}

.option-block__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 0 0 var(--space-2);
}

.color-swatches {
  display: flex;
  gap: var(--space-2);
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.color-swatch__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.color-swatch.is-selected .color-swatch__dot {
  border-color: var(--white);
}

.color-swatch__label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.color-swatch.is-selected .color-swatch__label {
  color: var(--white);
}

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

.size-option {
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid var(--bg-panel-border);
  background: transparent;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
}

.size-option:hover {
  border-color: var(--grey-500);
}

.size-option.is-selected {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.size-option--disabled {
  color: var(--grey-600);
  text-decoration: line-through;
  cursor: pointer;
}

.size-option--disabled:hover {
  border-color: var(--grey-500);
}

.size-note {
  min-height: 0;
  margin: 10px 0 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--grey-500);
}

.size-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.option-error {
  min-height: 16px;
  color: #e79b9b;
  font-size: 0.72rem;
  margin-top: 8px;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: var(--space-1);
}

.add-to-cart-btn:hover {
  background: #e2e2e2;
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-panel);
  color: var(--grey-500);
}

.measurements-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.78rem;
  color: var(--grey-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.measurements-link:hover {
  color: var(--white);
}

.product-description {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--grey-500);
  font-size: 0.85rem;
  line-height: 1.75;
}

.pending-note {
  color: var(--grey-600);
  font-size: 0.72rem;
  font-style: italic;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  max-width: 480px;
  width: 100%;
  padding: var(--space-4);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--grey-500);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--white);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin: 0 0 var(--space-2);
}

.modal__body {
  color: var(--grey-500);
  font-size: 0.85rem;
  line-height: 1.7;
}

.modal__body img {
  max-width: 100%;
  display: block;
  margin-top: var(--space-2);
}

/* ---------- Checkout ---------- */

.checkout {
  padding: var(--space-5) var(--space-4) var(--space-6);
}

.checkout__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.checkout__form {
  flex: 1 1 58%;
}

.checkout__summary {
  flex: 1 1 38%;
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  padding: var(--space-4);
}

.checkout__summary-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin: 0 0 var(--space-3);
}

.checkout__summary-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: var(--grey-500);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.checkout__summary-line strong {
  color: var(--white);
  font-weight: 500;
}

.checkout__summary-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1rem;
  padding-top: var(--space-3);
  margin-top: var(--space-1);
}

.checkout__empty {
  color: var(--grey-500);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

.form-section-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: var(--space-4) 0 var(--space-2);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.form-field input {
  background: var(--bg);
  border: 1px solid var(--bg-panel-border);
  color: var(--white);
  padding: 12px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.form-field input:focus-visible {
  border-color: var(--white);
}

.payment-option {
  border: 1px solid var(--bg-panel-border);
  background: var(--bg-panel);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
}

.payment-option__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.payment-option__row input[type="radio"] {
  accent-color: var(--white);
  width: 16px;
  height: 16px;
}

.payment-option__note {
  margin: var(--space-2) 0 0;
  padding-left: 26px;
  font-size: 0.78rem;
  color: var(--grey-500);
  line-height: 1.6;
}

.payment-option__note strong {
  color: var(--white);
  font-weight: 600;
}

.checkout-error {
  min-height: 18px;
  color: #e79b9b;
  font-size: 0.78rem;
  margin: var(--space-2) 0 0;
}

.checkout-submit {
  margin-top: var(--space-3);
  width: 100%;
  background: var(--white);
  color: var(--bg);
  border: none;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.checkout-submit:hover {
  background: #e2e2e2;
}

.checkout-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.checkout-confirmation {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.checkout-confirmation__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.3rem;
  margin: 0 0 var(--space-2);
}

.checkout-confirmation__text {
  color: var(--grey-500);
  font-size: 0.85rem;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .product-page__inner,
  .checkout__inner {
    flex-direction: column;
  }

  .gallery,
  .product-info,
  .checkout__form,
  .checkout__summary {
    max-width: none;
    width: 100%;
  }
}

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

  .site-header__left {
    gap: var(--space-2);
  }

  .nav-link {
    font-size: 0.66rem;
  }
}

/* ---------- Accesibilidad ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner {
    padding: var(--space-2) var(--space-3);
  }

  .signup__form {
    flex-direction: column;
  }

  .signup__field,
  .signup__submit {
    flex: 0 0 auto;
    width: 100%;
  }

  .signup__submit {
    justify-content: center;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
