:root {
  --primary: #0f766e;
  --primary-dark: #0b3d3a;
  --primary-light: #e6f4f2;
  --accent: #14b8a6;
  --cleanser-primary: #0f766e;
  --cleanser-dark: #0b3d3a;
  --cleanser-light: #e6f4f2;
  --cleanser-accent: #14b8a6;
  --cleanser-soft: #f0fdfa;
  --cream-primary: #7c3aed;
  --cream-dark: #4c1d95;
  --cream-light: #ede9fe;
  --cream-accent: #8b5cf6;
  --cream-soft: #faf5ff;
  --bg: #f8fafa;
  --surface: #ffffff;
  --text: #102a28;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --whatsapp: #128c7e;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
  --primary: #5eead4;
  --primary-dark: #a7f3ea;
  --primary-light: #134e4a;
  --accent: #2dd4bf;
  --cleanser-primary: #2dd4bf;
  --cleanser-dark: #7ce3d3;
  --cleanser-light: #134e4a;
  --cleanser-accent: #2dd4bf;
  --cleanser-soft: #0f2a28;
  --cream-primary: #c4b5fd;
  --cream-dark: #ddd6fe;
  --cream-light: #2e1065;
  --cream-accent: #a78bfa;
  --cream-soft: #1e1533;
  --bg: #0e1b19;
  --surface: #162624;
  --text: #e8f2f0;
  --muted: #a8bfbb;
  --border: #2b403d;
  --danger: #fca5a5;
  --danger-bg: #331515;
  --success: #86efac;
  --success-bg: #122b1c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .site-header { background: rgba(22, 38, 36, 0.96); }
html[data-theme="dark"] .site-footer { background: #0b3d3a; }
html[data-theme="dark"] .header-more-btn,
html[data-theme="dark"] .header-search-close,
html[data-theme="dark"] .drawer-close,
html[data-theme="dark"] .qty-control button { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .header-search-bar { background: var(--surface); }
html[data-theme="dark"] .header-search-inner input,
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .btn-secondary { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .btn-primary { background: #0f766e; color: #fff; }
html[data-theme="dark"] .btn-primary:hover { background: #115e59; color: #fff; }
html[data-theme="dark"] .btn-cleanser { background: #0f766e; color: #fff; }
html[data-theme="dark"] .btn-cream { background: #6d28d9; color: #fff; }
html[data-theme="dark"] .cart-count { background: #0f766e; border-color: var(--surface); }
html[data-theme="dark"] .card-icon-btn.added { background: #0f766e; color: #fff; border-color: #0f766e; }
html[data-theme="dark"] .tag-cleanser { background: #0f766e; color: #fff; }
html[data-theme="dark"] .tag-cream { background: #6d28d9; color: #fff; }
html[data-theme="dark"] .trust-bar { background: var(--surface); }
html[data-theme="dark"] .card-icon-btn { background: rgba(22, 38, 36, 0.95); color: var(--text); }
html[data-theme="dark"] .logo { color: #e8f2f0; }
html[data-theme="dark"] .hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
html[data-theme="dark"] .hero-panel-cleanser,
html[data-theme="dark"] .hero-panel-cream { background: var(--surface); }
html[data-theme="dark"] .hero-badges li { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .product-card-visual.theme-cleanser,
html[data-theme="dark"] .product-card-visual.theme-cream { background: var(--surface); }
html[data-theme="dark"] .product-media { background: var(--surface); }
html[data-theme="dark"] .product-media-visual.theme-cleanser,
html[data-theme="dark"] .product-media-visual.theme-cream { background: var(--surface); }
html[data-theme="dark"] .product-details.theme-cleanser { background: linear-gradient(180deg, var(--surface), var(--cleanser-soft)); border-color: var(--border); }
html[data-theme="dark"] .product-details.theme-cream { background: linear-gradient(180deg, var(--surface), var(--cream-soft)); border-color: var(--border); }
html[data-theme="dark"] .product-details.theme-bundle { background: linear-gradient(180deg, var(--surface), var(--bg)); border-color: var(--border); }
html[data-theme="dark"] .product-extra { background: var(--surface); }
html[data-theme="dark"] .delivery-box { background: var(--surface); }
html[data-theme="dark"] .cart-item { background: var(--surface); }
html[data-theme="dark"] .mobile-sticky-bar:not([hidden]) { background: var(--surface); }
html[data-theme="dark"] .error-box { border-color: #7f1d1d; }
html[data-theme="dark"] .success-panel { border-color: #14532d; }
html[data-theme="dark"] .cart-item-visual.theme-cleanser { background: var(--cleanser-light); color: var(--cleanser-dark); border-color: var(--cleanser-primary); }
html[data-theme="dark"] .cart-item-visual.theme-cream { background: var(--cream-light); color: var(--cream-dark); border-color: var(--cream-primary); }

body[data-product-theme="cleanser"] {
  --primary: #0f766e;
  --primary-dark: #0b3d3a;
  --primary-light: #e6f4f2;
  --accent: #14b8a6;
  --bg: #f0fdfa;
}

body[data-product-theme="cream"] {
  --primary: #7c3aed;
  --primary-dark: #4c1d95;
  --primary-light: #ede9fe;
  --accent: #8b5cf6;
  --bg: #faf5ff;
  --shadow: 0 10px 30px rgba(124, 58, 237, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}
body.drawer-open { overflow: hidden; }
h1, h2, h3 { line-height: 1.4; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1200px, 92%); margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; color: var(--primary-dark); }
.logo span { color: var(--primary); font-size: 0.85rem; letter-spacing: 0.18em; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover, .main-nav a.active { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; }
.nav-categories, .drawer-categories { display: contents; }
.header-action-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  margin-inline-start: 1.25rem;
}
.header-more-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer; flex: 0 0 auto;
}
.header-more-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.header-more-btn svg { width: 22px; height: 22px; }
.header-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; padding: 0; flex: 0 0 auto;
}
.header-icon-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.header-icon-btn svg { width: 22px; height: 22px; }
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; border-radius: 999px; flex: 0 0 auto;
}
.cart-link:hover { background: var(--primary-light); text-decoration: none; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px;
  padding-inline: 4px; border-radius: 999px;
  background: var(--primary); color: #fff;
  border: 2px solid #fff;
  font-size: 0.65rem; font-weight: 700; line-height: 1;
}
.header-search-bar { background: #fff; border-top: 1px solid var(--border); padding: 0.6rem 0; }
.header-search-inner { display: flex; gap: 0.6rem; align-items: center; }
.header-search-inner svg { width: 22px; height: 22px; color: var(--muted); flex: 0 0 auto; }
.header-search-inner input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0.6rem 1rem;
  border: 1px solid var(--border); border-radius: 999px; font: inherit; background: #fff; color: var(--text);
}
.header-search-inner input:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.header-search-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer; flex: 0 0 auto;
}
.header-search-close:hover { border-color: var(--primary); color: var(--primary-dark); }

.drawer-overlay { position: fixed; inset: 0; background: rgba(16, 42, 40, 0.45); z-index: 30; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--surface); z-index: 40;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(105%); transition: transform 0.3s ease;
  visibility: hidden; display: flex; flex-direction: column;
}
html[dir="ltr"] .drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15); }
html[dir="ltr"] .drawer.open { transform: translateX(0); }
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-head strong { font-size: 1.1rem; color: var(--primary-dark); }
.drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer;
}
.drawer-close:hover { border-color: var(--primary); color: var(--primary-dark); }
.drawer-nav { display: flex; flex-direction: column; padding: 0.5rem 0; overflow-y: auto; }
.drawer-nav a { display: flex; align-items: center; min-height: 44px; padding: 0.8rem 1.25rem; color: var(--text); font-weight: 700; border-bottom: 1px solid var(--border); }
.drawer-nav a:hover { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; }
.drawer-nav a.active { background: var(--primary-light); color: var(--primary-dark); }
/* أي عنصر عليه hidden جوه الهيدر أو الدرج يتخفي فعلاً، حتى لو قاعدة تانية بتحط له display. */
.site-header [hidden],
.drawer [hidden] {
  display: none !important;
}

.cover-section { padding: 0; background: #cbcbcb; }
.cover-image { width: 100%; height: auto; max-height: 480px; object-fit: contain; object-position: center; display: block; margin-inline: auto; border-radius: 0 0 24px 24px; background: #cbcbcb; }

.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding-bottom: 2.5rem; }
.hero-inner { padding-block: 3.5rem 1.5rem; text-align: center; }
.hero-eyebrow { margin: 0 0 0.5rem; color: var(--primary); font-weight: 800; letter-spacing: 0.22em; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.25; color: var(--primary-dark); }
.hero-text { margin: 0 auto 1rem; max-width: 620px; color: var(--muted); font-size: 1.1rem; }
.hero-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.hero-panel {
  border-radius: 24px; padding: 1.75rem; display: flex; gap: 1.25rem; align-items: center;
  border: 1px solid var(--border); box-shadow: var(--shadow); text-align: start;
}
.hero-panel-cleanser { background: linear-gradient(135deg, #ffffff 0%, #e6f4f2 60%, #ccfbf1 100%); border-top: 8px solid var(--cleanser-primary); }
.hero-panel-cream { background: linear-gradient(135deg, #ffffff 0%, #ede9fe 60%, #ddd6fe 100%); border-top: 8px solid var(--cream-primary); }
.hero-panel-body h2 { margin: 0.4rem 0 0.5rem; color: var(--text); font-size: 1.35rem; line-height: 1.4; }
.hero-panel-body p { margin: 0 0 0.75rem; color: var(--muted); }
.hero-panel-tag { display: inline-block; font-size: 0.8rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 999px; margin: 0; }
.tag-cleanser { background: var(--cleanser-primary); color: #fff; }
.tag-cream { background: var(--cream-primary); color: #fff; }
.hero-price { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0 0 1rem; }
.hero-panel-cleanser .hero-price { color: var(--cleanser-dark); }
.hero-panel-cream .hero-price { color: var(--cream-dark); }
.hero-badges-wrap { margin-top: 1.5rem; }
.hero-badges { list-style: none; display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.hero-badges li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.9rem; font-weight: 600; }

.pack {
  flex: 0 0 118px; width: 118px; height: 192px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 0.6rem; text-align: center; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.pack-cleanser { background: #fff; border: 3px solid var(--cleanser-primary); border-top: 18px solid var(--cleanser-primary); border-bottom: 18px solid var(--cleanser-primary); }
.pack-cream { background: #fff; border: 3px solid var(--cream-primary); border-top: 18px solid var(--cream-primary); border-bottom: 18px solid var(--cream-primary); }
.pack-brand { font-weight: 900; letter-spacing: 0.12em; font-size: 1.05rem; }
.pack-cleanser .pack-brand { color: var(--cleanser-dark); }
.pack-cream .pack-brand { color: var(--cream-dark); }
.pack-type { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; line-height: 1.6; color: var(--muted); }
.pack-line { width: 44px; height: 4px; border-radius: 999px; }
.pack-cleanser .pack-line { background: var(--cleanser-accent); }
.pack-cream .pack-line { background: var(--cream-accent); }
.pack-small { flex-basis: 96px; width: 96px; height: 168px; }

.section { padding-block: 3rem; }
.page-head { padding-block: 2.5rem 0; }
.page-head h1 { margin: 0 0 0.5rem; color: var(--primary-dark); }
.page-head p { margin: 0; color: var(--muted); }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { margin: 0 0 0.35rem; color: var(--primary-dark); }
.section-head p { margin: 0; color: var(--muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin: 0;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  min-width: 0;
}
.product-card.theme-cleanser { border-top: 7px solid var(--cleanser-primary); }
.product-card.theme-cream { border-top: 7px solid var(--cream-primary); }
.product-card.theme-bundle { border-top: 7px solid var(--cleanser-primary); border-bottom: 7px solid var(--cream-primary); }
.product-card-media { position: relative; }
.product-card-image { aspect-ratio: 4 / 5; object-fit: contain; object-position: center; width: 100%; background: #cbcbcb; display: block; }
.product-card-image-link { display: block; width: 100%; }
.product-card-image-link:hover { text-decoration: none; }
.product-card-visual { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.25rem; }
.product-card-visual.theme-cleanser { background: linear-gradient(135deg, #ffffff, #e6f4f2); }
.product-card-visual.theme-cream { background: linear-gradient(135deg, #ffffff, #ede9fe); }
.product-card-overlay-actions {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.card-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95); color: var(--primary-dark);
  cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.card-icon-btn:hover { background: var(--primary-light); text-decoration: none; }
.card-icon-btn svg { width: 20px; height: 20px; }
.card-icon-btn.added { background: var(--primary); color: #fff; border-color: var(--primary); }
.card-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.product-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-body h3 { margin: 0; color: var(--primary-dark); font-size: 1.1rem; line-height: 1.5; position: relative; overflow: hidden; }
.product-card-body h3 a { color: inherit; position: relative; display: inline-block; }
.product-card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(20, 184, 166, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: product-name-shine 1.4s ease 0.4s 1 forwards;
}
.product-card.theme-cleanser .product-card-body h3 a::after { background: linear-gradient(110deg, transparent 30%, rgba(20, 184, 166, 0.35) 50%, transparent 70%); }
.product-card.theme-cream .product-card-body h3 a::after { background: linear-gradient(110deg, transparent 30%, rgba(139, 92, 246, 0.35) 50%, transparent 70%); }
.product-card.theme-bundle .product-card-body h3 a::after { background: linear-gradient(110deg, transparent 30%, rgba(15, 118, 110, 0.35) 50%, transparent 70%); }
.product-tag { display: inline-block; align-self: flex-start; font-size: 1rem; font-weight: 800; padding: 0; border-radius: 0; color: var(--primary); background: transparent; letter-spacing: 0.02em; direction: ltr; unicode-bidi: isolate; margin: 0; }
.product-tag a { color: inherit; text-decoration: none; }
.product-tag a:hover { text-decoration: underline; }
.product-tag.theme-cleanser { background: transparent; color: var(--cleanser-primary); }
.product-tag.theme-cream { background: transparent; color: var(--cream-primary); }
.product-tag.theme-bundle { background: transparent; color: var(--primary-dark); }
.product-desc { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.product-size { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.product-size strong { color: var(--text); margin-inline-end: 0.4rem; }
.product-size span { display: inline-block; }
.product-price { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); line-height: 1.4; }
.product-card-body .product-price { font-size: 1.8rem; line-height: 1.3; }
.product-shipping-note { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.old-price { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.old-price s { text-decoration: line-through; }

.bundle-section { background: linear-gradient(135deg, #f0fdfa, #faf5ff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bundle-section #bundle-card { max-width: 640px; margin-inline: auto; }
.bundle-card { border-width: 2px; }

.trust-bar { margin-top: 1.75rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.6rem 1rem; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; margin: 0; padding: 0; font-size: 0.92rem; }
.trust-list li { display: flex; gap: 0.35rem; align-items: baseline; }
.trust-list strong { font-weight: 800; color: var(--primary-dark); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.feature-card.feature-cleanser { border-top: 6px solid var(--cleanser-primary); }
.feature-card.feature-cream { border-top: 6px solid var(--cream-primary); }
.feature-card h3 { margin: 0 0 0.5rem; color: var(--primary-dark); }
.feature-card p { margin: 0; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid transparent; border-radius: 999px; padding: 0.75rem 1.35rem;
  font-weight: 700; cursor: pointer; min-height: 44px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); text-decoration: none; }
.btn-cleanser { background: var(--cleanser-primary); color: #fff; }
.btn-cleanser:hover { background: var(--cleanser-dark); text-decoration: none; }
.btn-cream { background: var(--cream-primary); color: #fff; }
.btn-cream:hover { background: var(--cream-dark); text-decoration: none; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0b6b5e; text-decoration: none; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; min-height: 44px; }

.breadcrumb { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-block: 1.5rem 0; color: var(--muted); font-size: 0.95rem; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; padding-block: 1.5rem 2rem; }
.product-details.theme-cleanser { background: linear-gradient(180deg, #ffffff, var(--cleanser-soft)); border: 1px solid #ccfbf1; border-radius: 24px; padding: 1.5rem; }
.product-details.theme-cream { background: linear-gradient(180deg, #ffffff, var(--cream-soft)); border: 1px solid #ddd6fe; border-radius: 24px; padding: 1.5rem; }
.product-details.theme-bundle { background: linear-gradient(180deg, #ffffff, #f0fdfa); border: 1px solid var(--border); border-radius: 24px; padding: 1.5rem; }
.product-media { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.product-media.theme-cleanser { border-top: 7px solid var(--cleanser-primary); }
.product-media.theme-cream { border-top: 7px solid var(--cream-primary); }
.product-media.theme-bundle { border-top: 7px solid var(--cleanser-primary); }
.product-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center; background: #cbcbcb; border-radius: 10px; }
.product-media a { display: block; }
.product-media-visual { min-height: 320px; display: flex; align-items: center; justify-content: center; border-radius: 10px; padding: 1.5rem; }
.product-media-visual.theme-cleanser { background: linear-gradient(135deg, #ffffff, #e6f4f2); }
.product-media-visual.theme-cream { background: linear-gradient(135deg, #ffffff, #ede9fe); }
.product-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.product-thumbs img { width: 72px; height: 72px; object-fit: contain; background: #cbcbcb; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; }
.product-thumbs img.active { border-color: var(--primary); }
.product-thumbs a { display: inline-block; }
.product-info { display: grid; gap: 1rem; align-content: start; }
.product-info h1 { margin: 0; color: var(--primary-dark); line-height: 1.4; font-size: 1.6rem; }
.product-info .product-price { font-size: 1.6rem; }
.product-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.qty-input { width: 84px; min-height: 44px; font-family: inherit; font-size: 16px; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; scroll-margin-block: 120px; }
.stock-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.out-of-stock { color: var(--danger); font-weight: 700; }

.product-extra { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-block: 0 1.5rem; }
.product-extra h2 { margin: 0 0 0.5rem; color: var(--primary-dark); }
.product-extra h3 { margin: 1.25rem 0 0.5rem; color: var(--primary-dark); }
.product-extra p { margin: 0 0 0.5rem; }
.usage-list, .ingredients-list { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.4rem; }
.usage-list li::marker { font-weight: 800; }
.ingredients-list { list-style: none; padding-inline-start: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ingredients-list li { background: var(--primary-light); border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.9rem; direction: ltr; }

.delivery-section { margin-block: 0 2rem; }
.delivery-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.delivery-box summary { cursor: pointer; font-weight: 800; color: var(--primary-dark); min-height: 44px; display: flex; align-items: center; list-style: none; }
.delivery-box summary::-webkit-details-marker { display: none; }
.delivery-body { padding-top: 1rem; display: grid; gap: 1rem; }
.timeline { display: flex; flex-direction: row; gap: 0.75rem; }
.timeline-step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; align-items: center; text-align: center; border-top: 3px solid var(--primary-light); padding-top: 0.75rem; }
.timeline-step strong { color: var(--primary-dark); }
.timeline-step span:last-child { color: var(--muted); font-size: 0.9rem; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin-top: -0.85rem; }

.mobile-sticky-bar { display: none; }
.mobile-sticky-bar:not([hidden]) { display: none; }

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; padding-bottom: 1rem; }
.cart-items, .cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.cart-summary h2 { margin-top: 0; color: var(--primary-dark); }
.summary-rows { margin: 0 0 1rem; min-width: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--border); }
.summary-row > span { min-width: 0; overflow-wrap: anywhere; }
.summary-row > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.summary-row.total { border-bottom: 0; font-weight: 800; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: start; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 0.9rem; background: #fff; }
.cart-item.theme-cleanser { border-inline-start: 6px solid var(--cleanser-primary); }
.cart-item.theme-cream { border-inline-start: 6px solid var(--cream-primary); }
.cart-item.theme-bundle { border-inline-start: 6px solid var(--cream-primary); }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.cart-item-visual { width: 84px; height: 84px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.8rem; }
.cart-item-visual.theme-cleanser { background: var(--cleanser-light); color: var(--cleanser-dark); border: 2px solid var(--cleanser-primary); }
.cart-item-visual.theme-cream { background: var(--cream-light); color: var(--cream-dark); border: 2px solid var(--cream-primary); }
.cart-item h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.cart-item h3 a { color: inherit; }
.cart-item-price { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cart-item-line-total { font-weight: 800; margin: 0.5rem 0 0; }
.qty-control { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.qty-control button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 800; }
.qty-control span { min-width: 28px; text-align: center; font-weight: 700; }
.remove-btn { background: none; border: 0; color: var(--danger); cursor: pointer; padding: 0.25rem 0; font-size: 0.9rem; min-height: 44px; }

.checkout-section { padding-top: 1rem; }
.checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; min-width: 0; }
.checkout-card h2 { margin-top: 0; color: var(--primary-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-group { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; background: #fff; color: var(--text); min-height: 44px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.field-hint { color: var(--muted); font-size: 0.85rem; }

.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; min-width: 0; }
.settings-group { border: 0; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; min-width: 0; }
.settings-group:last-of-type { margin-bottom: 1rem; }
.settings-group legend { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; padding: 0; margin-bottom: 0.25rem; }
.settings-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.settings-options { display: grid; gap: 0.6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-option {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 0.9rem;
  cursor: pointer; min-height: 44px; font-weight: 700; background: var(--surface);
}
.settings-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.settings-option input { accent-color: var(--primary); width: 18px; height: 18px; flex: 0 0 auto; }
.settings-saved { color: var(--success); font-weight: 700; margin: 0; }

.reviews-list { display: grid; gap: 1rem; }
.reviews-section { padding-top: 1rem; }

.empty-state { color: var(--muted); text-align: center; padding: 2rem 1rem; }
.muted-note { color: var(--muted); font-size: 0.9rem; }
.loading-state { color: var(--muted); text-align: center; padding: 2rem 1rem; }
.error-box { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; border-radius: 12px; padding: 0.9rem 1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.success-panel { background: var(--success-bg); border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 2rem; text-align: center; }
.success-panel h2 { color: var(--success); margin-top: 0; }
.order-number { font-size: 1.75rem; font-weight: 800; color: var(--primary-dark); direction: ltr; margin: 0.5rem 0 1rem; }

/* سجل طلباتي في صفحة حسابي: كروت مرصوصة بدل الجدول، من غير أي overflow أفقي. */
#my-orders-list { display: grid; gap: 1rem; min-width: 0; width: 100%; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}
.order-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order-status {
  flex: 0 0 auto;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.order-card p { margin: 0.4rem 0; overflow-wrap: anywhere; word-break: break-word; }
.order-card .muted-note { margin: 0.4rem 0; }
.order-address { overflow-wrap: anywhere; word-break: break-word; }
.order-items { display: grid; gap: 0.6rem; margin-block: 0.75rem; min-width: 0; }
.order-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  min-width: 0;
}
.order-item-name { flex: 1 1 140px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; word-break: break-word; }
.order-item-qty { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.order-item-unit { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.order-item-total { font-weight: 800; white-space: nowrap; }
.order-card .summary-rows { margin: 0.75rem 0 0; }

.skeleton { border-radius: 10px; background: linear-gradient(90deg, #eef2f2 25%, #f8fafa 50%, #eef2f2 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-image { aspect-ratio: 4 / 3; }
.skeleton-image.large { aspect-ratio: 1 / 1; }
.skeleton-line { height: 16px; margin-top: 1rem; }
.skeleton-line.short { width: 55%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes product-name-shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.site-footer { border-top: 1px solid var(--border); background: var(--primary-dark); color: #dbecea; }
.footer-inner { padding-block: 2.5rem; }
.footer-inner p { margin: 0.2rem 0; }
.footer-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 1rem 0 0; padding: 0; }
.footer-trust li { display: flex; gap: 0.4rem; align-items: baseline; }
.footer-trust strong { color: #fff; font-weight: 800; }
.footer-trust a { color: #fff; font-weight: 600; }
.footer-copy { opacity: 0.75; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .skeleton { animation: none !important; }
  .drawer { transition: none !important; }
  .product-card-body h3 a::after { animation: none !important; display: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: nowrap; justify-content: space-between; }
  .main-nav { flex-wrap: nowrap; gap: 0.25rem; }
  .main-nav > a:not(.cart-link) { display: none; }
  .header-more-btn, .header-icon-btn, .cart-link { display: inline-flex; flex: 0 0 auto; }
  .header-action-group { margin-inline-start: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-duo { grid-template-columns: 1fr; }
  .product-details, .cart-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 3rem 1.5rem; }
  .cover-section { background: #cbcbcb; }
  .cover-image { max-height: 260px; object-fit: contain; object-position: center; background: #cbcbcb; }
  .trust-bar { border-radius: var(--radius); }
  .trust-list { flex-direction: column; align-items: flex-start; }
  .footer-trust { flex-direction: column; gap: 0.5rem; }
  .order-card { padding: 1rem; }
  .order-item-name { flex-basis: 100%; }
  .settings-options { grid-template-columns: 1fr; }
  .mobile-sticky-bar:not([hidden]) {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.6rem;
    align-items: center;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  }
  .sticky-price { font-weight: 800; font-size: 1.1rem; color: var(--primary-dark); white-space: nowrap; }
  .mobile-sticky-bar .btn { flex: 1; min-height: 44px; padding: 0.6rem 0.5rem; font-size: 0.95rem; }
  body { padding-bottom: 76px; }
}
@media (max-width: 520px) {
  .header-inner { justify-content: space-between; text-align: start; flex-wrap: nowrap; }
  .main-nav { justify-content: flex-end; flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-panel { flex-direction: column; text-align: center; }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .product-actions .btn { flex: 1 1 100%; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img, .cart-item-visual { width: 64px; height: 64px; }
  .timeline { gap: 0.5rem; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-duo { grid-template-columns: minmax(0, 1fr); }
  .container { width: min(1200px, 94%); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.stat-label {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
.stat-value {
  margin: 0;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block: 1rem;
}
.admin-toolbar p {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}
.admin-table th,
.admin-table td {
  text-align: start;
  vertical-align: top;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.admin-table thead th {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table tbody tr:hover {
  background: var(--bg);
}
@media (max-width: 820px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* الوضع الداكن: تباين العناوين والنصوص الرئيسية والروابط — ييجي في الآخر عشان يغلب القواعد اللي فوقه. */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 { color: #e8f2f0; }
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .product-info h1,
html[data-theme="dark"] .product-extra h2,
html[data-theme="dark"] .product-extra h3,
html[data-theme="dark"] .checkout-card h2,
html[data-theme="dark"] .cart-summary h2,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .drawer-head strong,
html[data-theme="dark"] .settings-group legend,
html[data-theme="dark"] .order-card-head h3,
html[data-theme="dark"] .cart-item h3 { color: #e8f2f0; }
html[data-theme="dark"] .product-price,
html[data-theme="dark"] .product-info .product-price,
html[data-theme="dark"] .sticky-price,
html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .order-number,
html[data-theme="dark"] .cart-item-line-total,
html[data-theme="dark"] .order-item-total { color: #99f6e4; }
html[data-theme="dark"] .hero-eyebrow,
html[data-theme="dark"] .logo span,
html[data-theme="dark"] a { color: #5eead4; }
html[data-theme="dark"] .product-tag.theme-cleanser { color: #2dd4bf; }
html[data-theme="dark"] .product-tag.theme-cream { color: #c4b5fd; }
html[data-theme="dark"] .product-tag.theme-bundle { color: #a7f3ea; }
html[data-theme="dark"] .delivery-box summary,
html[data-theme="dark"] .timeline-step strong { color: #a7f3ea; }
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .summary-row.total span,
html[data-theme="dark"] .order-item-name { color: #e8f2f0; }
html[data-theme="dark"] .success-panel h2 { color: #86efac; }
html[data-theme="dark"] .admin-table thead th { color: #e8f2f0; }

/* صفحة المنتج: أيقونات السلة فوق الصورة */
.product-media-frame { position: relative; }
.product-media .card-icon-btn { display: inline-flex; }
html[data-theme="dark"] .product-media .card-icon-btn.added { background: #0f766e; color: #fff; border-color: #0f766e; }

/* الشريط السفلي في صفحة المنتج: أيقونات بدل الأزرار */
.sticky-icon-btn svg { width: 22px; height: 22px; }
.mobile-sticky-bar .sticky-icon-btn { flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-sticky-bar .sticky-price { margin-inline-end: auto; }
.mobile-sticky-bar .sticky-icon-btn.added { background: var(--primary-dark); box-shadow: 0 0 0 3px var(--primary-light); animation: addPop 320ms var(--ease-out); }
@keyframes addPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* نقاط الولاء: الدرج وبانر الرئيسية */
.drawer-nav a.drawer-points-link { color: var(--primary-dark); background: var(--primary-light); }
.drawer-nav a.drawer-points-link[hidden] { display: none; }
.loyalty-banner-section { padding-block: 1.25rem 0; }
.loyalty-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--primary-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.loyalty-banner h2 { margin: 0 0 0.25rem; font-size: 1.2rem; color: var(--primary-dark); }
.loyalty-banner-text { margin: 0; color: var(--text); }
.loyalty-banner-balance { margin: 0.5rem 0 0; font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; }
.loyalty-banner-balance[hidden] { display: none; }
html[data-theme="dark"] .loyalty-banner { background: var(--surface); }
html[data-theme="dark"] .drawer-nav a.drawer-points-link { background: var(--surface); color: var(--text); }
.header-points-badge { min-width: 18px; padding-inline: 4px; width: auto; border-radius: 999px; background: #b7791f; }
.header-points-badge[hidden] { display: none; }
.header-fav-count[hidden] { display: none; }

/* الهيدر على الموبايل: مساحة لأيقونة الحساب */
@media (max-width: 520px) {
  .header-action-group { margin-inline-start: 0; gap: 0.15rem; }
  .cart-link, .header-icon-btn { width: 40px; min-width: 40px; }
  .main-nav { gap: 0; }
  .main-nav > a:not(.cart-link) { padding-inline: 0.45rem; }
}

/* ===== الهيدر الجديد: هامبرجر + بحث في ناحية، الشعار في النص، الحساب والسلة في الناحية التانية ===== */
.site-header { background: #eef6f4; border-bottom: 1px solid #d8e8e4; backdrop-filter: none; }
html[data-theme="dark"] .site-header { background: #162624; border-bottom-color: #24403c; }
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: 64px; flex-wrap: nowrap; padding-block: 0.45rem; }
.header-cluster { display: flex; align-items: center; gap: 0.25rem; flex: 0 0 auto; }
.header-cluster-start { order: 3; margin-inline-start: auto; }
.header-cluster-end { order: 2; margin-inline-start: auto; }
.header-cluster-end .main-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-header .logo { order: 1; display: inline-flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.site-header svg { stroke-width: 1.5; }
.site-header .header-more-btn,
.site-header .header-icon-btn,
.site-header .cart-link { width: 42px; height: 42px; min-width: 42px; min-height: 42px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.site-header .header-more-btn:hover,
.site-header .header-icon-btn:hover,
.site-header .cart-link:hover { background: rgba(15, 118, 110, 0.10); border-color: rgba(15, 118, 110, 0.18); color: var(--primary-dark); text-decoration: none; }
html[data-theme="dark"] .site-header .header-more-btn,
html[data-theme="dark"] .site-header .header-icon-btn,
html[data-theme="dark"] .site-header .cart-link { background: transparent; color: var(--text); }
html[data-theme="dark"] .site-header .header-more-btn:hover,
html[data-theme="dark"] .site-header .header-icon-btn:hover,
html[data-theme="dark"] .site-header .cart-link:hover { background: rgba(20, 184, 166, 0.14); color: #e8f2f0; }
.site-header .cart-count { position: absolute; top: 2px; inset-inline-end: 2px; border-color: #eef6f4; }
html[data-theme="dark"] .site-header .cart-count { border-color: #162624; }

@media (max-width: 860px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.35rem; min-height: 58px; }
  .header-cluster-start { order: 1; justify-self: start; margin-inline-start: 0; }
  .header-cluster-end { order: 3; justify-self: end; margin-inline-start: 0; gap: 0.15rem; }
  .header-cluster-end .main-nav { display: none; }
  .site-header .logo { order: 2; justify-self: center; flex-direction: column; align-items: center; gap: 0; line-height: 1.05; font-size: 1.15rem; text-align: center; }
  .site-header .logo span { font-size: 0.62rem; letter-spacing: 0.22em; }
  .site-header .header-more-btn,
  .site-header .header-icon-btn,
  .site-header .cart-link { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .site-header svg { width: 21px; height: 21px; }
}

/* ===== المفضلة: قلب ممتلئ لما المنتج محفوظ ===== */
.card-icon-btn.is-favorite { background: #fde8ec; color: #e11d48; border-color: #f8c9d3; }
.card-icon-btn.is-favorite svg { fill: currentColor; }
.card-icon-btn.is-favorite:hover { background: #fbd5dd; }
html[data-theme="dark"] .card-icon-btn.is-favorite { background: rgba(225, 29, 72, 0.22); color: #fda4b4; border-color: rgba(225, 29, 72, 0.4); }
html[data-theme="dark"] .card-icon-btn.is-favorite:hover { background: rgba(225, 29, 72, 0.3); }
.card-icon-btn.added { background: var(--primary); color: #fff; border-color: var(--primary); }
.card-icon-btn.added:hover { background: var(--primary-dark); color: #fff; }
#favorites-page { padding-block: 1.5rem 2.5rem; }
#favorites-page h1 { margin-block: 0 0.75rem; }
#favorites-grid { padding-block: 0.5rem; }

/* ===== أيقونة واتساب: بدل كلمة "واتساب" في الفوتر، وجنب سطر "تواصل معنا على واتساب" ===== */
.footer-trust [data-i18n="footer.whatsapp"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  font-size: 0;
  line-height: 0;
  align-self: center;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.04 2a9.9 9.9 0 0 0-8.47 15.02L2 22l5.12-1.34A9.9 9.9 0 1 0 12.04 2Zm0 18.08c-1.5 0-2.97-.4-4.25-1.17l-.3-.18-3.04.8.81-2.96-.2-.31a8.08 8.08 0 1 1 6.98 3.82Zm4.43-6.05c-.24-.12-1.44-.71-1.66-.79-.22-.08-.38-.12-.55.12-.16.24-.63.79-.77.95-.14.16-.28.18-.52.06-.24-.12-1.02-.38-1.94-1.2-.72-.64-1.2-1.43-1.34-1.67-.14-.24-.02-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.55-1.32-.75-1.8-.2-.47-.4-.41-.55-.42h-.47c-.16 0-.42.06-.64.3-.22.24-.84.82-.84 2s.86 2.32.98 2.48c.12.16 1.69 2.58 4.1 3.62.57.25 1.02.4 1.37.5.58.18 1.1.16 1.51.1.46-.07 1.44-.59 1.64-1.16.2-.57.2-1.06.14-1.16-.06-.1-.22-.16-.46-.28Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.04 2a9.9 9.9 0 0 0-8.47 15.02L2 22l5.12-1.34A9.9 9.9 0 1 0 12.04 2Zm0 18.08c-1.5 0-2.97-.4-4.25-1.17l-.3-.18-3.04.8.81-2.96-.2-.31a8.08 8.08 0 1 1 6.98 3.82Zm4.43-6.05c-.24-.12-1.44-.71-1.66-.79-.22-.08-.38-.12-.55.12-.16.24-.63.79-.77.95-.14.16-.28.18-.52.06-.24-.12-1.02-.38-1.94-1.2-.72-.64-1.2-1.43-1.34-1.67-.14-.24-.02-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.55-1.32-.75-1.8-.2-.47-.4-.41-.55-.42h-.47c-.16 0-.42.06-.64.3-.22.24-.84.82-.84 2s.86 2.32.98 2.48c.12.16 1.69 2.58 4.1 3.62.57.25 1.02.4 1.37.5.58.18 1.1.16 1.51.1.46-.07 1.44-.59 1.64-1.16.2-.57.2-1.06.14-1.16-.06-.1-.22-.16-.46-.28Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.trust-whatsapp { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.trust-whatsapp:hover { text-decoration: underline; }
.trust-whatsapp svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--primary); }
html[data-theme="dark"] .trust-whatsapp { color: var(--text); }
html[data-theme="dark"] .trust-whatsapp svg { color: #14b8a6; }

/* ===== حركة الموقع: transform و opacity فقط، مع احترام prefers-reduced-motion ===== */
:root { --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); }

/* 1) ظهور العناصر مع السكرول: ارتفاع 16px وتأخير متتابع 60ms */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }

/* 2) صورة الغلاف: زووم بطيء، وعناوين الأقسام تطلع بنعومة */
.cover-section { overflow: hidden; }
.cover-image { animation: coverZoom 12s ease-out both; transform-origin: center; }
@keyframes coverZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.section-head { animation: softFade 450ms var(--ease-out) both; }
@keyframes softFade { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }

/* 3) زووم صورة المنتج + نبضة القلب */
.product-card-media { overflow: hidden; }
.product-card-image, .product-card-visual { transition: transform 400ms var(--ease-out); }
.product-card:hover .product-card-image,
.product-card:active .product-card-image,
.product-card:hover .product-card-visual,
.product-card:active .product-card-visual { transform: scale(1.04); }
.fav-btn.is-favorite svg { animation: heartPop 360ms var(--ease-out); }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 70% { transform: scale(0.94); } 100% { transform: scale(1); } }

/* 4) إضافة للسلة: علامة صح، توست، بونس السلة، نبضة العداد */
.card-icon-btn.added svg { animation: addPulse 320ms var(--ease-out); }
@keyframes addPulse { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1); } }
.cart-link.bump svg { animation: cartBump 520ms var(--ease-out); }
@keyframes cartBump { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } 55% { transform: translateY(0); } 75% { transform: translateY(-2px); } }
#cart-count.pop { animation: badgePop 420ms var(--ease-out); }
@keyframes badgePop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.orvac-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--primary-dark); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1.1rem; border-radius: 999px; max-width: 88vw; text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.orvac-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 5) ظل الهيدر مع السكرول + فتح شريط البحث بحركة */
.site-header { transition: box-shadow 220ms var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 8px 20px rgba(15, 63, 58, 0.10); }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.header-search-bar {
  overflow: hidden; max-height: 0; opacity: 0; padding-block: 0; border-top-color: transparent;
  transition: max-height 220ms var(--ease-out), opacity 180ms var(--ease-out), padding 220ms var(--ease-out), border-color 180ms var(--ease-out);
}
.header-search-bar.is-open { max-height: 96px; opacity: 1; padding-block: 0.6rem; border-top-color: var(--border); }

/* 6) انتقال ناعم بين الصفحات (150ms) في المتصفحات اللي بتدعم View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageFadeOut 150ms ease-out both; }
::view-transition-new(root) { animation: pageFadeIn 150ms ease-out both; }
@keyframes pageFadeOut { to { opacity: 0; } }
@keyframes pageFadeIn { from { opacity: 0; } }

/* 7) سكيليتون التحميل */
.skeleton-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.skeleton-detail { margin-bottom: 1.5rem; }
.skeleton-block {
  background: linear-gradient(100deg, rgba(15, 118, 110, 0.06) 20%, rgba(15, 118, 110, 0.16) 40%, rgba(15, 118, 110, 0.06) 60%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skeleton-media { aspect-ratio: 4 / 3; }
.skeleton-line { height: 12px; border-radius: 999px; margin: 0.75rem 1rem; }
.skeleton-line.short { width: 45%; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cover-image, .section-head, .fav-btn.is-favorite svg, .cart-link.bump svg, #cart-count.pop, .card-icon-btn.added svg, .skeleton-block { animation: none !important; }
  .product-card-image, .product-card-visual, .site-header, .header-search-bar, .orvac-toast { transition: none !important; }
}

/* ===== صفحة القسم: مسار، هيدر، عداد وترتيب ===== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-block: 1rem 0.25rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb span[aria-hidden] { opacity: 0.45; }
.breadcrumb > span:last-child { color: var(--text); font-weight: 700; }
.category-header { margin-block: 0.25rem 1rem; }
.category-header h1 { margin: 0 0 0.35rem; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.25; color: var(--primary-dark); }
.category-subtitle { margin: 0; color: var(--muted); font-size: 0.98rem; }
.category-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.5rem 0.85rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; margin-block: 0 1.1rem;
}
.category-count { font-weight: 800; color: var(--primary-dark); font-size: 0.92rem; }
.category-sort { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.category-sort select {
  min-height: 44px; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font: inherit; font-weight: 700;
}
.category-sort select:focus-visible { outline: 2px solid var(--primary-light); border-color: var(--primary); }
html[data-theme="dark"] .category-toolbar { background: var(--surface); }
html[data-theme="dark"] .category-sort select { background: var(--bg); color: var(--text); }
#category-products-grid { margin-bottom: 2rem; }
#category-products-empty {
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 2.5rem 1.25rem; margin-block: 1rem 2rem;
}
@media (max-width: 520px) {
  .category-toolbar { border-radius: var(--radius); padding: 0.6rem 0.75rem; }
  .category-sort { flex: 1 1 100%; justify-content: space-between; }
  .category-sort select { flex: 1 1 auto; }
}

/* أهداف لمس أكبر لأزرار الكارت على الموبايل (44px) */
@media (max-width: 860px) {
  .product-card-overlay-actions { gap: 0.85rem; }
  .product-card-overlay-actions .card-icon-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
  .product-card-overlay-actions .card-icon-btn svg { width: 16px; height: 16px; }
  /* مساحة اللمس 44px من غير ما الأيقونة نفسها تكبر */
  .product-card-overlay-actions .card-icon-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; }
}

/* ===== كروت المنتجات: اتنين في الصف على الموبايل، وعمود واحد على الديسكتوب ===== */
@media (max-width: 820px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .products-grid .product-card-body { padding: 0.7rem 0.75rem 0.85rem; gap: 0.3rem; }
  .products-grid .product-card-body h3 { font-size: 0.95rem; line-height: 1.4; }
  .products-grid .product-desc { display: none; }
  .products-grid .product-size { font-size: 0.78rem; line-height: 1.5; }
  .products-grid .product-price { font-size: 1.05rem; }
  .products-grid .old-price { font-size: 0.78rem; }
  .products-grid .product-shipping-note { font-size: 0.72rem; line-height: 1.45; }
  .products-grid .product-tag { font-size: 0.82rem; }
  .products-grid .product-card-overlay-actions { top: 0.45rem; inset-inline-start: 0.45rem; gap: 0.8rem; }
  .products-grid .product-card-overlay-actions .card-icon-btn { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
  .products-grid .product-card-overlay-actions .card-icon-btn svg { width: 15px; height: 15px; }
  .products-grid .product-card { display: flex; flex-direction: column; height: 100%; }
}


/* Desktop: keep the product grid compact while the whole pack stays visible */
@media (min-width: 821px) {
  .product-card-image, .product-card-visual { max-height: 440px; }
}


/* Add-to-cart: the cart icon stays, the button flashes a filled highlight */
.card-icon-btn, .sticky-icon-btn { transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out); }

/* ===== المنتج في السلة: تعبئة واضحة + حلقة ===== */
.card-icon-btn.added,
.product-media .card-icon-btn.added {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.card-icon-btn.added:hover,
.product-media .card-icon-btn.added:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--primary-light);
}
html[data-theme="dark"] .card-icon-btn.added,
html[data-theme="dark"] .product-media .card-icon-btn.added {
  background: #0f766e;
  color: #fff;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.45);
}
html[data-theme="dark"] .card-icon-btn.added:hover,
html[data-theme="dark"] .product-media .card-icon-btn.added:hover {
  background: #0f766e;
  color: #fff;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.45);
}
.mobile-sticky-bar .sticky-icon-btn.added {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}
html[data-theme="dark"] .mobile-sticky-bar .sticky-icon-btn.added {
  background: #0f766e;
  color: #fff;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.45);
}

/* ===== الصفحة الرئيسية: بانر رئيسي + دواير الأقسام + بانرات تحريرية ===== */
.feature-hero { position: relative; }
.feature-hero-link { display: block; position: relative; color: #fff; text-decoration: none; }
.feature-hero-img { display: block; width: 100%; height: min(78vh, 620px); object-fit: cover; }
.feature-hero-body { position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem 1.15rem 1.8rem; display: flex; flex-direction: column; gap: 0.55rem; background: linear-gradient(180deg, rgba(6, 26, 24, 0) 0%, rgba(6, 26, 24, 0.62) 45%, rgba(6, 26, 24, 0.9) 100%); }
.feature-eyebrow { margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; font-weight: 700; opacity: 0.92; }
.feature-title { margin: 0; font-size: 1.85rem; line-height: 1.25; color: #fff; }
.feature-sub { margin: 0; font-size: 0.98rem; line-height: 1.5; opacity: 0.92; }
.feature-cta { align-self: flex-start; margin-top: 0.5rem; }

.category-circles-wrap { padding: 0.9rem 0 0.2rem; }
.category-circles { display: flex; gap: 0.8rem; overflow-x: auto; padding: 0.25rem 1rem 0.85rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-circles::-webkit-scrollbar { display: none; }
.category-circle { flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--text); scroll-snap-align: start; }
.category-circle-icon { width: 66px; height: 66px; border-radius: 999px; display: grid; place-items: center; overflow: hidden; background: var(--primary-light); border: 1px solid var(--border); color: var(--primary-dark); }
.category-circle-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-circle-icon svg { width: 26px; height: 26px; }
.category-circle-label { font-size: 0.78rem; font-weight: 700; text-align: center; line-height: 1.3; }
.category-circle.is-active .category-circle-icon { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.category-circle.is-active .category-circle-label { color: var(--primary-dark); }

.editorial-list { display: flex; flex-direction: column; gap: 1.1rem; padding: 0.6rem 1rem 1.4rem; }
.editorial-banner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.editorial-media { display: block; background: #cbcbcb; }
.editorial-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #cbcbcb; }
.editorial-body { padding: 1.05rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.editorial-eyebrow { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--primary); letter-spacing: 0.04em; }
.editorial-title { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.editorial-title a { color: var(--primary-dark); text-decoration: none; }
.editorial-text { margin: 0; color: var(--muted); line-height: 1.6; }
.editorial-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }
.editorial-price { font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); white-space: nowrap; }
.editorial-cta { min-height: 44px; padding-inline: 1.15rem; }

@media (min-width: 821px) {
  .feature-hero-img { height: 520px; }
  .feature-hero-body { max-width: 760px; padding: 2.75rem 3rem; }
  .feature-title { font-size: 2.5rem; }
  .feature-sub { font-size: 1.05rem; }
  .category-circles { justify-content: center; gap: 1.4rem; padding-inline: 2rem; }
  .editorial-list { max-width: 1100px; margin-inline: auto; gap: 1.75rem; padding: 1rem 0 2rem; }
  .editorial-banner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .editorial-banner:nth-child(even) .editorial-media { order: 2; }
  .editorial-media img { height: 100%; min-height: 380px; aspect-ratio: auto; }
  .editorial-body { padding: 2rem 2.25rem; justify-content: center; }
  .editorial-title { font-size: 1.8rem; }
  .editorial-text { font-size: 1rem; }
}

/* الديسكتوب: بانر رئيسي مقسوم نصين بدل قص الصورة */
@media (min-width: 821px) {
  .feature-hero-link { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; background: var(--primary-light); color: var(--text); }
  .feature-hero-img { height: 100%; min-height: 460px; max-height: 520px; object-fit: contain; background: #cbcbcb; }
  .feature-hero-body { position: static; background: none; padding: 2.5rem 2.75rem; justify-content: center; color: var(--text); }
  .feature-eyebrow { color: var(--primary); }
  .feature-title { color: var(--primary-dark); font-size: 2.35rem; }
  .feature-sub { color: var(--text); }
  .editorial-title a { color: var(--primary-dark); }
}

/* ===== حركة الصفحة الرئيسية: سلايدر البانر + شريط الأقسام + سلايدر البانرات ===== */
.feature-hero { position: relative; }
.feature-slides { position: relative; display: grid; overflow: hidden; background: var(--primary-light); }
.feature-slide { grid-area: 1 / 1; display: block; opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease-out); color: var(--text); text-decoration: none; }
.feature-slide.is-active { opacity: 1; pointer-events: auto; }
.feature-slide .feature-hero-img { width: 100%; height: min(58vh, 440px); object-fit: contain; background: #cbcbcb; display: block; }
.feature-slide .feature-hero-body { position: static; background: var(--surface); border-top: 1px solid var(--border); padding: 1.15rem 1.15rem 1.4rem; }
.feature-pause { position: absolute; bottom: 0.9rem; inset-inline-end: 0.9rem; z-index: 3; width: 44px; height: 44px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.9); color: #0b3d3a; cursor: pointer; }
.feature-pause svg { width: 18px; height: 18px; }
.feature-dots { position: absolute; bottom: 1.6rem; inset-inline-start: 1.15rem; z-index: 3; display: flex; gap: 0.35rem; }
.feature-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); border: 0; padding: 0; }
.feature-dot.is-active { background: #fff; width: 18px; }

.editorial-list { display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
.editorial-list::-webkit-scrollbar { display: none; }
.editorial-banner { flex: 0 0 88%; scroll-snap-align: center; }
.editorial-banner + .editorial-banner { margin-inline-start: 1rem; }

@media (min-width: 821px) {
  .feature-slides { height: 520px; }
  .feature-slide { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; background: var(--primary-light); color: var(--text); }
  .feature-slide .feature-hero-img { height: 100%; object-fit: contain; background: #cbcbcb; }
  .feature-slide .feature-hero-body { position: static; background: none; padding: 2.5rem 2.75rem; justify-content: center; color: var(--text); }
  .feature-pause { bottom: 1.1rem; inset-inline-end: 1.1rem; background: rgba(255, 255, 255, 0.96); }
  .feature-dots { bottom: 1.2rem; inset-inline-start: auto; inset-inline-end: 4.6rem; }
  .editorial-banner { flex: 0 0 min(980px, 94%); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-slide { transition: none; }
  .editorial-list { scroll-behavior: auto; }
}

/* ===== بلوك التوصيل + الفوتر ===== */
.trust-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.15rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.trust-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; line-height: 1.45; color: var(--text); }
.trust-ico { flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); }
.trust-ico svg { width: 20px; height: 20px; }
.trust-item strong { font-weight: 700; }
.trust-item .trust-whatsapp { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary-dark); font-weight: 700; text-decoration: none; }

.site-footer { background: #0b3d3a; color: #e8f2f0; margin-top: 2rem; }
.site-footer .footer-inner { padding: 1.75rem 1.15rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.footer-wordmark strong { font-size: 1.15rem; letter-spacing: 0.06em; color: #ffffff; }
.footer-groups { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-item { display: flex; align-items: center; gap: 0.65rem; font-size: 0.95rem; line-height: 1.5; color: #dcefed; }
.footer-ico { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.footer-ico svg { width: 18px; height: 18px; }
.footer-item-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; min-width: 0; overflow-wrap: anywhere; }
.footer-item strong { color: #ffffff; font-weight: 700; }
.footer-item a { color: #9ff0e6; text-decoration: none; border-bottom: 1px solid rgba(159, 240, 230, 0.4); padding-bottom: 1px; }
.footer-item a:hover { color: #ffffff; border-bottom-color: #ffffff; }
.footer-copy { margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.82rem; color: #c8e3e0; text-align: center; }

@media (min-width: 821px) {
  .trust-bar { padding: 1.4rem 1.6rem; }
  .trust-list { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 1rem 1.5rem; }
  .trust-item { flex: 1 1 220px; font-size: 0.98rem; }
  .site-footer .footer-inner { padding: 2.25rem 1.5rem 1.75rem; }
  .footer-groups { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
  .footer-copy { text-align: start; }
}

/* الموبايل: نص البانر في بانل تحت الصورة + أدوات واضحة فوق الصورة */
@media (max-width: 820px) {
  .feature-slide .feature-eyebrow { color: var(--primary); }
  .feature-slide .feature-title { color: var(--primary-dark); font-size: 1.5rem; }
  .feature-slide .feature-sub { color: var(--muted); font-size: 0.95rem; }
  .feature-pause { top: 0.9rem; bottom: auto; background: rgba(255, 255, 255, 0.94); }
  .feature-dots { top: 1.25rem; bottom: auto; inset-inline-start: 1rem; background: rgba(11, 61, 58, 0.45); padding: 0.28rem 0.45rem; border-radius: 999px; }
  .feature-dot { background: rgba(255, 255, 255, 0.6); }
  .feature-dot.is-active { background: #fff; }
}
@media (min-width: 821px) {
  .feature-slide .feature-hero-img { height: 100%; }
}

/* الوضع الليلي: خلفية قسم الباكدج والنصوص */
html[data-theme="dark"] .bundle-section {
  background: linear-gradient(135deg, #0f2a27, #191233);
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}
html[data-theme="dark"] .bundle-section .section-head h2 { color: #e8f2f0; }
html[data-theme="dark"] .bundle-section .section-head p { color: var(--muted); }
html[data-theme="dark"] .bundle-section .product-card-body h3,
html[data-theme="dark"] .bundle-section .product-price { color: #e8f2f0; }

/* زر تسوق الآن: أيقونة سهم مع الكلام (السهم بيتقلب في العربي) */
.feature-cta { display: inline-flex; align-items: center; gap: 0.5rem; }
.feature-cta-icon { width: 18px; height: 18px; flex: 0 0 18px; }
html[dir="rtl"] .feature-cta-icon { transform: scaleX(-1); }

/* ===== صفحة إنشاء الحساب: كارت، حقول بأيقونات، رسائل أخطاء، حركة خفيفة ===== */
.auth-section { padding-top: 1.5rem; }
.auth-card { max-width: 520px; margin-inline: auto; padding: 1.75rem 1.5rem 1.5rem; position: relative; box-shadow: 0 10px 30px rgba(11, 61, 58, 0.08); animation: authRise 420ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; }
html[data-theme="dark"] .auth-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.auth-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 1.1rem; background: var(--primary-light); color: var(--primary); }
.auth-badge svg { width: 26px; height: 26px; }
.auth-form { display: grid; gap: 1rem; }
.auth-field { display: grid; gap: 0.4rem; min-width: 0; animation: authRise 420ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.auth-field label { font-weight: 700; font-size: 0.95rem; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon { position: absolute; inset-inline-start: 0.9rem; display: grid; place-items: center; color: var(--muted); pointer-events: none; transition: color 180ms ease; }
.auth-input-icon svg { width: 20px; height: 20px; }
.auth-input-wrap input { width: 100%; min-height: 50px; padding: 0.7rem 2.9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.auth-input-wrap input::placeholder { color: var(--muted); opacity: 0.7; }
.auth-field .auth-input-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18); }
html[data-theme="dark"] .auth-field .auth-input-wrap input:focus { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22); }
.auth-input-wrap:focus-within .auth-input-icon { color: var(--primary); }
.auth-field.is-invalid .auth-input-wrap input { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.auth-field.is-invalid .auth-input-icon { color: #dc2626; }
html[data-theme="dark"] .auth-field.is-invalid .auth-input-wrap input { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); }
html[data-theme="dark"] .auth-field.is-invalid .auth-input-icon { color: #f87171; }
.auth-field.shake { animation: authShake 320ms ease both; animation-delay: 0ms; }
.auth-toggle { position: absolute; inset-inline-end: 0.35rem; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.auth-toggle:hover { background: var(--primary-light); color: var(--primary-dark); }
.auth-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.auth-toggle svg { width: 20px; height: 20px; }
.auth-toggle .auth-eye-off { display: none; }
.auth-toggle.is-shown .auth-eye-on { display: none; }
.auth-toggle.is-shown .auth-eye-off { display: block; }
.auth-field-msg { margin: 0; display: flex; align-items: flex-start; gap: 0.4rem; font-size: 0.85rem; line-height: 1.5; text-align: start; }
.auth-field-msg[hidden] { display: none; }
.auth-field-msg svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 0.18rem; }
.auth-hint { color: var(--muted); }
.auth-field-error { color: #b91c1c; font-weight: 600; animation: authPop 220ms var(--ease-out, ease) both; }
html[data-theme="dark"] .auth-field-error { color: #fca5a5; }
.auth-alert { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid; text-align: start; animation: authPop 260ms var(--ease-out, ease) both; }
.auth-alert[hidden] { display: none; }
.auth-alert-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.auth-alert-icon svg { width: 20px; height: 20px; display: block; }
.auth-alert-icon .auth-ico-success, .auth-alert--success .auth-alert-icon .auth-ico-error { display: none; }
.auth-alert--success .auth-alert-icon .auth-ico-success { display: block; }
.auth-alert-body { display: grid; gap: 0.15rem; min-width: 0; }
.auth-alert-title { font-size: 1rem; font-weight: 800; }
.auth-alert-text { font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; }
.auth-alert--error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.auth-alert--error .auth-alert-icon { background: #fee2e2; color: #dc2626; }
.auth-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.auth-alert--success .auth-alert-icon { background: #dcfce7; color: #16a34a; }
html[data-theme="dark"] .auth-alert--error { background: rgba(220, 38, 38, 0.14); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
html[data-theme="dark"] .auth-alert--error .auth-alert-icon { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
html[data-theme="dark"] .auth-alert--success { background: rgba(34, 197, 94, 0.12); border-color: rgba(74, 222, 128, 0.4); color: #bbf7d0; }
html[data-theme="dark"] .auth-alert--success .auth-alert-icon { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.auth-submit { position: relative; min-height: 50px; gap: 0.6rem; font-size: 1.02rem; transition: background-color 180ms ease, transform 120ms ease, box-shadow 180ms ease; animation: authRise 420ms var(--ease-out, ease) both; animation-delay: 360ms; }
.auth-submit:not(:disabled):hover { box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28); }
.auth-submit:not(:disabled):active { transform: scale(0.985); }
.auth-submit:disabled { opacity: 0.75; cursor: not-allowed; }
.auth-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: authSpin 700ms linear infinite; }
.auth-submit.is-loading .auth-spinner { display: inline-block; }
.auth-switch { margin: 0.25rem 0 0; text-align: center; color: var(--muted); font-size: 0.95rem; }
.auth-switch a { font-weight: 700; }
.auth-form.is-done .auth-field { opacity: 0.65; pointer-events: none; }
@keyframes authRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authPop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes authShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes authSpin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .auth-card { padding: 1.4rem 1.1rem 1.25rem; }
  .auth-input-wrap input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-field, .auth-submit, .auth-field-error, .auth-alert, .auth-field.shake { animation: none !important; }
  .auth-spinner { animation-duration: 1.4s; }
  .auth-input-wrap input, .auth-toggle, .auth-submit { transition: none; }
}

/* اسم المنتج والسعر في صف واحد: الاسم ياخد مساحته والسعر على حرف الكارت */
.product-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.product-card-head h3 { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.product-card-price-col { flex: 0 0 auto; display: grid; justify-items: end; text-align: end; gap: 0.1rem; max-width: 55%; }
.product-card-body .product-card-price-col .product-price { font-size: 1.3rem; line-height: 1.4; white-space: nowrap; }
.product-card-price-col .old-price { white-space: nowrap; }
@media (max-width: 820px) {
  .product-card-head { gap: 0.5rem; }
  .products-grid .product-card-body .product-card-price-col .product-price { font-size: 0.98rem; }
  .products-grid .product-card-price-col .old-price { font-size: 0.74rem; }
}

/* اسم المنتج سطر واحد (بنقطتين لو طويل) والسعر كامل على نفس السطر */
.product-card-body .product-card-head { align-items: baseline; gap: 0.5rem; }
.product-card-body .product-card-head h3 { font-size: 1rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-body .product-card-head h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card-body .product-card-price-col { max-width: none; }
.product-card-body .product-card-price-col .product-price { font-size: 1.15rem; line-height: 1.5; }
@media (max-width: 820px) {
  .products-grid .product-card-body .product-card-head { gap: 0.35rem; }
  .products-grid .product-card-body .product-card-head h3 { font-size: 0.74rem; line-height: 1.6; }
  .products-grid .product-card-body .product-card-price-col .product-price { font-size: 0.82rem; line-height: 1.6; }
  .products-grid .product-card-price-col .old-price { font-size: 0.7rem; }
}

.editorial-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.editorial-head .editorial-eyebrow { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; letter-spacing: 0.02em; direction: ltr; unicode-bidi: isolate; text-align: start; }
.editorial-head .editorial-price { flex: 0 0 auto; }
.editorial-foot { justify-content: flex-start; }
.editorial-head .editorial-title { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; unicode-bidi: isolate; text-align: start; }
.editorial-head { gap: 1.5rem; }
.editorial-head .editorial-title { font-size: 1.15rem; }
.editorial-head { gap: 1rem; }
@media (max-width: 520px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .products-grid .product-card-body { padding: 0.7rem 0.6rem 0.85rem; }
  .products-grid .product-card-body .product-card-head { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .products-grid .product-card-body .product-card-head h3 { font-size: 0.8rem; }
  .products-grid .product-card-body .product-card-price-col { max-width: none; justify-items: start; text-align: start; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
  .products-grid .product-card-body .product-card-price-col .product-price { font-size: 1rem; }
}
@media (min-width: 821px) { .editorial-head .editorial-title { font-size: 1.5rem; } }
html[dir="rtl"] .product-card-head h3, html[dir="rtl"] .editorial-head .editorial-title { text-align: right; }
@media (max-width: 520px) { .editorial-head { gap: 0.6rem; } .editorial-head .editorial-title { font-size: 1rem; } .editorial-head .editorial-price { font-size: 1.05rem; } }

/* ===== Product page v2 ===== */
.product-info { gap: 0; align-content: start; }
.product-info h1.pd-title { margin: 0; font-size: 1.65rem; line-height: 1.25; font-weight: 800; letter-spacing: 0.01em; color: var(--primary-dark); direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir="rtl"] .product-info h1.pd-title { text-align: right; }
.pd-subtitle { margin: 0.3rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--muted); font-weight: 600; }
.price-block { display: grid; gap: 0.55rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); justify-items: start; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.7rem; }
.price-block .product-price { margin: 0; font-size: 2rem; line-height: 1.15; font-weight: 800; color: var(--primary-dark); }
.price-block .old-price { font-size: 1rem; }
.stock-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 0.8rem; font-weight: 700; line-height: 1.4; }
.stock-pill i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; }
.stock-pill.is-out { background: #fee2e2; color: #991b1b; }
.stock-pill.is-out i { background: #dc2626; }
html[data-theme="dark"] .stock-pill { background: rgba(34, 197, 94, 0.16); color: #86efac; }
html[data-theme="dark"] .stock-pill.is-out { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.product-info .product-actions { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: nowrap; }
.qty-label { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; direction: ltr; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.qty-btn { appearance: none; border: 0; background: transparent; color: var(--primary-dark); width: 48px; height: 48px; min-width: 48px; min-height: 48px; display: grid; place-items: center; cursor: pointer; transition: background-color 0.15s ease, transform 0.12s ease, opacity 0.15s ease; -webkit-tap-highlight-color: transparent; }
.qty-btn svg { width: 20px; height: 20px; }
.qty-btn:hover:not(:disabled) { background: var(--primary-soft, rgba(15, 118, 110, 0.1)); }
.qty-btn:active:not(:disabled) { transform: scale(0.88); }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-btn:focus-visible, .qty-value:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; border-radius: 999px; }
.qty-value { min-width: 3rem; text-align: center; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); display: inline-block; line-height: 48px; user-select: none; }
.qty-value.bump-up { animation: qtyUp 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
.qty-value.bump-down { animation: qtyDown 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes qtyUp { from { transform: translateY(45%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qtyDown { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
#product-extra { margin-block: 0.5rem 1.25rem; display: grid; gap: 1rem; }
#product-extra .pe-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
#product-extra h2, #product-extra h3 { margin: 0 0 0.7rem; font-size: 1.1rem; line-height: 1.4; color: var(--primary-dark); }
#product-extra .pe-about { margin: 0 0 0.9rem; line-height: 1.8; color: var(--text); }
.spec-list { margin: 0; display: grid; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--border); }
.spec-row dt { margin: 0; color: var(--muted); font-size: 0.92rem; }
.spec-row dd { margin: 0; font-weight: 700; color: var(--text); text-align: end; }
#product-extra .usage-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
#product-extra .usage-list li { counter-increment: step; display: flex; gap: 0.75rem; align-items: flex-start; line-height: 1.7; }
#product-extra .usage-list li::before { content: counter(step); flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.85rem; font-weight: 800; display: grid; place-items: center; margin-top: 0.1rem; }
#product-extra .ingredients-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
#product-extra .ingredients-list li { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 0.88rem; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.pd-in { animation: pdIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pdIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pd-in, .qty-value.bump-up, .qty-value.bump-down { animation: none !important; }
  .qty-btn { transition: none; }
}
@media (max-width: 820px) {
  .product-info h1.pd-title { font-size: 1.5rem; }
  .price-block .product-price { font-size: 1.85rem; }
}

/* Register page v2: hero, phone prefix, strength bar, motion */
.auth-main { padding-top: 0.75rem; }
.auth-back { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; color: var(--muted); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: color 160ms ease; animation: authRise 400ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; animation-delay: calc(var(--h, 0) * 70ms); }
.auth-back:hover { color: var(--primary); }
.auth-back svg { width: 18px; height: 18px; transition: translate 200ms ease; }
html[dir="rtl"] .auth-back svg { transform: scaleX(-1); }
.auth-back:hover svg { translate: -3px 0; }
html[dir="rtl"] .auth-back:hover svg { translate: 3px 0; }
.auth-hero { display: grid; gap: 0.65rem; justify-items: start; padding: 0.35rem 0 1.4rem; }
.auth-eyebrow, .auth-title, .auth-tagline { animation: authRise 450ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; animation-delay: calc(var(--h, 0) * 70ms); }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; direction: ltr; }
.auth-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: authPulse 1.8s ease-out 700ms 2; }
.auth-title { margin: 0; font-size: clamp(2rem, 9.5vw, 2.7rem); line-height: 1.25; font-weight: 900; color: var(--primary); padding-bottom: 0.08em; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .auth-title { background: linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent, #14b8a6) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.auth-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 0.6rem; border-radius: 4px; background: var(--accent, var(--primary)); -webkit-text-fill-color: initial; transform-origin: left center; animation: authBar 600ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 380ms both; }
html[dir="rtl"] .auth-title::after { transform-origin: right center; }
.auth-tagline { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.65; max-width: 36ch; }

.auth-card { animation: authFade 300ms ease 120ms both; }
.auth-field { animation-delay: calc(var(--i, 0) * 60ms + 280ms); }
.auth-submit { min-height: 52px; animation-delay: 680ms; }
.auth-switch { animation: authRise 400ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 760ms both; }
.auth-input-wrap input { min-height: 52px; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease; }
.auth-input-wrap input:focus { transform: translateY(-1px); }
.auth-field label { transition: color 180ms ease; }
.auth-field:focus-within label { color: var(--primary); }
.auth-input-icon { transition: color 180ms ease, transform 220ms var(--ease-out, ease); }
.auth-input-wrap:focus-within .auth-input-icon { transform: scale(1.14); }
.auth-toggle { transition: background-color 160ms ease, color 160ms ease, transform 140ms ease; }
.auth-toggle:active { transform: scale(0.88); }
.auth-toggle svg { animation: authEye 240ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; }

.auth-input-wrap.has-prefix input { padding-inline-start: 6.4rem; padding-inline-end: 1rem; text-align: left; }
.auth-prefix { position: absolute; inset-inline-start: 2.9rem; display: inline-flex; align-items: center; height: 30px; padding: 0 0.6rem; border-radius: 8px; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; font-size: 0.92rem; pointer-events: none; transition: background-color 180ms ease, color 180ms ease; }
.auth-input-wrap.has-prefix:focus-within .auth-prefix { background: var(--primary); color: #fff; }
html[data-theme="dark"] .auth-input-wrap.has-prefix:focus-within .auth-prefix { color: #042f2e; }

.auth-strength { display: flex; align-items: center; gap: 0.75rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 260ms ease, opacity 200ms ease; }
.auth-strength:not([data-level="0"]) { max-height: 28px; opacity: 1; }
.auth-strength-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.auth-strength-bars i { display: block; height: 6px; border-radius: 6px; background: var(--border); opacity: 0.7; transform: scaleX(0.86); transform-origin: left center; transition: background-color 260ms ease, transform 260ms var(--ease-out, ease), opacity 260ms ease; }
html[dir="rtl"] .auth-strength-bars i { transform-origin: right center; }
.auth-strength[data-level="1"] i:nth-child(-n+1) { background: #dc2626; opacity: 1; transform: none; }
.auth-strength[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; opacity: 1; transform: none; }
.auth-strength[data-level="3"] i:nth-child(-n+3) { background: #65a30d; opacity: 1; transform: none; }
.auth-strength[data-level="4"] i:nth-child(-n+4) { background: #16a34a; opacity: 1; transform: none; }
.auth-strength-label { min-width: 3.6em; text-align: end; font-size: 0.82rem; font-weight: 700; color: var(--muted); transition: color 200ms ease; }
.auth-strength[data-level="1"] .auth-strength-label { color: #dc2626; }
.auth-strength[data-level="2"] .auth-strength-label { color: #b45309; }
.auth-strength[data-level="3"] .auth-strength-label { color: #4d7c0f; }
.auth-strength[data-level="4"] .auth-strength-label { color: #15803d; }

@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes authBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes authPulse { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); } }
@keyframes authEye { from { opacity: 0; transform: scale(0.6) rotate(-14deg); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .auth-card { padding: 1.25rem 1rem 1.15rem; } }
@media (prefers-reduced-motion: reduce) {
  .auth-back, .auth-eyebrow, .auth-eyebrow-dot, .auth-title, .auth-title::after, .auth-tagline, .auth-card, .auth-switch, .auth-toggle svg { animation: none !important; }
  .auth-input-wrap input, .auth-input-icon, .auth-strength, .auth-strength-bars i, .auth-back svg, .auth-prefix { transition: none !important; }
  .auth-input-wrap input:focus, .auth-input-wrap:focus-within .auth-input-icon { transform: none; }
}

/* Login page: forgot row */
.auth-row { display: flex; justify-content: flex-end; margin-top: -0.4rem; animation: authRise 400ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; animation-delay: calc(var(--i, 0) * 60ms + 280ms); }
.auth-forgot { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; font-size: 0.92rem; color: var(--primary); text-decoration: none; border-radius: 8px; transition: color 160ms ease, opacity 160ms ease; }
.auth-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .auth-row { animation: none !important; } }
