/*
Theme Name: Salwa Luxury Perfumes
Theme URI: https://salwasperfumes.local/
Author: Antigravity Team
Description: A bespoke luxury e-commerce theme for Salwa Air Freshener & Perfumes.
Version: 2.0.0
Text Domain: salwa-luxury
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors — Warm Ivory Palette */
  --color-bg:            #F9F6F0;
  --color-bg-alt:        #F4EFEB;
  --color-bg-warm:       #F0EBE3;
  --color-surface:       #FFFFFF;
  --color-surface-warm:  #FCFAF6;
  --color-surface-glass: rgba(249, 246, 240, 0.85);

  /* Champagne / Muted Gold */
  --color-gold:          #C5A880;
  --color-gold-dark:     #A9875A;
  --color-gold-light:    #F0EAE0;
  --color-gold-border:   rgba(197, 168, 128, 0.2);
  --color-gold-glow:     rgba(197, 168, 128, 0.12);

  /* Deep Charcoal */
  --color-charcoal:      #1A1715;
  --color-charcoal-warm: #2A2520;
  --color-charcoal-soft: #3A3530;

  /* Text */
  --color-text:          #1A1715;
  --color-text-body:     #4A4540;
  --color-text-muted:    #8A8480;
  --color-text-subtle:   #B0AAA4;

  /* Borders */
  --color-border:        rgba(26, 23, 21, 0.08);
  --color-border-warm:   rgba(197, 168, 128, 0.18);

  /* Functional */
  --color-success:       #3A7D44;
  --color-error:         #C4453C;
  --color-whatsapp:      #1A1715;

  /* Typography — Cairo Only */
  --font: 'Cairo', sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-md:   1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */

  /* Spacing Scale (8px grid) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows — Atmospheric & Warm */
  --shadow-xs:    0 1px 2px rgba(26, 23, 21, 0.04);
  --shadow-sm:    0 2px 8px rgba(26, 23, 21, 0.04);
  --shadow-md:    0 4px 16px rgba(26, 23, 21, 0.06);
  --shadow-lg:    0 8px 32px rgba(26, 23, 21, 0.06);
  --shadow-xl:    0 16px 48px rgba(26, 23, 21, 0.08);
  --shadow-floor: 0 30px 60px -20px rgba(26, 23, 21, 0.12);
  --shadow-gold:  0 4px 20px rgba(197, 168, 128, 0.15);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   200ms;
  --duration-normal: 350ms;
  --duration-slow:   500ms;

  /* Layout */
  --container-max: 1320px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Lenis Smooth Scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Selection */
::selection {
  background: var(--color-gold);
  color: #fff;
}

/* ==========================================================================
   3. TYPOGRAPHY SYSTEM — CAIRO ONLY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }
h5 { font-size: var(--text-lg); font-weight: 600; }
h6 { font-size: var(--text-md); font-weight: 600; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--color-text); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-smooth);
}

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

ul, ol { list-style: none; }

/* Label / Eyebrow */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

/* ==========================================================================
   4. CONTAINER & LAYOUT
   ========================================================================== */
.salwa-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-gap {
  padding: var(--space-32) 0;
}

.section-gap-sm {
  padding: var(--space-20) 0;
}

/* ==========================================================================
   5. BUTTON SYSTEM
   ========================================================================== */

/* Shared Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--duration-normal) var(--ease-smooth),
    color var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-smooth);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Primary Button — Deep Charcoal */
.btn-primary {
  background: var(--color-charcoal);
  color: #FFFFFF;
  border-color: var(--color-charcoal);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-smooth);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary i,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

/* Secondary Button — Outlined */
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  transform: translateY(-1px);
}

/* Gold Accent Button — Use Sparingly */
.btn-gold {
  background: var(--color-gold);
  color: #FFFFFF;
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* WhatsApp Button — Branded */
.btn-whatsapp {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-whatsapp:hover {
  border-color: var(--color-charcoal);
  background: var(--color-charcoal);
  color: #FFFFFF;
}

/* Text Link */
.link-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.link-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.link-text:hover {
  color: var(--color-gold-dark);
}

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

/* Button Sizes */
.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

/* Icon in button */
.btn i, .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-lg i, .btn-lg svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-32);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, var(--color-gold-glow) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-16);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero-title em {
  color: var(--color-gold-dark);
  font-style: normal;
  font-weight: 700;
}

.hero-text {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: var(--space-10);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  padding-top: var(--space-10);
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  background:
    linear-gradient(165deg, var(--color-surface) 0%, var(--color-surface-warm) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border-warm);
  box-shadow: var(--shadow-floor);
  transition: transform var(--duration-slow) var(--ease-out);
  transform-style: preserve-3d;
}

.hero-product-frame img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Floor shadow under hero product */
.hero-floor-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(197, 168, 128, 0.2) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  bottom: var(--space-8);
  left: calc(-1 * var(--space-6));
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-warm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 4;
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-icon i, .hero-badge-icon svg {
  width: 18px;
  height: 18px;
}

.hero-badge-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.hero-badge-text small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ==========================================================================
   8. BRAND INTRODUCTION
   ========================================================================== */
.brand-intro {
  padding: var(--space-32) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brand-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.brand-statement {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.brand-statement em {
  font-style: normal;
  color: var(--color-gold-dark);
}

.brand-desc {
  font-size: var(--text-md);
  color: var(--color-text-body);
  line-height: 1.9;
  max-width: 480px;
}

.brand-desc::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   9. SECTION HEADERS
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-header .eyebrow {
  margin-bottom: var(--space-3);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

/* ==========================================================================
   10. TRUST STRIP
   ========================================================================== */
.trust-strip {
  padding: var(--space-10) 0;
  background: var(--color-bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.trust-icon i, .trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-item:hover .trust-icon {
  background: var(--color-gold);
  color: #fff;
}

.trust-item h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   11. PRODUCT CARDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

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

/* Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Card Image */
.product-card-image {
  position: relative;
  background:
    linear-gradient(180deg, var(--color-surface-warm) 0%, var(--color-bg-alt) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--duration-slow) var(--ease-out);
}

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

/* Card Badges */
.card-badges {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 2;
}

.card-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.card-badge-dark {
  background: rgba(26, 23, 21, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
}

.card-badge-gold {
  background: var(--color-gold);
  color: #fff;
}

/* Card Hover Actions */
.card-hover-actions {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-out);
  z-index: 3;
}

.product-card:hover .card-hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}

.card-action-btn i, .card-action-btn svg {
  width: 16px;
  height: 16px;
}

.card-action-btn:hover {
  background: var(--color-charcoal);
  color: #fff;
  border-color: var(--color-charcoal);
}

/* Champagne accent line on hover */
.product-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--color-gold);
  transition:
    left var(--duration-normal) var(--ease-out),
    right var(--duration-normal) var(--ease-out);
}

.product-card:hover .product-card-image::after {
  left: var(--space-6);
  right: var(--space-6);
}

/* Card Content */
.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0 var(--space-2);
}

.product-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-1);
}

.product-card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.product-card-title a {
  color: inherit;
}

.product-card-title a:hover {
  color: var(--color-gold-dark);
}

.product-card-notes {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.product-card-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.product-card-price small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

/* ==========================================================================
   12. FILTER PILLS
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
}

.filter-pill {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-body);
  cursor: pointer;
  transition:
    all var(--duration-normal) var(--ease-smooth);
}

.filter-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.filter-pill.active {
  background: var(--color-charcoal);
  color: #FFFFFF;
  border-color: var(--color-charcoal);
}

/* ==========================================================================
   13. STORY / ABOUT SECTION
   ========================================================================== */
.story-section {
  background: var(--color-charcoal);
  color: #fff;
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.story-section .eyebrow {
  color: var(--color-gold);
}

.story-section h2 {
  color: #fff;
  margin-bottom: var(--space-5);
}

.story-section p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.story-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.story-feature {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.story-feature-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.story-feature h4 {
  color: #fff;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.story-feature p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.story-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.story-image-wrap img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   14. FRAGRANCE PYRAMID
   ========================================================================== */
.pyramid-section {
  padding: var(--space-32) 0;
  background: var(--color-bg-alt);
}

.pyramid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.pyramid-layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pyramid-layer {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border-right: 3px solid var(--color-gold);
  background: var(--color-bg);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.pyramid-layer:hover {
  transform: translateX(-4px);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.pyramid-layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.pyramid-layer-header h4 {
  font-size: var(--text-base);
}

.pyramid-layer-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold-dark);
  background: var(--color-gold-light);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.pyramid-layer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pyramid-product-card {
  background: var(--color-surface-warm);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  text-align: center;
}

.pyramid-product-card img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.pyramid-product-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.pyramid-product-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* ==========================================================================
   15. CATEGORIES SECTION
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  text-decoration: none;
  display: block;
}

.category-card:hover {
  border-color: var(--color-gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   16. SCENT FINDER CTA
   ========================================================================== */
.scent-cta-section {
  padding: var(--space-24) 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* ==========================================================================
   17. FINAL CTA
   ========================================================================== */
.final-cta {
  padding: var(--space-32) 0;
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.final-cta h2 {
  margin-bottom: var(--space-4);
}

.final-cta p {
  color: var(--color-text-muted);
  font-size: var(--text-md);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   19. MODALS (QUICK VIEW + SCENT FINDER)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 21, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-smooth),
    visibility var(--duration-normal) var(--ease-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border-warm);
  transform: scale(0.96) translateY(8px);
  transition:
    transform var(--duration-slow) var(--ease-out),
    opacity var(--duration-normal) var(--ease-smooth);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.modal-close:hover {
  background: var(--color-charcoal);
  color: #fff;
}

/* Quick View Content */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  padding: var(--space-8);
  align-items: center;
}

.quick-view-image {
  background: var(--color-surface-warm);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
}

.quick-view-image img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.quick-view-info .eyebrow {
  margin-bottom: var(--space-2);
}

.quick-view-info h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.quick-view-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.quick-view-notes {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border-warm);
}

.quick-view-notes strong {
  color: var(--color-gold-dark);
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--space-1);
}

.quick-view-notes p {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.6;
}

.quick-view-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Scent Finder */
.scent-finder-header {
  text-align: center;
  padding: var(--space-8) var(--space-8) 0;
}

.scent-finder-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.scent-finder-header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.scent-quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.quiz-option-btn {
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: right;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.quiz-option-btn:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.quiz-option-btn .quiz-title {
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.quiz-option-btn .quiz-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.scent-quiz-results {
  padding: 0 var(--space-8) var(--space-8);
  border-top: 1px solid var(--color-border);
  margin: 0 var(--space-8);
  padding-top: var(--space-5);
}

.scent-quiz-results h4 {
  font-size: var(--text-md);
  color: var(--color-gold-dark);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   20. FLOATING ACTIONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 9990;
}

.btn-float-wa {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-charcoal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-smooth);
  border: none;
}

.btn-float-wa:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-float-wa i, .btn-float-wa svg {
  width: 24px;
  height: 24px;
}

.btn-scroll-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-scroll-top:hover {
  background: var(--color-charcoal);
  color: #fff;
  border-color: var(--color-charcoal);
}

.btn-scroll-top i, .btn-scroll-top svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   25. ANIMATION HELPERS
   ========================================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Reveal helpers for GSAP — visible by default for graceful degradation */
.reveal-up {
  opacity: 1;
  transform: none;
}

.reveal-fade {
  opacity: 1;
}

/* ==========================================================================
   26. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .product-card:hover { transform: none; }
  .product-card:hover .product-card-image img { transform: none; }
}

/* ==========================================================================
   27. RESPONSIVE — FULL CASCADE
   ========================================================================== */

/* Tablet Landscape */
@media (max-width: 1280px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: var(--text-4xl); }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual { order: -1; }
  .hero-product-frame { max-width: 340px; margin: 0 auto; }
  .hero-badge { display: none; }

  .brand-intro-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .brand-desc { margin: 0 auto; }
  .brand-desc::before { margin: 0 auto var(--space-6); }

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

  .story-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .pyramid-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

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

  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* Tablet Portrait / Large Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .mobile-menu-overlay {
    top: calc(var(--header-height) + 33px);
  }

  .hero { padding: var(--space-10) 0 var(--space-16); }
  .hero-title { font-size: var(--text-3xl); }
  .hero-stats { gap: var(--space-6); flex-wrap: wrap; }

  .section-gap { padding: var(--space-20) 0; }

  .trust-grid { grid-template-columns: 1fr 1fr; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .scent-quiz-grid { grid-template-columns: 1fr; }

  .modal-box { max-width: 100%; }

  .product-details h1 { font-size: var(--text-3xl); }

  .product-price-main { font-size: var(--text-3xl); }
}

/* Mobile */
@media (max-width: 480px) {
  .salwa-container { padding: 0 var(--space-5); }

  .hero-title { font-size: var(--text-2xl); }
  .hero-text { font-size: var(--text-base); }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn { width: 100%; }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }

  .hero-product-frame { max-width: 280px; }

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

  .product-card-image { padding: var(--space-3); }

  .product-card-title { font-size: var(--text-sm); }
  .product-card-price { font-size: var(--text-md); }
  .product-card-notes { display: none; }

  .card-hover-actions { display: none; }

  .trust-grid { grid-template-columns: 1fr; }

  .categories-grid { grid-template-columns: 1fr; }

  .section-gap { padding: var(--space-16) 0; }

  .product-info-badges { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2); }

  .filter-bar { gap: var(--space-2); }
  .filter-pill { font-size: var(--text-xs); padding: 6px 14px; }

  .btn { padding: 12px 24px; }
  .btn-lg { padding: 14px 28px; }
}

/* Small Mobile */
@media (max-width: 390px) {
  .hero-title { font-size: 1.6rem; }

  .products-grid { gap: var(--space-3); }

  .product-card-image { padding: var(--space-2); }

  .product-card-footer { flex-direction: column; gap: var(--space-2); align-items: flex-start; }

  .footer-contact-phone { font-size: var(--text-sm); }
}

@media (max-width: 360px) {
  .salwa-container { padding: 0 var(--space-4); }

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

  .product-card-notes { display: block; }
  .card-hover-actions { display: none; }
}
