:root {
  /* Reefai Brand Identity — Royal Purple + Gold */
  --primary: #4A0E9F;
  --primary-dark: #350772;
  --primary-light: #6D28D9;
  --accent: #B8954E;
  --accent-light: #D4AF6F;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --border: #E7E5E4;
  --text: #1C1917;
  --text-muted: #57534E;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(74,14,159,0.08);
  --shadow-lg: 0 12px 32px rgba(74,14,159,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ========== Top bar ========== */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; opacity: 0.9; }
.topbar a:hover { opacity: 1; }
.topbar .lang-toggle {
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

/* ========== Header ========== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-nav {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.logo-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}
.logo-text-store {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.footer .logo .logo-text-store { color: #fff; }
.footer .logo .logo-divider { background: rgba(255,255,255,0.2); }
.footer .logo-nav {
  /* Invert logo for dark footer — keeping purple/gold visible */
  filter: brightness(1.1);
}
@media (max-width: 800px) {
  .logo-nav { height: 26px; }
  .logo-divider { height: 20px; }
  .logo-text-store { font-size: 14px; }
}
.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s;
}
.nav a:hover, .nav a.active { background: var(--bg); color: var(--primary); }
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cart-btn {
  position: relative;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.cart-btn:hover { background: var(--primary-dark); color: #fff; }
.cart-count {
  background: var(--accent);
  color: #1C1917;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

/* ========== Hero ========== */
.hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(184,149,78,0.18) 0%, transparent 50%),
    linear-gradient(135deg, #2A0566 0%, #4A0E9F 60%, #6D28D9 100%);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

/* ========== Hero Slider ========== */
.hero-slider {
  padding: 0;
  min-height: 520px;
  background: transparent;
}
.hero-slider .slides {
  position: relative;
  width: 100%;
  min-height: 520px;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 64px 0 96px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateX(20px);
}
.hero-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}
/* ════ Backgrounds per slide — تدرّجات متعددة الطبقات (بدون صور) ════ */

/* Slide 1: منصة الأعمال — بنفسجي عميق مع توهج ذهبي شمالي */
.hero-slider .slide[data-bg="purple"] {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184,149,78,0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.35) 0%, transparent 55%),
    linear-gradient(125deg, #2A0566 0%, #4A0E9F 45%, #6D28D9 100%);
}

/* Slide 2: Reefai Corp — بنفسجي ملكي داكن مع لمعة ذهبية جنوبية */
.hero-slider .slide[data-bg="purple-dark"] {
  background:
    radial-gradient(circle at 100% 100%, rgba(184,149,78,0.35) 0%, transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(74,14,159,0.55) 0%, transparent 60%),
    linear-gradient(140deg, #1A0438 0%, #2A0566 35%, #350772 65%, #4A0E9F 100%);
}

/* Slide 3: Reefai Automation — بنفسجي حيوي مع توهج tealّ AI */
.hero-slider .slide[data-bg="purple-mid"] {
  background:
    radial-gradient(circle at 100% 0%, rgba(20,184,166,0.30) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(245,158,11,0.22) 0%, transparent 55%),
    linear-gradient(120deg, #4A0E9F 0%, #6D28D9 50%, #8B5CF6 100%);
}

/* Slide 4: عرض الخدمات — تدرّج احتفالي بنفسجي + ذهبي */
.hero-slider .slide[data-bg="gold"] {
  background:
    radial-gradient(circle at 50% 100%, rgba(252,211,77,0.30) 0%, transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(74,14,159,0.50) 0%, transparent 60%),
    linear-gradient(135deg, #2A0566 0%, #4A0E9F 40%, #6D28D9 70%, #B8954E 100%);
}

/* Subtle dot pattern overlay على كل السلايدات لإضافة عمق */
.hero-slider .slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}
.hero-slider .slide > .container { position: relative; z-index: 2; }

.slide-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.slide-text {
  position: relative;
  z-index: 2;
  animation: slideTextIn 0.7s 0.1s both ease-out;
}
.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.visual-emoji {
  font-size: clamp(130px, 18vw, 220px);
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.45));
  animation: floatVisual 4s ease-in-out infinite, slideVisualIn 0.8s 0.2s both;
  position: relative;
  z-index: 3;
  /* دائرة زجاجية خلف الإيموجي */
  padding: 30px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 60%, transparent 80%);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.slide-visual::before {
  content: '';
  position: absolute;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(184,149,78,0.30) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes slideTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideVisualIn {
  from { opacity: 0; transform: scale(0.7) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes floatVisual {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.1); }
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  line-height: 1;
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1C1917;
  transform: translateY(-50%) scale(1.08);
}
.arrow-prev { inset-inline-end: 20px; }
.arrow-next { inset-inline-start: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.slider-dot:hover { background: rgba(255,255,255,0.55); }
.slider-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 6px;
}

/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.slider-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 800px) {
  .hero-slider, .hero-slider .slides { min-height: 540px; }
  .slide-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-slider .hero-cta { justify-content: center; }
  .slide-visual { order: -1; }
  .visual-emoji { font-size: 110px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 22px; }
  .arrow-prev { inset-inline-end: 8px; }
  .arrow-next { inset-inline-start: 8px; }
  .slider-dots { bottom: 18px; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 40%);
}
.hero .container { position: relative; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(245,158,11,0.18);
  color: #FCD34D;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(245,158,11,0.3);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 720px;
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.15s;
}
.btn-primary { background: var(--accent); color: #1C1917; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-lg); color: #1C1917; }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); color: var(--primary-dark); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ========== Sections ========== */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
}
.section-head p { color: var(--text-muted); margin-top: 6px; }
.section-link { font-weight: 600; }

/* ========== Trust badges ========== */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.trust-icon {
  width: 44px; height: 44px;
  background: rgba(15,118,110,0.08);
  color: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 15px; }
.trust-item small { color: var(--text-muted); font-size: 13px; }

/* ========== Product grid ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.product-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F5F5F4, #E7E5E4);
  display: grid;
  place-items: center;
  font-size: 56px;
  color: var(--primary);
  position: relative;
}
.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--accent);
  color: #1C1917;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-badge.badge-new { background: var(--primary); color: #fff; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  min-height: 44px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
}
.product-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.add-btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 6px rgba(74,14,159,0.20);
}
.add-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.add-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,14,159,0.30);
}
.add-btn:hover svg { transform: scale(1.15) rotate(-8deg); }
.add-btn:active { transform: translateY(0); }
.add-btn.added {
  background: var(--success);
  box-shadow: 0 4px 12px rgba(22,163,74,0.30);
}
.add-btn.added svg { transform: none; }

/* ========== Filters ========== */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== Cart page ========== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-img {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #F5F5F4, #E7E5E4);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 32px;
  color: var(--primary);
}
.cart-item-body h3 { font-size: 16px; margin-bottom: 6px; }
.cart-item-body p { color: var(--text-muted); font-size: 13px; }
.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-ctrl button {
  width: 30px; height: 32px;
  background: var(--bg);
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.qty-ctrl button:hover { background: var(--border); }
.qty-ctrl span { width: 36px; text-align: center; font-weight: 600; }
.remove-btn {
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  font-size: 13px;
  font: inherit;
  font-weight: 600;
}
.cart-item-price {
  text-align: end;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 17px;
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 88px;
}
.cart-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.summary-row .muted { color: var(--text-muted); }
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-cart-icon {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-cart h2 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

/* ========== Checkout form ========== */
.checkout-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.checkout-form h3 {
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}
.form-field textarea { resize: vertical; min-height: 80px; }

.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-block: 14px 20px;
}
.payment-method {
  flex: 1;
  min-width: 110px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.payment-method.active {
  border-color: var(--primary);
  background: rgba(15,118,110,0.05);
  color: var(--primary-dark);
}
.payment-icon { font-size: 24px; display: block; margin-bottom: 4px; }

/* ========== Page hero ========== */
.page-hero {
  background: linear-gradient(135deg, #2A0566 0%, #4A0E9F 100%);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.page-hero p { opacity: 0.9; max-width: 640px; }

/* ========== About/Policies content ========== */
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 800px) { .content-layout { grid-template-columns: 1fr; } }
.side-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  position: sticky;
  top: 88px;
}
.side-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.side-nav a:hover { background: var(--bg); color: var(--primary); }
.content-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.content-body section { margin-bottom: 40px; scroll-margin-top: 100px; }
.content-body section:last-child { margin-bottom: 0; }
.content-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--primary-dark);
}
.content-body h3 { font-size: 17px; margin: 18px 0 8px; color: var(--text); }
.content-body p, .content-body li { color: var(--text-muted); margin-bottom: 10px; line-height: 1.8; }
.content-body ul, .content-body ol { padding-inline-start: 22px; }
.content-body strong { color: var(--text); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.contact-card {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-card strong { display: block; font-size: 14px; color: var(--primary); margin-bottom: 6px; }

/* ========== Footer ========== */
.footer {
  background: #1A0438;
  color: #D6D3D1;
  padding: 56px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; opacity: 0.85; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #D6D3D1; font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: 0.7;
}
.footer-payments {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pay-badge {
  background: #fff;
  color: #1C1917;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  background: var(--text);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  font-weight: 500;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  text-align: center;
  animation: pop 0.2s;
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon {
  width: 72px; height: 72px;
  background: rgba(22,163,74,0.12);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  margin: 0 auto 18px;
}
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal p { color: var(--text-muted); margin-bottom: 8px; }
.modal .order-id {
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 16px 0 20px;
}

/* ========== Mobile menu ========== */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-end: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 8px;
    min-width: 200px;
  }
  .nav.open { display: flex; }
  .header .container { gap: 12px; position: relative; }
  .logo { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; font-size: 15px; }
  .cart-btn { padding: 8px 12px; font-size: 13px; }
}
