/* ===== تطبيق الصالون - التنسيق العام ===== */
:root {
  --primary: #6d141b;
  --primary-dark: #4f0d12;
  --primary-light: #8a2530;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --cream: #fbf6f0;
  --bg: #faf4ee;
  --card: #ffffff;
  --text: #3a2426;
  --text-light: #8a7375;
  --border: #f0e3e0;
  --success: #2e9e5b;
  --danger: #d64550;
  --warning: #e8a33d;
  --info: #3d7dd8;
  --shadow: 0 2px 12px rgba(109, 20, 26, 0.08);
  --shadow-lg: 0 8px 30px rgba(109, 20, 26, 0.14);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* منع أي تمدد أفقي للصفحة على الجوال */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: 'Almarai', 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===== الترويسة ===== */
.header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 12px 0;
  /* مسافة أمان تحت ساعة/نوتش الجوال */
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid; place-items: center; font-size: 1.3rem;
  border: 2px solid var(--gold-light);
}
.nav-desktop { display: flex; gap: 4px; align-items: center; }
.nav-desktop a {
  color: #fff; text-decoration: none; padding: 8px 14px;
  border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
}
.nav-desktop a:hover, .nav-desktop a.active { background: rgba(255, 255, 255, 0.18); }

.cart-btn {
  position: relative; background: rgba(255,255,255,0.15); border: 2px solid var(--gold-light);
  color: #fff; border-radius: 50%; width: 42px; height: 42px;
  display: grid; place-items: center; font-size: 1.15rem;
}
.cart-badge {
  position: absolute; top: -6px; left: -6px;
  background: var(--gold); color: #fff; font-size: 0.7rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: grid; place-items: center; padding: 0 5px;
}

/* ===== البطل ===== */
.hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff; text-align: center; padding: 56px 16px 64px;
  border-radius: 0 0 32px 32px;
}
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 900; margin-bottom: 10px; }
.hero h1 .gold { color: var(--gold-light); }
.hero p { font-size: clamp(0.95rem, 3vw, 1.15rem); opacity: 0.92; max-width: 550px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== الصفحة الرئيسية: اسم الصالون + مربعان ===== */
body.home-bg { background: var(--primary-light); }
.hero-landing {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff; text-align: center;
  padding: clamp(40px, 9vh, 90px) 16px 70px;
  min-height: calc(100vh - 180px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.brand-big {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid var(--gold-light);
  display: grid; place-items: center; font-size: 2.8rem;
  margin: 0 auto 16px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}
.hero-landing h1 {
  font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}
.tagline { opacity: 0.92; margin: 6px 0 34px; font-size: clamp(0.95rem, 3vw, 1.15rem); }
.home-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  width: 100%; max-width: 540px; margin: 0 auto;
}
.home-tile {
  min-width: 0;
  background: #fff; color: var(--primary-dark);
  border-radius: 24px; padding: 34px 14px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  border: 2.5px solid transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  aspect-ratio: 1 / 0.92;
  justify-content: center;
}
.home-tile:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26); }
.home-tile:active { transform: scale(0.97); }
.tile-icon { font-size: clamp(2.4rem, 9vw, 3.2rem); }
.tile-title { font-weight: 900; font-size: clamp(1.15rem, 4.5vw, 1.4rem); }
.tile-sub { color: var(--text-light); font-size: 0.85rem; font-weight: 700; }

/* أزرار الرئيسية: BOOK NOW + CHECK IN */
button.home-tile { cursor: pointer; font-family: inherit; }
.tile-title.en-title { letter-spacing: 1px; direction: ltr; }
.home-tile.tile-book {
  background: linear-gradient(145deg, var(--gold, #c9a227), #e7c96a);
  color: #fff; border-color: rgba(255, 255, 255, 0.35);
}
.home-tile.tile-book .tile-sub { color: rgba(255, 255, 255, 0.9); }
.home-tile.tile-book:hover { border-color: #fff; }
.checkin-tiles { margin-top: 16px; animation: tilesIn 0.3s ease; }
.checkin-tiles[hidden] { display: none; }
@keyframes tilesIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* أزرار سريعة بالرئيسية */
.home-quick {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 18px auto 0; width: 100%; max-width: 540px;
}
.home-quick .btn { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); font-size: 0.92rem; }

/* آراء العميلات */
.reviews-section { width: 100%; max-width: 540px; margin: 26px auto 0; }
.reviews-title {
  color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.reviews-track {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.review-card {
  flex: 0 0 240px; scroll-snap-align: start;
  background: #fff; color: var(--text); border-radius: 16px;
  padding: 14px 16px; text-align: right;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}
.review-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 6px; }
.review-text { font-size: 0.88rem; line-height: 1.7; margin-bottom: 8px; white-space: pre-line; }
.review-name { color: var(--text-light); font-size: 0.8rem; font-weight: 700; }

/* نافذة التواصل */
#contactModal .contact-actions { margin-top: 4px; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #f8f0ea; color: var(--primary-dark); text-decoration: none;
  font-weight: 800; font-size: 0.92rem;
  padding: 12px 16px; border-radius: 12px;
  transition: transform 0.15s;
}
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn.wa { background: #e8f9ef; color: #128c4b; }
.contact-btn.ig { background: #fdeef7; color: #c1358b; }
.contact-btn.map { background: #eef4fd; color: #2563ac; }
.contact-address { color: var(--text-light); font-size: 0.85rem; margin-top: 12px; text-align: center; }

/* نجوم التقييم */
.stars-input { display: flex; gap: 6px; justify-content: center; direction: ltr; }
.star-btn {
  background: none; border: none; font-size: 2.2rem; cursor: pointer;
  color: #d8cfc4; transition: transform 0.12s, color 0.12s; padding: 2px;
}
.star-btn.active { color: var(--gold); }
.star-btn:hover { transform: scale(1.15); }

/* كوبون الخصم */
.coupon-row { margin: 14px 0 4px; }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-input-row .form-control { flex: 1; }
.coupon-applied {
  background: #f0faf3; border: 1px dashed var(--success); color: #157a3d;
  border-radius: 10px; padding: 10px 12px; font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.coupon-remove {
  background: none; border: none; color: var(--danger); font-weight: 700;
  cursor: pointer; font-size: 0.82rem; margin-inline-start: auto;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); text-decoration: none; font-weight: 700;
  font-size: 0.9rem; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 10px; box-shadow: var(--shadow);
}
.back-link:hover { background: var(--cream); }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; border: none;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #b08a1e); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.22); }
.btn-light { background: var(--cream); color: var(--primary-dark); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fa855; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ===== الأقسام ===== */
.section { padding: 40px 0 20px; }
.section-title {
  text-align: center; font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800; color: var(--primary-dark); margin-bottom: 6px;
}
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 26px; font-size: 0.95rem; }

/* ===== شبكة البطاقات ===== */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* عنوان مجموعة خدمات (تصنيف) */
.svc-group-title {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.15rem; color: var(--primary-dark);
  margin: 10px 0 -4px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold, #c9a227);
}
.svc-group-title svg, .svc-group-title img { width: 28px; height: 28px; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.service-card { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.service-icon {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), #f7e8ef);
  display: grid; place-items: center; font-size: 1.8rem;
  border: 2px solid var(--border);
}
.service-name { font-weight: 800; font-size: 1.05rem; }
.service-meta { display: flex; justify-content: center; gap: 14px; color: var(--text-light); font-size: 0.88rem; }
.price { color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.price small { font-size: 0.75em; }

.product-card { display: flex; flex-direction: column; gap: 8px; }
.product-img {
  aspect-ratio: 1 / 1; width: 100%; border-radius: 10px;
  background: #fff;
  display: grid; place-items: center; font-size: 3.2rem;
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-name { font-weight: 800; cursor: pointer; flex: 1; }
.product-desc {
  color: var(--text-light); font-size: 0.85rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stock-tag { font-size: 0.75rem; color: var(--text-light); }
.stock-tag.out { color: var(--danger); font-weight: 700; }
.product-actions { display: flex; gap: 6px; }
.product-actions .btn { flex: 1; }

/* تفاصيل المنتج */
.pd-img {
  width: 100%; min-height: 200px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 12px;
  font-size: 4.5rem;
}
.pd-img img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; display: block; }
.pd-img .svg-icon { width: 110px; height: 110px; }
.pd-img .svg-icon svg { width: 100%; height: 100%; }
.pd-name { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; }
.pd-price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.pd-price { font-size: 1.25rem; font-weight: 900; color: var(--primary); }
.pd-price small { font-size: 0.7em; }
.pd-desc {
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 0.93rem; line-height: 1.8; color: var(--text);
  white-space: pre-line; margin-bottom: 14px;
}
.pd-desc .pd-desc-title { font-weight: 800; color: var(--primary); display: block; margin-bottom: 4px; font-size: 0.85rem; }

/* ===== النوافذ المنبثقة ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(61, 39, 51, 0.55);
  display: none; align-items: flex-end; justify-content: center; z-index: 200;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); width: 100%; max-width: 520px;
  border-radius: 22px 22px 0 0; padding: 22px;
  max-height: 88vh; overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); }
.modal-close {
  background: var(--cream); border: 1px solid var(--border); border-radius: 50%;
  width: 34px; height: 34px; font-size: 1rem; color: var(--text);
}

/* ===== النماذج ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--cream);
  font-size: 1rem; color: var(--text); transition: border 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary-light); background: #fff; }
textarea.form-control { resize: vertical; min-height: 70px; }

/* ===== خطوات الحجز ===== */
.steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 2px solid var(--border);
  font-weight: 800; font-size: 0.85rem; color: var(--text-light);
}
.step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-dot.done { background: var(--success); border-color: var(--success); color: #fff; }
.step-line { flex: 0 0 24px; height: 2px; background: var(--border); align-self: center; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot-btn {
  padding: 9px 4px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--cream); font-weight: 700; font-size: 0.9rem;
  transition: all 0.15s;
}
.slot-btn:hover { border-color: var(--primary-light); }
.slot-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

/* شرائح التصنيفات في نافذة الحجز */
.cat-chips {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 14px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border, #e5d5da);
  background: #fff; color: var(--primary-dark);
  font-family: inherit; font-weight: 800; font-size: 0.88rem;
  cursor: pointer; transition: all 0.15s;
}
.cat-chip svg, .cat-chip img { width: 20px; height: 20px; }
.cat-chip:hover { border-color: var(--gold, #c9a227); }
.cat-chip.on {
  background: var(--primary, #6d141a); color: #fff;
  border-color: var(--primary, #6d141a);
}
.cat-chip .chip-dot { color: var(--gold, #c9a227); font-size: 0.7rem; line-height: 1; }
.cat-chip.on .chip-dot { color: #ffd97a; }

/* ملاحظة طلب داخل الصالون */
.in-salon-note {
  background: #fdf6e7; border: 1.5px solid var(--gold, #c9a227);
  color: var(--primary-dark); font-weight: 700; font-size: 0.88rem;
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
  text-align: center;
}

/* شريط الخدمات المختارة داخل الصالون */
.svc-bar {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 900; display: flex; align-items: center; gap: 14px;
  background: var(--primary, #6d141a); color: #fff;
  border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  animation: svcBarIn 0.25s ease;
  max-width: calc(100vw - 24px); white-space: nowrap;
}
.svc-bar[hidden] { display: none !important; }
@keyframes svcBarIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.svc-bar-info { font-weight: 700; font-size: 0.92rem; }
.svc-bar-info b { color: #ffd97a; }
.svc-bar .btn { flex-shrink: 0; }

.service-card.svc-selected {
  border: 2px solid var(--gold, #c9a227);
  background: #fdf9ef;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}
.svc-confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px; border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.svc-confirm-row b { color: var(--primary); }
.svc-confirm-row .scr-end { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.svc-confirm-row .row-rm { background: none; border: none; color: var(--danger); font-size: 1.05rem; font-weight: 800; cursor: pointer; padding: 2px 6px; line-height: 1; }
/* أزرار طريقة الدفع */
.pay-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-pill { flex: 1; min-width: 88px; padding: 11px 6px; border: 2px solid var(--border); border-radius: 12px; background: #fff; font-family: inherit; font-weight: 800; font-size: 0.88rem; color: var(--primary-dark); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pay-pill.on { border-color: var(--primary); background: var(--primary); color: #fff; }
/* شاشة التوقف — عرض المنتجات بملء الشاشة */
.saver { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; z-index: 99999; display: none; cursor: pointer; }
.saver.on { display: block; }
.saver img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.saver img.show { opacity: 1; }
.saver-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 34px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); text-align: center; color: #fff; }
.saver-cap .sv-name { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.saver-cap .sv-price { font-size: 1.15rem; font-weight: 800; color: var(--gold-light); }
.svc-confirm-row .icon-svg, .svc-confirm-row svg { width: 20px; height: 20px; vertical-align: middle; }
.queue-number { font-size: 3rem; letter-spacing: 2px; }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--cream);
  cursor: pointer; transition: all 0.15s; text-align: right; width: 100%;
}
.choice-item:hover { border-color: var(--primary-light); }
.choice-item.selected { border-color: var(--primary); background: #faf0f5; }
.choice-item .icon { font-size: 1.5rem; }
.choice-item .info { flex: 1; }
.choice-item .name { font-weight: 800; }
.choice-item .meta { font-size: 0.82rem; color: var(--text-light); }

/* اختيار عدة خدمات */
.pick-mark {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  display: grid; place-items: center; font-weight: 900; font-size: 1rem;
  border: 1.5px solid var(--border); color: var(--text-light); background: #fff;
}
.choice-item.selected .pick-mark { background: var(--primary); border-color: var(--primary); color: #fff; }
.multi-summary { margin-top: 10px; }
.multi-summary .ms-line {
  background: #faf0f5; border: 1px dashed var(--primary-light); border-radius: 10px;
  padding: 8px 12px; font-size: 0.88rem; margin-top: 6px; text-align: center;
}
.wa-optin {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: #effaf3; border: 1.5px solid #bfe8cd; border-radius: 12px;
  padding: 10px 12px; margin-top: 4px; font-size: 0.9rem; font-weight: 700;
}
.wa-optin input { width: 20px; height: 20px; accent-color: #1fa855; margin-top: 2px; flex: 0 0 20px; }
.wa-optin small { font-weight: 400; color: var(--text-light); }

/* ===== رسالة نجاح ===== */
.success-box { text-align: center; padding: 20px 8px; }
.success-icon {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
  background: #e7f6ee; color: var(--success); font-size: 2.4rem;
  display: grid; place-items: center;
}
.ref-number {
  background: var(--cream); border: 2px dashed var(--gold);
  border-radius: 12px; padding: 10px; font-size: 1.3rem;
  font-weight: 900; color: var(--primary-dark); margin: 12px 0;
  letter-spacing: 1px;
}

/* ===== السلة ===== */
.cart-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .thumb {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: var(--cream); display: grid; place-items: center; font-size: 1.6rem;
  border: 1px solid var(--border); overflow: hidden;
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-weight: 700; font-size: 0.92rem; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--cream); font-weight: 800; font-size: 1rem;
}
.qty-val { min-width: 24px; text-align: center; font-weight: 800; }
.cart-total {
  display: flex; justify-content: space-between; padding: 14px 0;
  font-weight: 900; font-size: 1.1rem; color: var(--primary-dark);
}
.empty-state { text-align: center; color: var(--text-light); padding: 30px 10px; }
.empty-state .big { font-size: 2.6rem; margin-bottom: 8px; }

/* ===== التنقل السفلي (جوال) ===== */
.bottom-nav {
  display: none; position: fixed; bottom: 0; right: 0; left: 0;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(109, 47, 75, 0.1); z-index: 150;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav-inner { display: flex; justify-content: space-around; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-light); text-decoration: none; font-size: 0.68rem;
  font-weight: 700; padding: 4px 10px; border-radius: 10px; position: relative;
}
.bottom-nav a .nav-icon { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav .nav-cart-badge {
  position: absolute; top: 0; right: 6px;
  background: var(--gold); color: #fff; font-size: 0.62rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ===== التذييل ===== */
.footer {
  background: var(--primary-dark); color: #fff; text-align: center;
  padding: 26px 16px; margin-top: 40px; font-size: 0.9rem;
}
.footer a { color: var(--gold-light); text-decoration: none; font-weight: 700; }

/* ===== إشعارات ===== */
.toast {
  position: fixed; bottom: 90px; right: 50%; transform: translateX(50%);
  background: var(--text); color: #fff; padding: 12px 22px;
  border-radius: 12px; font-weight: 700; font-size: 0.92rem;
  z-index: 300; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ===== شارات الحالة ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 800;
}
.badge.pending { background: #fdf3e3; color: #b07817; }
.badge.confirmed { background: #e7f6ee; color: var(--success); }
.badge.cancelled { background: #fdeaec; color: var(--danger); }
.badge.new { background: #e8f0fd; color: var(--info); }
.badge.preparing { background: #fdf3e3; color: #b07817; }
.badge.delivered { background: #e7f6ee; color: var(--success); }

.loading { text-align: center; padding: 30px; color: var(--text-light); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 10px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ===== توافق المتصفحات القديمة (Tizen وغيرها): بديل aspect-ratio ===== */
@supports not (aspect-ratio: 1 / 1) {
  .home-tile { min-height: 150px; }
  .product-img { height: 170px; }
}

/* ===== شاشات العرض الكبيرة (4K مثل Samsung QM43B) ===== */
@media (min-width: 2200px) {
  body { zoom: 1.6; }
}
@media (min-width: 3200px) {
  body { zoom: 2.2; }
}

/* ===== استجابة الجوال ===== */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .bottom-nav { display: block; }
  body { padding-bottom: 68px; }
  .hero { padding: 38px 16px 46px; }
  .hero-landing { min-height: calc(100vh - 210px); padding-bottom: 50px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .card { padding: 14px; }
  .product-img { font-size: 2.6rem; }
  .service-icon { width: 54px; height: 54px; font-size: 1.5rem; }
}

@media (min-width: 769px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: 22px; }
}

/* ===== أيقونات SVG الاحترافية ===== */
.svg-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.svg-icon svg { display: block; }
/* علامة الصالون مكان الأيقونات المرسومة */
.svg-icon.brand-fb { width: 1em; height: 1em; background: url('/img/logo.png') center/contain no-repeat; border-radius: 50%; }
.svc-group-title .svg-icon.brand-fb { width: 26px; height: 26px; }
.cat-chip .svg-icon.brand-fb { width: 20px; height: 20px; }
.title-icon img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
[data-icon] svg, [data-nav-icon] svg { display: block; width: 100%; height: 100%; }

.brand .logo { padding: 6px; }
.brand .logo svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18)); }
.brand-big { padding: 18px; }
.brand-big svg { filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2)); }
.cart-btn .cart-btn-icon { width: 21px; height: 21px; color: #fff; }
.tile-icon { width: clamp(58px, 17vw, 78px); height: clamp(58px, 17vw, 78px); filter: drop-shadow(0 4px 8px rgba(109,47,75,0.22)); }
.title-icon { display: inline-block; width: 30px; height: 30px; vertical-align: -7px; margin-left: 2px; }
.title-icon.sm { width: 24px; height: 24px; vertical-align: -6px; }
.footer-icon { display: inline-block; width: 20px; height: 20px; vertical-align: -5px; }
.section-title .title-icon svg { filter: drop-shadow(0 2px 4px rgba(109,47,75,0.18)); }

.service-icon { padding: 10px; }
.service-icon .svg-icon, .service-icon svg { width: 100%; height: 100%; }
.product-img .svg-icon { width: 74px; height: 74px; filter: drop-shadow(0 4px 10px rgba(109,47,75,0.16)); }
.product-img .svg-icon svg { width: 100%; height: 100%; }
.choice-item .icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; }
.choice-item .icon .svg-icon, .choice-item .icon svg { width: 100%; height: 100%; }
.cart-item .thumb .svg-icon { width: 36px; height: 36px; }
.cart-item .thumb .svg-icon svg { width: 100%; height: 100%; }
.empty-state .big .svg-icon { width: 58px; height: 58px; opacity: 0.85; }
.empty-state .big .svg-icon svg { width: 100%; height: 100%; }

.bottom-nav a .nav-icon { width: 23px; height: 23px; }
.emoji-fb { font-size: 1.4em; }

/* ===== الهوية الحقيقية Chic Boom ===== */
.brand .logo img, .brand-big img, .footer-logo, .login-card .logo-big img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.brand .logo { padding: 0; overflow: hidden; }
.brand-big { padding: 0; overflow: hidden; }
.footer-logo {
  width: 64px; height: 64px; margin: 0 auto 10px;
  border: 2px solid var(--gold-light); box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin: 10px 0; font-size: 0.85rem; opacity: 0.92;
}
.footer-links { margin-top: 6px; }
.footer-links a { margin: 0 4px; }
/* ===== عرض المنتجات المتحرك ===== */
.product-showcase {
  position: relative; max-width: 760px; height: 320px;
  margin: 0 auto 24px; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  background: #1c1016; cursor: pointer;
}
.ps-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.ps-slide.active { opacity: 1; pointer-events: auto; }
.ps-bg {
  position: absolute; top: -26px; left: -26px; width: calc(100% + 52px); height: calc(100% + 52px);
  object-fit: cover; filter: blur(20px) brightness(0.55) saturate(1.15);
}
.ps-main { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.ps-slide.active .ps-main { animation: psZoom 4.4s ease-in-out both; }
@keyframes psZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.ps-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 26px 16px 13px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(28, 16, 22, 0.88));
}
.ps-name { font-weight: 900; font-size: 1.02rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.ps-hint { font-size: 0.75rem; opacity: 0.85; font-weight: 400; }
.ps-price {
  font-weight: 900; font-size: 1.05rem; color: var(--gold-light);
  white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.ps-price small { font-size: 0.72em; }
.ps-dots {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  display: flex; gap: 5px;
}
html[dir="ltr"] .ps-dots { right: auto; left: 14px; }
.ps-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.4); transition: all 0.35s;
}
.ps-dot.on { background: #fff; width: 22px; }
@media (max-width: 640px) { .product-showcase { height: 250px; } }

.promo-banner {
  display: block; max-width: 760px; margin: 0 auto 24px;
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.promo-banner img { display: block; width: 100%; height: auto; }

/* ===== اللغتان: زر التبديل + تعديلات الإنجليزية LTR ===== */
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--gold-light);
  color: #fff;
  border-radius: 999px;
  height: 42px;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.28); }

[dir="ltr"] .choice-item { text-align: left; }
[dir="ltr"] .cart-badge { left: auto; right: -6px; }
[dir="ltr"] .nav-cart-badge { right: auto; left: 6px; }
[dir="ltr"] .title-icon { margin-left: 0; margin-right: 2px; }
