/* ============================================
   BmIT — LIGHT MINIMAL THEME
   Withered Hills × Raspberry Hill vibes
   White bg · B mark · clean product cutouts
   ============================================ */

.theme-light {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #f4f4f4;
  --text: #111111;
  --text-muted: #6b6b6b;
  --text-faint: #9a9a9a;
  --border: #e8e8e8;
  --border-strong: #111111;
  --accent-warm: #8b7355;

  /* Remap legacy tokens */
  --black: #111111;
  --black-soft: #ffffff;
  --black-mid: #fafafa;
  --black-light: #e8e8e8;
  --grey-dark: #d4d4d4;
  --grey-mid: #6b6b6b;
  --grey-light: #444444;
  --off-white: #111111;
  --white: #ffffff;
  --accent: #111111;

  --font-display: 'Cinzel', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
}

.theme-light,
.theme-light body {
  background: var(--bg);
  color: var(--text);
}

.theme-light .grain {
  display: none;
}

.theme-light ::selection {
  background: var(--text);
  color: var(--bg);
}

.theme-light ::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

.theme-light ::-webkit-scrollbar-thumb {
  background: var(--grey-dark);
}

/* === L logo (logo-l-removebg-preview.png) === */
.litt-logo {
  display: block;
  width: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.litt-logo--nav {
  height: 2rem;
}

.litt-logo--hero {
  height: clamp(4rem, 12vw, 6.5rem);
  margin: 0 auto 0.35rem;
}

.litt-logo--ea {
  height: clamp(3rem, 10vw, 4.25rem);
  margin: 0 auto 1rem;
}

.theme-light .nav-logo {
  display: flex;
  justify-self: center;
  align-items: center;
  line-height: 0;
}

.theme-light .nav-logo .litt-logo--nav {
  height: 1.85rem;
}

/* === NAV === */
.theme-light .nav-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.theme-light .nav-header.scrolled,
.theme-light .nav-header.menu-open {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--border);
}

.theme-light .nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.theme-light .nav-hamburger {
  justify-self: start;
}

.theme-light .nav-actions {
  justify-self: end;
}

.theme-light .nav-links--bar {
  display: none;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: 0.55rem clamp(1rem, 3vw, 2rem) 0.7rem;
  border-top: 1px solid transparent;
}

.theme-light .nav-link {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-light .nav-link::after {
  background: var(--text);
  height: 1px;
  bottom: -4px;
}

.theme-light .nav-link:hover,
.theme-light .nav-link.active {
  color: var(--text);
}

.theme-light .nav-icon-btn {
  color: var(--text);
}

.theme-light .nav-icon-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.theme-light .nav-hamburger span {
  background: var(--text);
}

.theme-light .cart-badge {
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
}

.theme-light .mobile-menu {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.theme-light .mobile-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-light .mobile-link:hover,
.theme-light .mobile-link.active {
  color: var(--text);
}

@media (min-width: 901px) {
  .theme-light .nav-hamburger {
    display: none;
  }

  .theme-light .nav-links--bar {
    display: flex;
  }

  .theme-light .nav-header {
    --nav-h: 96px;
  }
}

@media (max-width: 900px) {
  .theme-light .nav-header {
    --nav-h: 56px;
  }
}

/* === HERO === */
.theme-light .hero--light {
  min-height: auto;
  height: auto;
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
  display: block;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.theme-light .hero-light__inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.theme-light .hero-light__brand {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.theme-light .hero-light__cta {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: opacity var(--t-fast), border-color var(--t-fast);
}

.theme-light .hero-light__cta:hover {
  opacity: 0.55;
  border-color: var(--text-muted);
}

@media (max-width: 900px) {
  .theme-light .litt-logo--hero {
    height: clamp(3rem, 10vw, 4.5rem);
  }

  .theme-light .hero--light {
    padding-top: calc(var(--nav-h) + 1.25rem);
    padding-bottom: 2.25rem;
  }

  .theme-light .hero-light__brand {
    margin-bottom: 1.25rem;
  }
}

/* === SHOP === */
.theme-light .shop-section--minimal {
  background: var(--bg);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.theme-light .shop-minimal__title {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.theme-light .shop-minimal__filter {
  color: var(--text-faint);
}

.theme-light .shop-minimal__filter:hover,
.theme-light .shop-minimal__filter.is-active {
  color: var(--text);
}

.theme-light .shop-card {
  cursor: pointer;
}

.theme-light .shop-card__media {
  background: transparent;
  aspect-ratio: 4 / 5;
  pointer-events: auto;
  cursor: pointer;
}

.theme-light .shop-card__img {
  object-fit: contain;
  padding: clamp(0.25rem, 2vw, 0.75rem);
  background: transparent;
}

.theme-light .shop-card__img--zoom {
  padding: 0;
}

.theme-light .shop-card__name {
  color: var(--text);
  font-size: clamp(0.65rem, 1.5vw, 0.74rem);
}

.theme-light .shop-card__price {
  color: var(--text-muted);
}


@media (hover: none), (max-width: 900px) {
  .theme-light .shop-minimal__head {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--border);
  }

  .theme-light .shop-minimal__filters-wrap::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98), transparent);
  }

  .theme-light .shop-minimal__filters-wrap::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.98), transparent);
  }

  .theme-light .shop-minimal__filter.is-active {
    color: var(--text);
  }
}

/* === LOOKBOOK === */
.theme-light .lookbook-minimal {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.theme-light .lookbook-minimal__frame {
  background: transparent;
  border: none;
}

.theme-light .lookbook-minimal__nav-btn {
  color: var(--text-muted);
}

.theme-light .lookbook-minimal__nav-btn:hover {
  color: var(--text);
}

.theme-light .lookbook-minimal__counter {
  color: var(--text-faint);
}

.theme-light .lookbook-minimal__product-name {
  color: var(--text);
}

.theme-light .lookbook-minimal__product-price {
  color: var(--text-muted);
}

.theme-light .lookbook-minimal__dot.is-active {
  background: var(--text);
}

.theme-light .lookbook-minimal__dot {
  background: var(--grey-dark);
}

/* === FOOTER === */
.theme-light .footer--wh {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.theme-light .footer-wh__links a {
  color: var(--text-muted);
}

.theme-light .footer-wh__links a:hover {
  color: var(--text);
}

.theme-light .footer-wh__copy {
  color: var(--text-faint);
}

/* === BUTTONS === */
.theme-light .btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.theme-light .btn--primary:hover {
  background: transparent;
  color: var(--text);
}

.theme-light .btn--outline {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-light .btn--outline:hover {
  background: var(--text);
  color: var(--bg);
}

.theme-light .btn--ghost {
  border-color: var(--border);
  color: var(--text-muted);
}

/* === CART === */
.theme-light .cart-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.theme-light .cart-drawer {
  background: var(--bg);
  border-left: 1px solid var(--border);
  color: var(--text);
}

.theme-light .cart-drawer__header {
  border-bottom: 1px solid var(--border);
}

.theme-light .cart-drawer__header h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.theme-light .cart-close {
  color: var(--text-muted);
}

.theme-light .cart-item {
  border-bottom: 1px solid var(--border);
}

.theme-light .cart-item__img-wrap {
  background: var(--bg-soft);
}

.theme-light .cart-drawer__footer {
  border-top: 1px solid var(--border);
}

.theme-light .cart-note,
.theme-light .cart-crypto__note {
  color: var(--text-faint);
}

/* === MODALS === */
.theme-light .size-modal-overlay,
.theme-light .btc-modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.theme-light .size-modal,
.theme-light .btc-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.theme-light .size-modal__title,
.theme-light .btc-modal__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-light .size-modal__hint,
.theme-light .btc-modal__desc {
  color: var(--text-muted);
}

.theme-light .size-modal__chip {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}

.theme-light .size-modal__chip:hover:not(:disabled) {
  border-color: var(--text);
}

.theme-light .size-modal__chip.is-selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.theme-light .size-modal__close {
  color: var(--text-muted);
  border-color: var(--border);
}

.theme-light .size-modal__img-wrap {
  background: var(--bg-soft);
}

.theme-light .btc-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.theme-light .btc-pay-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.theme-light .btc-modal__close {
  color: var(--text-muted);
}

/* === SEARCH === */
.theme-light .search-overlay {
  background: rgba(255, 255, 255, 0.98);
}

.theme-light .search-input {
  background: transparent;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
}

.theme-light .search-input::placeholder {
  color: var(--text-faint);
}

.theme-light .search-close {
  color: var(--text-muted);
}

.theme-light .search-result {
  border-bottom-color: var(--border);
}

.theme-light .search-result__name {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-light .search-result__price {
  color: var(--text-muted);
}

.theme-light .search-tags a {
  border-color: var(--border);
  color: var(--text-muted);
}

.theme-light .search-tags a:hover {
  border-color: var(--text);
  color: var(--text);
}

.theme-light .search-popular p {
  color: var(--text-faint);
}

/* === TOAST === */
.theme-light .toast {
  background: var(--text);
  color: var(--bg);
}

/* === UTIL === */
.theme-light .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === EARLY ACCESS POPUP === */
.ea-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.ea-modal {
  position: fixed;
  z-index: 1201;
  left: 50%;
  top: 50%;
  width: min(92vw, 420px);
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2rem);
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e8e8e8);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -48%) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.ea-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ea-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted, #6b6b6b);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ea-modal__close:hover,
.ea-modal__close:focus-visible {
  color: var(--text, #111);
}

.ea-modal__title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--text, #111);
}

.ea-modal__offer {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b6b);
  margin: 0 0 1.5rem;
}

.ea-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ea-modal__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.ea-modal__input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border-strong, #111);
  background: var(--bg, #fff);
  color: var(--text, #111);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.ea-modal__input::placeholder {
  color: var(--text-faint, #9a9a9a);
  text-transform: none;
  letter-spacing: 0.04em;
}

.ea-modal__input:focus {
  outline: none;
  border-color: var(--text, #111);
}

.ea-modal__submit {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--text, #111);
  background: var(--text, #111);
  color: var(--bg, #fff);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ea-modal__submit:hover:not(:disabled) {
  opacity: 0.85;
}

.ea-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ea-modal__legal {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.58rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--text-faint, #9a9a9a);
  text-align: left;
  margin: 0;
}

.ea-modal__legal a {
  color: var(--text-muted, #6b6b6b);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ea-modal__legal a:hover {
  color: var(--text, #111);
}

.ea-modal__msg {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  margin: 0.75rem 0 0;
  color: var(--text-muted, #6b6b6b);
}

.ea-modal__msg.is-error {
  color: #a33;
}

@media (max-width: 480px) {
  .ea-modal {
    width: 100%;
    max-height: 100%;
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

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

/* === INFO / SUPPORT PAGES === */
.theme-light.info-page .info-main {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  background: var(--bg);
}

.theme-light .info-hero .section-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.theme-light .info-hero__title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-light .info-hero__desc,
.theme-light .info-hero__meta {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.theme-light .info-hero__meta {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-light .info-sidebar {
  background: var(--bg-soft);
  border-color: var(--border);
}

.theme-light .info-sidebar__group + .info-sidebar__group {
  border-top-color: var(--border);
}

.theme-light .info-sidebar__label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

.theme-light .info-sidebar__link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.theme-light .info-sidebar__link:hover,
.theme-light .info-sidebar__link.is-active {
  color: var(--text);
}

.theme-light .info-sidebar__link.is-active {
  border-left-color: var(--text);
}

.theme-light .info-content h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-light .info-content h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.theme-light .info-content p,
.theme-light .info-content li {
  color: var(--text-muted);
}

.theme-light .info-content a {
  color: var(--text);
  text-underline-offset: 3px;
}

.theme-light .info-content a:hover {
  color: var(--text-muted);
}

.theme-light .info-content strong {
  color: var(--text);
}

.theme-light .info-callout {
  background: var(--bg-soft);
  border-color: var(--border);
}

.theme-light .faq-item {
  background: var(--bg);
  border-color: var(--border);
}

.theme-light .faq-item__q {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.theme-light .faq-item__a {
  color: var(--text-muted);
  border-top-color: var(--border);
}

.theme-light .faq-item__icon {
  color: var(--text-faint);
}

.theme-light .contact-card,
.theme-light .contact-form {
  background: var(--bg-soft);
  border-color: var(--border);
}

.theme-light .contact-form input,
.theme-light .contact-form select,
.theme-light .contact-form textarea,
.theme-light .form-input,
.theme-light .form-textarea {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.theme-light .contact-form input:focus,
.theme-light .contact-form select:focus,
.theme-light .contact-form textarea:focus,
.theme-light .form-input:focus,
.theme-light .form-textarea:focus {
  border-color: var(--text);
}

.theme-light .contact-card a {
  color: var(--text);
}

.theme-light .size-table th,
.theme-light .size-table td {
  border-color: var(--border);
  color: var(--text-muted);
}

.theme-light .size-table th {
  color: var(--text);
  background: var(--bg-soft);
}

.theme-light .section-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* === CUSTOMIZE STUDIO === */
.theme-light.customize-page {
  background: var(--bg);
  color: var(--text);
}

.theme-light.customize-page .nav-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.theme-light .studio-viewport {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 0, 0, 0.03), transparent),
    var(--bg-soft);
  border-right-color: var(--border);
}

.theme-light .studio-panel {
  background: var(--bg);
  border-left-color: var(--border);
}

.theme-light .studio-panel__title,
.theme-light .studio-card__label,
.theme-light .layer-panel__title,
.theme-light .studio-warn-modal__title {
  color: var(--text);
  font-family: var(--font-body);
}

.theme-light .studio-panel__sub,
.theme-light .studio-hint,
.theme-light .color-row__hint,
.theme-light .layer-panel__empty,
.theme-light .layer-active-name,
.theme-light .price-row {
  color: var(--text-muted);
}

.theme-light .studio-card,
.theme-light .layer-panel,
.theme-light .upload-zone,
.theme-light .side-toggle,
.theme-light .viewport-btn,
.theme-light .mobile-dock-btn,
.theme-light .studio-warn-modal {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.theme-light .studio-card:hover,
.theme-light .upload-zone:hover {
  border-color: var(--text-muted);
}

.theme-light .side-toggle__btn,
.theme-light .mobile-tab,
.theme-light .customize-size-picker button,
.theme-light .transform-btn,
.theme-light .layer-tool {
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--bg);
}

.theme-light .side-toggle__btn.is-active,
.theme-light .mobile-tab.is-active,
.theme-light .customize-size-picker button.is-active,
.theme-light .viewport-btn--toggle.is-on,
.theme-light .mobile-dock-btn--toggle.is-on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.theme-light .studio-input,
.theme-light .studio-toggle span,
.theme-light .slider-row label,
.theme-light .slider-row output {
  color: var(--text);
}

.theme-light .studio-loader {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
}

.theme-light .studio-loader__ring {
  border-color: var(--border);
  border-top-color: var(--text);
}

.theme-light .mobile-sheet-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.theme-light .mobile-scroll-hint {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
}

.theme-light .price-row--total {
  color: var(--text);
  border-top-color: var(--border);
}

.theme-light .layer-list__item.is-active {
  border-color: var(--text);
  background: var(--bg-soft);
}

/* === ADMIN === */
.theme-light.admin-page {
  background: var(--bg);
  color: var(--text);
}

.theme-light.admin-page .nav-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.theme-light.admin-page .nav-container {
  grid-template-columns: 1fr auto 1fr;
}

.theme-light.admin-page .nav-logo {
  justify-self: center;
}

.theme-light.admin-page .nav-actions {
  justify-self: end;
}

.theme-light.admin-page .nav-links--bar {
  display: flex;
}

.theme-light .admin-title,
.theme-light .admin-login__title {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-light .admin-panel__head h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-light .admin-sub,
.theme-light .admin-login__desc,
.theme-light .admin-stat__label,
.theme-light .admin-stat__sub,
.theme-light .admin-empty,
.theme-light .admin-table th {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.theme-light .admin-stat,
.theme-light .admin-panel,
.theme-light .admin-login__card,
.theme-light .admin-table-wrap,
.theme-light .admin-btc-card {
  background: var(--bg);
  border-color: var(--border);
}

.theme-light .admin-stat__value,
.theme-light .admin-table td,
.theme-light .admin-btc-card__value,
.theme-light .admin-btc-addr {
  color: var(--text);
}

.theme-light .admin-btc-card__label,
.theme-light .admin-btc-card__hint {
  color: var(--text-muted);
}

.theme-light .admin-btn {
  font-family: var(--font-body);
  border-color: var(--border);
  color: var(--text);
  background: var(--bg);
}

.theme-light .admin-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.theme-light .admin-btn--primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.theme-light .admin-btn--primary:hover {
  background: transparent;
  color: var(--text);
}

.theme-light .admin-btn--danger {
  border-color: #f5c2c0;
  color: #b42318;
}

.theme-light .admin-field input,
.theme-light .admin-field select {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.theme-light .admin-field label {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-light .admin-table th {
  background: var(--bg-soft);
  border-bottom-color: var(--border);
}

.theme-light .admin-table tr:hover td {
  background: var(--bg-soft);
}

.theme-light .admin-badge {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-soft);
}

.theme-light .admin-badge--paid {
  border-color: var(--text);
  color: var(--text);
}

.theme-light .admin-error {
  color: #b42318;
}

/* === DEVELOPMENT MODE === */
.dev-mode {
  --dev-bar-h: 36px;
}

.dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  min-height: var(--dev-bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: #111111;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dev-banner__text {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-family: var(--font-body);
  text-align: center;
  line-height: 1.25;
}

.dev-banner__line {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dev-banner__line--sub {
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}

.dev-banner__line--sub::before {
  content: "—";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.dev-watermark {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.dev-watermark__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 36rem);
  transform: translate(-50%, -50%) rotate(-22deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  user-select: none;
}

.dev-watermark__title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.075);
}

.dev-watermark__sub {
  display: block;
  max-width: 22rem;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.09);
}

.theme-light.dev-mode .nav-header {
  top: var(--dev-bar-h);
}

.theme-light.dev-mode .hero--light {
  padding-top: calc(var(--nav-h) + var(--dev-bar-h) + 2.5rem);
}

@media (max-width: 900px) {
  .dev-mode {
    --dev-bar-h: 52px;
  }

  .dev-banner {
    padding: 0.5rem 0.75rem;
  }

  .dev-banner__text {
    flex-direction: column;
    gap: 0.2rem;
  }

  .dev-banner__line {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .dev-banner__line--sub {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
    max-width: 16rem;
  }

  .dev-banner__line--sub::before {
    display: none;
  }

  .dev-watermark__inner {
    width: min(90vw, 18rem);
    transform: translate(-50%, -50%) rotate(-16deg);
    gap: 0.65rem;
  }

  .dev-watermark__title {
    font-size: clamp(1.65rem, 10.5vw, 2.75rem);
    letter-spacing: 0.12em;
    line-height: 1.15;
    color: rgba(17, 17, 17, 0.1);
  }

  .dev-watermark__sub {
    max-width: 14rem;
    font-size: clamp(0.56rem, 3.4vw, 0.68rem);
    letter-spacing: 0.14em;
    line-height: 1.5;
    color: rgba(17, 17, 17, 0.12);
  }

  .theme-light.dev-mode .hero--light {
    padding-top: calc(var(--nav-h) + var(--dev-bar-h) + 1.25rem);
  }
}

@media (max-width: 480px) {
  .dev-mode {
    --dev-bar-h: 56px;
  }

  .dev-banner__line {
    font-size: 0.56rem;
  }

  .dev-banner__line--sub {
    font-size: 0.52rem;
    max-width: 13.5rem;
  }

  .dev-watermark__inner {
    width: 88vw;
    transform: translate(-50%, -50%) rotate(-12deg);
  }

  .dev-watermark__title {
    font-size: clamp(1.45rem, 9.5vw, 2.2rem);
    letter-spacing: 0.1em;
    color: rgba(17, 17, 17, 0.11);
  }

  .dev-watermark__sub {
    max-width: 12rem;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    color: rgba(17, 17, 17, 0.13);
  }
}




/* === MOBILE POLISH === */
@supports (padding: max(0px)) {
  .dev-banner {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-width: 900px) {
  .theme-light.dev-mode .hero--light {
    padding-top: calc(var(--nav-h) + var(--dev-bar-h) + 1.25rem);
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .theme-light .shop-section--minimal {
    padding-top: 1.25rem;
    padding-bottom: 2.25rem;
    overflow: visible;
  }

  .theme-light .shop-minimal__head {
    position: static;
    top: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding: 0 0 0.5rem;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .theme-light .shop-minimal__head.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .theme-light .shop-minimal__filters-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }

  .theme-light .shop-minimal__filters {
    justify-content: flex-end;
  }

  .theme-light .shop-grid--minimal {
    gap: 1.5rem 0.7rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: 0.25rem;
    overflow: visible;
  }

  .theme-light .shop-card__media {
    overflow: visible;
  }

  .theme-light .shop-card__media--dual {
    overflow: hidden;
  }

  .theme-light .shop-card__name {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .theme-light .shop-card__price,
  .theme-light .shop-card.is-sold-out .shop-card__price {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .theme-light .shop-card__caption {
    min-height: auto;
    padding-bottom: 0.35rem;
  }

  .theme-light .lookbook-minimal {
    padding-left: max(0, env(safe-area-inset-left));
    padding-right: max(0, env(safe-area-inset-right));
  }

  .theme-light .lookbook-minimal__head {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .theme-light .lookbook-minimal__frame {
    margin: 0 max(0.75rem, env(safe-area-inset-left)) 0 max(0.75rem, env(safe-area-inset-right));
  }

  .theme-light .lookbook-minimal__frame img {
    object-fit: contain;
    max-height: min(68vh, 520px);
  }

  .theme-light .lookbook-minimal__products {
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
    gap: 0.65rem;
  }

  .theme-light .lookbook-minimal__product {
    width: 100%;
    max-width: 18rem;
  }

  .theme-light .lookbook-minimal__product-name {
    white-space: normal;
    line-height: 1.35;
    font-size: 0.68rem;
  }

  .theme-light .lookbook-minimal__nav-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .theme-light .footer-wh {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .theme-light .footer-wh__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.25rem;
    row-gap: 0.5rem;
  }

  .theme-light .footer-wh__links a,
  .theme-light .footer-wh__copy {
    font-size: 0.56rem;
  }

  .theme-light .nav-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-width: 480px) {
  .theme-light .shop-grid--minimal {
    gap: 1.35rem 0.55rem;
  }

  .theme-light .shop-card__media {
    aspect-ratio: 1 / 1.12;
    margin-bottom: 0.5rem;
  }

  .theme-light .shop-card__img {
    padding: 0.2rem;
  }

  .theme-light .shop-minimal__filter {
    font-size: 0.62rem;
    padding: 0 0.8rem;
  }
}

/* Shop card front/back — slide flip */
.theme-light .shop-card__media--dual {
  position: relative;
  overflow: hidden;
}

.theme-light .shop-card__flip-viewport,
.theme-light .dual-flip__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.theme-light .shop-card__flip-track,
.theme-light .dual-flip__track {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.theme-light .shop-card__flip-track > .shop-card__img,
.theme-light .dual-flip__track > .size-modal__img {
  position: relative;
  inset: auto;
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  height: 100%;
}

.theme-light .shop-card__media--dual.is-showing-back .shop-card__flip-track,
.theme-light .dual-flip.is-showing-back .dual-flip__track {
  transform: translate3d(-50%, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .theme-light .shop-card__media--dual:hover .shop-card__flip-track {
    transform: translate3d(-50%, 0, 0);
  }
}

/* === MOBILE APP SHELL — no horizontal drift === */
html.mobile-shell,
html.mobile-shell body {
  overflow-x: hidden;
  overscroll-behavior: none;
  width: 100%;
  max-width: 100%;
}

html.mobile-shell body {
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

html.mobile-shell .hero--light,
html.mobile-shell .footer--wh,
html.mobile-shell .footer-wh,
html.mobile-shell .nav-header {
  max-width: 100%;
}

html.mobile-shell .container,
html.mobile-shell .shop-grid--minimal,
html.mobile-shell .lookbook-minimal__stage,
html.mobile-shell .lookbook-minimal__head,
html.mobile-shell .shop-minimal__head {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.mobile-shell .shop-minimal__filters {
  max-width: 100%;
}

html.mobile-shell .cart-drawer {
  width: 100%;
  max-width: 100%;
}

/* Mobile shirt flip — swipe / tap */
@media (hover: none), (max-width: 900px) {
  .theme-light .shop-card__media--dual {
    cursor: pointer;
    touch-action: manipulation;
  }

  .theme-light .shop-card__flip-hint {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    pointer-events: none;
    z-index: 3;
  }

  .theme-light .shop-card__flip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--grey-mid);
    opacity: 0.35;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .theme-light .shop-card__flip-dot.is-active {
    opacity: 1;
    background: var(--text);
    transform: scale(1.2);
  }
}

.theme-light .size-modal__img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  margin: 0 auto 1.25rem;
  overflow: hidden;
}

.theme-light .size-modal__img-wrap--dual .dual-flip__viewport,
.theme-light .size-modal__img-wrap--dual .dual-flip__viewport {
  position: relative;
  width: clamp(120px, 34vw, 180px);
  height: clamp(120px, 34vw, 180px);
  margin: 0 auto;
  overflow: hidden;
}

.theme-light .size-modal__img-wrap--dual .dual-flip__track > .size-modal__img {
  width: 50%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

@media (hover: none), (max-width: 900px) {
  .theme-light .size-modal__img-wrap--dual,
  .theme-light .dual-flip {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin-bottom: 1.5rem;
  }

  .theme-light .size-modal__flip-hint {
    position: absolute;
    bottom: -0.35rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    pointer-events: none;
  }
}
/* Override base sticky shop head on mobile — prevents overlap with grid */
@media (hover: none), (max-width: 900px) {
  .theme-light .shop-minimal__head {
    position: static !important;
    top: auto !important;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

