* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

html {
  scroll-behavior: smooth;
}

@layer light-mode;

body {
  font: var(--font-body-md);
  color: var(--color-on-background);
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--spacing-12);
}

body > [layout="main"],body > #youcan-section--header,body > #youcan-section--footer {
    width: 100%;
  }

body > [layout="main"] {
    flex: 2;
    display: flex;
    gap: var(--spacing-12);
    flex-direction: column;
  }

body [theme="neutral"] {
    --color-on-theme: var(--color-background);
    --color-theme: var(--color-on-background);
  }

/* LIGHT */

body[data-theme-mode="light"] [theme="primary-low"] {
      --color-on-theme: var(--color-on-primary-container);
      --color-theme: var(--color-primary-container);
    }

body[data-theme-mode="light"] [theme="primary-high"] {
      --color-on-theme: var(--color-on-primary);
      --color-theme: var(--color-primary);
    }

/* DARK */

@layer dark-mode;

:is(body[data-theme-mode="dark"],body:has(ui-theme > input:checked)) [data-invert] {
      filter: invert(1);
    }

:is(body[data-theme-mode="dark"],body:has(ui-theme > input:checked)) [theme="primary-low"] {
      --color-on-theme: var(--color-on-primary);
      --color-theme: var(--color-primary);
    }

:is(body[data-theme-mode="dark"],body:has(ui-theme > input:checked)) [theme="primary-high"] {
      --color-on-theme: var(--color-on-primary-container);
      --color-theme: var(--color-primary-container);
    }

ul {
  list-style: none;
}

.section-head {
  text-align: center;
  padding: var(--spacing-16);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-container-low);
}

.section-head h2 {
    font: var(--font-title-md);
  }

.ql-direction-rtl {
  direction: rtl;
}

.placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.placeholder-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   VALÉRIA COSMÉTIQUE — BESPOKE DERMO-BOTANICAL STOREFRONT ENGINE
   ========================================================================== */
:root, body, [data-theme-mode="light"]:is(:root body) {
  --val-emerald: #1B3B2B;
  --val-emerald-dark: #12281D;
  --val-gold: #C5A059;
  --val-gold-soft: #F3E5AB;
  --val-cream: #FAF7F2;
  --color-background: #FAF7F2 !important;
  --color-surface: #FFFFFF !important;
  --color-surface-container-low: #FFFFFF !important;
  --color-surface-container: #F4EFE6 !important;
  --color-primary: #1B3B2B !important;
  --color-on-primary: #FFFFFF !important;
  --color-primary-container: #1B3B2B !important;
  --color-on-primary-container: #F3E5AB !important;
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif !important;
}

h1, h2, h3, .title, .section-head h2 {
  font-family: 'Cormorant Garamond', 'Cairo', serif !important;
  color: #1B3B2B !important;
  letter-spacing: -0.01em;
}

[layout="announcement-bar"] {
  background: linear-gradient(90deg, #12281D 0%, #1B3B2B 50%, #12281D 100%) !important;
  color: #F3E5AB !important;
  border: 1px solid #C5A059 !important;
  font-weight: 700 !important;
}

/* Bespoke Homepage Showcase */
.val-bespoke-home-wrap {
  width: 100%;
  margin: 16px auto;
}
.val-bespoke-hero-card {
  background: radial-gradient(circle at top right, #F4EFE6 0%, #FFFFFF 75%);
  border: 2px solid #E6DEC8;
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(27, 59, 43, 0.06);
}
.val-pill-top {
  display: inline-block;
  background: #1B3B2B;
  color: #F3E5AB;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid #C5A059;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.val-hero-main-title {
  font-size: 36px;
  line-height: 1.18;
  max-width: 820px;
  margin: 0 auto 14px auto;
}
.val-hero-sub {
  font-size: 16px;
  color: #4A4A4A;
  max-width: 720px;
  margin: 0 auto 20px auto;
}
.val-arabic-banner {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  background: #1B3B2B;
  color: #FFFFFF;
  padding: 15px 20px;
  border-radius: 12px;
  border-right: 5px solid #C5A059;
  max-width: 860px;
  margin: 0 auto 30px auto;
  font-size: 15px;
  line-height: 1.6;
}
.val-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
}
.val-pack-box {
  background: #FFFFFF;
  border: 1px solid #E6DEC8;
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.val-pack-featured {
  border: 2px solid #C5A059;
  box-shadow: 0 16px 36px rgba(27, 59, 43, 0.14);
  transform: translateY(-4px);
}
.val-pack-tag {
  display: inline-block;
  background: #F4EFE6;
  color: #1B3B2B;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.val-pack-tag-gold {
  display: inline-block;
  background: #C5A059;
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.val-pack-price {
  font-size: 30px;
  font-weight: 800;
  color: #1B3B2B;
  margin: 12px 0;
}
.val-pack-price del {
  font-size: 16px;
  color: #888;
  font-weight: 400;
}
.val-pack-price small {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}
.val-pack-box ul {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: 14px;
  margin: 14px 0 20px 0;
}
.val-pack-box li {
  margin-bottom: 8px;
}
.val-pack-btn-gold {
  display: block;
  background: linear-gradient(135deg, #1B3B2B 0%, #27533D 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #C5A059;
  box-shadow: 0 8px 20px rgba(27, 59, 43, 0.22);
}
.val-pack-btn-outline {
  display: block;
  background: #F4EFE6;
  color: #1B3B2B !important;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid #C5A059;
}

/* Luxury COD Express Form Wrapper on Product Page */
.val-lab-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: -12px;
}
.val-lab-pill-bar span {
  background: #1B3B2B;
  color: #F3E5AB;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid #C5A059;
}
.val-cod-form-wrapper {
  background: #FFFFFF;
  border: 2px solid #C5A059;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(27, 59, 43, 0.08);
}
.val-cod-form-header {
  background: #F4EFE6;
  border-left: 4px solid #1B3B2B;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.val-cod-form-header strong {
  color: #1B3B2B;
  font-size: 15px;
}
.val-cod-form-header span {
  font-size: 12px;
  color: #4A4A4A;
}
.val-cod-form-header .val-ar-line {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #1B3B2B;
  font-size: 13px;
}
[ui-button][data-variant="primary"], button.add-to-cart {
  background: linear-gradient(135deg, #1B3B2B 0%, #27533D 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #C5A059 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  min-height: 54px !important;
  box-shadow: 0 8px 22px rgba(27, 59, 43, 0.24) !important;
}
.val-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #F4EFE6;
  border: 1px solid #E6DEC8;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.val-trust-item {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #1B3B2B;
}
.val-trust-item small {
  font-size: 11px;
  color: #555;
}
.val-lp-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
.val-card {
  background: #FFFFFF;
  border: 1px solid #E6DEC8;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.val-badge {
  display: inline-block;
  background: #1B3B2B;
  color: #F3E5AB;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.val-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.val-pill {
  background: #F4EFE6;
  border-left: 4px solid #C5A059;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
}
.val-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.val-table th {
  background: #1B3B2B;
  color: #FFFFFF;
  padding: 12px;
  text-align: left;
}
.val-table td {
  padding: 12px;
  border-bottom: 1px solid #EFECE6;
}
@media (max-width: 768px) {
  .val-packs-grid, .val-trust-grid, .val-grid-2 {
    grid-template-columns: 1fr;
  }
  .val-hero-main-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   VALÉRIA BILINGUAL (FR / AR) SWITCHER & RTL ENGINE
   ========================================================================== */
html[data-val-lang="fr"] [data-lang="ar"] {
  display: none !important;
}
html[data-val-lang="ar"] [data-lang="fr"] {
  display: none !important;
}
html:not([data-val-lang]) [data-lang="ar"] {
  display: none !important;
}

html[data-val-lang="ar"],
html[data-val-lang="ar"] body {
  direction: rtl;
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif !important;
}

html[data-val-lang="ar"] .val-pack-box ul,
html[data-val-lang="ar"] .val-table th,
html[data-val-lang="ar"] .val-table td,
html[data-val-lang="ar"] .val-pill {
  text-align: right !important;
}

html[data-val-lang="ar"] .val-pill {
  border-left: none !important;
  border-right: 4px solid #C5A059 !important;
}

html[data-val-lang="ar"] .val-cod-form-header {
  border-left: none !important;
  border-right: 4px solid #1B3B2B !important;
  text-align: right;
}

/* Header Language Switcher Pill */
.val-lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #F4EFE6;
  border: 1.5px solid #C5A059;
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(27, 59, 43, 0.08);
}

.val-lang-btn {
  border: none;
  background: transparent;
  color: #1B3B2B;
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.val-lang-btn.is-active {
  background: #1B3B2B;
  color: #F3E5AB;
  box-shadow: 0 2px 6px rgba(27, 59, 43, 0.2);
}

.val-lang-btn:hover:not(.is-active) {
  background: rgba(197, 160, 89, 0.2);
}
