/* Production repairs — keep existing luxury tokens, fix layout/a11y/motion */

html {
  overflow-x: clip;
  max-width: 100%;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  top: 0 !important;
}

/* Keep Google's translation control hidden behind the custom language menu. */
.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt {
  display: none !important;
}

img {
  height: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reveal: visible without JS */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(28px);
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-inner {
  flex-wrap: wrap;
  row-gap: 10px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.lang-selector {
  margin-left: auto;
  margin-right: 8px;
  z-index: 100;
}

.logo-img {
  max-height: 48px;
  width: auto;
}

.tier-head {
  flex-wrap: wrap;
  align-items: flex-start;
}
.tier-head .price-pill {
  margin-left: 0;
}
.tier-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.card-img-wrap {
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 220px;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  transform: none;
}

.card-footer {
  flex-wrap: wrap;
  align-items: stretch;
}

.hero .slide-body {
  min-height: 100%;
  padding-bottom: 80px;
  box-sizing: border-box;
}

.about-frame {
  animation: about-frame-float 7s ease-in-out infinite;
  will-change: transform;
}

.about-photo {
  height: 460px !important;
  min-height: 460px;
  animation: none !important;
  transform: none !important;
}

@keyframes about-frame-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.card-price-block {
  min-width: 0;
}
.buy-btn {
  min-height: 44px;
  flex: 1 1 160px;
  justify-content: center;
  max-width: 100%;
}
.size-pill {
  min-width: 44px;
  min-height: 44px;
}
.wish-btn,
.icon-btn,
.panel-close,
.qv-close,
.qv-size-btn {
  min-width: 44px;
  min-height: 44px;
}
.card-quickview-btn {
  min-height: 44px;
}

@media (hover: none) {
  .card-quickview-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
  }
  .product-card:hover {
    transform: none;
  }
}

.cookie {
  display: none;
  flex-wrap: wrap;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: calc(100% - 24px);
  max-width: 720px;
  max-height: min(42vh, 260px);
  overflow: auto;
}

.cookie.show {
  display: flex;
}
.cookie-btns {
  flex-wrap: wrap;
}

.panel {
  padding-bottom: env(safe-area-inset-bottom);
}
.panel-hd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-steps {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 12px 18px;
  line-height: 1.6;
}
.cart-ship-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-pale);
  margin-top: 8px;
}
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.form-status {
  min-height: 1.4em;
  color: var(--gold);
  margin-bottom: 12px;
}
.prelaunch-banner {
  margin-top: 88px;
  padding: 12px 16px;
  text-align: center;
  background: #1a1919;
  color: var(--gold);
  border-bottom: 1px solid var(--border-gold);
}

.qv-actions {
  flex-wrap: wrap;
}
.qv-btn-cart,
.qv-btn-stripe {
  min-height: 44px;
  flex: 1 1 180px;
}
.qv-dialog {
  max-height: min(90vh, 100dvh);
}

.legal-page {
  padding: 120px 5% 80px;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-dim);
}
.legal-page h1 {
  font-family: var(--font-h);
  color: var(--text);
  font-weight: 400;
  margin-bottom: 12px;
}
.legal-page h2 {
  font-family: var(--font-h);
  color: var(--text);
  font-weight: 400;
  margin: 28px 0 10px;
  font-size: 28px;
}
.legal-page p, .legal-page li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.owner-flag {
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 16px 0;
}
.legal-langs a {
  margin-right: 12px;
  color: var(--gold);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 8px;
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .header-inner {
    padding: 12px 16px;
    gap: 10px;
  }
  .slide-img {
    max-width: 42%;
    height: 52vh;
    right: 2%;
    bottom: 6%;
  }
  .slide-body {
    padding-left: 5%;
    padding-right: 42%;
    max-width: 100%;
  }
  .slide h1 {
    font-size: clamp(34px, 12vw, 56px);
  }
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cookie-btns {
    width: 100%;
  }
  .cookie-btns button {
    flex: 1 1 100%;
    min-height: 44px;
  }
  .tier-head h3 {
    font-size: 26px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .qv-content {
    grid-template-columns: 1fr;
    padding: 20px 16px 28px;
  }
}

@media (max-width: 430px) {
  .slide-img {
    display: none;
  }
  .slide-body {
    padding-right: 5%;
  }
  .btn-pynk, .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .lang-current {
    padding: 6px 10px;
  }
  .header-actions {
    margin-left: 0;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100svh;
    height: auto;
  }
  .slide-body {
    padding-top: 72px;
    padding-bottom: 48px;
  }
  .slide-img {
    height: 70vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js .reveal:not(.visible), html.js .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .slide, .slide-img, .slide-body, .slide-bg, .about-photo, .product-card, .cursor-glow {
    transition: none !important;
    animation: none !important;
  }
  .about-frame { transform: none !important; animation: none !important; }
}

@media (min-width: 1101px) {
  .nav {
    display: flex !important;
  }
  .nav-toggle {
    display: none !important;
  }
}
