/*
Theme Name: AUREL
Theme URI: https://aurel.ma
Author: AUREL
Description: Luxury Supplement Brand — Gummies Premium — Morocco COD — RTL
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: aurel
Tags: woocommerce, luxury, supplement, cod, morocco, rtl
*/

/* ============================================================
   DESIGN TOKENS — AUREL LUXURY SYSTEM
   ============================================================ */
:root {
  /* Core palette — "Fx Healthy Luxury" 2026 */
  --black:    #2B2620;   /* Dark brown-black — texte principal (بدل الأسود القاسي) */
  --ivory:    #F7F1E8;   /* Warm cream — الأساس النظيف الصحي */
  --gold:     #C69B3C;   /* Luxury gold — اللمسة الفاخرة */
  --gold-lt:  #D4AF37;   /* Lighter gold */
  --brown:    #6F4E37;   /* Mocha brown — فخامة ترابية */
  --sage:     #7C8471;   /* Sage green — طبيعي صحي (accent) */

  /* Neutrals warm */
  --n1:  #FBF7F0;   /* near-cream bg */
  --n2:  #EAE1D3;   /* light warm border */
  --n3:  #C9BEA9;   /* muted warm */
  --n4:  #7A6F5D;   /* subtle warm text */
  --white: #FFFFFF;
  --dark-bg: #362F27; /* خلفية داكنة دافئة (بدل الأسود) للأقسام */

  /* Fonts */
  --font-h:  'Cormorant Garamond', 'Amiri', Georgia, serif;
  --font-b:  'Jost', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Tajawal', 'Jost', sans-serif;

  --max-w:   1280px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur:     0.3s;
}

/* ============================================================
   RTL BASE
   ============================================================ */
html { direction: rtl; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-ar);
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
  background: var(--n1);
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: opacity var(--dur) var(--ease); }
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--font-ar); cursor: pointer; }
ul, ol { list-style: none; }
/* Numbers stay LTR */
.ltr, .price, .price-main, .price-old { direction: ltr; unicode-bidi: embed; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: var(--dark-bg);
  box-shadow: 0 1px 0 rgba(198,155,60,0.2);
}
.site-header.dark-hero { color: var(--ivory); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
}
.site-logo {
  font-family: var(--font-h); font-size: 1.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: currentColor;
}
.site-logo .dot { color: var(--gold); }
.site-nav { display: flex; gap: 2rem; font-size: 13px; letter-spacing: 0.05em; }
.site-nav a { font-weight: 500; opacity: 0.85; }
.site-nav a:hover { opacity: 1; color: var(--gold); }
.header-actions { display: flex; align-items: center; justify-content: flex-start; gap: 1.25rem; }
.header-cart {
  display: flex; align-items: center; gap: 0.4rem; font-size: 13px;
  color: currentColor;
}
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: all var(--dur); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--dark-bg); color: var(--ivory);
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-nav a { font-family: var(--font-h); font-size: 2rem; color: var(--ivory); }
.mobile-nav a:hover { color: var(--gold); }
.close-nav {
  position: absolute; top: 1.5rem; left: var(--gutter); background: none;
  border: none; color: var(--ivory); font-size: 2.5rem; line-height: 1;
  width: 44px; height: 44px; cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 2.25rem; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; border: 1px solid; border-radius: 2px;
  transition: all var(--dur) var(--ease); white-space: nowrap; cursor: pointer;
  font-family: var(--font-ar);
}
.btn-gold {
  background: var(--gold); color: var(--black); border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); opacity: 1; }
.btn-dark {
  background: var(--dark-bg); color: var(--ivory); border-color: var(--dark-bg);
}
.btn-dark:hover { background: var(--brown); border-color: var(--brown); opacity: 1; }
.btn-outline-gold {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--black); opacity: 1; }
.btn-outline-light {
  background: transparent; color: var(--ivory); border-color: rgba(244,234,222,0.4);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
.btn-full { width: 100%; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--dark-bg); color: var(--ivory);
}
.hero-bg {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: 0.4;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(198,155,60,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-h); font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500; line-height: 1.02; letter-spacing: 0.01em; margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 16px; color: rgba(244,234,222,0.75); max-width: 440px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--dark-bg); color: var(--ivory); padding: 1rem var(--gutter); border-top: 1px solid rgba(198,155,60,0.15); }
.trust-inner { max-width: var(--max-w); margin: 0 auto; display: flex; gap: 2.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 13px; color: rgba(244,234,222,0.85); white-space: nowrap; }
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 6rem var(--gutter); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; text-align: center; }
.section-title { font-family: var(--font-h); font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; line-height: 1.1; text-align: center; margin-bottom: 1rem; }
.section-sub { font-size: 15px; color: var(--n4); text-align: center; max-width: 560px; margin: 0 auto 3.5rem; line-height: 1.8; }

/* ============================================================
   PRODUCTS GRID (Homepage / Collection)
   ============================================================ */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.product-card {
  background: var(--white); border: 1px solid var(--n2); border-radius: 4px;
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(10,10,10,0.1); }
.product-card-img { position: relative; aspect-ratio: 1/1; background: var(--n1); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-tag {
  position: absolute; top: 0.85rem; right: 0.85rem; background: var(--gold);
  color: var(--black); font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 2px;
}
.product-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card-benefit { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.product-card-name { font-family: var(--font-h); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.product-card-desc { font-size: 13px; color: var(--n4); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.product-card-price { display: flex; align-items: baseline; gap: 0.5rem; }
.price-main { font-size: 1.35rem; font-weight: 700; color: var(--black); }
.price-old { font-size: 0.95rem; color: var(--n3); text-decoration: line-through; }

/* ============================================================
   BENEFITS / WHY SECTION
   ============================================================ */
.benefits { background: var(--dark-bg); color: var(--ivory); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; max-width: var(--max-w); margin: 0 auto; }
.benefit-item { text-align: center; }
.benefit-icon {
  width: 56px; height: 56px; margin: 0 auto 1.25rem; border: 1px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.benefit-title { font-family: var(--font-h); font-size: 1.35rem; margin-bottom: 0.5rem; }
.benefit-text { font-size: 13px; color: rgba(244,234,222,0.6); line-height: 1.7; }

/* ============================================================
   BRAND STORY
   ============================================================ */
.brand-story { background: var(--ivory); }
.bs-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.bs-mark { font-family: var(--font-h); font-size: 4rem; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.bs-title { font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin-bottom: 1.5rem; line-height: 1.15; }
.bs-body { font-size: 16px; color: var(--brown); line-height: 1.9; }

/* ============================================================
   PRODUCT PAGE (Landing style)
   ============================================================ */
.pdp { padding-top: 68px; }
.pdp-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.pdp-gallery { position: relative; overflow: hidden; background: var(--n1); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pdpg-track { position: absolute; inset: 0; display: flex; height: 100%; transition: transform 0.45s var(--ease); will-change: transform; }
.pdpg-track.dragging { transition: none; }
.pdpg-slide { flex: 0 0 100%; min-width: 100%; height: 100%; position: relative; }
.pdpg-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pdpg-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(244,234,222,0.9); color: var(--black); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(10,10,10,0.15); }
.pdpg-prev { right: 1rem; } .pdpg-next { left: 1rem; }
.pdpg-dots { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 0.45rem; padding: 0.4rem 0.7rem; background: rgba(10,10,10,0.3); border-radius: 20px; }
.pdpg-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(244,234,222,0.5); cursor: pointer; padding: 0; transition: all var(--dur); }
.pdpg-dot.active { background: var(--gold); width: 20px; border-radius: 4px; }

.pdp-info { padding: 3.5rem 3rem; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.pdp-brand { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.pdp-name { font-family: var(--font-h); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.05; margin-bottom: 0.5rem; }
.pdp-tagline { font-size: 15px; color: var(--n4); margin-bottom: 1.5rem; }
.pdp-price-block { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--n2); }
.pdp-price { font-size: 2rem; font-weight: 700; }
.pdp-price-old { font-size: 1.15rem; color: var(--n3); text-decoration: line-through; }
.pdp-cod-badge { font-size: 11px; background: var(--n1); color: var(--n4); padding: 0.3rem 0.7rem; border: 1px solid var(--n2); border-radius: 2px; }

/* Benefits list */
.pdp-benefits { margin-bottom: 2rem; }
.pdp-benefit-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; font-size: 14px; color: var(--brown); }
.pdp-benefit-row svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

.pdp-cta { margin-bottom: 1rem; }

/* Meta accordion */
.pdp-meta { margin-top: 2rem; border-top: 1px solid var(--n2); }
.meta-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--n2); font-size: 14px; cursor: pointer; font-weight: 500; }
.meta-chevron { color: var(--gold); transition: transform var(--dur); }
.meta-row.open .meta-chevron { transform: rotate(180deg); }
.meta-content { display: none; padding: 0.5rem 0 1.25rem; font-size: 13px; color: var(--n4); line-height: 1.8; }
.meta-row.open + .meta-content { display: block; }

/* ============================================================
   ORDER SECTION (COD)
   ============================================================ */
.order-sec { background: var(--ivory); padding: 5rem var(--gutter); }
.order-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.order-left h2 { font-family: var(--font-h); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; margin-bottom: 0.75rem; }
.order-guarantee { background: var(--white); padding: 1.25rem; border-right: 2px solid var(--gold); margin: 1.5rem 0; }
.order-guarantee p { font-size: 13px; color: var(--n4); line-height: 1.7; }
.order-guarantee strong { color: var(--black); }
.order-steps { margin-top: 1.5rem; }
.order-step { display: flex; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--n2); align-items: flex-start; }
.order-step:last-child { border-bottom: none; }
.order-step-num { width: 28px; height: 28px; background: var(--gold); color: var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.order-step-text { font-size: 13px; color: var(--n4); line-height: 1.6; }
.order-step-text strong { color: var(--black); font-weight: 600; }

.order-form { background: var(--white); padding: 2rem; border: 1px solid var(--n2); border-radius: 4px; }
.order-form h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem; }
.order-summary { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--n1); margin-bottom: 1.5rem; border-radius: 3px; }
.order-summary img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; border-radius: 3px; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 12px; letter-spacing: 0.05em; color: var(--n4); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--n2); background: var(--white);
  font-family: var(--font-ar); font-size: 15px; color: var(--black); border-radius: 3px;
  -webkit-appearance: none; appearance: none; transition: border-color var(--dur);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--n3); opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark-bg); color: var(--ivory); padding: 4rem var(--gutter) 2.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(244,234,222,0.1); margin-bottom: 2rem; }
.footer-brand-name { font-family: var(--font-h); font-size: 1.75rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
.footer-brand-name .dot { color: var(--gold); }
.footer-brand-desc { font-size: 13px; color: rgba(244,234,222,0.55); line-height: 1.8; }
.footer-col-title { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(244,234,222,0.4); margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(244,234,222,0.7); margin-bottom: 0.75rem; }
.footer-col a:hover { color: var(--gold); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(244,234,222,0.3); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 1.75rem; left: 1.75rem; z-index: 90;
  width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.1); opacity: 1; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.order-success { display: none; text-align: center; padding: 2rem 0; }
.order-success .check { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--gold); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pdp-hero { grid-template-columns: 1fr; }
  .pdp-gallery { aspect-ratio: 1/1; max-height: 500px; }
  .order-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .section { padding: 4rem var(--gutter); }
  .products-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .pdp-info { padding: 2.5rem 1.5rem; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}