/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #888888;
  --grey-border: #e0e0e0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 110px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--grey-border);
}

.header-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 40px 0;
}

.btn-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.btn-menu span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: background var(--transition);
}

.site-header.scrolled .btn-menu span { background: var(--black); }

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.header-icons {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  padding: 8px 0 16px;
}

.btn-icon {
  position: relative;
  color: var(--white);
  transition: color var(--transition);
}

.site-header.scrolled .btn-icon { color: var(--black); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-header.scrolled .cart-count { background: var(--black); }

.header-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.site-header.scrolled .header-nav {
  border-top-color: var(--grey-border);
}

.header-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}

.site-header.scrolled .header-nav a { color: var(--black); }

.header-nav a:hover { opacity: 0.6; }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(360px, 85vw);
  height: 100vh;
  background: var(--white);
  z-index: 200;
  padding: 80px 40px;
  transition: left var(--transition);
}

.mobile-drawer.open { left: 0; }

.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.4rem;
  color: var(--black);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.drawer-nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: absolute;
  bottom: 140px;
  left: 10%;
  z-index: 2;
  color: var(--white);
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.btn-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--white);
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.btn-cta:hover {
  background: var(--white);
  color: var(--black);
}

.btn-cta--light {
  border-color: var(--black);
  color: var(--black);
}

.btn-cta--light:hover {
  background: var(--black);
  color: var(--white);
}

.hero-controls {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.hero-prev, .hero-next {
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.hero-prev:hover, .hero-next:hover { opacity: 1; }

.hero-dots { display: flex; gap: 10px; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--white);
  opacity: 0.5;
  transition: opacity 0.3s, background 0.3s;
}

.dot.active {
  background: var(--white);
  opacity: 1;
}

.scroll-hint {
  position: absolute;
  bottom: 48px;
  right: 40px;
  color: var(--white);
  opacity: 0.6;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 60px 30px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.section-link {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: color 0.2s;
}

.section-link:hover { color: var(--black); }

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections { padding-bottom: 20px; }

.collections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 2px;
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-image-wrap {
  height: 75vh;
  overflow: hidden;
}

.collection-card img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-card:hover img { transform: scale(1.04); }

.card-info {
  padding: 24px 0 8px;
}

.card-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  margin: 4px 0 12px;
}

.card-link {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.collection-card:hover .card-link { opacity: 0.5; }

/* ============================================================
   NEW ARRIVALS
   ============================================================ */
.new-arrivals {
  padding-bottom: 56px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 2px;
  padding: 0 2px;
  align-items: start;
}

.product-card {
  display: block;
  overflow: hidden;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--grey-light);
}

.product-image-wrap .img-primary,
.product-image-wrap .img-secondary {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.product-image-wrap .img-secondary {
  opacity: 0;
}

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

.product-info {
  padding: 16px 4px 24px;
}

.product-name {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-price {
  font-size: 0.8rem;
  color: var(--grey-mid);
  font-weight: 300;
}

/* ============================================================
   EDITORIAL BANNER
   ============================================================ */
.editorial {
  margin: 0 2px 2px;
}

.editorial-inner {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.editorial-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.editorial-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 80px;
  max-width: 560px;
}

.editorial-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.75;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
}

.editorial-title em { font-style: italic; }

.editorial-text {
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 60px 40px;
}

.footer-brand {
  text-align: center;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 60px;
  scroll-margin-top: var(--header-h);
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 48px;
  filter: invert(1);
}

.footer-brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.footer-brand-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.footer-brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(30%);
  transition: filter 0.4s;
}

.footer-brand-image img:hover { filter: grayscale(0%); }

.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.footer-brand-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.footer-brand-name {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-newsletter {
  text-align: center;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 60px;
}

.footer-newsletter h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 10px;
}

.footer-newsletter p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-form button {
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.3);
  border-left: none;
  background: transparent;
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.newsletter-form button:hover {
  background: var(--white);
  color: var(--black);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.4);
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color 0.2s;
  font-weight: 300;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 80px; }

  .header-top { padding: 16px 24px; }
  .header-nav { display: none; }

  .site-logo-img { height: 26px; }

  /* Single-row header on mobile */
  .header-top {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
  }

  .header-icons {
    width: auto;
    padding: 0;
    gap: 20px;
  }

  .btn-icon--desktop { display: none; }

  .hero-content { left: 6%; bottom: 120px; }

  .section-header { padding: 60px 24px 30px; }

  .collections-grid { grid-template-columns: 1fr; }
  .card-image-wrap { height: 60vw; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .editorial-content { padding: 40px 24px; }
  .editorial-inner { height: 70vh; }

  .site-footer { padding: 60px 24px 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }

  .scroll-hint { right: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
