@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Jost:wght@300;400;500;600&display=swap');

/* ==========================================================================
   DESIGN TOKENS & BASE
   ========================================================================== */
:root {
  /* Colors */
  --black: #0B0B0A;
  --ivory: #F2EDE3;
  --warm-white: #FAF7F2;
  --espresso: #3C2B21;
  --cognac: #A8703F;
  --brass: #8C7452;
  --dark-overlay: rgba(11, 11, 10, 0.65);
  
  /* Typography */
  --font-serif: 'Fraunces', serif;
  --font-sans: 'Jost', sans-serif;
  
  /* Spacing & Layout */
  --container-max: 1400px;
  --nav-height: 70px;
  --nav-height-mobile: 60px;
  --section-padding: clamp(4rem, 8vw, 8rem);
  --grid-gap: clamp(1rem, 2vw, 2rem);
  
  /* Transitions */
  --ease-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --ease-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--warm-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background-color: var(--cognac);
  color: var(--ivory);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--warm-white);
}
::-webkit-scrollbar-thumb {
  background: var(--brass);
  border-radius: 10px;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--cognac);
  outline-offset: 2px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}
@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.heading-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

.h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease-smooth);
  border: 1px solid transparent;
}
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}
.btn-outline:hover {
  background: var(--ivory);
  color: var(--black);
}
.btn-filled {
  background: var(--cognac);
  color: var(--ivory);
}
.btn-filled:hover {
  background: var(--espresso);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   1. ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background-color: var(--espresso);
  color: var(--ivory);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  position: relative;
  z-index: 100;
}

/* ==========================================================================
   2. STICKY NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 90;
  display: flex;
  align-items: center;
  transition: background-color var(--ease-smooth), color var(--ease-smooth), top 0.2s ease, box-shadow 0.3s;
  color: var(--ivory); /* Initial hero overlay */
}
.site-header.scrolled {
  background-color: rgba(250, 247, 242, 0.95); /* warm-white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-left {
  gap: 2rem;
  display: none;
}
@media (min-width: 1024px) {
  .nav-left {
    display: flex;
  }
}

.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-smooth);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo {
  flex: 0 0 auto;
  text-align: center;
}
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-right {
  justify-content: flex-end;
  gap: 1.5rem;
}

.nav-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  cursor: pointer;
  transition: opacity 0.3s;
}
.nav-icon:hover {
  opacity: 0.7;
}

.bag-icon-wrapper {
  position: relative;
}
.bag-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--cognac);
  color: var(--ivory);
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .site-header {
    height: var(--nav-height-mobile);
  }
}

.mobile-toggle {
  display: block;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* ==========================================================================
   3. FULL-SCREEN HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: kenBurns 20s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11,11,10,0.85) 0%, rgba(11,11,10,0.3) 50%, rgba(11,11,10,0.1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--ivory);
  z-index: 10;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero .label {
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.hero .h1 {
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   4. STITCH LINE (Signature Element)
   ========================================================================== */
.stitch-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 100%;
  border-left: 2px dashed var(--brass);
  z-index: 5;
  pointer-events: none;
  opacity: 0.2;
  display: none;
}
@media (min-width: 1200px) {
  .stitch-line {
    display: block;
  }
}

.stitch-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brass);
}

.stitch-marker::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass);
  white-space: nowrap;
}

/* ==========================================================================
   5. NEW ARRIVALS — 3D SCROLL CAROUSEL
   ========================================================================== */
.section-arrivals {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* 3D Carousel System */
.carousel-3d {
  position: relative;
  width: 100%;
  padding: 2rem 0 3rem;
}

.carousel-3d__viewport {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  padding: 1.5rem 0;
}

.carousel-3d__track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  width: max-content;
  animation: carousel3dScroll 30s linear infinite;
  will-change: transform;
  padding-left: 2rem;
}

.carousel-3d:hover .carousel-3d__track {
  animation-play-state: paused;
}

@keyframes carousel3dScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Individual cards */
.carousel-3d__card {
  flex: 0 0 auto;
  width: clamp(260px, 22vw, 340px);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: rotateY(0deg) translateZ(0);
  border-radius: 2px;
  position: relative;
}

/* 3D tilt on hover — subtle rotateY + lift */
.carousel-3d__card:hover {
  transform: rotateY(-3deg) translateZ(30px) scale(1.03);
  box-shadow: 20px 25px 60px rgba(11, 11, 10, 0.15),
              0 5px 20px rgba(11, 11, 10, 0.08);
  z-index: 10;
}

/* Card reflective floor shimmer */
.carousel-3d__card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 80%;
  height: 40px;
  background: linear-gradient(to bottom,
    rgba(11, 11, 10, 0.06),
    transparent
  );
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.carousel-3d__card:hover::after {
  opacity: 1;
}

/* Product image within carousel card */
.carousel-3d__card .product-image-container {
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #E8E5DF;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.carousel-3d__card .product-img,
.carousel-3d__card .product-img-hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-3d__card .product-img {
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-3d__card .product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-3d__card:hover .product-img {
  opacity: 0;
  transform: scale(1.08);
}

.carousel-3d__card:hover .product-img-hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Quick view appears on hover */
.carousel-3d__card .quick-view-wrapper {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  width: 90%;
  justify-content: center;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
}

.carousel-3d__card:hover .quick-view-wrapper {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Edge fade gradients — cinematic vignette */
.carousel-3d__fade {
  position: absolute;
  top: 0;
  width: clamp(60px, 8vw, 120px);
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.carousel-3d__fade--left {
  left: 0;
  background: linear-gradient(to right,
    var(--warm-white) 0%,
    rgba(250, 247, 242, 0.8) 30%,
    transparent 100%
  );
}

.carousel-3d__fade--right {
  right: 0;
  background: linear-gradient(to left,
    var(--warm-white) 0%,
    rgba(250, 247, 242, 0.8) 30%,
    transparent 100%
  );
}

/* Responsive card width adjustments */
@media (max-width: 767px) {
  .carousel-3d__card {
    width: 240px;
  }
  .carousel-3d__viewport {
    perspective: 800px;
  }
  .carousel-3d__track {
    animation-duration: 20s;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .carousel-3d__track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-3d__card {
    scroll-snap-align: start;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem var(--grid-gap);
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  group: product;
  position: relative;
}

.product-image-container {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #E8E5DF;
  margin-bottom: 1.25rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--ease-smooth), transform var(--ease-slow);
}

.product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--ease-smooth), transform var(--ease-slow);
}

.product-card:hover .product-img { opacity: 0; }
.product-card:hover .product-img-hover {
  opacity: 1;
  transform: scale(1.05);
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  color: var(--black);
}
.wishlist-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: fill 0.3s, stroke 0.3s;
}
.wishlist-btn:hover svg {
  fill: var(--black);
}

.quick-view-wrapper {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  width: 90%;
  justify-content: center;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255,255,255,0.9);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: all var(--ease-smooth);
  white-space: nowrap;
}
.product-card:hover .quick-view-wrapper {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-name {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.product-price {
  font-size: 0.9rem;
  color: var(--espresso);
}

/* ==========================================================================
   6. SPLIT EDITORIAL
   ========================================================================== */
.split-editorial {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .split-editorial {
    flex-direction: row;
    min-height: 80vh;
  }
}

.split-img {
  flex: 1;
  min-height: 50vh;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  flex: 1;
  background-color: var(--espresso);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.split-content .label {
  color: var(--brass);
}

.split-content .heading-serif {
  margin-bottom: 1.5rem;
}

.split-content p {
  font-weight: 300;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  opacity: 0.9;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: color 0.3s;
}
.link-arrow svg {
  margin-left: 0.5rem;
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.link-arrow:hover {
  color: var(--brass);
}
.link-arrow:hover svg {
  transform: translateX(5px);
}

/* ==========================================================================
   7. LEATHER COLLECTION
   ========================================================================== */
.section-leather {
  padding-bottom: var(--section-padding);
}

.leather-banner {
  width: 100%;
  height: 30vh;
  min-height: 250px;
  max-height: 400px;
  background-color: var(--espresso);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--section-padding);
}

.leather-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem var(--grid-gap);
}
@media (min-width: 768px) {
  .leather-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .leather-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   8. SIGNATURE PIECES
   ========================================================================== */
.section-signatures {
  padding: var(--section-padding) 0;
  background-color: var(--ivory);
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}
@media (min-width: 768px) {
  .signature-grid { grid-template-columns: repeat(3, 1fr); }
}

.signature-card {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  display: block;
}

.signature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.signature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
  transition: background var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--ivory);
}

.signature-card:hover img {
  transform: scale(1.05);
}
.signature-card:hover .signature-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%);
}

.signature-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.signature-price {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}
.signature-cta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.signature-cta::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.signature-card:hover .signature-cta::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   9. PHILOSOPHY SECTION
   ========================================================================== */
.section-philosophy {
  padding: var(--section-padding) 0;
  text-align: center;
  background-color: var(--warm-white);
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 900px;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  color: var(--espresso);
  line-height: 1.3;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
}
@media (min-width: 500px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .philosophy-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar {
  padding: 0 1rem;
}
.pillar-number {
  color: var(--brass);
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pillar .label {
  color: var(--black);
  margin-bottom: 1rem;
}
.pillar p {
  font-size: 0.875rem;
  color: #555;
  font-weight: 300;
}

/* ==========================================================================
   10. SECOND EDITORIAL SPLIT
   ========================================================================== */
.split-editorial.reversed {
  flex-direction: column;
}
@media (min-width: 1024px) {
  .split-editorial.reversed {
    flex-direction: row-reverse;
  }
}
.split-editorial.reversed .split-content {
  background-color: var(--warm-white);
  color: var(--espresso);
}
.split-editorial.reversed .link-arrow:hover {
  color: var(--cognac);
}

/* ==========================================================================
   11. JOURNAL SECTION
   ========================================================================== */
.section-journal {
  padding: var(--section-padding) 0;
  background-color: var(--ivory);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem var(--grid-gap);
}
@media (min-width: 768px) {
  .journal-grid { grid-template-columns: repeat(3, 1fr); }
}

.journal-card {
  display: block;
}

.journal-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.journal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.journal-card:hover .journal-img {
  transform: scale(1.05);
}

.journal-card .label {
  color: var(--cognac);
}

.journal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.journal-card:hover .journal-title {
  color: var(--cognac);
}

.journal-meta {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.journal-read {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ==========================================================================
   12. WORN BY YOU
   ========================================================================== */
.section-social {
  padding: var(--section-padding) 0 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: var(--warm-white); /* acts as gap color */
}
@media (min-width: 768px) {
  .social-grid { grid-template-columns: repeat(4, 1fr); }
}

.social-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
}

.social-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.social-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease-smooth);
  color: var(--ivory);
  font-size: 0.875rem;
}

.social-item:hover .social-img {
  transform: scale(1.05);
}
.social-item:hover .social-overlay {
  opacity: 1;
}

/* ==========================================================================
   13. NEWSLETTER SECTION
   ========================================================================== */
.section-newsletter {
  background-color: var(--black);
  color: var(--ivory);
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content .h2 {
  margin-bottom: 1.5rem;
}

.newsletter-content p {
  margin-bottom: 3rem;
  color: #CCC;
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .newsletter-form {
    flex-direction: row;
    align-items: flex-end;
  }
}

.input-group {
  flex: 1;
  position: relative;
}

.newsletter-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242, 237, 227, 0.5); /* ivory half transparent */
  padding: 0.75rem 0;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.newsletter-input:focus {
  outline: none;
  border-bottom-color: var(--ivory);
}
.newsletter-input::placeholder {
  color: rgba(242, 237, 227, 0.5);
  font-weight: 300;
}

.newsletter-form .btn {
  padding: 0.75rem 2rem;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--black);
  color: rgba(242, 237, 227, 0.7); /* muted ivory */
  padding: 5rem 0 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
}

.footer-brand .logo-wordmark {
  color: var(--ivory);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
.footer-brand p {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.footer-col h4 {
  color: var(--ivory);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  transition: color 0.3s;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--ivory);
}

.footer-bottom {
  border-top: 1px solid rgba(242, 237, 227, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   15. MOBILE MENU DRAWER
   ========================================================================== */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--black);
  color: var(--ivory);
  z-index: 200;
  transition: left var(--ease-smooth);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  max-height: 90vh;
}
.mobile-menu-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.btn-close {
  background: transparent;
  border: none;
  color: var(--ivory);
  cursor: pointer;
}
.btn-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  transition: color 0.3s;
}
.mobile-nav-link:hover {
  color: var(--cognac);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   16. QUICK VIEW MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 11, 10, 0.8);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-smooth);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--warm-white);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--ease-smooth);
  overflow: hidden;
}
.modal-overlay.open .modal-content {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .modal-content {
    flex-direction: row;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.modal-close svg {
  width: 24px;
  height: 24px;
  fill: var(--black);
}

.modal-img-col {
  flex: 1;
  background: #E8E5DF;
}
.modal-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  flex: 1;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.modal-price {
  font-size: 1.25rem;
  color: var(--espresso);
  margin-bottom: 2rem;
}
.modal-desc {
  font-weight: 300;
  color: #555;
  margin-bottom: 2rem;
}

.size-selector {
  margin-bottom: 2rem;
}
.size-selector label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.size-options {
  display: flex;
  gap: 0.5rem;
}
.size-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #CCC;
  background: transparent;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s;
}
.size-btn:hover, .size-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--ivory);
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Container queries wrapper (if needed for isolated components) */
.cq-wrapper {
  container-type: inline-size;
}

/* ============================================================
   WOMEN'S COLLECTION (3D COVERFLOW)
   ============================================================ */
.section-women {
  padding: 8rem 0;
  background-color: var(--black);
  color: var(--warm-white);
  overflow: hidden;
  position: relative;
}

.coverflow-3d {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin-top: 4rem;
}

.coverflow-3d__container {
  position: relative;
  width: 300px; /* Width of central item */
  height: 450px;
  transform-style: preserve-3d;
}

.coverflow-3d__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}

.coverflow-3d__item .product-image-container {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  background: var(--espresso);
}

.coverflow-3d__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

/* Base Coverflow States via JS Classes */
.coverflow-3d__item.is-active {
  transform: translateX(0) translateZ(0) rotateY(0);
  opacity: 1;
  z-index: 10;
}
.coverflow-3d__item.is-active img {
  transform: scale(1.05);
}

.coverflow-3d__item.is-prev {
  transform: translateX(-60%) translateZ(-200px) rotateY(25deg);
  opacity: 0.6;
  z-index: 5;
}

.coverflow-3d__item.is-next {
  transform: translateX(60%) translateZ(-200px) rotateY(-25deg);
  opacity: 0.6;
  z-index: 5;
}

.coverflow-3d__item.is-hidden {
  transform: translateX(0) translateZ(-400px) rotateY(0);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.coverflow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 10, 0.9) 0%, rgba(11, 11, 10, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.coverflow-3d__item.is-active .coverflow-overlay {
  opacity: 1;
}

.coverflow-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.coverflow-price {
  font-family: var(--font-sans);
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.coverflow-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 20;
}

.coverflow-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--warm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.coverflow-controls button:hover {
  background: var(--warm-white);
  color: var(--black);
}

.coverflow-controls svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .coverflow-3d__container {
    width: 400px;
    height: 550px;
  }
  .coverflow-3d__item.is-prev {
    transform: translateX(-70%) translateZ(-250px) rotateY(30deg);
  }
  .coverflow-3d__item.is-next {
    transform: translateX(70%) translateZ(-250px) rotateY(-30deg);
  }
}

/* ============================================================
   QUICK VIEW MULTI-IMAGE GALLERY MODAL
   ============================================================ */
.modal-content--expanded {
  max-width: 1200px;
}
@media (min-width: 768px) {
  .modal-content.modal-content--expanded {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 767px) {
  .modal-content--expanded {
    grid-template-columns: 1fr;
  }
}

.modal-gallery-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
}

.modal-main-img-wrapper {
  flex-grow: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  min-height: 300px;
}

.modal-main-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.modal-thumbnail-track-container {
  width: 100%;
  height: 80px;
  background: var(--warm-white);
  overflow-x: auto;
  border-top: 1px solid rgba(0,0,0,0.05);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.modal-thumbnail-track-container::-webkit-scrollbar {
  display: none;
}

.modal-thumbnail-track {
  display: flex;
  gap: 4px;
  padding: 8px;
  min-width: max-content;
}

.modal-thumbnail {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
  object-fit: cover;
}

.modal-thumbnail:hover {
  opacity: 1;
}

.modal-thumbnail.is-active {
  opacity: 1;
  border-color: var(--black);
}

/* ============================================================
   CURTAIN REVEAL ANIMATION (WOMEN'S SECTION)
   ============================================================ */
.women-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

.women-curtain.is-open {
  pointer-events: none;
}

.curtain-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: var(--black);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 11;
}

.curtain-left { left: 0; transform-origin: left; }
.curtain-right { right: 0; transform-origin: right; }

.women-curtain.is-open .curtain-left {
  transform: translateX(-100%);
}
.women-curtain.is-open .curtain-right {
  transform: translateX(100%);
}

.curtain-content {
  position: relative;
  z-index: 12;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.women-curtain.is-open .curtain-content {
  opacity: 0;
  pointer-events: none;
}

.curtain-figure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: -1;
}

.curtain-text {
  background: rgba(11,11,10,0.5);
  padding: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.women-revealed-content {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}

.section-women.is-revealed .women-revealed-content {
  opacity: 1;
  transform: scale(1);
}

/* MOVING LIBRARY (MARQUEE) STYLES */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track:hover {
  animation-play-state: paused !important;
}

/* Base item transitions */
.marquee-item {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform-origin: bottom center;
}

/* Hover: Pull book from shelf effect */
.marquee-item:hover {
  transform: scale(1.15) translateY(-15px) !important;
  z-index: 20 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.marquee-item:hover .product-image-container img {
  /* No additional scale needed since parent scales */
  transform: scale(1) !important; 
}

.marquee-item:hover .marquee-overlay {
  opacity: 1 !important;
}

/* Optional: slightly dim sibling items to make the hovered one pop more */
.marquee-track:hover .marquee-item:not(:hover) {
  opacity: 0.5;
  filter: blur(2px);
  transform: scale(0.95);
}

.quick-view-wrapper button {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  text-align: center;
}
.quick-view-wrapper .quick-view-btn {
  background: rgba(255,255,255,0.9);
  color: var(--black);
}
.quick-view-wrapper .add-bag-btn-inner {
  background: var(--cognac);
  color: var(--warm-white);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark-overlay);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease-smooth);
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--warm-white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.empty-cart-msg {
  text-align: center;
  color: #666;
  margin-top: 2rem;
  font-family: var(--font-sans);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: var(--ivory);
}
.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.cart-item-price {
  font-size: 0.9rem;
  color: var(--espresso);
}
.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.2);
}
.qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}
.qty-val {
  font-size: 0.85rem;
  width: 30px;
  text-align: center;
}
.remove-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: underline;
}

.cart-footer {
  padding: 2rem;
  background: var(--ivory);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.25rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-block:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.btn-block:active {
  transform: translateY(0);
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.checkout-summary-item img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 1rem;
}
.checkout-summary-item-details {
  flex: 1;
}
.checkout-summary-item-title {
  font-family: var(--font-serif);
  font-size: 1rem;
}
.checkout-summary-item-meta {
  font-size: 0.8rem;
  color: #666;
}
.checkout-summary-item-price {
  font-weight: 500;
}

/* Update Cart Drawer to slide from LEFT */
.cart-drawer {
  right: auto !important;
  left: -100%;
  box-shadow: 5px 0 30px rgba(0,0,0,0.1) !important;
}
.cart-drawer.open {
  right: auto !important;
  left: 0;
}

/* Logo Image Styling */
.site-header .logo-img {
  height: 24px;
  width: auto;
  transition: filter 0.4s ease;
  filter: invert(1) brightness(2);
}
.site-header.scrolled .logo-img {
  filter: none;
}
body:not(.home) .site-header .logo-img {
  filter: none;
}
.drawer-header .logo-img {
  height: 24px;
  width: auto;
  filter: invert(1) brightness(2);
}
.footer-brand .logo-img {
  height: 48px;
  width: auto;
  filter: invert(1) brightness(2);
  margin-bottom: 1.5rem;
}
