/* ============================================================
   Moroccan Treasures — modern premium theme
   Deep teal & warm gold, photographic hero, zellige accents.
   Fonts: Fraunces (display) + Inter (UI) via Google Fonts,
   with graceful system fallbacks if the fonts fail to load.
   ============================================================ */
:root {
  --teal-950: #03211d;
  --teal-900: #04302a;
  --teal-800: #063f37;
  --teal-700: #0a5247;
  --teal-600: #0e6a5b;
  --teal-soft: #e8f1ed;
  --gold: #c9a24b;
  --gold-light: #e6c96c;
  --gold-dark: #96771f;
  --gold-soft: #f6ecd2;
  --ink: #1e2a26;
  --body-text: #41514b;
  --muted: #71817a;
  --page-bg: #faf7f0;
  --card-bg: #ffffff;
  --border: #e7dfca;
  --wa: #1da851;
  --wa-dark: #148040;
  --radius: 22px;
  --shadow-card: 0 1px 2px rgba(30, 42, 38, 0.04), 0 10px 30px rgba(30, 42, 38, 0.07);
  --shadow-card-hover: 0 2px 4px rgba(30, 42, 38, 0.05), 0 24px 48px rgba(6, 63, 55, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1'%3E%3Cpath d='M36 8 L46 26 L64 36 L46 46 L36 64 L26 46 L8 36 L26 26 Z'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3Cpath d='M0 0 L12 12 M72 0 L60 12 M0 72 L12 60 M72 72 L60 60'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(201, 162, 75, 0.35); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

a { color: var(--teal-700); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(201, 162, 75, 0.65);
  outline-offset: 2px;
}

img { max-width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 43, 37, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(201, 162, 75, 0.45);
  box-shadow: 0 6px 24px rgba(3, 33, 29, 0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 11px; padding-bottom: 11px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 47px; height: 47px; border-radius: 13px; object-fit: cover;
  border: 1.5px solid rgba(230, 201, 108, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 18px rgba(230, 190, 80, 0.28);
}
.brand-name {
  color: #fff; font-family: var(--font-display); font-size: 1.32rem;
  font-weight: 600; letter-spacing: 0.01em;
}
.brand-name .gold { color: var(--gold-light); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  color: #e9f2ee; text-decoration: none; font-weight: 600; font-size: 0.96rem;
  transition: color 0.18s ease;
}
.header-nav a:hover { color: var(--gold-light); }
.header-nav a.btn { color: #fff; }
.header-nav a.btn:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-family: var(--font-body);
  padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 1rem; line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-large { padding: 15px 32px; font-size: 1.03rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 58%, #b18c34 100%);
  color: #261b02;
  box-shadow: 0 10px 26px rgba(201, 162, 75, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201, 162, 75, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-wa {
  background: linear-gradient(135deg, #23bd5f 0%, var(--wa) 55%, var(--wa-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 168, 81, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29, 168, 81, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-small:hover { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  padding: 92px 0 118px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(102deg, rgba(3, 36, 31, 0.95) 0%, rgba(4, 47, 41, 0.87) 42%, rgba(4, 47, 41, 0.48) 70%, rgba(3, 32, 28, 0.66) 100%),
    url("assets/hero.jpg") center 36% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  background: linear-gradient(to bottom, rgba(250, 247, 240, 0), var(--page-bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 72px 72px; opacity: 0.07;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 680px; }
.hero-logo-frame {
  position: relative; width: 176px; height: 176px; margin-bottom: 34px;
}
.hero-logo-frame::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 196, 84, 0.5) 0%, rgba(238, 196, 84, 0) 65%);
  filter: blur(6px);
}
.hero-logo {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  border-radius: 38px;
  border: 2px solid rgba(230, 201, 108, 0.95);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(230, 201, 108, 0.14);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light);
}
.hero-eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.55rem, 5.6vw, 4.15rem);
  line-height: 1.06; letter-spacing: -0.01em;
  margin: 0 0 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(120deg, #f2dd9a, var(--gold-light) 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-light);
}
.tagline {
  max-width: 580px; margin: 0 0 32px;
  font-size: 1.14rem; line-height: 1.68; color: rgba(255, 255, 255, 0.88);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; font-size: 0.93rem; color: rgba(255, 255, 255, 0.66); }

/* ---------- Perks ---------- */
.perks { padding: 36px 0 4px; }
.perks-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.perk {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 19px 21px; box-shadow: var(--shadow-card);
}
.perk-icon {
  flex: none; width: 47px; height: 47px; padding: 11px;
  color: var(--gold-dark); background: var(--gold-soft);
  border: 1px solid #eee0ba; border-radius: 14px;
}
.perk-title { margin: 1px 0 3px; font-weight: 700; font-size: 0.99rem; color: var(--ink); }
.perk-text { margin: 0; font-size: 0.89rem; line-height: 1.5; color: var(--muted); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.section-eyebrow {
  margin: 0 0 10px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-dark);
}
.section-head .section-eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.section-head .section-eyebrow::before,
.section-head .section-eyebrow::after {
  content: ""; width: 38px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head .section-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.95rem, 3.6vw, 2.6rem); line-height: 1.12;
  color: var(--teal-900); margin: 0 0 12px;
}
.section-title-left { text-align: left; }
.section-sub { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--muted); }

/* ---------- Shop ---------- */
.shop { padding: 58px 0 26px; }
.controls {
  position: sticky; top: 84px; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 12px 32px rgba(30, 42, 38, 0.08);
  padding: 18px;
}
.search-box { position: relative; }
.search-icon {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #a2946f; pointer-events: none;
}
.search-box input {
  width: 100%; padding: 15px 18px 15px 48px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 15px; background: #fffdf8;
  outline: none; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-box input::placeholder { color: #9aa79f; }
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.18);
}
/* ---------- Header menu: categories dropdown + mobile nav ---------- */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: #e9f2ee;
  border: 1px solid rgba(201, 162, 75, 0.45);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-dropdown { position: relative; }
.nav-link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #e9f2ee; font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
  transition: color 0.18s ease;
}
.nav-link-btn:hover { color: var(--gold-light); }
.nav-link-btn .caret { font-size: 0.72rem; margin-left: 2px; }
.dropdown-panel {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%); min-width: 238px; padding: 8px; z-index: 70;
  background: rgba(4, 43, 37, 0.98); border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 15px; box-shadow: 0 18px 44px rgba(3, 33, 29, 0.45);
}
.nav-dropdown.open .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 9.5px 13px; border-radius: 9px;
  color: #e9f2ee; font-size: 0.94rem; white-space: nowrap;
}
.dropdown-panel a:hover { background: rgba(201, 162, 75, 0.14); color: var(--gold-light); }
.dropdown-panel a.active { color: var(--gold-light); background: rgba(201, 162, 75, 0.16); }

/* ---------- Social / contact icons ---------- */
.soc-icon { width: 17px; height: 17px; vertical-align: -3px; margin-right: 8px; }
.soc-inline { color: var(--gold-light); }
.btn-icon { width: 16px; height: 16px; flex: none; }
.result-count { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 20px 0 2px; }

/* ---------- Product cards ---------- */
.grid {
  display: grid; gap: 26px; padding: 20px 0 42px;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
}
.card {
  background: var(--card-bg); border: 1px solid #eae2cd; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card-media {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, #f3edda, #e9e1cb);
}
.card-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(4, 35, 31, 0), rgba(4, 35, 31, 0.14));
  pointer-events: none;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover .card-img { transform: scale(1.07); }
.card-price-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #eed88f 0%, var(--gold-light) 45%, var(--gold) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 20px rgba(38, 27, 2, 0.3);
  color: #2a1e02; font-weight: 800; font-size: 1.04rem; letter-spacing: 0.01em;
}
.card-body { padding: 19px 21px 21px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dark);
}
.card-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; line-height: 1.28; color: var(--ink); margin: 1px 0 0;
}
.card-weight { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.card-desc { color: var(--body-text); font-size: 0.92rem; line-height: 1.62; margin: 0; flex: 1; }
.card-foot { margin-top: 13px; }
.card-foot .btn { width: 100%; border-radius: 13px; padding: 12.5px 16px; font-size: 0.94rem; }
.card-foot .btn:hover { transform: translateY(-1px); }

.empty-state { text-align: center; padding: 48px 20px 60px; color: var(--muted); }
.empty-title {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  color: var(--teal-900); margin: 0 0 8px;
}
.empty-state .btn { margin-top: 16px; }

/* ---------- About ---------- */
.about {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, #f4edda 0%, #efe5cd 100%);
  padding: 76px 0; margin-top: 30px;
  border-top: 1px solid #e3d5ae;
}
.about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 72px 72px; opacity: 0.05;
}
.about-inner {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: 58px; align-items: center;
}
.about-media { position: relative; margin: 0; padding: 0 16px 16px 0; }
.about-media img {
  display: block; width: 100%;
  aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 30%;
  border-radius: 26px; border: 1px solid rgba(150, 119, 31, 0.35);
  outline: 2px solid rgba(201, 162, 75, 0.55); outline-offset: 13px;
  box-shadow: 0 30px 60px rgba(43, 32, 4, 0.28);
}
.about-media figcaption {
  margin-top: 30px; text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 0.98rem; color: #7a6740;
}
.about-copy .section-eyebrow { display: flex; align-items: center; gap: 14px; }
.about-copy .section-eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--gold); border-radius: 2px; }
.about-copy p { font-size: 1.03rem; line-height: 1.75; color: #37463f; }
.about-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.about-points li {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e7dcc0; border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 6px 18px rgba(43, 32, 4, 0.07); font-size: 0.98rem; color: #37463f;
}
.about-points strong { color: var(--teal-900); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, var(--teal-900) 0%, var(--teal-950) 100%);
  color: #d7e7e1; padding: 58px 0 0;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 72px 72px; opacity: 0.05;
}
.footer-inner {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 38px;
  padding-bottom: 8px;
}
.footer-logo {
  width: 96px; height: 96px; border-radius: 24px; object-fit: cover;
  border: 2px solid rgba(230, 201, 108, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 26px rgba(230, 190, 80, 0.22);
}
.footer-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: #fff; margin: 14px 0 3px;
}
.footer-tag { margin: 0; color: #a9c6bf; font-size: 0.95rem; line-height: 1.55; }
.site-footer h3 {
  font-family: var(--font-display); font-weight: 600;
  color: var(--gold-light); margin: 6px 0 14px; font-size: 1.08rem; letter-spacing: 0.01em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.96rem; }
.site-footer a {
  color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent; transition: color 0.18s ease, border-color 0.18s ease;
}
.site-footer a:hover { color: var(--gold-light); border-bottom-color: rgba(230, 201, 108, 0.6); }
.footer-legal {
  text-align: center; color: #84a89f; font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  margin: 38px 0 0; padding: 18px 14px 22px;
}

/* ---------- Tablets ---------- */
@media (max-width: 1020px) {
  .about-inner { gap: 40px; }
  .perks-inner { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 88px; }
  .hero-logo-frame { width: 138px; height: 138px; margin-bottom: 28px; }
  .hero-logo { border-radius: 30px; }
  .hero h1 { font-size: 2.35rem; }
  .tagline { font-size: 1.04rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .nav-toggle { display: inline-flex; }
  .header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(4, 43, 37, 0.98); padding: 12px 16px 16px;
    border-bottom: 1px solid rgba(201, 162, 75, 0.45);
    box-shadow: 0 24px 44px rgba(3, 33, 29, 0.4);
  }
  .header-nav.nav-open { display: flex; }
  .header-nav > a, .header-nav .nav-link-btn { padding: 11px 8px; text-align: left; width: 100%; }
  .header-nav a.btn { margin-top: 8px; justify-content: center; }
  .nav-dropdown { width: 100%; }
  .dropdown-panel {
    position: static; transform: none; min-width: 0; box-shadow: none;
    border: 0; background: rgba(255, 255, 255, 0.05); margin: 2px 0 6px;
  }
  .brand-name { font-size: 1.12rem; }
  .brand-logo { width: 41px; height: 41px; border-radius: 11px; }
  .controls { top: 74px; padding: 14px; border-radius: 17px; }
  .shop { padding: 44px 0 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(163px, 1fr)); gap: 14px; padding-top: 16px; }
  .card { border-radius: 18px; }
  .card-body { padding: 13px 14px 15px; gap: 5px; }
  .card-name { font-size: 1rem; }
  .card-desc { font-size: 0.84rem; line-height: 1.55; }
  .card-price-badge { top: 10px; right: 10px; padding: 5px 11px; font-size: 0.92rem; }
  .card-foot { margin-top: 10px; }
  .card-foot .btn { padding: 10.5px 10px; font-size: 0.84rem; border-radius: 11px; }
  .about { padding: 54px 0; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; margin: 0 auto; width: 100%; }
  .about-media img { aspect-ratio: 4 / 3.4; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-img, .btn { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-img { transform: none; }
}

/* ---------- Header actions: language flags + cart (2026-11-20) ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch {
  display: flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(201, 162, 75, 0.4);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer; line-height: 1;
  font-size: 1.02rem; padding: 5px 7px; border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lang-btn:hover { transform: translateY(-1px); }
.lang-btn.active { background: rgba(230, 201, 108, 0.92); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 9px 16px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; color: #261b02;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 58%, #b18c34 100%);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cart-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #b3261e; color: #fff; font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--teal-900);
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 33, 29, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed; top: 0; inset-inline-end: 0; z-index: 90;
  width: min(420px, 94vw); height: 100dvh;
  background: var(--page-bg); color: var(--ink);
  display: flex; flex-direction: column; padding: 18px 18px 20px;
  box-shadow: -18px 0 44px rgba(3, 33, 29, 0.35);
  transform: translateX(106%); transition: transform 0.32s cubic-bezier(0.2, 0.6, 0.2, 1);
  overflow-y: auto;
}
[dir="rtl"] .cart-drawer { transform: translateX(-106%); box-shadow: 18px 0 44px rgba(3, 33, 29, 0.35); }
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; color: var(--teal-900);
}
.cart-close {
  border: 0; background: none; cursor: pointer; font-size: 1.9rem; line-height: 1;
  color: var(--muted); padding: 2px 8px;
}
.ship-progress { margin-top: 12px; }
.ship-msg { margin: 0 0 7px; font-size: 0.9rem; font-weight: 700; color: var(--teal-700); }
.ship-bar { height: 8px; border-radius: 99px; background: var(--teal-soft); overflow: hidden; }
.ship-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width 0.35s ease;
}
.cart-items { display: flex; flex-direction: column; gap: 11px; margin: 16px 0; }
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 10px;
}
.cart-thumb { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; flex: none; }
.cart-info { flex: 1; min-width: 0; }
.cart-item-name { margin: 0; font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.cart-item-price { margin: 3px 0 7px; font-weight: 800; color: var(--gold-dark); font-size: 0.95rem; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 27px; height: 27px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--teal-soft);
  font-weight: 800; font-size: 1rem; line-height: 1; color: var(--teal-800);
}
.qty-num { font-weight: 800; min-width: 18px; text-align: center; }
.qty-remove {
  margin-inline-start: auto; border: 0; background: none; cursor: pointer;
  color: #b3261e; font-weight: 600; font-size: 0.85rem; font-family: var(--font-body);
}
.cart-empty { text-align: center; color: var(--muted); margin: 26px 0; }
.cart-totals { border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.tot-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.97rem; }
.tot-grand { font-size: 1.13rem; font-weight: 800; color: var(--teal-900); }
.cart-checkout { width: 100%; margin-top: 13px; }
.cart-checkout:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.cart-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: var(--teal-900); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 999px; box-shadow: 0 16px 38px rgba(3, 33, 29, 0.4);
}

/* ---------- Reviews ---------- */
.reviews { padding: 64px 0 6px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 21px 22px; box-shadow: var(--shadow-card);
}
.review-stars { margin: 0 0 9px; color: var(--gold); font-size: 1.12rem; letter-spacing: 2.5px; }
.review-text { margin: 0 0 11px; color: var(--body-text); line-height: 1.62; }
.review-meta { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.reviews-empty { text-align: center; color: var(--muted); margin: 4px 0 0; }
.review-form {
  max-width: 780px; margin: 32px auto 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 25px 26px; box-shadow: var(--shadow-card);
}
.review-form h3 {
  margin: 0 0 15px; font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; color: var(--teal-900);
}
.review-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.review-form .form-row { display: grid; grid-template-columns: 1fr 1fr 0.65fr; gap: 14px; margin-bottom: 14px; }
.review-form input, .review-form select, .review-form textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fffdf8; color: var(--ink);
}
.review-form textarea { resize: vertical; }
.review-form .btn { margin-top: 15px; }
.form-note { font-size: 0.83rem; color: var(--muted); margin: 11px 0 0; }
.form-status { font-weight: 700; color: var(--teal-700); margin: 9px 0 0; min-height: 1.2em; }

/* ---------- RTL tweaks ---------- */
[dir="rtl"] .about-points li { border-left: 1px solid #e7dcc0; border-right: 4px solid var(--gold); }
[dir="rtl"] .section-title-left { text-align: right; }
[dir="rtl"] .search-icon { left: auto; right: 17px; }
[dir="rtl"] .search-box input { padding: 15px 48px 15px 18px; }
[dir="rtl"] .soc-icon { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .hero-eyebrow::before { order: 2; }

@media (max-width: 720px) {
  .review-form .form-row { grid-template-columns: 1fr; }
  .cart-label { display: none; }
  .cart-btn { padding: 9px 12px; }
  .lang-btn { font-size: 0.95rem; padding: 4px 6px; }
  .brand-name { display: none; }
}

/* ---------- Logo motion: gentle sway + golden glow (2026-11-20) ---------- */
@keyframes logoSway {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(230, 190, 80, 0.25); }
  50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 26px rgba(230, 190, 80, 0.6); }
}
.brand-logo { animation: logoSway 6s ease-in-out infinite, logoGlow 3.2s ease-in-out infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero-logo-frame::after {
  content: ""; position: absolute; inset: -11px; border-radius: 46px; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 250deg, rgba(230, 201, 108, 0.9) 305deg, transparent 360deg);
  animation: ringSpin 7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo, .hero-logo-frame::after { animation: none; }
}

/* ---------- Header repair v3 (2026-11-20): clean mobile panel, no overflow ---------- */
html, body { overflow-x: clip; }
.cart-count[hidden] { display: none !important; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; gap: 8px; }
  .header-nav {
    position: fixed; top: 66px; left: 10px; right: 10px; z-index: 75;
    border: 1px solid rgba(201, 162, 75, 0.55); border-radius: 16px;
    padding: 10px 12px 12px;
  }
  .hero-logo-frame::after { inset: -7px; border-radius: 42px; }
}
@media (max-width: 720px) {
  .hero-bg { background-position: 76% 30%; }
}

/* ---------- Header/logo direction v5 (2026-11-20, Hassan) ---------- */
/* No logo in the phone header; hero carries the branding there. */
@media (max-width: 720px) {
  .brand { display: none; }
}
/* Desktop: bigger logo, tighter menu spacing. */
@media (min-width: 721px) {
  .brand-logo { width: 60px; height: 60px; border-radius: 15px; }
  .header-inner { gap: 10px; }
  .header-nav { gap: 14px; }
}
/* Rotating gold ring around the hero logo: RESTORED 2026-11-20 (Hassan loves the moving effect — do not remove). */

/* ---------- Desktop header v8 (2026-11-20, Hassan): logo only, no title text ---------- */
.brand-name { display: none; }

/* PWA install */
.store-badge { margin-top: 14px; display: inline-flex; align-items: center; gap: 11px; background: #000; border: 1px solid #a6a6a6; border-radius: 9px; padding: 7px 16px 8px 10px; cursor: pointer; text-align: left; }
.store-badge:hover { border-color: var(--gold); }
.store-badge-icon { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge-text small { color: #d8d8d8; font: 400 0.62rem "Inter", sans-serif; letter-spacing: 0.02em; }
.store-badge-text strong { color: #fff; font: 600 1.08rem "Inter", sans-serif; }
.install-hint { margin-top: 10px; font-size: 0.85rem; line-height: 1.5; color: #bcd2cb; max-width: 300px; }

/* ---------- Film section (2026-11-20): promo video before the shop ---------- */
.film { padding: 64px 0 8px; }
.film-frame {
  max-width: 430px; margin: 26px auto 0; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(201, 162, 75, 0.65);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(201, 162, 75, 0.08);
  background: #000;
}
.film-video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.film-note { text-align: center; margin-top: 14px; color: var(--muted, #9db8b2); font-size: 0.9rem; }

/* Film welcome heading (Hassan, 2026-11-20): trilingual welcome, big caps, Moroccan-flag red */
@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
.film-welcome {
  font-family: "Cinzel", "Amiri", serif;
  font-size: clamp(2.4rem, 9vw, 4.3rem);
  font-weight: 700; letter-spacing: 0.06em; line-height: 1.15;
  color: #C1272D;
  text-shadow: 0 2px 14px rgba(193, 39, 45, 0.35), 0 1px 0 rgba(0, 0, 0, 0.45);
  margin: 0; text-align: center;
}
.film-welcome .fw-dot { color: #C9A227; font-size: 0.45em; vertical-align: 0.45em; margin: 0 0.35em; text-shadow: none; }
