/* ============================================================
   BASE & RESET
   ============================================================ */
:root {
  color-scheme: dark;
  --obsidian: #0B0B0B;
  --bronze: #8C6239;
  --bone: #F4F1EA;
  --red: #D32F2F;
  --pink: #E8A5C4;
  --bronze-light: #A87A4E;
  --bronze-dark: #6B4A2A;
  --bone-dark: #D9D4C8;
  --red-light: #E53935;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--obsidian);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--red);
  color: var(--obsidian);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bronze);
}

/* ============================================================
   NAV
   ============================================================ */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1.5px;
  background: var(--red);
  transition: width 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.menu-bar {
  transition: all 0.3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-overlay {
  background: linear-gradient(135deg, rgba(11, 11, 11, 0.85) 0%, rgba(11, 11, 11, 0.4) 50%, rgba(11, 11, 11, 0.7) 100%);
}
.hero-title {
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.hero-text-shift {
  padding-left: 4%;
}
@media (min-width: 768px) {
  .hero-text-shift {
    padding-left: 8%;
  }
}
@media (min-width: 1024px) {
  .hero-text-shift {
    padding-left: 12%;
  }
}

/* ============================================================
   EYE
   ============================================================ */
.eye-icon {
  transition: transform 0.15s ease;
  transform-origin: center;
}
.eye-icon.blink {
  transform: scaleY(0.08);
}
.pupil {
  transition: transform 0.15s ease-out;
}

.hero-eye-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 450px;
  aspect-ratio: 2 / 1;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
}
.hero-eye-pupil-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-eye-pupil-overlay.active {
  opacity: 1;
}
.hero-eye-pupil-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.24, 1),
              transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] {
  transform: translateX(-32px);
}
[data-reveal="left"].in-view {
  transform: translateX(0);
}
[data-reveal="right"] {
  transform: translateX(32px);
}
[data-reveal="right"].in-view {
  transform: translateX(0);
}
[data-reveal="scale"] {
  transform: scale(0.94);
}
[data-reveal="scale"].in-view {
  transform: scale(1);
}
[data-reveal="fade"] {
  transform: none;
  opacity: 0;
}
[data-reveal="fade"].in-view {
  opacity: 1;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   GLOW ORBS
   ============================================================ */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.12;
}
.glow-orb-red {
  background: var(--red);
}
.glow-orb-bronze {
  background: var(--bronze);
}
.glow-orb-pink {
  background: var(--pink);
}
.glow-orb-bone {
  background: var(--bone);
  opacity: 0.05;
}

/* ============================================================
   GRAIN
   ============================================================ */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   TAG PILLS
   ============================================================ */
.tag-pill {
  transition: all 0.3s ease;
}
.tag-pill:hover {
  border-color: var(--red);
  color: var(--bone);
  transform: translateY(-2px);
}

/* ============================================================
   DROP CARDS
   ============================================================ */
.drop-card {
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.drop-card:hover {
  transform: translateY(-6px);
}
.card-img-wrap {
  overflow: hidden;
  border-radius: 6px;
}
.card-img-wrap img {
  transition: transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1),
              filter 0.7s ease;
}
.drop-card:hover .card-img-wrap img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.08);
}
.drop-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.drop-card:hover .drop-badge {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

/* ============================================================
   MAGNETIC BUTTONS
   ============================================================ */
.magnetic {
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: transform;
}

/* ============================================================
   FOOTER LINK
   ============================================================ */
.footer-link {
  position: relative;
  transition: color 0.3s ease;
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.footer-link:hover::after {
  width: 100%;
}

/* ============================================================
   EYE FRAME
   ============================================================ */
.eye-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(244, 238, 226, 0.03);
  border: 1px solid rgba(244, 238, 226, 0.08);
}
.eye-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.22) 0%, rgba(211, 47, 47, 0) 70%);
  animation: eyePulse 3.4s ease-in-out infinite;
}
@keyframes eyePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* ============================================================
   RANGE CARDS
   ============================================================ */
.range-card {
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1),
              border-color 0.3s ease;
}
.range-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 238, 226, 0.25);
}
.field-photo {
  overflow: hidden;
  background: rgba(244, 238, 226, 0.03);
}
.field-photo img {
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.field-photo:hover img {
  transform: scale(1.05);
}

/* ============================================================
   IG TILES
   ============================================================ */
.ig-tile {
  position: relative;
  overflow: hidden;
  background: rgba(244, 238, 226, 0.03);
}
.ig-tile img {
  transition: transform 0.6s cubic-bezier(0.16, 0.8, 0.24, 1),
              filter 0.4s ease;
}
.ig-tile:hover img {
  transform: scale(1.08);
  filter: brightness(0.55);
}
.ig-tile .ig-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ig-tile:hover .ig-icon {
  opacity: 1;
}

/* ============================================================
   STAT BLOCKS
   ============================================================ */
.stat-block {
  transition: background 0.4s ease;
}
.stat-block:hover {
  background: rgba(211, 47, 47, 0.06);
}

/* ============================================================
   RUNNING SMILEY
   ============================================================ */
#runningSmiley {
  position: fixed;
  bottom: 30px;
  left: 0;
  font-size: 1.35rem;
  z-index: 200;
  pointer-events: none;
  transform: scaleX(-1);
  opacity: 1;
  background: rgba(140, 98, 57, 0.10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(140, 98, 57, 0.22);
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  box-shadow: 0 0 16px rgba(140, 98, 57, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
#runningSmiley::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: radial-gradient(ellipse, rgba(140, 98, 57, 0.35) 0%, transparent 70%);
  border-radius: 50%;
}

/* ============================================================
   MYSTERY BOX
   ============================================================ */
#mysteryBox {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 300;
  cursor: pointer;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(140, 98, 57, 0.4);
  box-shadow: 0 0 22px rgba(140, 98, 57, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: pulseRing 2.6s ease-in-out infinite;
  overflow: hidden;
}
#mysteryBox:hover,
#mysteryBox:focus-visible {
  transform: scale(1.08) rotate(6deg);
  border-color: var(--red);
  box-shadow: 0 0 36px rgba(211, 47, 47, 0.16);
}
#mysteryBox img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
}
@keyframes pulseRing {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(140, 98, 57, 0.10);
  }
  50% {
    box-shadow: 0 0 34px rgba(140, 98, 57, 0.22);
  }
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #mysteryBox {
    width: 54px;
    height: 54px;
    bottom: 80px;
    right: 20px;
  }
  #runningSmiley {
    font-size: 1.05rem;
    bottom: 20px;
    padding: 0.26rem 0.7rem;
  }
  .cart-table-wrap table {
    display: none;
  }
  .cart-item-card {
    display: block !important;
  }
}

/* ============================================================
   CART OVERRIDES
   ============================================================ */
.cart-item-card {
  display: none;
}
.qty-btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.qty-btn:hover {
  background: rgba(244, 238, 226, 0.08);
}
.remove-item {
  transition: color 0.25s ease;
}

/* ============================================================
   SHOP / PRODUCT / STUDIO – NEW STYLES
   ============================================================ */

/* ---- subnav ---- */
#subnav {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.subnav-link {
  color: rgba(244, 238, 226, 0.4);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.subnav-link.active {
  color: var(--active-color, var(--red));
}

.sort-select {
  background: transparent;
  color: rgba(244, 238, 226, 0.6);
  border: 1px solid rgba(244, 238, 226, 0.15);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  text-transform: uppercase;
  cursor: pointer;
}
.sort-select:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---- product card ---- */
.product-card {
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.product-card:hover {
  transform: translateY(-6px);
}

/* ---- flip card ---- */
.flip-card {
  perspective: 1400px;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.flip-face img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.flip-back {
  transform: rotateY(180deg);
}

.flip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(244, 238, 226, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F4F1EA;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.flip-btn:hover {
  background: rgba(211, 47, 47, 0.85);
  border-color: transparent;
}
.flip-btn svg {
  transition: transform 0.5s ease;
}
.flip-card.flipped .flip-btn svg {
  transform: rotate(180deg);
}

/* ---- variant navigation (arrows) ---- */
.variant-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(244, 238, 226, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F4F1EA;
  transition: background-color 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  cursor: pointer;
}
.product-card:hover .variant-nav {
  opacity: 1;
}
.variant-nav:hover {
  background: rgba(211, 47, 47, 0.8);
  border-color: transparent;
}
.variant-nav.prev {
  left: 6px;
}
.variant-nav.next {
  right: 6px;
}
@media (max-width: 768px) {
  .variant-nav {
    opacity: 1;
    width: 28px;
    height: 28px;
  }
  .variant-nav.prev {
    left: 4px;
  }
  .variant-nav.next {
    right: 4px;
  }
}

/* ---- variant dots ---- */
.variant-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.variant-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 238, 226, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.variant-dot.active {
  background: var(--red);
  transform: scale(1.25);
}

/* ---- swatch dots ---- */
.swatch-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.swatch-dot.active {
  border-color: var(--bone);
  transform: scale(1.12);
}
.swatch-dot:hover {
  transform: scale(1.08);
}
.swatch-dot.white-swatch {
  border-color: rgba(244, 238, 226, 0.3);
}
.swatch-dot.white-swatch.active {
  border-color: var(--bone);
}

/* ---- size chips ---- */
.size-chip {
  transition: border-color 0.25s ease,
              background-color 0.25s ease,
              color 0.25s ease;
  cursor: pointer;
}
.size-chip.selected {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--obsidian);
}

/* ---- add to cart button ---- */
.add-to-cart {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              transform 0.2s ease;
}
.add-to-cart:active {
  transform: scale(0.98);
}

/* ---- studio tiles ---- */
.studio-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3/4;
  background: rgba(244, 238, 226, 0.03);
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.studio-tile:hover {
  transform: translateY(-6px);
}
.studio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1),
              filter 0.5s ease;
}
.studio-tile:hover img {
  transform: scale(1.06);
  filter: brightness(0.7);
}
.studio-tile .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: rgba(11, 11, 11, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.studio-tile:hover .overlay {
  opacity: 1;
}
.studio-tile .overlay svg {
  width: 44px;
  height: 44px;
  stroke: var(--bone);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .studio-tile {
    aspect-ratio: 4/5;
  }
}

/* ---- product gallery wrap ---- */
.gallery-wrap {
  background: rgba(244, 238, 226, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

/* ---- details / accordion ---- */
details > summary {
  cursor: pointer;
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details .chev {
  transition: transform 0.3s ease;
}
details[open] .chev {
  transform: rotate(180deg);
}
details + details {
  border-top: 1px solid rgba(244, 238, 226, 0.08);
}

/* ---- newsletter input focus ---- */
.newsletter-input:focus-within {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

/* ---- accessibility ---- */
input:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---- reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .flip-inner {
    transition: none !important;
  }
}