/* =========================================================
   OSSI — 3D Hero & Dark Showroom Extensions
   Overrides / additions to style.css for the index page
   ========================================================= */

:root {
  --ink-deep: #0a0a0a;
  --ink-rich: #141414;
  --gold: oklch(0.72 0.08 75);
  --gold-soft: oklch(0.78 0.06 75);
}

/* Body gets a dark base when showroom class active */
body.showroom {
  background: var(--ink-deep);
  color: #e8e5dc;
}

body.showroom .site-header {
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8e5dc;
}
body.showroom .site-header .nav-link,
body.showroom .site-header .brand,
body.showroom .site-header .icon-btn { color: #e8e5dc; }
body.showroom .site-header .nav-link::after { background: #e8e5dc; }
body.showroom .cart-count { background: #e8e5dc; color: #0a0a0a; }
body.showroom .announce { background: #000; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* =========================================================
   Hero 3D — full-bleed cinematic stage
   ========================================================= */

.hero3d-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, #1a1a1a 0%, #0a0a0a 60%, #050505 100%);
  isolation: isolate;
}

/* Subtle marble noise on the dark hero */
.hero3d-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Faint marble vein streaks */
.hero3d-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'><filter id='v'><feTurbulence type='turbulence' baseFrequency='0.004 0.02' numOctaves='3'/><feDisplacementMap in='SourceGraphic' scale='70'/></filter><g filter='url(%23v)' opacity='0.22'><path d='M0 400 Q 400 250 900 500 T 1800 550' stroke='%23a08f75' stroke-width='1.2' fill='none'/><path d='M0 600 Q 300 450 800 650 T 1800 700' stroke='%238a7e6a' stroke-width='0.9' fill='none'/><path d='M100 200 Q 500 100 1000 250 T 1700 300' stroke='%23b0a08d' stroke-width='0.7' fill='none'/></g></svg>");
  background-size: cover;
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
}

#hero3d {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Vignette on top of canvas */
.hero3d-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 95%),
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, transparent 20%, transparent 75%, rgba(10,10,10,0.85) 100%);
}

.hero3d-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 6vh, 5rem) var(--pad);
  pointer-events: none;
  color: #f0ece2;
}

.hero3d-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero3d-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.55);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero3d-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero3d-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.45);
  text-align: right;
  line-height: 1.9;
}
.hero3d-meta span { display: block; }
.hero3d-meta .val { color: rgba(240, 236, 226, 0.85); letter-spacing: 0.18em; }

.hero3d-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 3rem;
}

.hero3d-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f0ece2;
  pointer-events: auto;
  max-width: 8ch;
  text-wrap: pretty;
}
.hero3d-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 300;
}

/* Center product meta card — floats under 3D object */
.hero3d-plaque {
  text-align: center;
  pointer-events: auto;
  align-self: end;
  padding-bottom: 0.5rem;
}
.hero3d-plaque .plaque-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(240,236,226,0.4), transparent);
  margin: 0 auto 1rem;
}
.hero3d-plaque .ref {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.45);
  margin-bottom: 0.4rem;
}
.hero3d-plaque .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: #f0ece2;
  margin-bottom: 0.3rem;
}
.hero3d-plaque .price {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
}

.hero3d-cta {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  pointer-events: auto;
}

.hero3d-cta p {
  font-size: 13px;
  color: rgba(240, 236, 226, 0.6);
  max-width: 280px;
  text-align: right;
  line-height: 1.6;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: #f0ece2;
  color: #0a0a0a;
  border: 1px solid #f0ece2;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-dark:hover {
  background: transparent;
  color: #f0ece2;
  opacity: 1;
}
.btn-dark-ghost {
  background: transparent;
  color: #f0ece2;
  border: 1px solid rgba(240, 236, 226, 0.3);
}
.btn-dark-ghost:hover {
  background: rgba(240, 236, 226, 0.08);
  border-color: #f0ece2;
  opacity: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.scroll-hint .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(240,236,226,0.5), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Corner crosshairs (showroom feel) */
.hero3d-section .corner {
  position: absolute;
  width: 28px; height: 28px;
  z-index: 3;
  pointer-events: none;
}
.hero3d-section .corner::before,
.hero3d-section .corner::after {
  content: ""; position: absolute;
  background: rgba(240,236,226,0.3);
}
.hero3d-section .corner::before { top: 0; left: 0; width: 100%; height: 1px; }
.hero3d-section .corner::after { top: 0; left: 0; width: 1px; height: 100%; }
.hero3d-section .corner.tr { top: 1.5rem; right: 1.5rem; transform: scaleX(-1); }
.hero3d-section .corner.tl { top: 1.5rem; left: 1.5rem; }
.hero3d-section .corner.br { bottom: 1.5rem; right: 1.5rem; transform: scale(-1, -1); }
.hero3d-section .corner.bl { bottom: 1.5rem; left: 1.5rem; transform: scaleY(-1); }

/* =========================================================
   Dark sections (showroom)
   ========================================================= */

body.showroom .section {
  background: var(--ink-deep);
  color: #e8e5dc;
}
body.showroom .section-head h2 {
  color: #f0ece2;
}
body.showroom .eyebrow {
  color: rgba(240, 236, 226, 0.5);
}
body.showroom .nav-link {
  color: #e8e5dc;
}

/* Marquee becomes gold-tinted */
body.showroom .marquee {
  background: #0a0a0a;
  color: var(--gold-soft);
  border-color: rgba(255,255,255,0.05);
}

/* Story section — on dark */
body.showroom .section.marble-bg {
  background: #111 !important;
}
body.showroom .section.marble-bg::before,
body.showroom .section.marble-bg::after { display: none; }

body.showroom .story-content p {
  color: rgba(240, 236, 226, 0.7);
}
body.showroom .value p {
  color: rgba(240, 236, 226, 0.55);
}

/* Product cards — dark */
body.showroom .product-media {
  background: #1a1a1a;
}
body.showroom .product-info h3 { color: #f0ece2; }
body.showroom .product-info .meta { color: rgba(240, 236, 226, 0.5); }
body.showroom .product-price { color: var(--gold-soft); }
body.showroom .product-price s { color: rgba(240, 236, 226, 0.4); }
body.showroom .product-quick { background: #f0ece2; color: #0a0a0a; }

/* Product visual — dark marble */
body.showroom .product-visual {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 40%, #0a0a0a 70%, #1a1a1a 100%);
}
body.showroom .product-visual::before {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(176,141,87,0.18) 0%, transparent 55%);
}
body.showroom .product-visual::after { filter: invert(1) brightness(0.7); opacity: 0.4; }
body.showroom .product-icon { stroke: rgba(240, 236, 226, 0.7); }

/* Category cards */
body.showroom .category-card .cat-visual {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 40%, #0a0a0a 70%, #1a1a1a 100%);
}
body.showroom .category-card .cat-visual::before {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(176,141,87,0.15) 0%, transparent 55%);
}
body.showroom .category-card .cat-visual::after { filter: invert(1) brightness(0.7); opacity: 0.35; }
body.showroom .category-card { color: #f0ece2; }
body.showroom .category-card h3 { color: #f0ece2; }

body.showroom .story-visual {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 40%, #0a0a0a 70%, #1a1a1a 100%);
}
body.showroom .story-visual::before {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(176,141,87,0.18) 0%, transparent 55%);
}
body.showroom .story-visual::after { filter: invert(1) brightness(0.7); opacity: 0.4; }

/* Dividers */
body.showroom .filter-bar,
body.showroom .footer-bottom { border-color: rgba(255,255,255,0.08); }

/* Mobile menu — dark */
body.showroom .mobile-menu {
  background: var(--ink-rich);
  color: #e8e5dc;
  border-right: 1px solid rgba(255,255,255,0.06);
}
body.showroom .mobile-menu .brand { color: #f0ece2; }
body.showroom .mobile-menu .icon-btn { color: #e8e5dc; }
body.showroom .mobile-menu nav a {
  color: #f0ece2;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s ease, border-color 0.2s ease;
}
body.showroom .mobile-menu nav a:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(255,255,255,0.18);
}

/* Cart drawer — dark */
body.showroom .cart-drawer {
  background: var(--ink-rich);
  color: #e8e5dc;
  box-shadow: -20px 0 60px rgba(0,0,0,0.55);
}
body.showroom .cart-head { border-bottom-color: rgba(255,255,255,0.08); }
body.showroom .cart-head h3 { color: #f0ece2; }
body.showroom .cart-head .icon-btn { color: #e8e5dc; }
body.showroom .cart-body { color: rgba(240,236,226,0.6); }
body.showroom .cart-body .empty-icon {
  border-color: rgba(255,255,255,0.12);
  color: rgba(240,236,226,0.55);
}
body.showroom .cart-foot { border-top-color: rgba(255,255,255,0.08); }
body.showroom .cart-foot .btn {
  background: #f0ece2;
  color: #0a0a0a;
  border-color: #f0ece2;
}

/* Page head / breadcrumbs — dark */
body.showroom .page-head { background: var(--ink-deep); }
body.showroom .page-head::before,
body.showroom .page-head::after { display: none; }
body.showroom .breadcrumbs,
body.showroom .breadcrumbs a { color: rgba(240,236,226,0.5); }
body.showroom .breadcrumbs span[style] { color: #f0ece2 !important; }
body.showroom .page-head h1 { color: #f0ece2; }
body.showroom .page-head p { color: rgba(240,236,226,0.6); }

/* Filter bar — dark */
body.showroom .filter-bar { background: var(--ink-deep); }
body.showroom .filter-tags button,
body.showroom .filter-sort button {
  color: rgba(240,236,226,0.55);
  border-color: rgba(255,255,255,0.08);
}
body.showroom .filter-tags button.active,
body.showroom .filter-tags button:hover,
body.showroom .filter-sort button:hover {
  color: #f0ece2;
  border-color: rgba(255,255,255,0.2);
}

/* Product detail — dark */
body.showroom .product-detail { background: var(--ink-deep); }
body.showroom .gallery-main,
body.showroom .gallery-thumb {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 40%, #0a0a0a 70%, #1a1a1a 100%);
  border-color: rgba(255,255,255,0.06);
}
body.showroom .gallery-thumb.active { border-color: var(--gold-soft); }
body.showroom .detail-info h1,
body.showroom .detail-info h2,
body.showroom .detail-info h3 { color: #f0ece2; }
body.showroom .detail-info p,
body.showroom .detail-info .spec,
body.showroom .detail-info li { color: rgba(240,236,226,0.7); }
body.showroom .detail-info .price { color: var(--gold-soft); }
body.showroom .option-pills button {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: rgba(240,236,226,0.7);
}
body.showroom .option-pills button:hover {
  border-color: rgba(240,236,226,0.35);
  color: #f0ece2;
}
body.showroom .option-pills button.selected {
  background: #f0ece2;
  color: #0a0a0a;
  border-color: #f0ece2;
}
body.showroom .add-to-cart {
  background: #f0ece2;
  color: #0a0a0a;
  border-color: #f0ece2;
}
body.showroom .add-to-cart:hover {
  background: transparent;
  color: #f0ece2;
}
body.showroom .accordion,
body.showroom .accordion details {
  border-color: rgba(255,255,255,0.08);
  color: rgba(240,236,226,0.75);
}
body.showroom .accordion summary { color: #f0ece2; }

/* About page — dark */
body.showroom .about-intro { background: var(--ink-deep); }
body.showroom .about-intro h1,
body.showroom .about-intro h2 { color: #f0ece2; }
body.showroom .about-intro p,
body.showroom .about-grid p { color: rgba(240,236,226,0.7); }
body.showroom .about-grid h2 { color: #f0ece2; }

/* Site footer already dark — fine */

/* =========================================================
   Tweaks Panel
   ========================================================= */

.tweaks-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 280px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e5dc;
  padding: 1.25rem;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
.tweaks-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.tweaks-panel h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.5);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tweaks-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f0ece2;
}
.tweaks-panel h3 .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.tweaks-group { margin-bottom: 1.1rem; }
.tweak-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 236, 226, 0.5);
  margin-bottom: 0.5rem;
}
.tweak-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tweak-chips button {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(240, 236, 226, 0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tweak-chips button:hover {
  border-color: rgba(240, 236, 226, 0.3);
  color: #f0ece2;
}
.tweak-chips button.active {
  background: #f0ece2;
  color: #0a0a0a;
  border-color: #f0ece2;
}
.tweak-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
}
.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: #f0ece2;
  border-radius: 50%;
  cursor: pointer;
}
.tweak-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #f0ece2;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  .hero3d-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero3d-cta { justify-self: start; align-items: flex-start; }
  .hero3d-cta p { text-align: left; }
  .hero3d-meta { display: none; }
  .hero3d-plaque { text-align: left; }
  .hero3d-plaque .plaque-line { margin: 0 0 1rem 0; }
  .hero3d-section .corner { width: 18px; height: 18px; }
  .hero3d-section .corner.tl, .hero3d-section .corner.tr { top: 1rem; }
  .hero3d-section .corner.bl, .hero3d-section .corner.br { bottom: 1rem; }
  .hero3d-section .corner.tl, .hero3d-section .corner.bl { left: 1rem; }
  .hero3d-section .corner.tr, .hero3d-section .corner.br { right: 1rem; }
  .tweaks-panel { bottom: 1rem; right: 1rem; left: 1rem; width: auto; }
}
