/*
Theme Name: Miss Adaei
Theme URI: https://missadaei.com/
Author: Miss Adaei
Description: Editorial luxury WooCommerce theme for Miss Adaei — beautiful things should have secrets.
Version: 3.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: miss-adaei
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&family=Pinyon+Script&display=swap');

/* ==========================================================================
   1. BRAND DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  --adaei-cream: #FAF6F0;
  --adaei-espresso: #1A1412;
  --adaei-gold: #D4AF37;
  --adaei-blush: #E8B4B8;
  --adaei-pearl: #F4EBE1;
  --adaei-border: rgba(212, 175, 55, 0.48);
  --adaei-dark-border: rgba(26, 20, 18, 0.15);
  
  --adaei-serif: "Cormorant Garamond", Georgia, serif;
  --adaei-sans: "Inter", Arial, sans-serif;
  --adaei-script: "Pinyon Script", cursive;
  
  --adaei-max: 1440px;
  --adaei-reading: 760px;
  --adaei-shadow: 0 20px 60px rgba(26, 20, 18, 0.10);
}

/* ==========================================================================
   2. ACCESSIBILITY & GLOBAL RESETS
   ========================================================================== */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--adaei-cream);
  color: var(--adaei-espresso);
  font-family: var(--adaei-sans) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* Accessibility Skip Link */
.adaei-skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--adaei-espresso);
  color: var(--adaei-cream);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.adaei-skip-link:focus { top: 0; }

/* ==========================================================================
   3. LAYOUT & UTILITIES
   ========================================================================== */
.adaei-container { width: min(calc(100% - 48px), var(--adaei-max)); margin-inline: auto; }
.adaei-section { padding: clamp(72px, 9vw, 150px) 0; }
.adaei-kicker { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.adaei-script { font-family: var(--adaei-script) !important; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; color: var(--adaei-gold); }
.adaei-title, h1, h2, h3, h4 { font-family: var(--adaei-serif) !important; font-weight: 500; line-height: .94; letter-spacing: -.025em; }
.adaei-title-xl { font-size: clamp(3.7rem, 8vw, 9rem); }
.adaei-title-lg { font-size: clamp(2.8rem, 5vw, 5.8rem); }
.adaei-title-md { font-size: clamp(2rem, 3.5vw, 3.7rem); }
.adaei-lead { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 620px; }
.adaei-gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--adaei-gold), transparent); border: 0; }

main#main { 
  position: relative; 
  z-index: 1; 
  padding-top: 40px; 
}

/* Button Components */
.adaei-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--adaei-espresso);
  background: var(--adaei-espresso); color: var(--adaei-cream);
  text-transform: uppercase; letter-spacing: .16em; font-size: .65rem; font-weight: 500;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.adaei-btn:hover { transform: translateY(-2px); }
.adaei-btn--gold { background: var(--adaei-gold); border-color: var(--adaei-gold); color: var(--adaei-espresso); }
.adaei-btn--ghost { background: transparent; color: var(--adaei-espresso); }
.adaei-btn--ghost:hover { background: var(--adaei-espresso); color: var(--adaei-cream); }
.adaei-btn--light { background: var(--adaei-cream); color: var(--adaei-espresso); border-color: var(--adaei-cream); }

/* ==========================================================================
   4. NAVIGATION & HEADER (GEOMETRIC & BASELINE ALIGNED)
   ========================================================================== */
.adaei-announcement { 
  background: var(--adaei-espresso); 
  color: var(--adaei-cream); 
  overflow: hidden; 
  white-space: nowrap; 
}
.adaei-ticker { 
  min-height: 30px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: .60rem; 
  letter-spacing: .18em; 
  text-transform: uppercase; 
  font-weight: 400;
}

.adaei-site-header { 
  position: sticky !important; 
  top: 0 !important; 
  z-index: 9999 !important; 
  background: var(--adaei-cream, #FAF6F0) !important; 
  border-bottom: 1px solid rgba(26, 20, 18, .08); 
  width: 100%;
}

body.admin-bar .adaei-site-header { top: 32px !important; }

/* Two Row Container Setup */
.adaei-nav-two-row {
  display: flex;
  flex-direction: column;
  padding: 15px 0 12px;
}

/* Top Row: Grid-Based Centering with Baseline Alignment */
.adaei-header-top-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: flex-end !important;
  width: 100%;
}

.adaei-nav-left-top {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-bottom: 6px !important;
}
.adaei-nav-left-top a {
  margin-right: 28px !important; 
}

.adaei-nav-center { 
  display: flex !important; 
  justify-content: center !important; 
  align-items: center !important;
}

.adaei-nav-actions { 
  display: flex !important; 
  align-items: center !important; 
  gap: 22px !important; 
  justify-content: flex-end !important;
  padding-bottom: 6px !important;
}

/* Bottom Row: Centered Navigation */
.adaei-header-bottom-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 20, 18, 0.05);
}

.adaei-nav-links { 
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
  gap: 36px !important; 
  white-space: nowrap !important;
}

/* Unified Navigation Links & Actions */
.adaei-nav-link, 
.adaei-icon-btn, 
.adaei-currency {
  font-family: var(--adaei-sans) !important;
  font-size: 0.62rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
  color: var(--adaei-espresso) !important;
  border: 0;
  background: none;
  padding: 4px 0;
  margin: 0;
  line-height: 1 !important;
  transition: color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
}

.adaei-nav-link:hover, 
.adaei-icon-btn:hover {
  color: var(--adaei-gold) !important;
}

.adaei-currency {
  opacity: 0.8;
  cursor: default;
}

/* Center Logo Block */
.adaei-logo { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  gap: 6px;
  text-decoration: none;
}

.adaei-logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(26, 20, 18, 0.06));
}

.adaei-logo-text {
  font-family: var(--adaei-serif) !important;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--adaei-espresso);
  line-height: 1;
}

.adaei-logo:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   5. HOMEPAGE SECTIONS
   ========================================================================== */
.adaei-hero { min-height: calc(100vh - 175px); position: relative; display: grid; align-items: end; overflow: hidden; background: #302724; color: #fff; margin-top: -40px; }
.adaei-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.adaei-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.68)); }
.adaei-hero-content { position: relative; z-index: 1; padding: clamp(70px, 9vw, 130px) 0 70px; max-width: 1000px; }
.adaei-hero .adaei-title { color: #fff; }
.adaei-hero .adaei-lead { color: rgba(255, 255, 255, .9); }
.adaei-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Interactive Reveal Slider */
.adaei-reveal { background: var(--adaei-pearl); }
.adaei-reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.adaei-reveal-stage { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #ddd; }
.adaei-reveal-stage img { width: 100%; height: 100%; object-fit: cover; }
.adaei-reveal-stage .reveal-layer { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.adaei-reveal-stage .reveal-layer img { position: absolute; inset: 0; }
.adaei-reveal-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(26, 20, 18, .15); z-index: 3; pointer-events: none; }
.adaei-reveal-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid #fff; background: var(--adaei-cream); color: var(--adaei-espresso); z-index: 4; display: grid; place-items: center; font-size: .8rem; }
.adaei-reveal-range { position: absolute; inset: 0; opacity: 0; z-index: 5; width: 100%; cursor: ew-resize; }
.adaei-reveal-copy { padding: clamp(40px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.adaei-state-labels { display: flex; justify-content: space-between; font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; margin-top: 14px; }

/* Product Collection Grid */
.adaei-collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adaei-product-card { position: relative; overflow: hidden; }
.adaei-product-media { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--adaei-pearl); }
.adaei-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .7s ease; }
.adaei-product-media .is-open { opacity: 0; }
.adaei-product-card:hover .is-open { opacity: 1; }
.adaei-product-card:hover .is-closed { opacity: 0; transform: scale(1.03); }
.adaei-product-meta { padding: 15px 0 5px; }
.adaei-product-name { font-family: var(--adaei-serif) !important; font-size: 1.45rem; }
.adaei-product-price { font-size: .78rem; }

/* Lexicon */
.adaei-lexicon { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.adaei-definition { border-top: 1px solid var(--adaei-gold); padding: 24px 0; }
.adaei-definition strong { font-family: var(--adaei-serif) !important; font-size: 2rem; font-weight: 500; }
.adaei-definition em { color: #765b58; }

/* Lookbook & Hotspots */
.adaei-lookbook { position: relative; min-height: 720px; background: #d6c5b7; overflow: hidden; }
.adaei-lookbook > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adaei-hotspot { position: absolute; z-index: 2; width: 28px; height: 28px; border: 1px solid #fff; border-radius: 50%; background: var(--adaei-gold); box-shadow: 0 0 0 7px rgba(255, 255, 255, .35); }
.adaei-hotspot--one { left: 27%; top: 57%; }
.adaei-hotspot--two { left: 64%; top: 43%; }
.adaei-hotspot--three { left: 76%; top: 67%; }
.adaei-hotspot-card { position: absolute; z-index: 3; width: min(310px, calc(100vw - 40px)); padding: 22px; background: var(--adaei-cream); box-shadow: var(--adaei-shadow); display: none; }
.adaei-hotspot-card.is-open { display: block; }

/* Anatomy Grid */
.adaei-anatomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--adaei-gold); }
.adaei-anatomy-card { padding: 35px 28px; border-right: 1px solid var(--adaei-border); }
.adaei-anatomy-card:last-child { border-right: 0; }
.adaei-anatomy-number { font-family: var(--adaei-serif) !important; font-size: 3rem; color: var(--adaei-gold); }

/* Manifesto */
.adaei-manifesto { background: var(--adaei-espresso); color: var(--adaei-cream); overflow: hidden; }
.adaei-manifesto-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }

/* ==========================================================================
   6. SLIDE-OUT CART DRAWER & MODALS
   ========================================================================== */
.adaei-drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.adaei-drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s; }
.adaei-drawer-panel { position: absolute; top: 0; right: 0; width: min(480px, 100%); height: 100%; background: var(--adaei-cream); transform: translateX(100%); transition: transform .35s; padding: 30px; overflow: auto; }
.adaei-drawer.is-open { pointer-events: auto; }
.adaei-drawer.is-open .adaei-drawer-backdrop { opacity: 1; }
.adaei-drawer.is-open .adaei-drawer-panel { transform: none; }

.adaei-search-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(26, 20, 18, .55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.adaei-search-modal.is-open { opacity: 1; pointer-events: auto; }
.adaei-search-panel { background: var(--adaei-cream); width: min(800px, 100%); margin: 8vh auto 0; padding: 35px; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.adaei-footer { 
  background: #110d0c; 
  color: var(--adaei-cream); 
  padding: 85px 0 40px; 
  border-top: 1px solid var(--adaei-border);
}

.adaei-footer-grid { 
  display: grid; 
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.3fr; 
  gap: 50px; 
  align-items: start;
}

/* Column 1: Brand */
.adaei-footer-logo-wrap img {
  max-height: 72px;
  width: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.25));
}

.adaei-footer-tagline {
  font-family: var(--adaei-serif) !important;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: var(--adaei-cream);
  font-weight: 500;
}

.adaei-footer-sub {
  font-size: 0.75rem;
  opacity: 0.65;
  margin: 0;
  letter-spacing: 0.04em;
}

/* Headings */
.adaei-footer-heading {
  font-family: var(--adaei-serif) !important;
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
  color: var(--adaei-cream);
}

/* Nav Links */
.adaei-footer-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.adaei-footer-menu li {
  margin-bottom: 18px;
}

.adaei-footer-menu a {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--adaei-cream);
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.adaei-footer-menu a:hover {
  opacity: 1;
  color: var(--adaei-gold);
}

/* Column 4: Newsletter */
.adaei-newsletter-desc {
  font-size: 0.78rem;
  opacity: 0.7;
  line-height: 1.5;
  margin-bottom: 22px;
}

.adaei-newsletter {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adaei-newsletter input[type="email"] {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(250, 246, 240, 0.3) !important;
  border-radius: 0 !important;
  color: var(--adaei-cream) !important;
  font-family: var(--adaei-sans) !important;
  font-size: 0.78rem !important;
  padding: 10px 0 !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
  box-shadow: none !important;
}

.adaei-newsletter input[type="email"]::placeholder {
  color: rgba(250, 246, 240, 0.75) !important;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.adaei-newsletter input[type="email"]:focus {
  border-bottom-color: var(--adaei-gold) !important;
}

.adaei-newsletter-btn {
  width: 100% !important;
  background: transparent !important;
  border: 1px solid var(--adaei-gold) !important;
  color: var(--adaei-gold) !important;
  font-family: var(--adaei-sans) !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
  padding: 12px 20px !important;
  min-height: 44px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  margin-top: 6px;
}

.adaei-newsletter-btn:hover {
  background: var(--adaei-gold) !important;
  color: var(--adaei-espresso) !important;
}

/* Copyright Bottom Bar */
.adaei-footer-bottom {
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid rgba(250, 246, 240, 0.1);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS & MOBILE LUXURY HEADER (v3.1.0)
   ========================================================================== */

/* Tablet Optimization (Max Width: 1000px) */
@media (max-width: 1000px) {
  .adaei-header-bottom-row { display: none !important; }
  .adaei-nav-two-row { padding: 10px 0; }
  .adaei-logo img { max-height: 60px; }
  .adaei-logo-text { font-size: 0.8rem; letter-spacing: 0.22em; }
  .adaei-nav-left-top a { margin-right: 16px !important; font-size: 0.58rem !important; }
  .adaei-nav-actions { gap: 14px !important; }
  .adaei-nav-link, .adaei-icon-btn, .adaei-currency { font-size: 0.58rem !important; letter-spacing: 0.16em !important; }
  
  .adaei-collection-grid { grid-template-columns: repeat(2, 1fr); }
  .adaei-footer { padding: 60px 0 30px; }
  .adaei-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .adaei-lexicon, .adaei-manifesto-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 782px) {
  body.admin-bar .adaei-site-header { top: 46px !important; }
}

/* Mobile Luxury Header Optimization (Max Width: 680px) */
@media (max-width: 680px) {
  .adaei-container { width: min(calc(100% - 24px), var(--adaei-max)); }
  main#main { padding-top: 15px; }
  .adaei-nav-two-row { padding: 10px 0 8px; }
  
  /* Mobile 3-Column Luxury Header Bar */
  .adaei-header-top-row {
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
  }
  
  /* Hide text links on left, keep only first link as clean Menu Trigger */
  .adaei-nav-left-top { padding-bottom: 0 !important; }
  .adaei-nav-left-top a:nth-child(n+2) { display: none !important; } 
  .adaei-nav-left-top a:first-child {
    margin-right: 0 !important;
    font-size: 0.60rem !important;
    letter-spacing: 0.18em !important;
    font-weight: 500 !important;
  }
  
  /* Centered Mobile Logo */
  .adaei-logo img { max-height: 44px; }
  .adaei-logo-text { font-size: 0.70rem; letter-spacing: 0.20em; }
  
  /* Right Actions: Keep only Search and Bag for clean mobile balance */
  .adaei-nav-actions { padding-bottom: 0 !important; gap: 12px !important; }
  .adaei-currency,
  .adaei-nav-actions a[href*="cart"] { display: none !important; } /* Hide EUR and redundant text links on mobile */
  .adaei-nav-actions button { font-size: 0.60rem !important; letter-spacing: 0.18em !important; }

  /* Homepage Grids Mobile */
  .adaei-reveal-grid { grid-template-columns: 1fr; }
  .adaei-anatomy-grid { grid-template-columns: 1fr; }
  .adaei-anatomy-card { border-right: 0; border-bottom: 1px solid var(--adaei-border); padding: 25px 15px; }
  
  /* Mobile Footer Single Column Stacking */
  .adaei-footer { padding: 45px 0 25px; }
  .adaei-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .adaei-footer-logo-wrap img { max-height: 50px; margin-bottom: 10px; }
  .adaei-footer-tagline { font-size: 1.25rem; }
  .adaei-footer-heading { font-size: 1.10rem; margin-bottom: 14px; }
  .adaei-footer-menu li { margin-bottom: 10px; }
  .adaei-footer-bottom { 
    margin-top: 35px; 
    padding-top: 18px; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 6px; 
    font-size: 0.58rem; 
  }
}