/* ============================================================================
   منتجات علي كيفك للمفروشات الراقيه - الإصدار المطور (Mobile-First + Animations)
   ============================================================================ */

:root {
  --bg: #FBF8F5;
  --surface: #FFFFFF;
  --surface-soft: #F6EFEA;
  --blush: #F6E7E6;
  --blush-deep: #B86B72;
  --blush-dark: #944D54;
  --gold: #A87C4F;
  --gold-light: #D9BC96;
  --ink: #1F1B18;
  --ink-muted: #655952;
  --border: #ECE2D9;
  --whatsapp: #25D366;
  --whatsapp-dark: #1CA951;
  --success: #1F7A43;
  --success-bg: #E7F7ED;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --info: #1D4ED8;
  --info-bg: #DBEAFE;
  --shadow-sm: 0 4px 16px rgba(31, 27, 24, 0.05);
  --shadow-md: 0 12px 32px rgba(31, 27, 24, 0.08);
  --shadow-lg: 0 24px 56px rgba(31, 27, 24, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }

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

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blush-deep), var(--gold));
  z-index: 1500;
  transition: width 0.08s linear;
}

/* Top Bar (Icons only — NO phone numbers, NO follower counts) */
.top-bar {
  background: var(--ink);
  color: #FBF8F5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-bar-text {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #F6ECE6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  display: inline-block;
  margin-left: 6px;
}

.social-icons-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.social-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s var(--ease), background 0.22s;
}
.social-icon-btn:hover { transform: translateY(-2px) scale(1.08); }
.social-icon-btn.fb:hover { background: #1877F2; }
.social-icon-btn.ig:hover { background: #E1306C; }
.social-icon-btn.wa:hover { background: var(--whatsapp); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), background 0.25s;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(31, 27, 24, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(184, 107, 114, 0.22);
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: 'Amiri', 'Cairo', serif; font-size: 1.24rem; font-weight: 700; color: var(--ink); }
.brand-sub { font-size: 0.72rem; color: var(--gold); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blush-deep));
  transition: width 0.28s var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 7px; }

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s;
  white-space: nowrap;
}
.icon-pill-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.icon-pill-btn.admin-pill { background: var(--blush); border-color: rgba(184, 107, 114, 0.35); color: var(--blush-dark); }

.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blush-deep);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.cart-count.bump { transform: scale(1.4); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 18px 18px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; animation: slideDown 0.28s var(--ease); }
.mobile-menu a {
  display: block;
  padding: 11px 6px;
  font-weight: 700;
  border-bottom: 1px solid var(--surface-soft);
}
.mobile-menu a:last-child { border-bottom: none; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons & Conversion Shimmer */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  transition: transform 0.24s var(--ease), background 0.24s, box-shadow 0.24s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ink); color: #FFFFFF; box-shadow: 0 8px 20px rgba(31, 27, 24, 0.18); }
.btn-primary:hover { background: #342D29; transform: translateY(-2px); }

.btn-blush {
  background: linear-gradient(135deg, var(--blush-deep), #A6565E);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(184, 107, 114, 0.34);
}
.btn-blush:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(184, 107, 114, 0.42); }

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: shimmerSweep 3.2s infinite;
}

@keyframes shimmerSweep {
  0% { right: -120%; }
  40% { right: 140%; }
  100% { right: 140%; }
}

.btn-whatsapp { background: var(--whatsapp); color: #FFFFFF; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.btn-outline { background: var(--surface); border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface-soft); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.2); }
.btn-danger:hover { background: var(--danger); color: #FFFFFF; }

.btn-sm { padding: 7px 13px; font-size: 0.82rem; border-radius: 10px; }
.btn-block { width: 100%; border-radius: 14px; }

/* Hero Section */
.hero {
  padding: 36px 0 48px;
  background:
    radial-gradient(circle at 86% 18%, rgba(246, 231, 230, 0.92) 0%, rgba(251, 248, 245, 0) 48%),
    radial-gradient(circle at 12% 84%, rgba(217, 188, 150, 0.28) 0%, rgba(251, 248, 245, 0) 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blush);
  border: 1px solid rgba(184, 107, 114, 0.25);
  color: var(--blush-dark);
  font-size: 0.83rem;
  font-weight: 800;
  margin-bottom: 14px;
  animation: fadeUp 0.6s var(--ease) both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blush-deep);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 107, 114, 0.45); }
  60% { box-shadow: 0 0 0 8px rgba(184, 107, 114, 0); }
}

.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 3.05rem);
  font-weight: 900;
  line-height: 1.26;
  margin-bottom: 14px;
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}

.hero h1 .highlight { color: var(--blush-deep); }

.hero-lead {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 550px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s var(--ease) 0.14s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.7s var(--ease) 0.26s both;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) 0.16s both;
}

.hero-card-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
  aspect-ratio: 4 / 5;
  animation: floatSlow 5.8s ease-in-out infinite;
}

.hero-card-main img, .hero-card-sm img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hero-card-main:hover img, .hero-card-sm:hover img { transform: scale(1.06); }

.hero-side-stack { display: flex; flex-direction: column; gap: 12px; }
.hero-card-sm {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #FFFFFF;
  aspect-ratio: 1 / 1;
}
.hero-card-sm:first-child { animation: floatSlow 6.4s ease-in-out 0.6s infinite; }
.hero-card-sm:last-child { animation: floatSlow 7s ease-in-out 1.2s infinite; }

.hero-float-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hook / Featured Product Spotlight */
.hook-section {
  padding: 20px 0 42px;
}

.hook-card {
  background: linear-gradient(135deg, #241F1C 0%, #3E2A2B 55%, #2C2120 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hook-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 231, 230, 0.22), transparent 70%);
  pointer-events: none;
}

.hook-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
.hook-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.hook-media:hover img { transform: scale(1.06); }

.hook-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #F59E0B, #D97706);
  color: #1F1B18;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.hook-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.3; margin-bottom: 10px; }
.hook-desc { color: #E5D9D2; font-size: 0.94rem; margin-bottom: 16px; }

.hook-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hook-price-now { font-size: 1.85rem; font-weight: 900; color: #FFFFFF; }
.hook-price-old { font-size: 1.05rem; color: #C2B2A8; text-decoration: line-through; }
.hook-save-badge {
  background: var(--blush-deep);
  color: #FFFFFF;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  animation: pulseRing 2.2s infinite;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, #241F1C 0%, #3E2D2B 100%);
  color: #FFFFFF;
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--gold-light); margin-bottom: 8px; font-weight: 700; }
.page-banner h1 { font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 900; margin-bottom: 6px; }
.page-banner p { color: #E7DCD5; max-width: 640px; font-size: 0.95rem; }

/* Sections */
.section { padding: 48px 0; }
.section-soft { background: var(--surface-soft); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 30px; }
.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(168, 124, 79, 0.12);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.45rem, 2.7vw, 2.15rem); font-weight: 900; margin-bottom: 6px; }
.section-head p { color: var(--ink-muted); font-size: 0.94rem; }

/* Categories Grid (Dynamic from D1) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s, border-color 0.25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.cat-img-wrap { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-soft); }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.cat-card:hover .cat-img-wrap img { transform: scale(1.08); }
.cat-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.cat-title { font-size: 1.08rem; font-weight: 900; margin-bottom: 5px; }
.cat-desc { font-size: 0.84rem; color: var(--ink-muted); margin-bottom: 12px; flex: 1; }
.cat-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--blush-deep);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Catalog Controls */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  background: var(--surface);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.search-wrap { position: relative; flex: 1 1 220px; }
.search-wrap input {
  width: 100%;
  padding: 10px 38px 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  outline: none;
}
.search-wrap input:focus { border-color: var(--gold); background: var(--surface); }
.search-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }

.sort-select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s, border-color 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }

.product-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; }
.badge-hot { background: var(--blush-deep); color: #FFFFFF; }
.badge-discount { background: #DC2626; color: #FFFFFF; }
.badge-hook { background: #F59E0B; color: #1F1B18; }
.badge-low { background: var(--warn-bg); color: var(--warn); }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }

.product-info { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat-label { font-size: 0.73rem; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.product-title { font-size: 0.98rem; font-weight: 800; margin-bottom: 5px; line-height: 1.38; }
.product-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.price-now { font-size: 1.2rem; font-weight: 900; color: var(--ink); }
.price-old { font-size: 0.8rem; color: #9A8D85; text-decoration: line-through; margin-right: 5px; }

.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.btn-card-primary {
  padding: 9px 8px;
  border-radius: 11px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  transition: background 0.2s, transform 0.18s;
}
.btn-card-primary:hover { background: var(--blush-deep); }
.btn-card-primary:active { transform: scale(0.96); }

.btn-card-wa {
  padding: 9px 8px;
  border-radius: 11px;
  background: var(--whatsapp);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  transition: background 0.2s;
}
.btn-card-wa:hover { background: var(--whatsapp-dark); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blush);
  color: var(--blush-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Footer (Phone numbers live ONLY here at the bottom) */
.site-footer { background: #1B1715; color: #E8DFD9; padding: 44px 0 96px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-col h4 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; color: var(--gold-light); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: #B4A79F; }

/* Permanent Floating WhatsApp Button (Visible EVERYWHERE — Desktop & Mobile) */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 20px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.44);
  animation: waPulse 2.4s infinite;
  transition: transform 0.24s var(--ease);
}
.wa-float:hover { transform: scale(1.1); background: var(--whatsapp-dark); }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  65% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* Mobile Bottom Nav */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 980;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(31, 27, 24, 0.06);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-muted);
  min-width: 58px;
  padding: 4px 0;
}
.mobile-nav-item.active { color: var(--blush-deep); }

/* Cart Drawer & Modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 24, 0.52);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(430px, 100vw);
  background: var(--surface);
  z-index: 1150;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.close-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-soft); font-size: 1.25rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 9px; }

.cart-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.cart-item img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.86rem; font-weight: 800; line-height: 1.3; margin-bottom: 3px; }
.cart-item-price { font-size: 0.82rem; font-weight: 700; color: var(--blush-deep); }

.qty-control { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.qty-control button { width: 26px; height: 26px; border-radius: 50%; font-weight: 800; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 124, 79, 0.14); }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-label { font-size: 0.84rem; font-weight: 800; color: var(--ink); }

.discount-preview-box {
  background: var(--success-bg);
  color: var(--success);
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.modal.open { pointer-events: auto; opacity: 1; }

.modal-card {
  width: min(840px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-product-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-gallery { background: var(--surface-soft); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.modal-main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.modal-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.modal-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.72; }
.modal-thumb.active { border-color: var(--blush-deep); opacity: 1; }
.modal-close { position: absolute; top: 12px; left: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); font-size: 1.25rem; font-weight: 800; }

/* Auth & Dashboard */
.auth-card { max-width: 480px; margin: 32px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.tabs { display: flex; gap: 6px; background: var(--surface-soft); padding: 5px; border-radius: 14px; margin-bottom: 18px; }
.tab-btn { flex: 1; padding: 10px 12px; border-radius: 10px; font-weight: 800; font-size: 0.88rem; color: var(--ink-muted); }
.tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.dash-layout { padding: 22px 0 90px; }
.dash-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; background: var(--surface); padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.dash-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-bottom: 18px; padding-bottom: 4px; }
.dash-tab { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 0.86rem; color: var(--ink-muted); white-space: nowrap; }
.dash-tab.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.alert-banner { background: var(--warn-bg); border: 1px solid rgba(180, 83, 9, 0.25); color: var(--warn); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 0.88rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 0.82rem; color: var(--ink-muted); font-weight: 700; margin-bottom: 4px; }
.kpi-value { font-size: 1.5rem; font-weight: 900; color: var(--ink); }

.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th, .data-table td { padding: 12px 12px; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.86rem; vertical-align: middle; }
.data-table th { background: var(--surface-soft); font-weight: 800; }
.data-table tr:last-child td { border-bottom: none; }

.thumb-sm { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.upload-preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-preview-item { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-del { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(185, 28, 28, 0.92); color: #FFFFFF; font-size: 0.85rem; font-weight: 800; }

.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--border); }

.toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 1500;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 92vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty-state { text-align: center; padding: 38px 16px; color: var(--ink-muted); grid-column: 1 / -1; background: var(--surface); border-radius: var(--radius-md); border: 1px dashed var(--border); }
.hidden { display: none !important; }

/* Responsive — Silky Mobile-First Polish */
@media (max-width: 1024px) {
  .hero-grid, .hook-card { grid-template-columns: 1fr; }
  .features-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .modal-product-grid { grid-template-columns: 1fr; }
  .mobile-bottom-bar { display: flex; }
  .wa-float { bottom: 76px; left: 14px; width: 52px; height: 52px; }
  .site-footer { padding-bottom: 108px; }
  .hero { padding: 24px 0 34px; }
  .section { padding: 36px 0; }
  .hook-card { padding: 20px; gap: 18px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { border-radius: 22px 22px 0 0; max-height: 90vh; }
}

@media (max-width: 560px) {
  /* Crisp 2-column shopping app grid on phones */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 10px 10px 12px; }
  .product-title { font-size: 0.86rem; margin-bottom: 4px; }
  .product-desc { display: none; }
  .price-now { font-size: 1.02rem; }
  .price-old { font-size: 0.72rem; }
  .product-actions { grid-template-columns: 1fr; gap: 5px; }
  .btn-card-primary, .btn-card-wa { padding: 8px 6px; font-size: 0.78rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-card { padding: 16px 12px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .brand-name { font-size: 1.1rem; }
  .icon-pill-btn { padding: 7px 10px; font-size: 0.8rem; }
}

/* =====================================================================
   إضافات النظام الجديد (فوق تصميم النسخة v2 بدون تغيير هويته)
   ===================================================================== */
/* إصلاح: العناصر المتحركة ما تفضلش مخفية لو الجافاسكريبت اتأخر */
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal]:not(.revealed) { opacity: 0; transform: translateY(22px); }
.container > * { min-width: 0; }
.nav-links a.active::after { width: 100%; }
.btn:disabled, .btn-card-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.link-more { color: var(--blush-deep); font-weight: 800; }
.link-more:hover { text-decoration: underline; }
.muted { color: var(--ink-muted); }

/* كروت المنتجات: خصم وعدّاد وكمية قليلة */
.badge-new { background: var(--ink); color: #fff; }
.badge-custom { background: var(--gold); color: #fff; }
.product-card .product-cat-label { display: block; }
.price-row-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mini-countdown { font-size: .74rem; font-weight: 800; color: #B91C1C; background: #FEE2E2; padding: 2px 9px; border-radius: 999px; display: inline-block; margin-top: 4px; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-soft); border-radius: var(--radius-md); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-100%); animation: skShimmer 1.3s infinite; }
@keyframes skShimmer { 100% { transform: translateX(100%); } }
.skeleton.card { aspect-ratio: 3/4; }
.load-more { text-align: center; margin-top: 26px; }
.result-count { color: var(--ink-muted); font-size: .86rem; font-weight: 700; margin: -8px 0 14px; }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 800; font-size: .86rem; white-space: nowrap; transition: all .2s; }
.pill:hover { border-color: var(--gold); }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* هووك: عدّاد العرض */
.countdown { display: flex; gap: 8px; margin: 0 0 16px; direction: ltr; justify-content: flex-end; }
.countdown .cd-box { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 6px 10px; text-align: center; min-width: 54px; }
.countdown .cd-box b { display: block; font-size: 1.25rem; font-weight: 900; line-height: 1.2; }
.countdown .cd-box span { font-size: .66rem; color: #E5D9D2; font-weight: 700; }
.countdown-label { font-size: .84rem; font-weight: 800; color: #F6D8A8; margin-bottom: 6px; }

/* صفحة المنتج */
.crumbs-line { font-size: .84rem; color: var(--ink-muted); font-weight: 700; padding: 16px 0 0; }
.crumbs-line a:hover { color: var(--blush-deep); }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; padding: 18px 0 40px; }
.product-detail > * { min-width: 0; }
.pd-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-soft); border: 1px solid var(--border); box-shadow: var(--shadow-md); position: relative; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main img.ph { object-fit: contain; padding: 25%; opacity: .45; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface-soft); opacity: .75; }
.pd-thumbs button.active { border-color: var(--blush-deep); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.4; margin: 6px 0 10px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-price .now { font-size: 2rem; font-weight: 900; }
.pd-price .old { color: #9A8D85; text-decoration: line-through; font-size: 1.05rem; }
.pd-price .save { background: var(--blush); color: var(--blush-dark); font-weight: 800; font-size: .84rem; padding: 3px 12px; border-radius: 999px; }
.stock-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; margin: 4px 0 8px; color: var(--success); }
.stock-note.low { color: var(--warn); }
.stock-note i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sale-timer { background: #FEF3C7; color: #92400E; border-radius: 12px; padding: 8px 14px; font-weight: 800; font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.opt-block { margin: 16px 0 6px; }
.opt-title { font-weight: 900; font-size: .95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.opt-title small { font-weight: 700; color: var(--ink-muted); font-size: .76rem; }
.opt-title .req { color: var(--danger); }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; font-size: .9rem; transition: all .2s; position: relative; text-align: center; }
.opt-chip small { display: block; font-size: .72rem; color: var(--blush-deep); font-weight: 800; }
.opt-chip:hover:not(:disabled) { border-color: var(--gold); }
.opt-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt-chip.active small { color: var(--gold-light); }
.opt-chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.addon-list { display: grid; gap: 10px; }
.addon-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: all .2s; }
.addon-card:hover { border-color: var(--gold); }
.addon-card.active { border: 1.5px solid var(--blush-deep); background: #FDF4F4; }
.addon-card input { width: 20px; height: 20px; accent-color: var(--blush-deep); flex-shrink: 0; }
.addon-card .nm { flex: 1; font-weight: 800; font-size: .92rem; }
.addon-card .nm small { display: block; font-weight: 600; color: var(--ink-muted); }
.addon-card .pr { font-weight: 900; color: var(--blush-deep); white-space: nowrap; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; }
.qty-row .qty-control { margin-top: 0; padding: 4px 10px; }
.qty-row .qty-control button { width: 30px; height: 30px; font-size: 1.1rem; }
.total-live { background: var(--surface-soft); border-radius: 16px; padding: 14px 16px; margin: 14px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.total-live strong { font-size: 1.45rem; font-weight: 900; color: var(--blush-dark); }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-row.single { grid-template-columns: 1fr; }
.perks { display: grid; gap: 8px; margin-top: 16px; }
.perk { display: flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 700; color: var(--ink-muted); }
.perk b { color: var(--success); }
.pd-desc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.pd-desc h3 { font-weight: 900; margin-bottom: 6px; }
.pd-desc p { color: var(--ink-muted); white-space: pre-line; }
.sticky-buy { display: none; }

/* السلة (الدرج + الصفحة) */
.cart-item-meta { font-size: .76rem; color: var(--ink-muted); font-weight: 700; line-height: 1.5; }
.cart-item-meta b { color: var(--blush-deep); font-weight: 800; }
.cart-item .remove-line { color: var(--danger); font-size: .76rem; font-weight: 800; }
.cart-item .qty-control { margin-top: 6px; }
.drawer-sum { display: flex; justify-content: space-between; font-weight: 900; font-size: 1.05rem; padding: 4px 0 8px; }
.cart-page { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; padding: 26px 0 60px; }
.cart-page > * { min-width: 0; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px; }
.box h2 { font-size: 1.12rem; font-weight: 900; margin-bottom: 12px; }
.line-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-soft); align-items: center; }
.line-item:last-child { border-bottom: none; }
.line-item img { width: 82px; height: 82px; border-radius: 12px; object-fit: cover; background: var(--surface-soft); }
.line-item .ttl { font-weight: 800; line-height: 1.4; }
.line-item .err { color: var(--danger); font-weight: 800; font-size: .82rem; }
.line-item .end { text-align: left; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.line-item .lp { font-weight: 900; }
.line-item .qty-control { margin-top: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-weight: 700; color: var(--ink-muted); }
.sum-row.total { font-size: 1.2rem; font-weight: 900; color: var(--ink); border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 14px; }
.sum-row.disc { color: var(--success); }
.ship-progress { background: var(--blush); border-radius: 14px; padding: 11px 14px; margin-bottom: 12px; font-size: .86rem; font-weight: 800; color: #7B3F45; }
.ship-progress .track { height: 7px; background: rgba(255,255,255,.85); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.ship-progress .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--blush-deep)); border-radius: 99px; transition: width .5s var(--ease); }
.ship-progress.done { background: var(--success-bg); color: var(--success); }
.coupon-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .form-group { margin-bottom: 0; }
.msg-error { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: .88rem; margin: 10px 0; }
.msg-ok { background: var(--success-bg); color: var(--success); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: .88rem; margin: 10px 0; }
.cod-note { display: flex; gap: 10px; align-items: center; background: var(--surface-soft); border-radius: 12px; padding: 10px 14px; font-size: .86rem; font-weight: 700; margin: 10px 0; }
.success-card { text-align: center; padding: 40px 22px; max-width: 640px; margin: 28px auto 60px; }
.success-ico { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-size: 2.2rem; animation: popIn .5s var(--ease); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-card h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.order-no { display: inline-block; background: var(--blush); color: var(--blush-dark); font-weight: 900; padding: 6px 18px; border-radius: 999px; margin: 8px 0; letter-spacing: .5px; direction: ltr; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* الحساب والطلبات والتتبّع */
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; padding: 26px 0 70px; align-items: start; }
.account-grid > * { min-width: 0; }
.avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--blush); color: var(--blush-deep); font-weight: 900; font-size: 1.8rem; display: grid; place-items: center; margin: 0 auto 10px; }
.status-pill { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.st-new { background: var(--info-bg); color: var(--info); }
.st-preparing { background: var(--warn-bg); color: var(--warn); }
.st-shipping { background: #EDE9FE; color: #5B21B6; }
.st-delivered { background: var(--success-bg); color: var(--success); }
.st-cancelled, .st-returned { background: #F1ECE9; color: #7A6F68; }
.steps-line { display: flex; margin: 8px 0 14px; }
.steps-line .st { flex: 1; text-align: center; font-size: .74rem; font-weight: 800; color: var(--ink-muted); position: relative; }
.steps-line .st::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--border); margin: 0 auto 4px; position: relative; z-index: 1; }
.steps-line .st::after { content: ''; position: absolute; top: 8px; right: 50%; width: 100%; height: 3px; background: var(--border); }
.steps-line .st:first-child::after { display: none; }
.steps-line .st.on { color: var(--ink); }
.steps-line .st.on::before, .steps-line .st.on::after { background: var(--success); }
.o-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--surface-soft); }
.o-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--surface-soft); }
.o-item .n { flex: 1; font-weight: 800; font-size: .9rem; line-height: 1.4; }
.o-item .n small { display: block; color: var(--ink-muted); font-weight: 600; }
.o-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 6px; font-weight: 800; }
.order-card.fresh { border-color: var(--success); box-shadow: 0 0 0 4px rgba(31,122,67,.12); }
.timeline { list-style: none; border-right: 2px solid var(--border); padding-right: 16px; margin: 10px 8px 0 0; display: grid; gap: 12px; }
.timeline li { position: relative; font-weight: 700; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; right: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blush-deep); }
.timeline li small { display: block; color: var(--ink-muted); font-weight: 600; }
.link-danger { color: var(--danger); font-weight: 800; font-size: .86rem; }
.link-danger:hover { text-decoration: underline; }

/* صفحات المعلومات */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--blush); color: var(--blush-deep); font-weight: 900; font-size: 1.15rem; display: grid; place-items: center; margin-bottom: 12px; }
.step-card h3 { font-weight: 900; margin-bottom: 6px; }
.step-card p { color: var(--ink-muted); font-size: .92rem; }
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.28rem; font-weight: 900; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose ul { padding-inline-start: 22px; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.zone-chip { padding: 6px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: .86rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); display: block; transition: transform .3s var(--ease), border-color .3s; }
a.contact-card:hover { transform: translateY(-5px); border-color: var(--gold-light); }
.contact-card .feature-icon { margin-bottom: 10px; }
.contact-card strong { display: block; font-weight: 900; }
.contact-card span { color: var(--ink-muted); font-weight: 700; font-size: .9rem; }
.cta-box { background: linear-gradient(135deg, #241F1C, #4A3A33); color: #fff; border-radius: var(--radius-lg); padding: 34px; text-align: center; }
.cta-box h3 { font-size: 1.45rem; font-weight: 900; margin-bottom: 6px; }
.cta-box p { color: #E6D9D0; max-width: 540px; margin: 0 auto 18px; }
.cta-box .hero-ctas { justify-content: center; margin: 0; }
.track-card { max-width: 560px; margin: 30px auto 70px; }

@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .cart-page, .account-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sticky-buy { display: flex; gap: 10px; align-items: center; position: fixed; bottom: 0; left: 0; right: 0; z-index: 990; background: rgba(255,255,255,.98); border-top: 1px solid var(--border); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(31,27,24,.1); }
  .sticky-buy .sp { line-height: 1.2; }
  .sticky-buy .sp strong { display: block; font-size: 1.15rem; font-weight: 900; }
  .sticky-buy .sp small { color: var(--ink-muted); font-size: .72rem; font-weight: 700; }
  .sticky-buy .btn { flex: 1; }
  body[data-page="product"] .mobile-bottom-bar { display: none; }
  body[data-page="product"] .wa-float { bottom: 88px; }
  body[data-page="product"] .site-footer { padding-bottom: 100px; }
  body { padding-bottom: 0; }
  .countdown { justify-content: center; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .line-item { grid-template-columns: 70px 1fr; }
  .line-item img { width: 70px; height: 70px; }
  .line-item .end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .buy-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .top-bar-text span:nth-child(2) { display: none; }
}
