/* ========== GLOBAL.CSS ========== */
/* This file contains all styles that are identical across every page of ZARINA.
   Link it in the <head> of each HTML file after any page‑specific CSS. */

/* ----- CSS VARIABLES (apothecary palette) ----- */
:root {
  --warm-beige: #FCF8F0;
  --ivory: #FEF7E8;
  --forest-green: #2F5D3A;      /* deep natural green */
  --sage: #7B9C6E;              /* soft sage accent */
  --gold: #C6A43F;
  --dark-gold: #AA862E;
  --black-rich: #1F1E1A;
  --off-white: #FFFEF9;
  --shadow: 0 12px 28px -8px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.2,0.9,0.4,1.1);
  --header-height: 78px;
  --announcement-height: 0px;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'Tajawal', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.06rem;
  --text-lg: 1.18rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.35rem;
  --text-hero: 3.65rem;
}

html[data-theme="dark"] {
  --warm-beige: #111510;
  --ivory: #171C15;
  --forest-green: #A8C89C;
  --sage: #8FAE7D;
  --gold: #D8B94D;
  --dark-gold: #B99736;
  --black-rich: #F5EFE2;
  --off-white: #181D16;
  --shadow: 0 18px 38px -14px rgba(0,0,0,0.65);
}

/* ----- RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--warm-beige);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--black-rich);
  line-height: 1.65;
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: hidden;
  scroll-padding-top: var(--header-height);
}

img,
video,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(198, 164, 63, 0.45);
  outline-offset: 3px;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ----- FIXED HEADER (shared storefront) ----- */
body:has(> header:not(.admin-header)) {
  padding-top: calc(var(--header-height) + var(--announcement-height));
}

body:has(> header:not(.admin-header)) * {
  letter-spacing: 0 !important;
}

body:has(> header:not(.admin-header)) p,
body:has(> header:not(.admin-header)) li {
  font-size: var(--text-base);
  line-height: 1.75;
}

body:has(> header:not(.admin-header)) small {
  font-size: var(--text-sm);
  line-height: 1.55;
}

body:has(> header:not(.admin-header)) h1 {
  font-size: var(--text-hero);
}

body:has(> header:not(.admin-header)) h2,
body:has(> header:not(.admin-header)) .section-title {
  font-size: var(--text-3xl);
}

body:has(> header:not(.admin-header)) h3 {
  font-size: var(--text-2xl);
}

body:has(> header:not(.admin-header)) .product-card h3,
body:has(> header:not(.admin-header)) .remedy-card h3,
body:has(> header:not(.admin-header)) .value-card h3,
body:has(> header:not(.admin-header)) .contact-card h3 {
  font-size: var(--text-xl);
  line-height: 1.25;
}

body:has(> header:not(.admin-header)) .product-card p,
body:has(> header:not(.admin-header)) .remedy-card p,
body:has(> header:not(.admin-header)) .value-card p,
body:has(> header:not(.admin-header)) .contact-card p,
body:has(> header:not(.admin-header)) .faq-item p {
  font-size: var(--text-sm);
  line-height: 1.65;
}

body:has(> header:not(.admin-header)) .hero p,
body:has(> header:not(.admin-header)) .hero-apothecary p,
body:has(> header:not(.admin-header)) .collections-hero p,
body:has(> header:not(.admin-header)) .story-text p,
body:has(> header:not(.admin-header)) .contact-hero p {
  font-size: var(--text-md);
  line-height: 1.75;
}

body:has(> header:not(.admin-header)) a,
body:has(> header:not(.admin-header)) button,
body:has(> header:not(.admin-header)) input,
body:has(> header:not(.admin-header)) textarea,
body:has(> header:not(.admin-header)) select {
  font-size: var(--text-base);
  line-height: 1.4;
}

body > header:not(.admin-header) {
  background: rgba(255, 252, 245, 0.96);
  backdrop-filter: blur(8px);
  direction: ltr;
  position: fixed;
  top: var(--announcement-height);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(198,164,63,0.2);
}

.site-announcement {
  align-items: center;
  background: var(--forest-green);
  color: #FFFEF9;
  display: flex;
  font-weight: 800;
  gap: 10px;
  height: var(--announcement-height);
  justify-content: center;
  left: 0;
  overflow: hidden;
  padding: 0 18px;
  position: fixed;
  right: 0;
  text-align: center;
  top: 0;
  transition: height 0.25s ease;
  z-index: 101;
}

.site-announcement i {
  color: var(--gold);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: nowrap;
  gap: 1rem;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  direction: ltr;
  gap: 10px;
  margin-inline-start: auto;
  order: 3;
}

.theme-toggle {
  align-items: center;
  background: #F0EBE1;
  border: 1px solid #D9CBB5;
  border-radius: 999px;
  color: var(--forest-green);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--gold);
  color: #1F1E1A;
  transform: translateY(-2px);
}

.logo {
  align-items: center;
  display: inline-flex;
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  gap: 0.45rem;
  line-height: 1;
  min-width: max-content;
  white-space: nowrap;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #1E1A0C 30%, var(--gold) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: var(--transition);
}

.logo::before {
  background: url("zarina-logo-mark.png") center / contain no-repeat;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 1.55em;
  width: 1.55em;
  filter: drop-shadow(0 2px 4px rgba(31, 30, 26, 0.16));
}

.navbar .loogo {
  order: 1;
}

.navbar .nav-links {
  order: 2;
}

.logo:hover {
  transform: scale(1.02);
}
.loogo {
  text-decoration: none;
}
/* Desktop navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu-actions {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black-rich);
  font-size: var(--text-base);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

html[lang="ar"] body > header:not(.admin-header) .nav-links {
  direction: rtl;
  justify-content: flex-start;
}

html[lang="en"] body > header:not(.admin-header) .nav-links {
  direction: ltr;
  justify-content: flex-start;
}

body > header:not(.admin-header) .mobile-header-actions,
body > header:not(.admin-header) .theme-toggle,
body > header:not(.admin-header) .lang-switch,
body > header:not(.admin-header) .cart-icon,
body > header:not(.admin-header) .hamburger,
body > header:not(.admin-header) .loogo {
  direction: ltr;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a.active {
  color: var(--forest-green);
  font-weight: 800;
}

.review-stars,
.product-rating-badge {
  align-items: center;
  color: var(--gold);
  display: inline-flex;
  gap: 4px;
}

.review-stars strong,
.product-rating-badge span {
  color: #6A6256;
  font-weight: 900;
  margin-inline-start: 4px;
}

.product-rating-badge {
  font-size: 0.84rem;
  font-weight: 900;
  margin: 0.15rem 0 0.55rem;
}

@media (max-width: 1024px) {
  :root {
    --text-hero: 3rem;
    --text-3xl: 2.05rem;
    --text-2xl: 1.55rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

/* Mobile hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--forest-green);
  transition: 0.2s;
}

.hamburger:hover {
  color: var(--gold);
}

/* Cart icon */
.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--forest-green);
  transition: transform 0.2s;
}

.cart-icon:hover {
  transform: scale(1.08);
  color: var(--gold);
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -12px;
  background: var(--gold);
  color: #1E1A0C;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 30px;
  padding: 2px 7px;
  font-family: monospace;
}

/* Responsive navigation (mobile) */
@media (max-width: 768px) {
  :root {
    --header-height: 65px;
    --text-sm: 0.92rem;
    --text-base: 1rem;
    --text-md: 1.04rem;
    --text-lg: 1.12rem;
    --text-xl: 1.24rem;
    --text-2xl: 1.45rem;
    --text-3xl: 1.9rem;
    --text-hero: 2.45rem;
  }

  .container {
    padding: 0 18px;
  }

  .navbar {
    min-height: 64px;
    gap: 6px;
  }

  .logo {
    font-size: 1.38rem;
    line-height: 1;
    flex: 0 0 auto;
  }

  .logo::before {
    height: 1.35em;
    width: 1.35em;
  }

  .navbar .loogo {
    min-width: 0;
    overflow: hidden;
  }

  .hamburger {
    display: block;
    min-width: 42px;
    min-height: 42px;
    order: 4;
    padding: 0;
  }

  .mobile-header-actions {
    order: 3;
    gap: 4px;
  }

  .nav-links {
    position: fixed;
    flex: none;
    top: calc(var(--announcement-height) + 65px);
    left: -100%;
    right: auto;
    width: min(86vw, 340px);
    height: calc(100dvh - var(--announcement-height) - 65px);
    background: var(--off-white);
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    transition: left 0.3s ease, right 0.3s ease;
    z-index: 99;
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-menu-actions {
    border-top: 1px solid rgba(198, 164, 63, 0.24);
    display: flex;
    gap: 12px;
    margin-top: 0.35rem;
    padding-top: 1rem;
    width: 100%;
  }

  .nav-menu-actions .theme-toggle,
  .nav-menu-actions .lang-switch {
    flex: 0 0 auto;
  }

  html[lang="en"] body > header:not(.admin-header) .nav-links {
    direction: ltr;
    left: -100%;
    right: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  }

  html[lang="en"] body > header:not(.admin-header) .nav-links.open {
    left: 0;
    right: auto;
  }

  html[lang="ar"] body > header:not(.admin-header) .nav-links {
    direction: rtl;
    left: auto;
    right: -100%;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  }

  html[lang="ar"] body > header:not(.admin-header) .nav-links.open {
    left: auto;
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .cart-icon {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }

  html[data-theme="dark"] body > header:not(.admin-header) .nav-links {
    background: #181D16;
  }
}

@media (max-width: 520px) {
  :root {
    --text-xs: 0.76rem;
    --text-sm: 0.88rem;
    --text-base: 0.98rem;
    --text-md: 1rem;
    --text-lg: 1.08rem;
    --text-xl: 1.18rem;
    --text-2xl: 1.34rem;
    --text-3xl: 1.72rem;
    --text-hero: 2.15rem;
  }

  .cart-sidebar {
    width: 100%;
    max-width: none;
    right: -100%;
  }

  .cart-header,
  .cart-footer {
    padding: 1rem;
  }

  .cart-header h3 {
    font-size: 1.35rem;
  }

  .cart-items {
    padding: 0.85rem;
  }

  .mobile-header-actions {
    gap: 2px;
  }

  .logo {
    font-size: 1.22rem;
  }

  .hamburger,
  .cart-icon {
    min-width: 38px;
    min-height: 38px;
  }

  .hamburger {
    font-size: 1.55rem;
  }

  .cart-icon {
    font-size: 1.12rem;
  }

  .cart-item {
    gap: 10px;
  }

  .cart-item-img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }

  .checkout-action {
    min-height: 46px;
  }
}

/* ----- SLIDE-OUT CART (global) ----- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s ease;
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 420px;
  height: 100dvh;
  background: #FFFBF5;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  z-index: 201;
  transition: right 0.35s ease-out;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid #EADBC6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  color: var(--forest-green);
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #5F5B53;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e2d5c4;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cart-item-price {
  color: var(--gold);
  font-weight: 600;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.qty-btn {
  background: #f0e9de;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
}

.remove-item {
  background: none;
  border: none;
  color: #b67e45;
  margin-left: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #EADBC6;
}

.total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.checkout-action {
  width: 100%;
  background: var(--gold);
  border: none;
  padding: 12px;
  border-radius: 60px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.checkout-action:hover {
  background: var(--forest-green);
  color: white;
}

.empty-cart-msg {
  text-align: center;
  color: #9a8e7a;
  padding: 2rem;
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1E3A2A;
  color: #F7EBD8;
  padding: 12px 24px;
  border-radius: 60px;
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  white-space: normal;
  text-align: center;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.back-to-top {
  align-items: center;
  background: var(--forest-green);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 14px 30px rgba(31,30,26,0.2);
  color: white;
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(12px);
  transition: 0.22s ease;
  width: 46px;
  z-index: 250;
}

html[dir="rtl"] .back-to-top {
  left: 22px;
  right: auto;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: #1F1E1A;
}

/* ----- GLOBAL FOOTER ----- */
footer {
  background: #2B2A24;
  color: #EADBC6;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footer-icons {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-icons a {
  color: #EADBC6;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.footer-icons a:hover {
  color: var(--gold);
}

/* Responsive toast */
@media (max-width: 480px) {
  .toast-msg {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }

  .logo {
    font-size: 1.35rem;
  }

  .nav-links {
    width: 92vw;
    padding: 1.5rem;
  }

  .cart-qty {
    gap: 8px;
  }

  .remove-item {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================= */
/* Product Tags (Skin, Hair, Relaxation)     */
/* ========================================= */
.product-tags {
  display: flex;
  gap: 8px;
  margin: 10px 0 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tag-badge {
  background: #F0EBE1;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 30px;
  color: #5C5A52;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border: 1px solid #E0D5C1;
}

/* ========================================= */
/* ---------- LANGUAGE SWITCHER CSS -------- */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* تصميم زر تحويل اللغة */
.lang-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #E2E2E2;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0 10px;
  direction: ltr; 
}
.lang-switch .bg-text-en, 
.lang-switch .bg-text-ar {
  position: absolute;
  font-weight: bold;
  color: #333;
  font-size: 15px;
  pointer-events: none;
}
.lang-switch .bg-text-en { left: 12px; }
.lang-switch .bg-text-ar { right: 10px; }

.lang-switch .circle {
  position: absolute;
  left: 4px;
  width: 22px;
  height: 22px;
  background-color: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 13px;
  transition: transform 0.3s ease;
  z-index: 2;
}

/* حالة اللغة الإنجليزية */
html[lang="en"] .lang-switch .bg-text-en { opacity: 0; }
html[lang="en"] .lang-switch .bg-text-ar { opacity: 1; }
html[lang="en"] .lang-switch .circle { transform: translateX(0); }
html[lang="en"] .lang-switch .circle::after { content: "e"; }

/* حالة اللغة العربية */
html[lang="ar"] .lang-switch .bg-text-en { opacity: 1; }
html[lang="ar"] .lang-switch .bg-text-ar { opacity: 0; }
html[lang="ar"] .lang-switch .circle { transform: translateX(30px); }
html[lang="ar"] .lang-switch .circle::after { content: "ع"; padding-bottom: 2px;}

/* تغيير اتجاه وخط الموقع كامل لما يصير عربي */
html[lang="ar"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 185, 77, 0.08), transparent 30%),
    #111510;
  color: #F5EFE2;
}

html[data-theme="dark"] body > header:not(.admin-header) {
  background: rgba(17, 21, 16, 0.94);
  border-bottom-color: rgba(216, 185, 77, 0.28);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}

html[data-theme="dark"] .logo {
  background: linear-gradient(135deg, #FFF7DB 20%, var(--gold) 76%);
  background-clip: text;
  -webkit-background-clip: text;
}

html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .hamburger,
html[data-theme="dark"] .cart-icon {
  color: #F5EFE2;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .lang-switch {
  background: #252B22;
  border-color: rgba(216,185,77,0.35);
}

html[data-theme="dark"] .theme-toggle {
  color: var(--gold);
}

html[data-theme="dark"] .lang-switch .bg-text-en,
html[data-theme="dark"] .lang-switch .bg-text-ar {
  color: #F5EFE2;
}

html[data-theme="dark"] .lang-switch .circle {
  background-color: var(--gold);
  color: #1F1E1A;
}

html[data-theme="dark"] .nav-links {
  background: transparent;
}

html[data-theme="dark"] .site-announcement {
  background: #0D100C;
  border-bottom: 1px solid rgba(216,185,77,0.28);
}

html[data-theme="dark"] .cart-sidebar,
html[data-theme="dark"] .product-modal,
html[data-theme="dark"] .success-modal {
  background: #181D16;
  border-color: rgba(216,185,77,0.28);
  color: #F5EFE2;
}

html[data-theme="dark"] .cart-header,
html[data-theme="dark"] .cart-footer {
  border-color: rgba(216,185,77,0.24);
}

html[data-theme="dark"] .cart-item {
  border-color: rgba(216,185,77,0.16);
}

html[data-theme="dark"] .cart-item-info h4,
html[data-theme="dark"] .cart-header h3,
html[data-theme="dark"] .cart-total {
  color: #F5EFE2;
}

html[data-theme="dark"] .cart-item-info p,
html[data-theme="dark"] .remove-item {
  color: #C8BEA6;
}

html[data-theme="dark"] .qty-btn,
html[data-theme="dark"] .product-modal-close,
html[data-theme="dark"] .variant-option,
html[data-theme="dark"] .product-review-form input,
html[data-theme="dark"] .product-review-form textarea,
html[data-theme="dark"] .rating-picker,
html[data-theme="dark"] .product-review-item {
  background: #20261D;
  border-color: rgba(216,185,77,0.28);
  color: #F5EFE2;
}

html[data-theme="dark"] .product-modal-desc,
html[data-theme="dark"] .variant-option span,
html[data-theme="dark"] .product-review-item p,
html[data-theme="dark"] .product-review-item small {
  color: #D7CDB7;
}

html[data-theme="dark"] .product-modal-rating {
  background: rgba(216,185,77,0.12);
  border-color: rgba(216,185,77,0.38);
  color: #F5EFE2;
}

html[data-theme="dark"] .catalog-tools,
html[data-theme="dark"] .catalog-search-box,
html[data-theme="dark"] .catalog-sort-select,
html[data-theme="dark"] .catalog-filter-btn,
html[data-theme="dark"] .catalog-no-results,
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .contact-hero,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .contact-methods,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .checkout-summary,
html[data-theme="dark"] .payment-method,
html[data-theme="dark"] .success-modal,
html[data-theme="dark"] .collections-hero,
html[data-theme="dark"] .collections-shell,
html[data-theme="dark"] .collection-tabs,
html[data-theme="dark"] .collection-btn,
html[data-theme="dark"] .collection-product-card,
html[data-theme="dark"] .collection-empty,
html[data-theme="dark"] .apothecary-hero,
html[data-theme="dark"] .filters-section,
html[data-theme="dark"] .remedy-grid,
html[data-theme="dark"] .remedy-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] .mission-card,
html[data-theme="dark"] .purpose-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .remedy-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .collection-panel,
html[data-theme="dark"] .collection-stage {
  background: #181D16 !important;
  border-color: rgba(216,185,77,0.22) !important;
  color: #F5EFE2 !important;
}

html[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg, rgba(17,21,16,0), #111510) !important;
}

html[data-theme="dark"] .apothecary-hero,
html[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #121710, #1B2418) !important;
}

html[data-theme="dark"] .collection-stage,
html[data-theme="dark"] .collection-panel,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .payment-method,
html[data-theme="dark"] .summary-item {
  box-shadow: 0 18px 38px -18px rgba(0,0,0,0.75) !important;
}

html[data-theme="dark"] .catalog-search-input,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: #20261D;
  border-color: rgba(216,185,77,0.28);
  color: #F5EFE2;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #9E957F;
}

html[data-theme="dark"] .product-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .summary-title,
html[data-theme="dark"] .product-modal-title,
html[data-theme="dark"] .collection-title,
html[data-theme="dark"] .stage-title,
html[data-theme="dark"] .remedy-card h3,
html[data-theme="dark"] .story-card h3,
html[data-theme="dark"] .about-card h3,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: #F5EFE2;
}

html[data-theme="dark"] .product-desc,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .intention-card p,
html[data-theme="dark"] .trust-item small,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .summary-details,
html[data-theme="dark"] .checkout-summary,
html[data-theme="dark"] .collection-product-card p,
html[data-theme="dark"] .stage-copy,
html[data-theme="dark"] .apothecary-hero p,
html[data-theme="dark"] .contact-hero p,
html[data-theme="dark"] .collections-hero p,
html[data-theme="dark"] .story-text p,
html[data-theme="dark"] [style*="color: #5C"],
html[data-theme="dark"] [style*="color:#5C"],
html[data-theme="dark"] [style*="color: #6"],
html[data-theme="dark"] [style*="color:#6"],
html[data-theme="dark"] [style*="color: #7B"],
html[data-theme="dark"] [style*="color:#7B"],
html[data-theme="dark"] p,
html[data-theme="dark"] small {
  color: #D7CDB7;
}

html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background: #FFFEF9"],
html[data-theme="dark"] [style*="background:#FFFEF9"],
html[data-theme="dark"] [style*="background: #FCF8F0"],
html[data-theme="dark"] [style*="background:#FCF8F0"],
html[data-theme="dark"] [style*="background: #F0EBE1"],
html[data-theme="dark"] [style*="background:#F0EBE1"] {
  background: #181D16 !important;
  border-color: rgba(216,185,77,0.22) !important;
  color: #F5EFE2 !important;
}

html[data-theme="dark"] .intention-card,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .home-review-card,
html[data-theme="dark"] .home-review-empty {
  background: rgba(24,29,22,0.92);
  border-color: rgba(216,185,77,0.22);
}

html[data-theme="dark"] .intention-card::before,
html[data-theme="dark"] .contact-hero::before {
  background: linear-gradient(135deg, rgba(168,200,156,0.08), rgba(216,185,77,0.12)) !important;
}

html[data-theme="dark"] .tag-badge,
html[data-theme="dark"] .product-tags span,
html[data-theme="dark"] .collection-count,
html[data-theme="dark"] .badge {
  background: #252B22 !important;
  border-color: rgba(216,185,77,0.22) !important;
  color: #D8B94D !important;
}

html[data-theme="dark"] .product-new-badge {
  background: rgba(24, 29, 22, 0.9);
  border-color: rgba(216, 185, 77, 0.48);
  color: #D8B94D;
}

html[data-theme="dark"] .product-card-skeleton .skeleton-media,
html[data-theme="dark"] .product-card-skeleton .skeleton-line,
html[data-theme="dark"] .product-card-skeleton .skeleton-button {
  background: linear-gradient(90deg, #20271D 0%, #303A2B 42%, #20271D 78%);
  background-size: 220% 100%;
}

html[data-theme="dark"] .add-to-cart,
html[data-theme="dark"] .checkout-btn,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .hero-btn {
  color: #1F1E1A !important;
}

html[data-theme="dark"] .hero-link {
  color: #FFFEF9 !important;
}

html[data-theme="dark"] .price,
html[data-theme="dark"] .cart-item-price,
html[data-theme="dark"] .summary-total,
html[data-theme="dark"] [style*="color: var(--gold"] {
  color: #D8B94D !important;
}

html[data-theme="dark"] .close-cart,
html[data-theme="dark"] .back-top,
html[data-theme="dark"] .faq-question i {
  color: #D8B94D;
}

html[data-theme="dark"] .reviews-showcase {
  background:
    radial-gradient(circle at 14% 10%, rgba(216,185,77,0.12), transparent 32%),
    linear-gradient(135deg, #080A07 0%, #161D13 58%, #3B3417 100%);
}

html[data-theme="dark"] footer {
  background: #080A07;
  border-top: 1px solid rgba(216,185,77,0.18);
}

/* السحر اللي بيخفي وبيظهر الكلمات حسب اللغة */
html[lang="en"] .ar-text { display: none !important; }
html[lang="ar"] .en-text { display: none !important; }

/* ========================================= */
/* Product Price Style                       */
/* ========================================= */
.price {
  font-weight: 700;
  color: var(--gold, #C6A43F);
  font-size: 1.2rem;
  margin: 0.8rem 0 0.5rem 0;
}

/* Stable product card layout */
html body .product-grid,
html body .products-grid {
  align-items: stretch;
}

html body .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 586px;
  overflow: hidden !important;
  padding: 0 !important;
}

html body .product-card .product-img {
  border-radius: inherit inherit 0 0;
  flex: 0 0 auto;
  display: block;
  height: 240px;
  margin: 0 !important;
  object-fit: cover;
  width: 100% !important;
}

html body .product-card .product-info {
  display: grid;
  flex: 1 1 auto;
  gap: 0.55rem;
  grid-template-rows: 3.4rem 1.2rem 2.15rem 1.55rem 4.55rem 2rem 42px;
  padding: 1.2rem;
}

html body .product-card .product-title,
html body .product-card .product-category,
html body .product-card .product-tags,
html body .product-card .product-rating-badge,
html body .product-card .product-desc,
html body .product-card .price {
  margin: 0 !important;
  min-height: 0;
  overflow: hidden;
}

html body .product-card .product-title,
html body .product-card .product-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

html body .product-card .product-title {
  align-self: center;
  -webkit-line-clamp: 2;
}

html body .product-card .product-category {
  align-self: center;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .product-card .product-tags {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html body .product-card .product-tags-empty {
  visibility: hidden;
}

html body .product-card .product-rating-badge {
  align-items: center;
  align-self: center;
}

html body .product-card .product-desc {
  -webkit-line-clamp: 3;
  line-height: 1.5;
}

html body .product-card.featured-live-card .product-desc {
  color: #5C5B57;
  display: -webkit-box !important;
  min-height: 3.2rem;
  opacity: 1;
  visibility: visible;
}

html body .product-card .price {
  align-items: center;
  align-self: center;
  display: flex;
  justify-content: center;
  line-height: 1.2;
  width: 100%;
}

html body .product-card .add-to-cart {
  align-self: end;
  margin-top: 0 !important;
  min-height: 42px;
  width: 100%;
}

.product-new-badge {
  align-items: center;
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(198, 164, 63, 0.62);
  border-radius: 999px;
  box-shadow: 0 10px 22px -16px rgba(31, 30, 26, 0.5);
  color: var(--forest-green, #2F5D3A);
  display: inline-flex;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 900;
  left: 12px;
  letter-spacing: 0 !important;
  line-height: 1;
  padding: 0.48rem 0.72rem;
  position: absolute;
  top: 12px;
  z-index: 3;
}

.product-card-skeleton {
  pointer-events: none;
}

.product-card-skeleton .skeleton-media,
.product-card-skeleton .skeleton-line,
.product-card-skeleton .skeleton-button {
  background: linear-gradient(90deg, #EFE6D8 0%, #F8F1E7 42%, #EFE6D8 78%);
  background-size: 220% 100%;
  animation: zarinaSkeleton 1.25s ease-in-out infinite;
  border-radius: 999px;
  display: block;
}

.product-card-skeleton .skeleton-media {
  border-radius: inherit inherit 0 0;
  height: 240px;
}

.product-card-skeleton .skeleton-line {
  height: 13px;
  width: 100%;
}

.product-card-skeleton .skeleton-line-title {
  height: 22px;
  width: 78%;
}

.product-card-skeleton .skeleton-line-short {
  width: 56%;
}

.product-card-skeleton .skeleton-line-price {
  height: 20px;
  width: 38%;
}

.product-card-skeleton .skeleton-button {
  align-self: end;
  height: 42px;
  width: 100%;
}

@keyframes zarinaSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* ========================================= */
/* Customer Product Search                    */
/* ========================================= */
.catalog-tools {
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid #EADBC6;
  border-radius: 20px;
  padding: 1rem;
  margin: 1.4rem 0 2rem;
  box-shadow: var(--shadow, 0 12px 28px -8px rgba(0,0,0,0.08));
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 12px;
  align-items: stretch;
}

.catalog-search-box {
  position: relative;
}

.catalog-search-box i {
  color: var(--gold);
  left: 16px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

html[lang="ar"] .catalog-search-box i {
  left: auto;
  right: 16px;
}

.catalog-search-input,
.catalog-sort-select {
  width: 100%;
  min-height: 48px;
  background: white;
  border: 1px solid #DCCFBC;
  border-radius: 14px;
  color: var(--black-rich);
  font-family: inherit;
  font-size: 1rem;
}

.catalog-search-input {
  padding: 0 48px 0 44px;
}

html[lang="ar"] .catalog-search-input {
  padding: 0 44px 0 48px;
}

.catalog-sort-select {
  padding: 0 14px;
  cursor: pointer;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.catalog-filter-btn {
  align-items: center;
  background: #FCF8F0;
  border: 1px solid #E0D5C1;
  border-radius: 999px;
  color: #4A463E;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
  transition: 0.2s ease;
}

.catalog-filter-btn:hover,
.catalog-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1F1E1A;
}

.catalog-result-count {
  color: #6C6253;
  font-size: 0.92rem;
  font-weight: 700;
  margin-inline-start: auto;
}

.catalog-no-results {
  background: #FFFEF9;
  border: 1px dashed #DCCFBC;
  border-radius: 18px;
  color: #6C6253;
  display: none;
  font-weight: 700;
  margin: 0 0 2rem;
  padding: 1.5rem;
  text-align: center;
}

.catalog-no-results.show {
  display: block;
}

/* ========================================= */
/* Site-wide responsive hardening             */
/* ========================================= */
html body,
html body * {
  min-width: 0;
}

html body .product-card,
html body .remedy-card,
html body .value-card,
html body .contact-card,
html body .faq-item,
html body .order-summary,
html body .checkout-form,
html body .success-modal {
  max-width: 100%;
}

html body input,
html body textarea,
html body select {
  max-width: 100%;
  font-size: 16px;
}

@media (max-width: 900px) {
  html body .contact-grid,
  html body .checkout-grid,
  html body .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-announcement {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  body:has(> header:not(.admin-header)) {
    background: #FBF5EA;
  }

  .catalog-tools {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0.85rem 18px;
  }

  .catalog-search-row {
    grid-template-columns: 1fr;
  }

  .catalog-filter-row {
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: -18px;
    margin-right: -18px;
    overflow-x: auto;
    padding: 0 18px 6px;
    scrollbar-width: none;
  }

  .catalog-filter-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .catalog-result-count {
    flex-basis: 100%;
    margin-inline-start: 0;
    text-align: center;
  }

  html body .products-grid,
  html body .product-grid,
  html body .remedies-grid,
  html body .values-grid,
  html body .trust-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  html body .products-grid,
  html body .product-grid,
  html body .collections-grid {
    gap: 0.85rem;
  }

  html body .product-card {
    border-radius: 14px;
    display: flex;
    min-height: 470px;
  }

  html body .product-card .product-img {
    height: 190px;
    min-height: 190px;
    object-fit: cover;
    width: 100% !important;
  }

  html body .product-card .product-info {
    display: grid;
    gap: 0.35rem;
    grid-template-rows: 2.65rem 1rem 1.65rem 1.25rem 2.45rem 1.45rem 38px;
    padding: 0.85rem;
  }

  html body .product-card .product-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  html body .product-card .product-category,
  html body .product-card .product-tags {
    margin-bottom: 0 !important;
  }

  html body .product-card .product-desc {
    font-size: 0.84rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  html body .product-card .price {
    font-size: 1.05rem;
  }

  html body .product-card .add-to-cart {
    margin-top: 0;
    min-height: 38px;
    padding: 8px 10px;
  }

  html body h1 {
    font-size: var(--text-hero);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  html body h2 {
    font-size: var(--text-3xl);
    line-height: 1.14;
  }

  html body p,
  html body li,
  html body label,
  html body input,
  html body textarea,
  html body select {
    overflow-wrap: anywhere;
  }

  html body .hero,
  html body .hero-apothecary,
  html body .hero-banner {
    min-height: auto;
    height: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  html body .product-img:not(.product-card .product-img) {
    height: 190px;
  }

  html body .promo-box {
    flex-direction: column;
  }

  html body .btn-promo {
    min-height: 44px;
    padding: 0 16px;
  }

  html body .summary-item,
  html body .summary-total,
  html body .total {
    gap: 0.75rem;
  }
}

@media (max-width: 420px) {
  html body .product-card {
    min-height: 450px;
  }

  html body .product-card .product-img {
    height: 180px;
    min-height: 180px;
    width: 100% !important;
  }

  html body .product-card .product-info {
    padding: 0.75rem;
  }

  html body .product-card .product-title {
    font-size: 0.98rem;
  }

  html body .product-card .product-desc {
    -webkit-line-clamp: 1;
  }

  html body .summary-item,
  html body .summary-total {
    align-items: flex-start;
    flex-direction: column;
  }

  html body .payment-box {
    padding: 1rem;
  }

  html body .success-modal {
    padding: 2rem 1rem;
    border-radius: 20px;
  }
}

/* Apothecary dark-theme polish */
html[data-theme="dark"] .hero-apothecary {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 185, 77, 0.13), transparent 38%),
    linear-gradient(135deg, #0d110c 0%, #151b13 55%, #1c2418 100%) !important;
  border-bottom-color: rgba(216, 185, 77, 0.24) !important;
  box-shadow: inset 0 -1px 0 rgba(216, 185, 77, 0.12);
}

html[data-theme="dark"] .hero-apothecary h1 {
  background: linear-gradient(135deg, #fff7db 15%, #d8b94d 78%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
}

html[data-theme="dark"] .hero-apothecary .sub {
  border-top-color: #d8b94d !important;
  color: #f5efe2 !important;
}

html[data-theme="dark"] .hero-apothecary p {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .trust-row {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.28) !important;
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.78) !important;
}

html[data-theme="dark"] .trust-row .trust-item {
  background: #20261d !important;
  border: 1px solid rgba(216, 185, 77, 0.2) !important;
  border-radius: 999px;
  color: #f5efe2 !important;
  padding: 0.55rem 0.85rem;
}

html[data-theme="dark"] .products-heading h2,
html[data-theme="dark"] .recipes-section .section-title {
  color: #f5efe2 !important;
}

html[data-theme="dark"] .products-heading p,
html[data-theme="dark"] .products-heading a {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .filter-section,
html[data-theme="dark"] .catalog-tools {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.24) !important;
}

html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .catalog-filter-btn {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.42) !important;
  color: #f5efe2 !important;
}

html[data-theme="dark"] .filter-btn.active,
html[data-theme="dark"] .catalog-filter-btn.active {
  background: #d8b94d !important;
  border-color: #d8b94d !important;
  color: #1f1e1a !important;
}

html[data-theme="dark"] .product-card .add-to-cart,
html[data-theme="dark"] .add-to-cart {
  background: #d8b94d !important;
  border-color: #d8b94d !important;
  color: #1f1e1a !important;
}

html[data-theme="dark"] .product-card .add-to-cart:hover,
html[data-theme="dark"] .add-to-cart:hover {
  background: #a8c89c !important;
  border-color: #a8c89c !important;
  color: #10140f !important;
}

html[data-theme="dark"] .flip-front,
html[data-theme="dark"] .flip-back {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.35) !important;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.8) !important;
  color: #f5efe2 !important;
}

html[data-theme="dark"] .flip-back {
  background: linear-gradient(145deg, #181d16, #20261d) !important;
}

html[data-theme="dark"] .flip-front h4,
html[data-theme="dark"] .flip-back h4,
html[data-theme="dark"] .flip-front p,
html[data-theme="dark"] .flip-back p,
html[data-theme="dark"] .flip-back li {
  color: #f5efe2 !important;
}

html[data-theme="dark"] .flip-front img {
  background: #20261d;
  border: 1px solid rgba(216, 185, 77, 0.25);
}

/* Collections dark-theme polish */
html[data-theme="dark"] .collections-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 185, 77, 0.12), transparent 40%),
    linear-gradient(135deg, #0d110c 0%, #151b13 100%) !important;
  border-bottom-color: rgba(216, 185, 77, 0.24) !important;
}

html[data-theme="dark"] .collections-hero h1 {
  color: #fff7db !important;
}

html[data-theme="dark"] .collections-hero p {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .collections-panel,
html[data-theme="dark"] .collection-stage,
html[data-theme="dark"] .collection-empty,
html[data-theme="dark"] .collections-loading {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.28) !important;
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.78) !important;
}

html[data-theme="dark"] .panel-title {
  color: #a8c89c !important;
}

html[data-theme="dark"] .collection-tab {
  background: #20261d !important;
  border-color: rgba(216, 185, 77, 0.22) !important;
  color: #f5efe2 !important;
}

html[data-theme="dark"] .collection-tab:hover,
html[data-theme="dark"] .collection-tab.active {
  background: #2f5d3a !important;
  border-color: #a8c89c !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .collection-tab-img {
  background: #151b13 !important;
}

html[data-theme="dark"] .collection-tab-count {
  background: rgba(216, 185, 77, 0.2) !important;
  color: #fff7db !important;
}

html[data-theme="dark"] .stage-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 185, 77, 0.1), transparent 34%),
    #181d16 !important;
  border-bottom-color: rgba(216, 185, 77, 0.24) !important;
}

html[data-theme="dark"] .stage-eyebrow {
  color: #d8b94d !important;
}

html[data-theme="dark"] .stage-title {
  color: #fff7db !important;
}

html[data-theme="dark"] .stage-copy,
html[data-theme="dark"] .stage-count {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .stage-image {
  border-color: rgba(216, 185, 77, 0.3) !important;
}

html[data-theme="dark"] .stage-tools {
  background: #151b13 !important;
  border-bottom-color: rgba(216, 185, 77, 0.24) !important;
}

html[data-theme="dark"] .stage-search input,
html[data-theme="dark"] .stage-tools select {
  background: #20261d !important;
  border-color: rgba(216, 185, 77, 0.38) !important;
  color: #f5efe2 !important;
}

html[data-theme="dark"] .stage-search input::placeholder {
  color: #b8ad98 !important;
}

html[data-theme="dark"] .products-area {
  background: #10140f !important;
}

html[data-theme="dark"] .no-products {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.35) !important;
  color: #d7cdb7 !important;
}

/* Contact dark-theme polish */
html[data-theme="dark"] .contact-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 185, 77, 0.14), transparent 34%),
    linear-gradient(135deg, #181d16, #20261d) !important;
  border-color: rgba(216, 185, 77, 0.28) !important;
}

html[data-theme="dark"] .contact-hero:before {
  background: linear-gradient(135deg, rgba(168, 200, 156, 0.08), rgba(216, 185, 77, 0.1)) !important;
}

html[data-theme="dark"] .contact-hero h1,
html[data-theme="dark"] .faq-title,
html[data-theme="dark"] .connect-card h2,
html[data-theme="dark"] .contact-form h2 {
  color: #fff7db !important;
}

html[data-theme="dark"] .policy-card {
  background: #151b13 !important;
  border-color: rgba(216, 185, 77, 0.28) !important;
  box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.85);
}

html[data-theme="dark"] .policy-card i {
  background: #d8b94d !important;
  color: #10140f !important;
}

html[data-theme="dark"] .policy-card strong {
  color: #f5efe2 !important;
}

html[data-theme="dark"] .policy-card small,
html[data-theme="dark"] .connect-card p {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .connect-card,
html[data-theme="dark"] .accordion-item {
  background: #181d16 !important;
  border-color: rgba(216, 185, 77, 0.28) !important;
}

html[data-theme="dark"] .social-icons a {
  background: #20261d !important;
  border-color: rgba(216, 185, 77, 0.45) !important;
  color: #d8b94d !important;
}

html[data-theme="dark"] .social-icons a:hover {
  background: #d8b94d !important;
  color: #10140f !important;
}

html[data-theme="dark"] .accordion-question {
  background: #20261d !important;
  color: #f5efe2 !important;
}

html[data-theme="dark"] .accordion-question:hover {
  background: #263020 !important;
}

html[data-theme="dark"] .accordion-answer,
html[data-theme="dark"] .accordion-answer p {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .faq-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 220, 98, 0.26), transparent 11%),
    radial-gradient(circle at 50% 6%, rgba(216, 185, 77, 0.18), transparent 24%),
    conic-gradient(from 210deg at 50% 0%, transparent 0deg, rgba(216, 185, 77, 0.12) 18deg, transparent 36deg, rgba(168, 200, 156, 0.06) 58deg, transparent 78deg),
    linear-gradient(135deg, rgba(24, 29, 22, 0.96), rgba(13, 17, 12, 0.98)) !important;
  border: 1px solid rgba(216, 185, 77, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 65px -42px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 247, 219, 0.06);
  isolation: isolate;
  margin-inline: auto;
  max-width: 1120px;
  overflow: hidden;
  padding: 3.2rem 1.5rem 2.8rem;
  position: relative;
}

html[data-theme="dark"] .faq-section::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 220, 98, 0.22) 50%, transparent 100%),
    linear-gradient(118deg, transparent 44%, rgba(255, 220, 98, 0.15) 50%, transparent 56%),
    linear-gradient(62deg, transparent 44%, rgba(255, 220, 98, 0.12) 50%, transparent 56%);
  content: "";
  height: 260px;
  inset-inline: 10%;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
  top: -122px;
  transform-origin: top center;
  z-index: -1;
}

html[data-theme="dark"] .faq-section::after {
  background: radial-gradient(circle, rgba(255, 228, 122, 0.52), rgba(216, 185, 77, 0.18) 38%, transparent 68%);
  border-radius: 999px;
  content: "";
  filter: blur(1px);
  height: 118px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -66px;
  transform: translateX(-50%);
  width: 118px;
  z-index: -1;
}

html[data-theme="dark"] .faq-title {
  background: linear-gradient(90deg, #fff9df 0%, #d8b94d 45%, #fff1af 70%, #a8c89c 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

/* Our Story dark CTA */
html[data-theme="dark"] .cta-banner {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 121, 0.24), transparent 15%),
    radial-gradient(circle at 50% 12%, rgba(216, 185, 77, 0.17), transparent 34%),
    conic-gradient(from 205deg at 50% 0%, transparent 0deg, rgba(216, 185, 77, 0.1) 18deg, transparent 40deg, rgba(168, 200, 156, 0.08) 60deg, transparent 82deg),
    linear-gradient(135deg, #181d16 0%, #20261d 56%, #12170f 100%) !important;
  border-color: rgba(216, 185, 77, 0.3) !important;
  box-shadow: 0 26px 58px -36px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 247, 219, 0.06);
  overflow: hidden;
  position: relative;
}

html[data-theme="dark"] .cta-banner::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 226, 121, 0.18) 50%, transparent 100%),
    linear-gradient(118deg, transparent 44%, rgba(255, 226, 121, 0.13) 50%, transparent 56%),
    linear-gradient(62deg, transparent 44%, rgba(168, 200, 156, 0.1) 50%, transparent 56%);
  content: "";
  height: 240px;
  inset-inline: 12%;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  top: -116px;
}

html[data-theme="dark"] .cta-banner > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .cta-banner h3 {
  background: linear-gradient(90deg, #fff9df 0%, #d8b94d 48%, #fff1af 74%, #a8c89c 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
}

html[data-theme="dark"] .cta-banner p {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .cta-btn {
  background: #d8b94d !important;
  color: #10140f !important;
  box-shadow: 0 14px 28px -18px rgba(216, 185, 77, 0.9);
}

html[data-theme="dark"] .cta-btn:hover {
  background: #a8c89c !important;
  color: #10140f !important;
}

/* Checkout dark-theme polish */
html[data-theme="dark"] .checkout-form input[disabled],
html[data-theme="dark"] .checkout-form input[style*="background-color"] {
  background: #20261d !important;
  border-color: rgba(216, 185, 77, 0.38) !important;
  color: #d7cdb7 !important;
  cursor: not-allowed;
}

html[data-theme="dark"] .payment-box {
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 185, 77, 0.14), transparent 34%),
    #20261d !important;
  border-color: #d8b94d !important;
  box-shadow: inset 0 1px 0 rgba(255, 247, 219, 0.05), 0 16px 30px -24px rgba(0, 0, 0, 0.85);
}

html[data-theme="dark"] .payment-text h4,
html[data-theme="dark"] .payment-box label {
  color: #f5efe2 !important;
}

html[data-theme="dark"] .payment-text p {
  color: #d7cdb7 !important;
}

html[data-theme="dark"] .checkout-form h2[style*="border-top"] {
  border-top-color: rgba(216, 185, 77, 0.36) !important;
}
