/* 
  EXQUISITE ATELIER — CREATIVE THEME OVERHAUL
  Derived from the geometric sans-serif and sweeping script of the new logo.
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Great+Vibes&display=swap');

:root {
  /* --- COLORS (Based strictly on Exquisite_Atelier__logo.png) --- */

  /* Primary Text & Accents (Deep Chocolate Brown) */
  --color-black: #3A2318;

  /* Background (Warm Beige) */
  --color-bg-primary: #E6DACD;
  --color-bg-secondary: #DFD1C2;
  /* Slightly darker for contrast areas */

  /* Neutrals & Borders */
  --color-white: #F4EBE3;
  /* Soft off-white variant of the beige */
  --color-border: rgba(58, 35, 24, 0.15);
  /* Semi-transparent brown for elegant lines */

  /* Semantic */
  --color-text-primary: var(--color-black);
  --color-text-secondary: rgba(58, 35, 24, 0.65);
  --color-text-accent: var(--color-black);

  --color-success: #2E7D32;
  --color-error: #C62828;

  /* --- TYPOGRAPHY --- */
  /* Jost: Geometric sans-serif matching the logo's clean, wide lettering */
  --font-sans: 'Jost', sans-serif;
  /* Great Vibes: Sweeping, elegant script matching the "EA" monogram */
  --font-script: 'Great Vibes', cursive;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 2rem;
  /* 32px */
  --text-4xl: 3rem;
  /* 48px */
  --text-5xl: 4rem;
  /* 64px */
  --text-6xl: 5.5rem;
  /* 88px */

  /* Massive Script Sizes for Background Accents */
  --text-script-hero: 12rem;
  --text-script-large: 6rem;

  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.8;

  /* --- SPACING & SIZING --- */
  --container-width: 1600px;
  --header-height: 90px;
  --section-spacing: 8rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-32: 8rem;

  /* --- BORDERS & SHADOWS --- */
  /* Elegant, subtle pill shapes & softer edges for Velaa feel */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(58, 35, 24, 0.04);
  --shadow-md: 0 10px 30px rgba(58, 35, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 35, 24, 0.12);

  /* --- TRANSITIONS --- */
  --ease-luxury: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --duration-slow: 1.2s;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-black);
  color: var(--color-bg-primary);
}

/* Clear, geometric tracking for headings to match logo */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}

/* Script Overlay Class (For the sweeping EA vibe) */
.script-overlay {
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-black);
  opacity: 0.1;
  position: absolute;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: 0.2em;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: 0.15em;
}

h4 {
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
}

p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
  font-weight: 300;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-luxury);
}

a:hover {
  opacity: 0.6;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
}

.grid.products {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-12);
}

@media (max-width: 1024px) {
  .grid.products {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.hidden {
  display: none !important;
}

/* Image Wrappers */
.arch-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 1.5s var(--ease-luxury) forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-luxury) forwards;
}

/* --- CREATIVE BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 42px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: var(--text-xs);
  transition: all var(--duration-normal) var(--ease-luxury);
  border-radius: var(--radius-full);
  /* Pill shape */
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-black);
}

.btn-primary {
  background-color: var(--color-black);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-black);
}

.btn-secondary:hover {
  background-color: var(--color-black);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-text {
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  transition: all var(--duration-fast) var(--ease-luxury);
  color: var(--color-black);
  border-radius: 0;
}

.btn-text:hover {
  border-color: var(--color-black);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

/* --- HERO SECTION LAYOUT --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Align content towards bottom */
  align-items: center;
  padding: var(--space-4);
  padding-bottom: var(--space-16);
}

.hero-script {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--text-script-hero);
  z-index: 1;
  color: var(--color-bg-primary);
  opacity: 0.5;
}

.hero-slideshow {
  width: calc(100% - var(--space-8));
  height: calc(100vh - var(--space-8));
  left: var(--space-4);
  top: var(--space-4);
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 0;
}

/* Subtle gradient overlay at bottom to ensure text readability against any image */
.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(230, 218, 205, 0.95) 0%, rgba(230, 218, 205, 0.4) 30%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Keep model faces in top frame */
  opacity: 0;
  transition: opacity 1.5s var(--ease-luxury);
  z-index: 0;
}

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

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  color: var(--color-black);
  z-index: 10;
  width: 100%;
  padding: 0 var(--space-8);
}

.hero-title {
  color: var(--color-black);
  text-shadow: none;
  font-size: var(--text-4xl);
  /* Significantly reduced from 6xl for a cleaner editorial look */
  font-weight: 300;
  /* Lighter font weight for elegance */
  letter-spacing: 0.05em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  /* Smaller, more discreet subtitle */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}

/* --- HEADER --- */
.site-header {
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-8));
  max-width: var(--container-width);
  z-index: 50;
  background-color: transparent;
  height: 80px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  position: fixed;
  background-color: rgba(230, 218, 205, 0.85);
  /* Semi-transparent beige */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo-img {
  max-height: 80px;
  /* Sizing the new EA logo */
  margin: -10px 0;
  /* Bleed slightly outside the 80px header */
  object-fit: contain;
  transition: transform var(--duration-slow);
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--space-12);
}

.nav-link {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--color-black);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-black);
  transition: width var(--duration-normal) var(--ease-luxury);
}

.nav-link:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-8);
}

.icon-btn {
  color: var(--color-black);
  position: relative;
  transition: transform var(--duration-fast);
}

.icon-btn:hover {
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--color-black);
  color: var(--color-bg-primary);
  font-size: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

/* --- PRODUCT CARDS (Creative Arch Layouts) --- */
.product-card {
  position: relative;
  text-align: center;
  margin-bottom: var(--space-8);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  /* Replaced tall arch with standard high-fashion proportion */
  overflow: hidden;
  margin-bottom: var(--space-6);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-luxury);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

/* Sold Out Overlay */
.product-card.sold-out .product-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(230, 218, 205, 0.7);
  /* Beige wash */
  z-index: 5;
}

.sold-out-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-black);
  color: var(--color-bg-primary);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  z-index: 10;
  white-space: nowrap;
}

.new-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-bg-primary);
  color: var(--color-black);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
}

.discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
}

.product-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-2);
}

.product-price {
  font-family: var(--font-script);
  color: var(--color-text-secondary);
  font-size: var(--text-2xl);
  /* Make price feel like a signature */
}

/* --- CATEGORY SECTION OVERRIDES --- */
.category-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  /* Softer rectangle */
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  /* Slightly squarer than product images for category highlights */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  /* Remove border for airy Velaa look */
  transition: transform var(--duration-normal) var(--ease-luxury), box-shadow var(--duration-normal);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.category-card-title {
  font-size: var(--text-5xl);
  margin-bottom: 0.5rem;
  font-family: var(--font-script);
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-black);
}

.category-card-subtitle {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.category-card img {
  opacity: 0.8;
  transition: all var(--duration-slow);
}

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

/* --- FOOTER --- */
.site-footer {
  background-color: var(--color-bg-primary);
  color: var(--color-black);
  padding: var(--space-32) 0 var(--space-12);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* Huge script text fading into background for elegant footer */
.site-footer::before {
  content: 'Atelier';
  font-family: var(--font-script);
  font-size: 30vw;
  color: rgba(58, 35, 24, 0.03);
  position: absolute;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-16);
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-8);
  color: var(--color-black);
  font-weight: 600;
}

.footer-links a {
  opacity: 0.6;
  font-size: var(--text-sm);
  transition: opacity var(--duration-fast);
}

.footer-links a:hover {
  opacity: 1;
}

/* --- FORMS --- */
input,
select,
textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  background-color: transparent;
  color: var(--color-black);
  border-radius: 0;
  transition: border-color var(--duration-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-secondary);
  font-weight: 300;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* --- MOBILE NAV --- */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --section-spacing: 5rem;
    --text-script-hero: 7rem;
    --text-script-large: 4rem;
  }

  .site-header {
    width: calc(100% - var(--space-4));
    top: var(--space-2);
    padding: 0 var(--space-4);
    height: 70px;
  }

  /* Stack Hero Section */
  .hero-section {
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2);
    padding-bottom: var(--space-12);
  }

  .hero-script {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-slideshow {
    position: absolute;
    width: calc(100% - var(--space-4));
    height: calc(100% - var(--space-4));
    left: var(--space-2);
    top: var(--space-2);
    border-radius: var(--radius-lg);
    margin: 0;
  }

  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    text-align: center;
    max-width: 100%;
    padding: 0 var(--space-4);
  }

  .mobile-flex-col {
    flex-direction: column;
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Retain 2-column for products on mobile */
  .grid.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4) !important;
  }

  .product-image-wrapper {
    border-radius: var(--radius-md);
    /* Softer arch on mobile */
  }

  /* Hide huge footer script on mobile to avoid overflow */
  .site-footer::before {
    display: none;
  }

  .script-overlay {
    display: none !important;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}