/* ════════════════════════════════════
   سولما — متجر أحذية عربي RTL
   خطوط: Cairo + Tajawal
   ════════════════════════════════════ */
:root {
  --black:  #0d0c0b;
  --dark:   #1a1815;
  --cream:  #f7f3ee;
  --warm:   #ede8df;
  --gold:   #c9a655;
  --gold-d: #a07c30;
  --gold-l: #e8d5a0;
  --text:   #2a2520;
  --muted:  #7a7060;
  --border: #e4ddd3;
  --green:  #16a34a;
  --red:    #dc2626;
  --r:      10px;
  --r-lg:   18px;
  --sh:     0 2px 16px rgba(13,12,11,.07);
  --sh-lg:  0 12px 48px rgba(13,12,11,.13);
  --t:      all .25s ease;
  --font:   'Cairo', 'Segoe UI', Arial, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; direction: rtl; }
/* Cairo as display font with system fallback */
h1,h2,h3,h4,h5,h6 { font-family: 'Cairo', 'Segoe UI', Arial, sans-serif; font-weight: 700; }
h1,h2,h3,h4,h5,h6 { font-family: 'Cairo', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── شريط الإعلان ── */
.announce-bar { background: var(--black); color: #c8b89a; font-size: 13px; text-align: center; padding: 8px 16px; letter-spacing: 0; }

/* ── شريط التنقل ── */
.site-nav { position: sticky; top: 0; z-index: 1040; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 14px 0; }
.nav-logo { font-family: 'Cairo', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--black); display: flex; align-items: center; gap: 8px; }
.nav-links { gap: 24px; display: flex; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: var(--t); }
.nav-links a:hover { color: var(--gold-d); }
.btn-nav-cta { background: var(--black); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 22px; border-radius: var(--r); transition: var(--t); }
.btn-nav-cta:hover { background: var(--gold-d); color: #fff; }

/* ── القسم الرئيسي ── */
.hero { background: linear-gradient(135deg, var(--black) 0%, #261d10 60%, #1a1208 100%); min-height: 88vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 80px 0 60px; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 65% at 25% 50%, rgba(201,166,85,.08) 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: linear-gradient(90deg, var(--gold), var(--gold-l)); color: var(--black); font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 20px; letter-spacing: 0; margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); color: #f5ede0; line-height: 1.2; margin-bottom: 20px; font-weight: 900; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--gold-l)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: #b09880; font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; font-weight: 300; }
.btn-gold { display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: var(--black); font-weight: 700; font-size: 14px; padding: 14px 32px; border-radius: var(--r); border: none; transition: var(--t); cursor: pointer; box-shadow: 0 4px 24px rgba(201,166,85,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,166,85,.45); color: var(--black); }
.hero-trust { color: #8a7866; font-size: 13px; }
.hero-cards-wrap { display: flex; flex-direction: column; gap: 14px; }
.hcard { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 14px 20px; color: #f0e8da; font-size: 13px; font-weight: 600; }

/* ── شريط الثقة ── */
.trust-strip { background: var(--cream); border-bottom: 1px solid var(--border); padding: 18px 0; }
.ts-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; color: var(--muted); font-size: 13px; font-weight: 600; border-left: 1px solid var(--border); }
.ts-item:last-child { border-left: none; }
.ts-item i { font-size: 1.3rem; color: var(--gold-d); }

/* ── عناوين الأقسام ── */
.sec-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-d); margin-bottom: 10px; }
.sec-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; color: var(--black); }
.sec-sub { color: var(--muted); font-size: .97rem; max-width: 500px; margin: 0 auto; }
.collection-section { padding: 80px 0; }
.sec-head { margin-bottom: 40px; }

/* ── بطاقات المنتجات ── */
.prod-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: var(--t); position: relative; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-l); }
.prod-badge-sale { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; z-index: 2; }
.prod-badge-hot { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--black); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 2; }
.prod-img-wrap { height: 240px; background: var(--cream); overflow: hidden; position: relative; }
.prod-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod-card:hover .prod-img { transform: scale(1.07); }
.prod-hover-overlay { position: absolute; inset: 0; background: rgba(13,12,11,.28); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--t); }
.prod-card:hover .prod-hover-overlay { opacity: 1; }
.prod-hover-overlay span { background: #fff; color: var(--black); font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: var(--r); }
.prod-body { padding: 18px; }
.prod-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.prod-name a { color: var(--black); transition: var(--t); }
.prod-name a:hover { color: var(--gold-d); }
.prod-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod-price { font-size: 1.2rem; font-weight: 700; color: var(--black); }
.prod-compare { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.prod-stock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); font-weight: 600; margin-top: 6px; }
.stock-pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.btn-buy-now { display: block; width: 100%; background: var(--black); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 11px; border-radius: var(--r); margin-top: 12px; transition: var(--t); }
.btn-buy-now:hover { background: var(--gold-d); color: #fff; }

/* ── قسم لماذا نحن ── */
.why-section { background: var(--cream); padding: 80px 0; }
.why-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.why-item { display: flex; align-items: flex-start; gap: 16px; }
.why-icon { width: 46px; height: 46px; min-width: 46px; background: linear-gradient(135deg, var(--gold), var(--gold-d)); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.why-item p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; text-align: center; transition: var(--t); }
.stat-box:hover { box-shadow: var(--sh-lg); }
.stat-n { display: block; font-size: 2.2rem; font-weight: 900; color: var(--black); }
.stat-l { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ── آراء العملاء ── */
.testi-section { padding: 80px 0; background: #fff; }
.testi-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; height: 100%; transition: var(--t); }
.testi-card:hover { box-shadow: var(--sh-lg); }
.testi-featured { background: var(--black); border-color: var(--gold); color: #ede0cc; }
.testi-featured p { color: #c4b49a; }
.testi-stars { color: var(--gold); font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-av { width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold), var(--gold-d)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--black); font-size: 16px; flex-shrink: 0; }
.testi-author strong { display: block; font-size: 14px; }
.testi-author small { color: var(--muted); font-size: 12px; }

/* ═══════════════════════════════════════════════════
   POPUP الألوان — موبايل فقط
   ═══════════════════════════════════════════════════ */

#colorPopup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
#colorPopup.cp-visible {
  pointer-events: all;
  opacity: 1;
}
#colorPopup.cp-hiding {
  opacity: 0;
  pointer-events: none;
}

/* الخلفية الداكنة */
.cp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 11, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* الورقة السفلية */
.cp-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 0 0 32px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.34,1.1,.64,1);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#colorPopup.cp-visible .cp-sheet {
  transform: translateY(0);
}
#colorPopup.cp-hiding .cp-sheet {
  transform: translateY(100%);
  transition: transform .3s ease;
}

/* شريط الرأس */
.cp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  border-bottom: 1px solid #f0ece6;
}

/* خط السحب */
.cp-bar::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #e4ddd3;
  border-radius: 2px;
}

.cp-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2a2520;
}
.cp-close {
  background: #f5f0e8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7060;
  transition: all .2s;
}
.cp-close:hover { background: #e8e3da; }

/* الصورة الرئيسية */
.cp-main-wrap {
  padding: 16px 20px 8px;
}
.cp-main-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #f7f3ee;
  opacity: 1;
  transition: opacity .15s ease;
}

/* شريط التقدم */
.cp-progress-wrap {
  height: 3px;
  background: #f0ece6;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.cp-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to left, #c9a655, #a07c30);
  border-radius: 2px;
}

/* الصور المصغرة */
.cp-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cp-thumbs::-webkit-scrollbar { display: none; }

.cp-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e4ddd3;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, box-shadow .2s;
}
.cp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-thumb.active,
.cp-thumb:active {
  border-color: #c9a655;
  box-shadow: 0 0 0 2px #e8d5a0;
}

/* نص الإغلاق */
.cp-hint {
  text-align: center;
  font-size: 12px;
  color: #b8a898;
  margin-top: 14px;
  font-family: 'Cairo', sans-serif;
}

/* لا يظهر في Desktop */
@media (min-width: 992px) {
  #colorPopup { display: none !important; }
}

/* ════════════════════════════════════════════
   صفحة المنتج — كامل ومحسّن للموبايل
   ════════════════════════════════════════════ */

/* Layout */
.prod-page-wrap { padding-top: 16px; padding-bottom: 120px; }
.breadcrumb-nav { font-size: 13px; color: #999; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-nav a { color: #999; transition: var(--t); }
.breadcrumb-nav a:hover { color: var(--gold-d); }

/* على الموبايل: صور فوق، فورم تحت */
.prod-layout { flex-direction: column; }
@media (min-width: 992px) { .prod-layout { flex-direction: row; } }

/* ── Gallery ── */
.prod-gallery-col { padding: 0 0 8px 0; }
@media (min-width: 992px) { .prod-gallery-col { padding: 0; } }

.gallery-wrap { position: relative; }
@media (min-width: 992px) { .gallery-wrap { position: sticky; top: 90px; } }

.gallery-main-box {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid var(--border);
}
@media (max-width: 991px) {
  .gallery-main-box { border-radius: 12px; aspect-ratio: 4/3; }
}

.gallery-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s ease, transform .4s ease;
}
.gallery-main-box:hover .gallery-main-img { transform: scale(1.03); }

.gallery-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
}

.gallery-thumbs {
  display: flex; gap: 8px;
  margin-top: 10px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gthumb {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer; background: var(--cream);
  transition: var(--t); flex-shrink: 0;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.active, .gthumb:hover { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-l); }

/* ── معلومات المنتج ── */
.prod-info-col { padding: 0; }
@media (min-width: 992px) { .prod-info-col { padding-right: 8px; } }

.prod-info-top { margin-bottom: 20px; }
.badge-bestseller { display: inline-block; background: var(--gold); color: var(--black); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px; }
.prod-detail-title { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; margin-bottom: 8px; line-height: 1.25; }
.prod-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars-y { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--muted); }

.price-block { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.big-price { font-size: 1.8rem; font-weight: 900; color: var(--black); }
@media (max-width: 575px) { .big-price { font-size: 1.5rem; } }
.compare-price { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.pct-badge { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

.urgency-box { background: #fff8ec; border: 1px solid #f0d98a; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #8b6c10; margin-bottom: 10px; }
.stock-wrap { margin-bottom: 14px; }
.stock-bar-bg { height: 4px; background: var(--warm); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.stock-bar-fill { height: 100%; background: linear-gradient(to left, var(--gold), var(--red)); border-radius: 2px; }
.stock-txt { font-size: 13px; color: var(--red); font-weight: 700; }
.prod-desc { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }

/* ════════════════════════════════════════════
   فورم الطلب — واضح ومفرعج
   ════════════════════════════════════════════ */
.order-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,12,11,.08);
}
.order-card-head {
  background: var(--black);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 22px;
  letter-spacing: 0;
}
.order-card form { padding: 20px 22px 22px; }
@media (max-width: 575px) {
  .order-card { border-radius: 14px; }
  .order-card form { padding: 16px 16px 18px; }
}

/* أقسام الفورم */
.form-section {
  margin-bottom: 18px;
}
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

/* الألوان */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); border: 2px solid var(--border);
  border-radius: 10px; padding: 8px 14px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  transition: var(--t); font-family: var(--font);
}
.swatch:hover, .swatch.active {
  border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px var(--gold-l);
}
.swatch-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  display: inline-block; flex-shrink: 0;
}

/* المقاسات */
.size-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 52px; height: 52px;
  background: var(--cream); border: 2px solid var(--border);
  border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: var(--t); color: var(--text);
  font-family: var(--font); padding: 0 10px;
}
@media (max-width: 400px) { .size-btn { min-width: 46px; height: 46px; font-size: 14px; } }
.size-btn:hover, .size-btn.active {
  background: var(--black); border-color: var(--black); color: #fff;
}

/* ── الكمية — أنيقة وواضحة ── */
.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  height: 52px;
}
.qty-btn {
  width: 52px; height: 52px;
  background: transparent; border: none;
  font-size: 22px; font-weight: 300;
  cursor: pointer; transition: var(--t);
  color: var(--text); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--gold-l); color: var(--black); }
.qty-btn:active { background: var(--gold); }
.qty-minus { border-radius: 50px 0 0 50px; }
.qty-plus  { border-radius: 0 50px 50px 0; }
.qty-display {
  width: 56px; text-align: center;
  font-size: 18px; font-weight: 900;
  color: var(--black); font-family: var(--font);
  border-inline: 2px solid var(--border);
  line-height: 52px;
  user-select: none;
}

/* الفاصل */
.form-divider {
  height: 1px; background: var(--border);
  margin: 20px 0;
}

/* ── حقول العميل ── */
.customer-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }

.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.field-inp {
  width: 100%;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font); font-size: 15px;
  color: var(--text); outline: none;
  transition: var(--t);
  direction: rtl;
  -webkit-appearance: none; appearance: none;
}
.field-inp:focus {
  border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(201,166,85,.12);
}
.field-inp::placeholder { color: #bbb; font-size: 14px; }
.field-textarea { resize: none; min-height: 80px; }

/* ── المدينة مع dropdown ── */
.city-wrap { position: relative; }
.city-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0; left: 0;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 10px;
  max-height: 220px; overflow-y: auto;
  z-index: 500;
  box-shadow: 0 8px 30px rgba(13,12,11,.12);
  display: none;
  scrollbar-width: thin;
}
.city-dropdown.open { display: block; }
.city-opt {
  padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border-bottom: 1px solid #f5f0e8;
  transition: background .15s;
}
.city-opt:last-child { border-bottom: none; }
.city-opt:hover { background: var(--cream); color: var(--gold-d); font-weight: 700; }

/* ── المجموع ── */
.order-total {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.total-label { font-size: 14px; font-weight: 700; color: var(--text); }
.total-price { font-size: 1.6rem; font-weight: 900; color: var(--black); }
@media (max-width: 400px) { .total-price { font-size: 1.3rem; } }

/* أخطاء الفورم */
.form-errors {
  background: #fef2f2; border: 1.5px solid #fecaca;
  color: var(--red); border-radius: 8px;
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 12px;
  line-height: 1.7;
}

/* زر التأكيد */
.btn-submit {
  width: 100%; background: var(--black);
  color: #fff; border: none;
  font-weight: 700; font-size: 16px;
  padding: 17px; border-radius: 12px;
  cursor: pointer; transition: var(--t);
  font-family: var(--font);
  position: relative; overflow: hidden;
  letter-spacing: 0;
}
.btn-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  opacity: 0; transition: opacity .25s;
}
.btn-submit:hover::after { opacity: 1; }
.btn-submit > * { position: relative; z-index: 1; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,12,11,.2); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.form-trust {
  text-align: center; font-size: 12px;
  color: var(--muted); margin: 10px 0 0;
  line-height: 1.8;
}

/* ════════════════════════════════════════════
   شريط الموبايل الثابت
   ════════════════════════════════════════════ */
.mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(0,0,0,.09);
}
.ms-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.ms-info { display: flex; flex-direction: column; min-width: 0; }
.ms-name {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px;
}
.ms-price { font-size: 1.2rem; font-weight: 900; color: var(--black); line-height: 1.2; }
.ms-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: var(--black); border: none;
  font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: 50px;
  cursor: pointer; font-family: var(--font);
  white-space: nowrap;
}

/* padding extra للموبايل بسبب الشريط الثابت */
@media (max-width: 991px) {
  .prod-page-wrap { padding-bottom: 110px; }
}

/* تأثير الكمية */
.qty-display {
  transition: transform .15s ease, color .15s ease;
}

/* تأثيرات التمرير — لا تخفي المحتوى قبل التحميل */
.anim-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-ready.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════
   المنتجات المميزة + زر واتساب
   ════════════════════════════════════════════ */

/* قسم المنتجات المميزة */
.featured-section {
  padding: 70px 0 40px;
  background: linear-gradient(180deg, #fffbf0 0%, #f7f3ee 100%);
  border-bottom: 1px solid var(--border);
}
.featured-label {
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* بطاقة المنتج المميز */
.prod-card-featured {
  border: 2px solid var(--gold) !important;
  box-shadow: 0 4px 20px rgba(201,166,85,.18) !important;
}
.prod-card-featured:hover {
  box-shadow: 0 12px 40px rgba(201,166,85,.30) !important;
}

/* تاج المميز */
.feat-crown {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px 0;
  letter-spacing: .04em;
  z-index: 3;
}
/* ارفع الصورة قليلاً بسبب التاج */
.prod-card-featured .prod-img-wrap {
  margin-top: 28px;
}

/* ── صف أزرار المنتج ── */
.prod-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

/* زر الطلب الرئيسي — يأخذ كل المساحة */
.btn-buy-main {
  flex: 1;
  margin-top: 0 !important; /* override old margin */
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* زر واتساب */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  background: #25d366;
  color: #fff;
  border-radius: var(--r);
  font-size: 20px;
  transition: var(--t);
  flex-shrink: 0;
  text-decoration: none;
}
.btn-wa:hover {
  background: #128c7e;
  color: #fff;
  transform: scale(1.08);
}
.btn-wa:active {
  transform: scale(.96);
}

/* موبايل: زر واتساب أصغر قليلاً */
@media (max-width: 575px) {
  .btn-wa {
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .prod-btns { gap: 6px; }
}

/* ════════════════════════════════════════════
   منتجات مشابهة — Related Products
   ════════════════════════════════════════════ */
.related-section {
  padding: 60px 0 80px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.related-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  margin: 0;
  position: relative;
  padding-right: 16px;
}
.related-title::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-d));
  border-radius: 2px;
}
.related-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-d);
  white-space: nowrap;
  transition: var(--t);
}
.related-all:hover { color: var(--black); }

/* Fix featured card image margin inside related */
.prod-img-wrap.mt-feat { margin-top: 28px; }

@media (max-width: 575px) {
  .related-section { padding: 40px 0 100px; }
  .related-title { font-size: 1.2rem; }
}

/* ════════════════════════════════════════════
   فورم الطلب الجديد — نفس شكل الصورة
   ════════════════════════════════════════════ */

/* رأس الفورم */
.order-card-head {
  background: #fff !important;
  color: var(--text) !important;
  font-size: .95rem;
  font-weight: 700;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  letter-spacing: .01em;
}

/* ── قسم الألوان ── */
.co-section { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.co-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }

.co-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.co-item {
  display: flex; align-items: center; gap: 8px;
  background: #fafafa; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 8px 14px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .22s ease; font-family: var(--font);
  position: relative; overflow: hidden;
}
/* animation شريط ذهبي يجيء من اليمين */
.co-item::after {
  content: '';
  position: absolute; bottom: 0; right: 0; left: 100%;
  height: 3px; background: linear-gradient(to left, var(--gold), var(--gold-d));
  transition: left .28s ease;
  border-radius: 0;
}
.co-item.co-active::after { left: 0; }
.co-item.co-active {
  border-color: var(--gold);
  background: #fffbf0;
  box-shadow: 0 2px 12px rgba(201,166,85,.18);
}
.co-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .2s;
}
.co-item.co-active .co-dot { transform: scale(1.15); }
.co-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  font-size: 10px; display: none;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.co-item.co-active .co-check { display: flex; }

/* ── Floating Label inputs ── */
.fl-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 16px 20px 0;
}
.fl-wrap {
  position: relative; display: flex; flex-direction: column;
}
.fl-full { padding: 12px 20px 0; }
.fl-full .city-wrap { width: 100%; }

.fl-input {
  width: 100%; padding: 20px 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px; font-family: var(--font);
  font-size: 14px; color: var(--text); background: #fafafa;
  outline: none; transition: all .22s ease;
  direction: rtl; -webkit-appearance: none;
}
.fl-input:focus {
  border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(201,166,85,.12);
}
/* error state */
.fl-input.error { border-color: var(--red); }

/* Floating label */
.fl-label {
  position: absolute; right: 14px; top: 14px;
  font-size: 14px; color: #aaa; font-family: var(--font);
  pointer-events: none;
  transition: all .2s ease;
  background: transparent;
  transform-origin: right center;
}
/* عندما يكون الـ input active أو فيه محتوى */
.fl-input:focus ~ .fl-label,
.fl-input:not(:placeholder-shown) ~ .fl-label {
  top: 5px; font-size: 11px; color: var(--gold-d); font-weight: 700;
}

/* Textarea floating */
.fl-textarea {
  resize: none; min-height: 72px; padding-top: 22px;
}
.fl-textarea ~ .fl-label { top: 14px; }
.fl-textarea:focus ~ .fl-label,
.fl-textarea:not(:placeholder-shown) ~ .fl-label { top: 5px; font-size: 11px; color: var(--gold-d); font-weight: 700; }

/* City dropdown inside fl-wrap */
.fl-full .fl-input { padding: 20px 14px 8px; }

/* ── سعر المنتج ── */
.checkout-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 0;
  font-size: 14px;
}
.cpr-label { color: var(--muted); font-weight: 600; }
.cpr-val { font-size: 1.1rem; font-weight: 900; color: var(--black); }

/* ── زر + كمية في صف واحد ── */
.checkout-bottom {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 0;
}
.btn-checkout {
  flex: 1; background: var(--black); color: #fff;
  border: none; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  padding: 15px 20px; cursor: pointer;
  font-family: var(--font); transition: all .22s;
  position: relative; overflow: hidden;
}
.btn-checkout::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  opacity: 0; transition: opacity .25s;
}
.btn-checkout:hover::before { opacity: 1; }
.btn-checkout > * { position: relative; z-index: 1; }
.btn-checkout:hover { transform: translateY(-1px); }
.btn-checkout:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* كمية */
.co-qty {
  display: flex; align-items: center;
  background: #f0f0f0; border-radius: 50px;
  overflow: hidden; height: 50px; flex-shrink: 0;
}
.co-qty-btn {
  width: 40px; height: 50px;
  background: transparent; border: none;
  font-size: 20px; font-weight: 300; cursor: pointer;
  color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.co-qty-btn:active { background: var(--gold-l); }
.co-qty-plus {
  background: var(--black); color: #fff;
  border-radius: 0 50px 50px 0;
}
.co-qty-plus:active { background: var(--gold-d); }
.co-qty-num {
  width: 36px; text-align: center;
  font-size: 16px; font-weight: 900;
  color: var(--black); user-select: none;
  font-family: var(--font);
}

/* form trust */
.form-trust {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 12px 20px 18px; margin: 0;
}

/* ── Responsive ── */
@media (max-width: 420px) {
  .fl-row { grid-template-columns: 1fr; }
  .co-qty-btn { width: 36px; }
  .co-qty-num { width: 32px; }
}
