/* ==========================================================================
   ALTERVOID — OFFICIAL BRAND IDENTITY & DESIGN SYSTEM
   Haute Couture & Wearable Art Atelier
   ========================================================================== */

:root {
  /* Group I: Nocturnal Surfaces & Dark Gradients (85% of Visual Space) */
  --abyss: #0B0A0B;
  --lead: #111011;
  --charcoal-dark: #1E1C1D;
  --charcoal-warm: #2B2729;
  --plum-abyss: #12041C;
  --plum-versailles: #240B36;
  --wine-purple: #310E47;
  --blood-black: #290409;

  /* Group II: Exclusive Typography & Light Neutral Tones (12% of Visual Space) */
  --offwhite: #F3F0EA;
  --silver-bone: #C8C3BC;
  --silver-muted: rgba(200, 195, 188, 0.68);
  --border-subtle: rgba(200, 195, 188, 0.14);
  --border-strong: rgba(200, 195, 188, 0.28);

  /* Group III: Action & Acquire Accents Only (3% of Visual Space) */
  --blood-versailles: #5E0B15;
  --crimson-imperial: #8A1122;
  --red-court: #C40E24;
  --ruby-arterial: #D9112A;
  --pink-shock: #FF0055;
  --pink-neon: #FF007F;

  /* Official Approved 6-Font Architecture */
  --font-wordmark: 'Cormorant Garamond', Georgia, serif;
  --font-concept: 'Cormorant Garamond', Georgia, serif;   /* 1. Frase de Conceito / Manifesto */
  --font-title: 'Cinzel', serif;                          /* 2. Título da Peça & Títulos de Seção */
  --font-meta: 'Manrope', -apple-system, sans-serif;      /* 3. Código 1-of-1 & Preço */
  --font-body: 'IBM Plex Mono', monospace;                /* 4. Descrição da Peça & Texto do Conceito */
  --font-cta: 'Outfit', sans-serif;                       /* 5. Botão PURCHASE / ACQUIRE */
  --font-nav: 'Urbanist', -apple-system, sans-serif;      /* 6. Menu do Topo & Ficha Técnica */
  --font-tagline: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

#portalsView.hidden {
  display: none !important;
}

#archiveView.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--abyss);
}

body {
  background-color: var(--abyss);
  /* 02. Obsidian ➔ Whisper Charcoal (Exact Brand Manual & Print 1 Specification) */
  background-image:
    radial-gradient(ellipse 92% 85% at 20% 20%, #0B0A0B 0%, rgba(11, 10, 11, 0.90) 55%, transparent 90%),
    radial-gradient(ellipse 85% 80% at 85% 80%, rgba(43, 39, 41, 0.42) 0%, rgba(30, 28, 29, 0.58) 48%, transparent 88%),
    linear-gradient(145deg, #0B0A0B 0%, #141314 60%, #1E1C1D 100%);
  background-attachment: fixed;
  background-size: cover;
  color: var(--offwhite);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--ruby-arterial);
  color: #ffffff;
}

/* ==========================================================================
   OFFICIAL SUBTLE DARK GRADIENTS (From Brand Manual Section 04)
   ========================================================================== */

/* 02. Obsidian ➔ Whisper Charcoal (From Print 1) */
.grad-charcoal-subtle {
  background:
    radial-gradient(ellipse 92% 85% at 20% 20%, #0B0A0B 0%, rgba(11,10,11,0.88) 55%, transparent 90%),
    radial-gradient(ellipse 85% 80% at 85% 80%, rgba(43,39,41,0.38) 0%, rgba(30,28,29,0.52) 48%, transparent 88%),
    linear-gradient(145deg, #0B0A0B 0%, #141314 60%, #1E1C1D 100%);
}

/* ==========================================================================
   MONUMENTAL BRAND MASTHEAD (Exact Brand Proportions from Print 2)
   ========================================================================== */

.brand-masthead {
  background: transparent;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 4.5rem 1.5rem 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 640px) {
  .brand-masthead {
    padding: 5.5rem 2rem 3.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .brand-masthead {
    padding: 6.5rem 2rem 4rem 2rem;
  }
}

/* Official Logo SVG with Exact Proportions from Print 2 */
.brand-logo-svg-exact {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95));
}

@media (min-width: 640px) {
  .brand-logo-svg-exact {
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .brand-logo-svg-exact {
    max-width: 590px;
  }
}

@media (min-width: 1440px) {
  .brand-logo-svg-exact {
    max-width: 640px;
  }
}

/* ==========================================================================
   DARKLANDS BERLIN 100DVH CONCEPTUAL PORTAL THRESHOLD
   Zero scroll on landing, pure architectural & conceptual atmosphere
   ========================================================================== */

.portal-screen {
  position: relative;
  width: 100%;
  height: calc(100dvh - 72px);
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  background: var(--abyss);
}

@media (min-width: 1024px) {
  .portal-screen {
    grid-template-rows: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portal-column {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  cursor: pointer !important;
  user-select: none;
  background: #0B0A0B;
  z-index: 10;
}

.portal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Extra dark and brooding as requested */
  filter: contrast(125%) brightness(18%);
  opacity: 0.38;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease, opacity 0.8s ease;
  transform: scale(1.02);
}

.portal-column:hover .portal-bg {
  transform: scale(1.08);
  filter: contrast(125%) brightness(32%);
  opacity: 0.58;
}

.portal-overlay {
  position: absolute;
  inset: 0;
  /* Deep nocturnal black obsidian gradient */
  background: radial-gradient(ellipse at center, rgba(11, 10, 11, 0.78) 0%, rgba(11, 10, 11, 0.97) 100%),
              linear-gradient(to top, rgba(11, 10, 11, 0.98) 0%, rgba(11, 10, 11, 0.6) 50%, rgba(11, 10, 11, 0.92) 100%);
  transition: background 0.6s ease;
  pointer-events: none;
}

.portal-column:hover .portal-overlay {
  background: radial-gradient(ellipse at center, rgba(11, 10, 11, 0.58) 0%, rgba(11, 10, 11, 0.92) 100%),
              linear-gradient(to top, rgba(11, 10, 11, 0.96) 0%, rgba(11, 10, 11, 0.45) 50%, rgba(11, 10, 11, 0.85) 100%);
}

.portal-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 20;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .portal-content {
    padding-bottom: 5.5rem;
  }
}

.portal-column:hover .portal-content {
  transform: translateY(-8px);
}

.portal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--offwhite);
  font-weight: 400;
  margin-bottom: 0.35rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.98);
}

@media (min-width: 1024px) {
  .portal-title {
    font-size: 2rem;
    letter-spacing: 0.3em;
  }
}

.portal-subline {
  font-family: var(--font-meta);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(200, 195, 188, 0.7);
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.portal-enter-tag {
  margin-top: 1.1rem;
  font-family: var(--font-nav);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #F3F0EA;
  padding: 5px 15px;
  background: rgba(11, 10, 11, 0.85);
  border: 1px solid rgba(200, 195, 188, 0.22);
  border-radius: 0px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.portal-column:hover .portal-enter-tag {
  opacity: 1;
  transform: translateY(0);
}

/* Center Watermark Monumental Brand Lockup */
.portal-center-logo,
.portal-center-logo * {
  pointer-events: none !important;
}

.portal-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94vw;
  max-width: 680px;
  z-index: 25;
  pointer-events: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1280px) {
  .portal-center-logo {
    max-width: 740px;
  }
}

.portal-center-kicker {
  font-family: var(--font-meta);
  font-size: 9.5px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: rgba(200, 195, 188, 0.72);
  font-weight: 300;
  margin-bottom: 1.6rem;
  margin-right: -0.48em;
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.portal-symbol-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.4rem;
}

.portal-symbol-img {
  width: 145px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 25px rgba(243, 240, 234, 0.22));
  transition: transform 0.4s ease;
}

@media (min-width: 640px) {
  .portal-symbol-img {
    width: 175px;
  }
}

@media (min-width: 1024px) {
  .portal-symbol-img {
    width: 205px;
  }
}

.portal-center-wordmark {
  font-family: var(--font-wordmark);
  font-size: 2.45rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--offwhite);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.85rem;
  margin-right: -0.44em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.98), 0 0 50px rgba(243, 240, 234, 0.25);
}

@media (min-width: 640px) {
  .portal-center-wordmark {
    font-size: 3.2rem;
    letter-spacing: 0.46em;
    margin-right: -0.46em;
  }
}

@media (min-width: 1024px) {
  .portal-center-wordmark {
    font-size: 3.85rem;
    letter-spacing: 0.5em;
    margin-right: -0.5em;
  }
}

.portal-center-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--offwhite);
  font-weight: 400;
  margin-right: -0.46em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.portal-center-dot {
  font-family: var(--font-wordmark);
  color: var(--silver-bone);
  font-size: 14px;
}

.brand-masthead-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: rgba(200, 195, 188, 0.85);
  font-weight: 300;
  user-select: none;
  margin-right: -0.52em;
}

/* ==========================================================================
   STICKY ATELIER NAVIGATION (Strict 50% Geometric Center & Zero Border Lines)
   ========================================================================== */

.atelier-nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 11, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.atelier-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.atelier-nav-center {
  position: absolute;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  pointer-events: auto;
  z-index: 30;
}

.atelier-nav-crest {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.atelier-nav-center:hover .atelier-nav-crest {
  opacity: 1;
  transform: scale(1.06);
}

.atelier-nav-wordmark {
  font-family: var(--font-wordmark);
  font-size: 1.25rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--offwhite);
  transition: color 0.3s ease;
  line-height: 1;
}

.atelier-nav-wordmark:hover {
  color: #ffffff;
}

.atelier-nav-sub {
  font-family: var(--font-meta);
  font-size: 7.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(200, 195, 188, 0.6);
  font-weight: 300;
  margin-top: 3px;
}

/* ==========================================================================
   EDITORIAL HERO SEAMLESS BLENDS (Native CSS - No Missing Utility Classes)
   ========================================================================== */

.hero-fade-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 130px;
  background: linear-gradient(to bottom, #0B0A0B 0%, rgba(11, 10, 11, 0.6) 60%, transparent 100%);
  pointer-events: none;
}

.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 340px;
  background: linear-gradient(to top, #0B0A0B 0%, rgba(11, 10, 11, 0.8) 60%, transparent 100%);
  pointer-events: none;
}

.borderless-section {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

.grad-charcoal-subtle {
  background:
    radial-gradient(ellipse 92% 85% at 20% 20%, #0B0A0B 0%, rgba(11,10,11,0.88) 55%, transparent 90%),
    radial-gradient(ellipse 85% 80% at 85% 80%, rgba(43,39,41,0.38) 0%, rgba(30,28,29,0.52) 48%, transparent 88%),
    linear-gradient(145deg, #0B0A0B 0%, #141314 60%, #1E1C1D 100%);
}

.grad-plum-blood-subtle {
  background:
    radial-gradient(ellipse 95% 85% at 18% 15%, #0B0A0B 0%, rgba(11,10,11,0.92) 56%, transparent 90%),
    radial-gradient(ellipse 85% 80% at 86% 78%, rgba(49,14,71,0.34) 0%, rgba(18,4,28,0.52) 48%, transparent 88%),
    radial-gradient(ellipse 70% 65% at 48% 96%, rgba(94,11,21,0.22) 0%, rgba(41,4,9,0.34) 45%, transparent 82%),
    linear-gradient(155deg, #0B0A0B 0%, #12041C 62%, #190512 100%);
}

/* ==========================================================================
   TYPOGRAPHY CLASSES ACCORDING TO BRAND SYSTEM
   ========================================================================== */

.font-wordmark {
  font-family: var(--font-wordmark);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.font-concept {
  font-family: var(--font-concept);
  letter-spacing: 2px;
}

.font-title {
  font-family: var(--font-title);
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.font-meta {
  font-family: var(--font-meta);
  letter-spacing: 2.2px;
}

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

.font-cta {
  font-family: var(--font-cta);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.font-nav {
  font-family: var(--font-nav);
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

/* Legacy alias classes to ensure full backward compatibility */
.gl-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2.6px;
  font-weight: 400;
}

.gl-nav {
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 11px;
}

.gl-item-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 13px;
  font-weight: 400;
}

.gl-price {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 1.8px;
  color: var(--silver-bone);
}

/* ==========================================================================
   BUTTONS (From Section 06 of Brand Manual)
   ========================================================================== */

.btn-acquire-primary {
  font-family: var(--font-cta);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--offwhite);
  background: linear-gradient(135deg, #5E0B15 0%, #8A1122 55%, #C40E24 100%);
  border: 1px solid rgba(255, 0, 85, 0.45);
  padding: 13px 26px;
  border-radius: 0px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(138, 17, 34, 0.38);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-acquire-primary:hover {
  background: linear-gradient(135deg, #8A1122 0%, #C40E24 55%, #D9112A 100%);
  box-shadow: 0 12px 30px rgba(217, 17, 42, 0.45);
  border-color: rgba(255, 0, 127, 0.65);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-acquire-secondary {
  font-family: var(--font-cta);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--silver-bone);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 13px 22px;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-acquire-secondary:hover {
  color: var(--offwhite);
  border-color: var(--offwhite);
  background: rgba(200, 195, 188, 0.08);
  transform: translateY(-1px);
}

/* ==========================================================================
   DARKLANDS BERLIN INSPIRED DISPOSITION & PROPORTIONS
   Austere luxury avant-garde e-commerce layout, generous spacing, quiet confidence
   ========================================================================== */

.designer-products-container {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3.5rem;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

@media (min-width: 640px) {
  .designer-products-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .designer-products-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3.5rem;
    row-gap: 5.5rem;
  }
}

@media (min-width: 1440px) {
  .designer-products-container {
    column-gap: 4.5rem;
    row-gap: 6rem;
  }
}

.product--teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product--teaser:hover {
  transform: translateY(-4px);
}

.product__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 10;
  background: #0B0A0B;
  overflow: hidden;
  border-radius: 0px;
}

.product__image-container img.front-view {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  filter: contrast(106%) brightness(97%);
}

.product__image-container img.back-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.01);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  filter: contrast(106%) brightness(99%);
  z-index: 2;
}

.product--teaser:not(.is-sold):hover .product__image-container img.front-view {
  opacity: 0;
  transform: scale(1.03);
}

.product--teaser:not(.is-sold):hover .product__image-container img.back-view {
  opacity: 1;
  transform: scale(1.03);
}

/* Darklands Typographic Elements */
.product__designer {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 195, 188, 0.55);
}

.product__title {
  font-family: var(--font-title);
  font-size: 14.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--offwhite);
  transition: color 0.25s ease;
  line-height: 1.45;
  font-weight: 400;
}

.product--teaser:hover .product__title {
  color: #ffffff;
}

.product__specs {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(200, 195, 188, 0.65);
  font-weight: 300;
  letter-spacing: 0.4px;
}

.product__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
}

.product__price {
  font-family: var(--font-meta);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--offwhite);
  font-weight: 400;
}

/* Darklands Berlin Minimalist Austere Action Button (Sharp 90° Edges) */
.btn-darklands-action {
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--offwhite);
  background: rgba(30, 28, 29, 0.7);
  border: 1px solid rgba(200, 195, 188, 0.22);
  padding: 6px 16px;
  border-radius: 0px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-darklands-action:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #5E0B15 0%, #8A1122 55%, #C40E24 100%);
  border-color: rgba(255, 0, 85, 0.5);
  box-shadow: 0 4px 16px rgba(138, 17, 34, 0.4);
}

/* 1-of-1 Badge on Product (Sharp 90° Edges) */
.seal-1of1-micro {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite);
  background: rgba(11, 10, 11, 0.78);
  border: 1px solid rgba(200, 195, 188, 0.2);
  padding: 3px 8px;
  border-radius: 0px;
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* Legacy Floating Product Showcase Alias (Backwards Compatibility) */
.floating-product {
  background: transparent;
  border: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-product:hover {
  transform: translateY(-5px);
}

.floating-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 10;
  background: rgba(18, 17, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0px;
}

.floating-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  filter: contrast(106%) brightness(96%);
}

.floating-product:hover .floating-img-container img.front-view {
  transform: scale(1.04);
}

/* Acquired (Sold) Pieces */
.product--teaser.is-sold .product__image-container img,
.floating-product.is-sold .floating-img-container img {
  filter: grayscale(0.85) contrast(100%) brightness(65%);
  opacity: 0.55;
}

.product--teaser.is-sold:hover,
.floating-product.is-sold:hover {
  transform: none;
}

.product--teaser.is-sold .product__image-container,
.floating-product.is-sold .floating-img-container {
  cursor: default;
}

.acquired-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  text-align: center;
  z-index: 5;
}

.acquired-mark .acquired-word {
  font-family: var(--font-title);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--offwhite);
  font-weight: 400;
}

.acquired-mark .acquired-rule {
  width: 32px;
  height: 1px;
  background: var(--border-strong);
}

.acquired-mark .acquired-sub {
  font-family: var(--font-meta);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--silver-bone);
}

.acquired-line {
  font-family: var(--font-meta);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--silver-muted);
}

/* ==========================================================================
   MINIMALIST CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--abyss);
}

::-webkit-scrollbar-thumb {
  background: var(--charcoal-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--charcoal-warm);
}

/* ==========================================================================
   MODAL & DRAWER SURFACES (Sharp 90° Geometry)
   ========================================================================== */

.modal-surface {
  background: var(--abyss);
  border: 1px solid var(--border-subtle);
  border-radius: 0px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
}

.input-altervoid {
  background: var(--abyss);
  border: 1px solid var(--border-subtle);
  border-radius: 0px !important;
  color: var(--offwhite);
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-altervoid:focus {
  border-color: var(--border-strong);
  outline: none;
  box-shadow: 0 0 0 1px rgba(200, 195, 188, 0.25);
}

/* ==========================================================================
   V2 BRAND MANUAL: 35MM ANALOG FILM GRAIN & 18 CANONICAL MANIFESTOS LEDGER
   ========================================================================== */

.film-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.032;
  mix-blend-mode: overlay;
}

.ledger-wall {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(200, 195, 188, 0.14);
  border-left: 1px solid rgba(200, 195, 188, 0.14);
  border-right: 1px solid rgba(200, 195, 188, 0.14);
  background: rgba(11, 10, 11, 0.85);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(200, 195, 188, 0.14);
  transition: background 0.25s ease;
  position: relative;
}

@media (min-width: 860px) {
  .ledger-row {
    grid-template-columns: 280px 1fr;
  }
}

.ledger-row:hover {
  background: linear-gradient(90deg, rgba(18, 4, 28, 0.62) 0%, rgba(11, 10, 11, 0.92) 100%);
}

.ledger-row:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--crimson-imperial);
}

.lr-index {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(200, 195, 188, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

@media (min-width: 860px) {
  .lr-index {
    border-bottom: none;
    border-right: 1px solid rgba(200, 195, 188, 0.14);
  }
}

.lr-num {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--offwhite);
  letter-spacing: 2px;
}

.lr-code {
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 2.6px;
  color: rgba(200, 195, 188, 0.58);
  text-transform: uppercase;
}

.lr-content {
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 860px) {
  .lr-content {
    padding: 24px 38px;
  }
}

.lr-headline {
  font-family: var(--font-concept);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite);
  line-height: 1.35;
}

.lr-body {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--silver-bone);
  max-width: 860px;
  line-height: 1.68;
  font-weight: 300;
}

/* ==========================================================================
   CHECKOUT MODAL & MOBILE RESPONSIVE ARCHITECTURE
   ========================================================================== */

#checkoutModal,
#productModal,
#coaModal,
#cartDrawer {
  z-index: 100 !important;
}

@media (max-width: 639px) {
  .atelier-nav-container {
    padding: 0 0.75rem;
    height: 64px;
  }
  .atelier-nav-wordmark {
    font-size: 0.95rem;
    letter-spacing: 0.24em;
  }
  .atelier-nav-sub {
    font-size: 6px;
    letter-spacing: 0.28em;
  }
  .atelier-nav-crest {
    width: 16px;
    height: 16px;
  }
}

.checkout-modal-box {
  background: var(--abyss);
  border: 1px solid var(--border-subtle);
  border-radius: 0px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.96);
  width: 100%;
  max-width: 34rem;
  max-height: 94dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1rem 1.5rem 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .checkout-modal-box {
    padding: 2rem 2.25rem;
    max-height: 92vh;
  }
}

.checkout-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .checkout-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkout-grid-street {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 480px) {
  .checkout-grid-street {
    grid-template-columns: 2fr 1fr;
  }
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
}

.phone-code-select {
  width: 108px;
  flex-shrink: 0;
}

.postal-input-group {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
}

.btn-postal-lookup {
  padding: 0 0.85rem;
  background: #1E1C1D;
  border: 1px solid rgba(200, 195, 188, 0.28);
  color: #F3F0EA;
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-postal-lookup:hover {
  background: #2B2729;
  border-color: #F3F0EA;
}

/* PayPal Card & Button Surface: High-contrast warm bone background so PayPal's
   internal dark labels ("Credit", "Debit", "Billing address") are 100% legible
   and mobile card fields have full width without distortion. */
#paypal-button-container {
  background-color: #F3F0EA !important;
  color: #0B0A0B !important;
  padding: 14px 12px !important;
  border: 1px solid rgba(200, 195, 188, 0.35);
  border-radius: 0px !important;
  min-height: 52px;
  width: 100%;
  overflow: visible;
}

@media (min-width: 640px) {
  #paypal-button-container {
    padding: 16px 16px !important;
  }
}

/* Missing Tailwind Utility Polyfills */
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.shrink-0 {
  flex-shrink: 0;
}
.gap-3\.5 {
  gap: 0.875rem;
}
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.875rem;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Prevent iOS Safari & Chrome Autofill from turning inputs bright white/blue */
.input-altervoid:-webkit-autofill,
.input-altervoid:-webkit-autofill:hover,
.input-altervoid:-webkit-autofill:focus,
.input-altervoid:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #141314 inset !important;
  -webkit-text-fill-color: #F3F0EA !important;
  caret-color: #F3F0EA !important;
  border-color: rgba(200, 195, 188, 0.32) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-altervoid.input-missing-err {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5) !important;
}

/* ==========================================================================
   COLLECTOR VAULT, STRONG AUTHENTICATION & 5-STAGE ORDER TRACKING
   ========================================================================== */

#vaultModal {
  z-index: 110 !important;
}

.vault-modal-box {
  background: var(--abyss);
  border: 1px solid var(--border-subtle);
  border-radius: 0px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.98);
  width: 100%;
  max-width: 38rem;
  max-height: 94dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 1.1rem 1.65rem 1.1rem;
  position: relative;
}

@media (min-width: 640px) {
  .vault-modal-box {
    padding: 2rem 2.25rem;
    max-height: 92vh;
  }
}

.vault-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(200, 195, 188, 0.16);
  margin-bottom: 1.25rem;
}

.vault-tab-btn {
  padding: 0.7rem 0.4rem;
  font-family: var(--font-nav);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 195, 188, 0.55);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  background: transparent;
}

.vault-tab-btn:hover {
  color: var(--offwhite);
}

.vault-tab-btn.active {
  color: var(--offwhite);
  border-bottom-color: var(--crimson-imperial);
  font-weight: 500;
}

.pw-meter-bar {
  height: 4px;
  width: 100%;
  background: #1E1C1D;
  overflow: hidden;
  margin-top: 6px;
}

.pw-meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.pw-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 10px;
}

@media (min-width: 480px) {
  .pw-checklist {
    grid-template-columns: 1fr 1fr;
  }
}

.pw-check-item {
  color: rgba(200, 195, 188, 0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pw-check-item.ok {
  color: #7dffb3;
}

.tracking-timeline {
  position: relative;
  padding-left: 1.35rem;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(200, 195, 188, 0.2);
}

.tracking-step {
  position: relative;
  font-size: 11px;
}

.tracking-dot {
  position: absolute;
  left: -1.35rem;
  top: 3px;
  width: 13px;
  height: 13px;
  background: #141314;
  border: 1px solid rgba(200, 195, 188, 0.35);
}

.tracking-step.done .tracking-dot {
  background: #1b4d30;
  border-color: #7dffb3;
}

.tracking-step.current .tracking-dot {
  background: var(--crimson-imperial);
  border-color: #ff4d6d;
  box-shadow: 0 0 10px rgba(217, 17, 42, 0.7);
}

.pci-shield-banner {
  background: linear-gradient(90deg, rgba(18, 4, 28, 0.75) 0%, rgba(17, 16, 17, 0.9) 100%);
  border: 1px solid rgba(200, 195, 188, 0.18);
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--silver-bone);
}



