/*
Theme Name:  Elaazar Child
Theme URI:   https://elaazar.com
Description: Elaazar brand child theme for Astra
Author:      Elaazar
Template:    astra
Version:     1.0.0
*/

/* ============================================
   ELAAZAR BRAND STYLESHEET
   Palette: Ivory · Sand · Mocha · Charcoal · Sage · Peach
   Mood: Zara Home × Miniso × Korean Boutique
   ============================================ */

:root {
  --ivory:   #F4F0EB;
  --sand:    #DCCBB8;
  --mocha:   #B89E88;
  --charcoal:#2B2B2B;
  --sage:    #A8B2A1;
  --peach:   #D9A38F;
  --white:   #FFFFFF;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
}

/* === BASE === */
body { background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: 15px; line-height: 1.7; margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--charcoal); }
a { color: var(--charcoal); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
#masthead, .site-header { background: var(--ivory) !important; border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 100; }
.ast-site-header-wrap { padding: 0 !important; }
.ast-primary-header-bar { padding: 0 24px !important; min-height: 68px !important; max-width: 1180px; margin: 0 auto; }
.site-title a, .ast-site-branding-container .site-title a { font-family: var(--serif) !important; font-size: 26px !important; font-weight: 600 !important; letter-spacing: 0.08em !important; color: var(--charcoal) !important; text-transform: uppercase; }
.ast-nav-menu > li > a { font-family: var(--sans) !important; font-size: 13px !important; letter-spacing: 0.06em !important; text-transform: uppercase; color: var(--charcoal) !important; padding: 8px 14px !important; }
.ast-nav-menu > li > a:hover { color: var(--mocha) !important; }

/* === BUTTONS === */
.btn-primary, .elaazar-btn-primary {
  display: inline-block; background: var(--charcoal); color: var(--white) !important;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 14px 32px; border: 1.5px solid var(--charcoal);
  cursor: pointer; transition: all 0.25s ease;
}
.btn-primary:hover, .elaazar-btn-primary:hover { background: transparent; color: var(--charcoal) !important; }
.btn-outline, .elaazar-btn-outline {
  display: inline-block; background: transparent; color: var(--charcoal) !important;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 14px 32px; border: 1.5px solid var(--charcoal);
  cursor: pointer; transition: all 0.25s ease;
}
.btn-outline:hover, .elaazar-btn-outline:hover { background: var(--charcoal); color: var(--white) !important; }

/* === HERO === */
.elaazar-hero {
  background: var(--ivory);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 60px;
  max-width: 1180px;
  margin: 0 auto;
}
.elaazar-hero-text { max-width: 520px; }
.elaazar-hero-tag { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mocha); margin-bottom: 20px; display: block; }
.elaazar-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.08; margin: 0 0 24px; font-weight: 500; }
.elaazar-hero p { font-size: 16px; color: #5a5a5a; line-height: 1.75; max-width: 400px; margin-bottom: 40px; }
.elaazar-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.elaazar-hero-visual {
  background: var(--sand);
  border-radius: 4px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.soap-scene { position: relative; width: 320px; height: 320px; }
.soap-ball {
  position: absolute;
  border-radius: 50%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}
.soap-strawberry-1 { width: 130px; height: 130px; background: radial-gradient(circle at 35% 35%, #f8b8b8, #e07070); top: 20px; left: 30px; }
.soap-strawberry-2 { width: 100px; height: 100px; background: radial-gradient(circle at 35% 35%, #f9c8c8, #d96060); bottom: 60px; right: 20px; }
.soap-grape-1 { width: 110px; height: 110px; background: radial-gradient(circle at 35% 35%, #d4b8f0, #9b6bd4); top: 60px; right: 40px; }
.soap-grape-2 { width: 85px; height: 85px; background: radial-gradient(circle at 35% 35%, #c8aae8, #8b5cc8); bottom: 30px; left: 80px; }
.soap-peach { width: 95px; height: 95px; background: radial-gradient(circle at 35% 35%, #f5c8b0, #d9907a); bottom: 110px; left: 10px; }
.soap-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; }
.soap-dot-1 { background: var(--peach); opacity: 0.4; top: 10px; right: 80px; }
.soap-dot-2 { background: var(--sage); opacity: 0.4; bottom: 20px; left: 30px; width: 12px; height: 12px; }
.soap-dot-3 { background: var(--mocha); opacity: 0.3; top: 50%; left: 5px; }

/* === SECTION SHARED === */
.elaazar-section { padding: 80px 24px; }
.elaazar-section-header { text-align: center; margin-bottom: 56px; }
.elaazar-section-header .section-tag { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mocha); display: block; margin-bottom: 12px; }
.elaazar-section-header h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; font-weight: 500; }

/* === CATEGORIES === */
.elaazar-categories { background: var(--white); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.category-card { position: relative; overflow: hidden; cursor: pointer; }
.category-card-inner { background: var(--ivory); padding: 40px 24px; text-align: center; transition: transform 0.3s ease; border: 1px solid var(--sand); }
.category-card:hover .category-card-inner { transform: translateY(-4px); }
.category-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.cat-soaps .category-icon { background: linear-gradient(135deg, #f8b8b8, #e07070); }
.cat-gifts .category-icon { background: linear-gradient(135deg, #d4b8f0, #9b6bd4); }
.cat-home .category-icon { background: linear-gradient(135deg, #b8d4b8, var(--sage)); }
.cat-accessories .category-icon { background: linear-gradient(135deg, var(--sand), var(--mocha)); }
.category-icon svg { width: 32px; height: 32px; fill: white; }
.category-card h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.category-card p { font-size: 13px; color: #888; margin: 0; }

/* === PRODUCTS === */
.elaazar-products { background: var(--ivory); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; }
.product-card { background: var(--white); border: 1px solid var(--sand); transition: box-shadow 0.3s ease; }
.product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.product-img { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.product-img-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.product-badge { position: absolute; top: 14px; left: 14px; background: var(--sage); color: white; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; }
.product-info { padding: 20px; }
.product-info h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 6px; }
.product-info .price { font-family: var(--sans); font-size: 15px; color: var(--charcoal); font-weight: 500; }
.product-info .add-btn { margin-top: 14px; width: 100%; text-align: center; padding: 11px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--charcoal); color: white; border: none; cursor: pointer; font-family: var(--sans); transition: background 0.2s; }
.product-info .add-btn:hover { background: var(--mocha); }

/* === BRAND STORY === */
.elaazar-story { background: var(--charcoal); color: var(--white); text-align: center; padding: 100px 24px; }
.elaazar-story h2 { font-size: clamp(36px, 5vw, 56px); color: var(--sand); margin: 0 0 24px; font-weight: 500; }
.elaazar-story p { font-size: 17px; color: #bbb; max-width: 580px; margin: 0 auto 40px; line-height: 1.8; }
.elaazar-story .btn-outline { border-color: var(--sand); color: var(--sand) !important; }
.elaazar-story .btn-outline:hover { background: var(--sand); color: var(--charcoal) !important; }

/* === PALETTE SECTION === */
.elaazar-palette { background: var(--white); padding: 80px 24px; }
.palette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.palette-swatch { text-align: center; }
.swatch-color { height: 80px; border-radius: 4px; margin-bottom: 12px; }
.swatch-name { font-family: var(--sans); font-size: 12px; font-weight: 500; display: block; margin-bottom: 4px; }
.swatch-hex { font-family: var(--sans); font-size: 11px; color: #999; }

/* === FOOTER === */
.elaazar-footer { background: var(--charcoal); color: var(--sand); padding: 60px 24px 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.footer-brand .brand-sub { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mocha); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #888; max-width: 280px; line-height: 1.7; }
.footer-links h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mocha); margin-bottom: 20px; font-weight: 500; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 14px; color: #888; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid #3a3a3a; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: #666; margin: 0; }
.footer-tagline { font-family: var(--serif); font-size: 15px; color: var(--mocha); font-style: italic; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .elaazar-hero { grid-template-columns: 1fr; padding: 60px 24px; min-height: auto; gap: 48px; }
  .elaazar-hero-visual { min-height: 320px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .palette-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .elaazar-hero-btns { flex-direction: column; }
  .palette-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   SAGE GREEN TOUCHES
   ============================================ */

/* 1. Thin sage accent bar at top of page */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--sage);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* 2. Navbar — sage underline on active/hover nav links */
.ast-nav-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a {
  color: var(--charcoal) !important;
  border-bottom: 2px solid var(--sage) !important;
  padding-bottom: 6px !important;
}

/* 3. All section tags → sage instead of mocha */
.elaazar-hero-tag,
.elaazar-section-header .section-tag,
.footer-links h4 {
  color: var(--sage) !important;
}

/* 4. Hero outline button → sage border & text, charcoal fill on hover */
.elaazar-btn-outline {
  border-color: var(--sage) !important;
  color: var(--sage) !important;
}
.elaazar-btn-outline:hover {
  background: var(--sage) !important;
  color: var(--white) !important;
  border-color: var(--sage) !important;
}

/* 5. Categories section background — soft sage wash */
.elaazar-categories {
  background: #f2f4f1 !important;
}
.cat-soaps .category-icon { background: linear-gradient(135deg, #f8c8c8, #e07070); }
.cat-gifts .category-icon { background: linear-gradient(135deg, #d4b8f0, #9b6bd4); }
.cat-home .category-icon { background: linear-gradient(135deg, #c0cbb8, var(--sage)); }
.cat-accessories .category-icon { background: linear-gradient(135deg, var(--sand), var(--mocha)); }

/* 6. Product card — sage left border on hover */
.product-card {
  border-left: 3px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-left-color: var(--sage);
}

/* 7. Footer tagline → sage */
.footer-tagline {
  color: var(--sage) !important;
}

/* 8. Palette section — sage swatch has a subtle ring */
.palette-swatch:nth-child(5) .swatch-color {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--sage);
}

/* 9. Brand story section — sage tinted "Our Story" button */
.elaazar-story .elaazar-btn-outline {
  border-color: var(--sage) !important;
  color: var(--sage) !important;
}
.elaazar-story .elaazar-btn-outline:hover {
  background: var(--sage) !important;
  color: var(--white) !important;
}
