/* ============================================================
   YOSSICO — Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@400;500;600;700&family=Montserrat:wght@200;300;400&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --gray: #4a4a4a;
  --gray-light: #888684;
  --gray-bg: #d8d6d3;
  --gray-mid: #2e2e2e;
  --white: #ffffff;
  --black: #111111;
  --off-white: #e5e3e0;
  --border: #c8c6c3;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-logo: 'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #e5e3e0;
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
  padding-top: 41px;
}

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

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

/* ── Custom Cursor (mix-blend-mode: difference) ────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-width 0.25s var(--ease-out), opacity 0.25s;
  will-change: transform;
  opacity: 0.7;
}

/* Hover state — dot grows, ring contracts */
body.cursor-hover .cursor-dot {
  width: 16px;
  height: 16px;
}

body.cursor-hover .cursor-ring {
  width: 28px;
  height: 28px;
  opacity: 1;
  border-width: 1.5px;
}

/* ── Typography Utilities ──────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.text-display {
  font-family: var(--font-display);
  font-weight: 400;
}

.label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--black);
}

/* ── Animation Classes ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

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

/* Stagger delays */
.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.35s;
}

.reveal[data-delay="4"] {
  transition-delay: 0.5s;
}

.reveal[data-delay="5"] {
  transition-delay: 0.65s;
}

.reveal[data-delay="6"] {
  transition-delay: 0.8s;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 41px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 60px 4px 60px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

.nav.scrolled {
  background: rgba(229, 227, 224, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav__logo {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo svg {
  display: none !important;
  width: 28px;
  height: 28px;
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-mid);
  transition: color 0.25s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__links a:hover {
  color: var(--black);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__links a.active {
  color: var(--black);
}

.nav__cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 9px !important;
  letter-spacing: 3px !important;
  transition: background 0.25s, color 0.25s !important;
}

.nav__cta:hover {
  background: var(--gray-mid) !important;
}

.nav__cta::after {
  display: none !important;
}

/* ── Nav Dropdown ──────────────────────────────────────────── */
.nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__dropdown>a {
  display: flex;
  align-items: center;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  /* padding-top acts as invisible bridge — no gap to lose hover */
  padding: 12px 0 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav__dropdown-menu a::after {
  display: none !important;
}

.nav__dropdown-menu a:hover {
  color: var(--black);
  background: var(--off-white);
}

.nav__dropdown-menu .nav__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: none;
  transition: all 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  padding: 16px 36px;
}

.btn--primary:hover {
  background: var(--gray-mid);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 16px 36px;
}

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

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 16px 36px;
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--white {
  background: var(--white);
  color: var(--black);
  padding: 16px 36px;
}

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

.btn-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: none;
  transition: color 0.25s, border-color 0.25s;
}

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

/* Arrow CTA */
.arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  cursor: none;
  transition: color 0.2s, gap 0.2s;
}

.arrow-cta .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.arrow-cta:hover {
  color: var(--black);
  gap: 12px;
}

.arrow-cta:hover .arrow {
  transform: translateX(4px);
}

/* ── Ticker ────────────────────────────────────────────────── */
.ticker {
  background: var(--black);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  user-select: none;
}

.ticker__track {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
}

.ticker__item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 48px;
}

.ticker__sep {
  color: rgba(255, 255, 255, 0.2);
  padding: 0 4px;
  font-size: 8px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Product Card ──────────────────────────────────────────── */
.product-card {
  position: relative;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__image {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--gray-bg);
}

.product-card__image img,
.product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-bg);
}

.product-card__placeholder svg {
  opacity: 0.12;
  width: 80px;
}

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

.product-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 5px 10px;
}

.product-card__info {
  padding: 32px 24px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--black);
  text-align: center;
  width: 100%;
}

.product-card__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  width: 100%;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--black);
  margin-top: 6px;
}

.product-card__cta {
  margin-top: 12px;
  align-self: flex-start;
}

/* ── Section Utilities ─────────────────────────────────────── */
.section {
  padding: 120px 60px;
}

.section--sm {
  padding: 80px 60px;
}

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

.section--gray {
  background: var(--gray-bg);
}

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

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 60px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.5px;
  color: var(--black);
}

.section__title em {
  font-style: italic;
  color: var(--gray-mid);
}

.section__title--white {
  color: var(--white);
}

.section__title--white em {
  color: var(--gray-light);
}

/* ── Divider line ─────────────────────────────────────────── */
.line-decor {
  width: 40px;
  height: 1px;
  background: var(--gray-light);
  margin-bottom: 24px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 60px 40px;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__logo svg {
  display: none !important;
  width: 24px;
  height: 24px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 32px;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__links a,
.footer__links span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--white);
}

.footer__copy a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.footer__copy a:hover {
  opacity: 0.7;
}

.footer__sic img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer__sic img:hover {
  opacity: 1;
}

.size-guide-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 12px;
  transition: color 0.2s;
}

.size-guide-link:hover {
  color: var(--black);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  padding: 100px 60px 0;
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid var(--border);
  padding: 10px 18px;
  background: transparent;
}

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

/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
  padding: 20px 60px 40px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.page-header__label {
  margin-bottom: 16px;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -1px;
  line-height: 0.95;
  color: var(--black);
}

.page-header__title em {
  color: var(--gray);
  font-style: italic;
}

#hero-rotating-word {
  display: inline-block;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  opacity: 1;
  transform: translateY(0);
}

#hero-rotating-word.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Hamburger button — hidden on desktop */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  z-index: 1100;
}
.nav__hamburger span {
  display: block;
  height: 1px;
  background: var(--black);
  transition: width 0.25s, opacity 0.25s, transform 0.25s;
}
.nav__hamburger span:nth-child(1) { width: 22px; }
.nav__hamburger span:nth-child(2) { width: 16px; }
.nav__hamburger span:nth-child(3) { width: 22px; }
.nav__hamburger.open span:nth-child(1) { width: 22px; transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { width: 22px; transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 113px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 32px 28px;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.nav__mobile-menu.open {
  transform: translateX(0);
}
.nav__mobile-menu a {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.nav__mobile-menu a:last-child { border-bottom: none; }
.nav__mobile-menu .nav__mobile-cta {
  margin-top: 24px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 18px;
  letter-spacing: 3px;
  border-bottom: none;
}

@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav__links {
    gap: 20px;
  }

  .section {
    padding: 80px 24px;
  }

  .section--sm {
    padding: 60px 24px;
  }



  .page-header {
    padding: 20px 24px 30px;
  }

  /* Footer responsive (Tablet) */
  .footer {
    padding: 60px 24px 30px;
  }
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer__bottom-bar {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer__sic {
    justify-content: flex-start !important;
  }
}

@media (max-width: 600px) {
  /* Global overflow guard */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Custom cursor off on touch */
  body {
    cursor: auto;
  }
  .cursor-dot, .cursor-ring {
    display: none;
  }

  /* All buttons touchable on mobile */
  button, .btn, .add-to-cart-btn, .cart-checkout,
  .cart-qty-btn, .nav__hamburger, .sub-form__btn {
    cursor: pointer;
  }
  .btn, .add-to-cart-btn, .cart-checkout, .sub-form__btn {
    min-height: 44px;
  }
  .cart-qty-btn {
    min-width: 36px;
    min-height: 36px;
  }

  /* Images never overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Nav: show hamburger, hide desktop links */
  .nav {
    padding: 0 20px;
  }
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__mobile-menu {
    display: flex;
  }

  /* Section padding */
  .section {
    padding: 64px 20px;
  }
  .section--sm {
    padding: 48px 20px;
  }



  /* Page header */
  .page-header {
    padding: 100px 20px 48px;
  }

  /* Product card image height reduced */
  .product-card__image {
    height: 320px;
  }

  /* Subscription modal stacked */
  .sub-modal {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .sub-modal__left {
    padding: 36px 24px;
    min-height: auto;
  }
  .sub-modal__right {
    padding: 36px 24px;
  }
  
  .success-modal {
    padding: 36px 24px;
  }
}
  /* Cart drawer full width */
  .cart-drawer {
    width: 100vw;
  }
  .cart-item {
    padding: 16px 20px;
  }
  .cart-drawer__footer {
    padding: 16px 20px 24px;
  }
}

/* ═══════════════════════════════════════════════
   CART
   ═══════════════════════════════════════════════ */

/* ── Cart icon in nav ─────────────────────────── */
.cart-icon-btn {
  /* Clickable area – NOT position:relative so badge won't anchor here */
  background-color: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--gray-mid);
  transition: color 0.2s;
  text-decoration: none;
}

.cart-icon-btn:hover {
  color: var(--black);
}

/* Tight wrapper = exactly 24×24px = the visible icon. Badge anchors here. */
.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cart-icon-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.cart-badge {
  /* Anchored to .cart-icon-wrap (24×24px icon). 
     Badge is 16px, so half = 8px. 
     top: -8px + 4px = -4px  (slightly inside corner)
     right: -8px + 4px = -4px */
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  line-height: 1;
}

/* ── Overlay ──────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer ───────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 8100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.12);
}

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

/* Header */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--black);
}

.cart-drawer__close {
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
  opacity: 0.4;
  transition: opacity 0.2s;
  display: flex;
}

.cart-drawer__close:hover {
  opacity: 1;
}

.cart-drawer__close svg {
  width: 18px;
  height: 18px;
  stroke: var(--black);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
}

/* Body (scrollable) */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 260px;
  padding: 40px;
  text-align: center;
  color: var(--gray);
}

.cart-empty svg {
  opacity: 0.3;
}

.cart-empty p {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.cart-empty span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray-mid);
  font-weight: 400;
}

/* Cart item */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cart-item__img {
  width: 72px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-bg);
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.3px;
}

.cart-item__size {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 400;
}

.cart-item__price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  margin-top: 4px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cart-qty-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--black);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: none;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
  font-weight: 400;
}

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

.cart-qty-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--black);
  min-width: 14px;
  text-align: center;
}

.cart-item__remove {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: none;
  opacity: 0.3;
  transition: opacity 0.2s;
  padding: 4px;
  display: flex;
}

.cart-item__remove:hover {
  opacity: 1;
}

/* Footer */
.cart-drawer__footer {
  border-top: 1px solid var(--border);
  padding: 20px 28px 28px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 16px;
  display: none;
  /* shown by JS when items exist */
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-total span:first-child {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 400;
}

#cart-total-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--black);
}

.cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px;
  transition: background 0.25s;
  cursor: none;
}

.cart-checkout:hover {
  background: #1a1a1a;
}

.cart-checkout svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── "Agregar al carrito" button ──────────────── */
.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px;
  cursor: none;
  width: 100%;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-top: 8px;
}

.add-to-cart-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* shake animation for size selector */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.size-selector.shake,
.modal__sizes.shake {
  animation: shake 0.45s ease;
}

/* ═══════════════════════════════════════════════
   SUCCESS POPUP
   ═══════════════════════════════════════════════ */

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.success-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.success-modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  padding: 48px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.35s ease;
  position: relative;
}

.success-overlay.open .success-modal {
  transform: translateY(0);
}

.success-modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.success-modal__text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 32px;
}

.success-modal__btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.success-modal__btn:hover {
  background: var(--gray);
}

/* ═══════════════════════════════════════════════
   SUBSCRIPTION POPUP
   ═══════════════════════════════════════════════ */

.sub-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.sub-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sub-modal {
  background: #fff;
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(20px);
  transition: transform 0.35s ease;
  position: relative;
  overflow: hidden;
}

.sub-overlay.open .sub-modal {
  transform: translateY(0);
}

/* Left panel — dark brand */
.sub-modal__left {
  background: var(--white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.sub-modal__drop-word {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: 16px;
  color: rgba(0, 0, 0, 0.25);
  margin-top: 16px;
  user-select: none;
  pointer-events: none;
}

.sub-modal__tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 28px;
}

.sub-modal__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--black);
}

.sub-modal__headline em {
  font-style: italic;
  color: var(--gray);
}

.sub-modal__discount {
  margin-top: 40px;
  text-align: center;
}

.sub-modal__discount-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.sub-modal__discount-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  color: var(--gray-mid);
  display: block;
  line-height: 1.4;
  text-align: center;
}

.sub-modal__discount-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1;
}

.sub-modal__discount-value span {
  font-size: 20px;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
}

/* Right panel — form */
.sub-modal__right {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sub-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
}

.sub-modal__close:hover {
  opacity: 1;
}

.sub-modal__close svg {
  width: 22px;
  height: 22px;
  stroke: var(--black);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
}

.sub-form__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.3px;
  color: var(--black);
  margin-bottom: 8px;
}

.sub-form__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.sub-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-form__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
}

.sub-form__input {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--black);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.sub-form__input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

.sub-form__input:focus {
  border-bottom-color: var(--black);
}

.sub-form__btn {
  margin-top: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  padding: 22px 18px;
  cursor: pointer;
  transition: background 0.25s;
  width: 100%;
}

.sub-form__btn:hover {
  background: #1a1a1a;
}

.sub-form__legal {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  color: var(--black);
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}

/* Success State */
.sub-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  flex: 1;
  padding-top: 16px;
}

.sub-success.show {
  display: flex;
}

.sub-success__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-success__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--black);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sub-success__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.3px;
  color: var(--black);
}

.sub-success__body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.8;
}

.sub-success__code-box {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.sub-success__code-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
}

.sub-success__code {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--black);
}

/* Responsive */
@media (max-width: 680px) {
  .sub-modal {
    grid-template-columns: 1fr;
  }

  .sub-modal__left {
    padding: 40px 32px;
    min-height: 200px;
  }

  .sub-modal__discount-value {
    font-size: 36px;
  }

  .sub-modal__right {
    padding: 40px 32px;
  }
}

/* ══ Auth Nav — User Icon & Dropdown ═══════════════════════════════ */
.nav__user {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__user-btn {
  background-color: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav__user-btn:hover {
  opacity: 1;
}

.nav__user-btn svg {
  width: 24px;
  height: 24px;
}

.nav__user-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 500;
}

.nav__user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__user-email {
  padding: 10px 20px 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__user-link {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-mid);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.15s, background 0.15s;
}

.nav__user-link:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.03);
}

.nav__user-link--cta {
  color: var(--black);
  font-weight: 400;
}

.nav__user-logout {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  color: var(--gray);
}

/* ── Popup mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Overlay is fully scrollable, starts at top of viewport */
  .sub-overlay {
    align-items: flex-start;
    padding: 8px 10px 24px;
    overflow-y: auto;
  }

  .sub-modal {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
    /* Never taller than viewport — inner sections scroll */
    max-height: none;
  }

  .sub-modal__left {
    padding: 28px 20px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .sub-modal__drop-word {
    font-size: 28px;
    letter-spacing: 8px;
    margin-top: 8px;
  }

  .sub-modal__headline {
    font-size: 24px;
  }

  .sub-modal__discount {
    margin-top: 16px;
  }

  .sub-modal__discount-label {
    font-size: 13px;
  }

  .sub-modal__right {
    padding: 24px 20px 32px;
    max-height: none;
    overflow-y: visible;
  }

  .sub-modal__close {
    top: 10px;
    right: 10px;
  }

  .sub-form__title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .sub-form__sub {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .sub-form__input {
    padding: 10px 0;
    font-size: 12px;
  }

  .sub-form__btn {
    padding: 14px 24px;
    font-size: 9px;
  }
}

/* ── User icon visible on mobile header ──────────────────── */
@media (max-width: 600px) {
  /* Dropdown opens downward from the icon, stays in viewport */
  .nav__user .nav__user-dropdown {
    right: 0;
    left: auto;
    z-index: 1200;
  }
}