/* =========================================================
   أسامة مول — Design System
   ========================================================= */
:root {
  --brand: #e10a2b;
  --brand-dark: #b8001f;
  --brand-soft: #fff0f2;
  --green: #6fae2e;
  --green-dark: #4e8a1a;
  --green-soft: #eef7e4;
  --ink: #1d1d1f;
  --ink-2: #4a4a50;
  --muted: #8a8a92;
  --bg: #faf8f5;
  --surface: #ffffff;
  --line: #eeeae4;
  --gold: #ffb400;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(29, 29, 31, .05);
  --shadow: 0 12px 34px -12px rgba(29, 29, 31, .18);
  --shadow-brand: 0 14px 30px -10px rgba(225, 10, 43, .45);
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-head: "Cairo", "Tajawal", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}
html {
  min-height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100%;
  /* بدون position:relative حتى لا ينكسر position:fixed للشريط السفلي */
}
body.is-loading { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.text-brand { color: var(--brand); }

/* =========================================================
   SPLASH — الشعار المتحرك
   ========================================================= */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #fff 0%, #fff6f3 55%, #ffe9e6 100%);
  overflow: hidden;
  transition: clip-path 1s var(--ease), opacity .6s ease .5s;
  clip-path: circle(150% at 50% 50%);
}
#splash.hide { clip-path: circle(0% at 50% 50%); opacity: 0; pointer-events: none; }

.splash-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 8s ease-in-out infinite alternate; }
.splash-blob.b1 { width: 420px; height: 420px; background: #ffc9cf; top: -120px; right: -100px; }
.splash-blob.b2 { width: 360px; height: 360px; background: #d8efc0; bottom: -120px; left: -80px; animation-delay: -3s; }
.splash-blob.b3 { width: 240px; height: 240px; background: #ffe1a8; bottom: 18%; right: 20%; animation-delay: -5s; opacity: .35; }
@keyframes blob { to { transform: translate(40px, -30px) scale(1.15); } }

.splash-particles { position: absolute; inset: 0; pointer-events: none; }
.splash-particles span {
  position: absolute; font-size: 30px; opacity: 0;
  animation: floatUp 4.5s ease-in infinite;
}
.splash-particles span:nth-child(1) { left: 8%;  animation-delay: .3s; }
.splash-particles span:nth-child(2) { left: 20%; animation-delay: 1.4s; font-size: 24px; }
.splash-particles span:nth-child(3) { left: 33%; animation-delay: 2.3s; }
.splash-particles span:nth-child(4) { left: 48%; animation-delay: .9s; font-size: 22px; }
.splash-particles span:nth-child(5) { left: 62%; animation-delay: 1.9s; }
.splash-particles span:nth-child(6) { left: 75%; animation-delay: .5s; font-size: 26px; }
.splash-particles span:nth-child(7) { left: 86%; animation-delay: 2.7s; }
.splash-particles span:nth-child(8) { left: 94%; animation-delay: 1.2s; font-size: 22px; }
@keyframes floatUp {
  0% { transform: translateY(105vh) rotate(0); opacity: 0; }
  15% { opacity: .75; }
  100% { transform: translateY(-15vh) rotate(260deg); opacity: 0; }
}

.splash-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 20px; }
.splash-logo { display: flex; align-items: center; gap: 18px; direction: rtl; }

.splash-icon-wrap { position: relative; width: clamp(110px, 18vw, 170px); flex-shrink: 0; }
.splash-icon {
  position: relative; z-index: 2; width: 100%; display: block;
  transform-origin: 50% 100%;
  animation: iconDrop 1.1s var(--ease) .15s both, iconFloat 3s ease-in-out 2.2s infinite;
}
@keyframes iconDrop {
  0%   { transform: translateY(-120vh) rotate(-25deg) scale(.6); opacity: 0; }
  55%  { transform: translateY(0) rotate(6deg) scale(1.05, .92); opacity: 1; }
  70%  { transform: translateY(-22px) rotate(-3deg) scale(.97, 1.04); }
  85%  { transform: translateY(0) rotate(1deg) scale(1.02, .98); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}
@keyframes iconFloat { 50% { transform: translateY(-8px); } }

.splash-shadow {
  position: absolute; bottom: -10px; left: 50%; width: 60%; height: 14px; z-index: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(rgba(0,0,0,.22), transparent 70%);
  animation: shadowIn 1.1s var(--ease) .15s both;
}
@keyframes shadowIn { 0%, 40% { opacity: 0; transform: translateX(-50%) scale(.2); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }

.ring {
  position: absolute; top: 58%; left: 50%; width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--brand); opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  animation: ring 2.2s ease-out 1s infinite;
}
.ring.r2 { animation-delay: 1.5s; border-color: var(--green); }
.ring.r3 { animation-delay: 2s; }
@keyframes ring {
  0% { opacity: .55; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

.splash-text-wrap { position: relative; overflow: hidden; width: clamp(200px, 40vw, 430px); }
.splash-text {
  width: 100%; display: block;
  clip-path: inset(0 0 0 100%);
  animation: textReveal 1s var(--ease) 1s forwards;
}
@keyframes textReveal {
  0% { clip-path: inset(0 0 0 100%); transform: translateX(-20px); }
  100% { clip-path: inset(0 0 0 0); transform: translateX(0); }
}
.shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.8) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 150% 0; background-repeat: no-repeat;
  -webkit-mask: url(../images/osama-mall/logo-text.png) center / 100% 100% no-repeat;
          mask: url(../images/osama-mall/logo-text.png) center / 100% 100% no-repeat;
  animation: shine 1.3s ease-in-out 2.1s forwards;
}
@keyframes shine { to { background-position: -150% 0; } }

.splash-tagline {
  margin: 0; font-size: clamp(16px, 2.2vw, 21px); color: var(--ink-2);
  opacity: 0; animation: fadeUp .8s var(--ease) 1.9s forwards;
}
.splash-tagline b { color: var(--brand); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.splash-loader {
  width: 200px; height: 5px; border-radius: 10px; background: rgba(225,10,43,.12); overflow: hidden;
  opacity: 0; animation: fadeUp .5s ease 2s forwards;
}
.splash-loader span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--brand));
  animation: load 1.4s var(--ease) 2.1s forwards;
}
@keyframes load { to { width: 100%; } }

.splash-skip {
  position: absolute; bottom: 24px; left: 24px; border: 0; background: rgba(29,29,31,.06);
  color: var(--ink-2); border-radius: 30px; padding: 7px 16px; font-size: 14px;
  opacity: 0; animation: fadeUp .5s ease 1.2s forwards;
}
.splash-skip:hover { background: rgba(29,29,31,.12); }

@media (max-width: 575px) {
  .splash-logo { flex-direction: column; gap: 10px; }
  .splash-text-wrap { width: 72vw; }
  .splash-icon-wrap { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* =========================================================
   TOP BAR & HEADER
   ========================================================= */
.topbar { background: var(--ink); color: #f1f1f1; font-size: 13.5px; padding: 8px 0; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--gold); margin-inline-end: 4px; }
.topbar-marquee { display: flex; gap: 28px; }

.main-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.main-header.scrolled { box-shadow: var(--shadow); }
.brand img { height: 50px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04); }

.search-box { position: relative; max-width: 520px; }
.search-box > i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg);
  border-radius: 40px; padding: 11px 46px 11px 18px; font-size: 15px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(225,10,43,.1); }
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 20;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  overflow: hidden; display: none; max-height: 360px; overflow-y: auto;
}
.search-results.show { display: block; animation: fadeUp .25s ease; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: var(--brand-soft); }
.search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.search-item b { display: block; font-size: 14.5px; }
.search-item small { color: var(--brand); font-weight: 700; }
.search-empty { padding: 16px; text-align: center; color: var(--muted); }

.nav-links { list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 30px; font-weight: 700; color: var(--ink-2); transition: .2s; }
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }

.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; min-width: 46px; padding: 0 12px; justify-content: center;
  border: 1.5px solid var(--line); background: #fff; border-radius: 40px;
  font-size: 19px; color: var(--ink); transition: .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .count {
  position: absolute; top: -5px; left: -5px; min-width: 21px; height: 21px; padding: 0 5px;
  background: var(--brand); color: #fff; border-radius: 20px; font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.cart-total-mini { font-size: 14px; font-weight: 800; }
.icon-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95); } }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { font-weight: 700; border-radius: 40px; padding: 10px 22px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; transition: all .25s var(--ease); }
.btn-lg { padding: 13px 28px; font-size: 17px; }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow-brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-light-brand { background: #fff; color: var(--ink); border: 0; }
.btn-light-brand:hover { background: var(--ink); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; min-height: 560px; }
.hero-carousel,
.hero-carousel .carousel-inner {
  min-height: 560px;
}
.hero-carousel .carousel-item {
  position: relative;
  min-height: 560px;
  /* لا تفرض display هنا — Bootstrap يخفي الشرائح غير النشطة */
}
.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scaleX(-1); object-position: 70% center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(250,248,245,.97) 0%, rgba(250,248,245,.88) 38%, rgba(250,248,245,0) 70%);
}
.hero-copy { position: relative; z-index: 2; width: 100%; padding: 70px 0 90px; }
.hero-content { position: relative; z-index: 2; }
.hero-carousel .carousel-indicators {
  bottom: 22px; margin: 0; gap: 8px; z-index: 5;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0;
  background: rgba(29,29,31,.25); opacity: 1; transition: .3s var(--ease);
}
.hero-carousel .carousel-indicators .active { background: var(--brand); transform: scale(1.2); }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: auto; opacity: 1; top: 50%; bottom: auto; transform: translateY(-50%); z-index: 5;
}
.hero-carousel .carousel-control-prev { right: auto; left: 18px; }
.hero-carousel .carousel-control-next { left: auto; right: 18px; }
.hero-nav-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: .25s var(--ease);
}
.hero-nav-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.pill-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green-dark);
  font-weight: 800; padding: 7px 16px; border-radius: 30px; font-size: 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.2; font-weight: 900; margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 .text-brand { position: relative; display: inline-block; }
.hero h1 .text-brand::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 6px; height: 12px; z-index: -1;
  background: rgba(111,174,46,.25); border-radius: 10px;
}
.hero .lead { color: var(--ink-2); font-size: 18.5px; line-height: 1.9; margin-bottom: 28px; max-width: 480px; }
.hero-ctas .btn { min-height: 48px; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--ink); }
.hero-stats b::after { content: "+"; color: var(--brand); }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* موبايل: شريط صورة واضح + بطاقة محتوى أسفلها */
@media (max-width: 991.98px) {
  .hero {
    min-height: 0;
    background: var(--bg);
    padding: 0 0 .25rem;
  }
  .hero-carousel,
  .hero-carousel .carousel-inner {
    min-height: 0;
  }
  .hero-carousel .carousel-item {
    min-height: 0;
  }
  .hero-carousel .carousel-item.active,
  .hero-carousel .carousel-item-next,
  .hero-carousel .carousel-item-prev {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(220px, 48vw, 300px);
    flex: 0 0 auto;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background: #e8e4dc;
  }
  .hero-bg img {
    opacity: 1;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(29,29,31,.18) 0%, transparent 28%),
      linear-gradient(180deg, transparent 55%, rgba(250,248,245,.55) 82%, var(--bg) 100%);
  }
  .hero-copy {
    padding: 0 0 1.1rem;
    margin-top: -2.35rem;
    position: relative;
    z-index: 3;
  }
  .hero-copy > .row {
    margin: 0;
  }
  .hero-copy > .row > [class*="col-"] {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 36px -14px rgba(29,29,31,.22), 0 2px 8px rgba(29,29,31,.04);
    padding: 1.2rem 1.1rem 1.15rem;
  }
  .pill-badge {
    font-size: 12.5px;
    padding: 6px 12px;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6.2vw, 1.9rem);
    margin-bottom: 10px;
    letter-spacing: 0;
    line-height: 1.25;
  }
  .hero h1 .text-brand::after { bottom: 3px; height: 8px; }
  .hero .lead {
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 14px;
    max-width: none;
  }
  .hero-ctas {
    gap: .55rem !important;
  }
  .hero-ctas .btn {
    flex: 1 1 calc(50% - .3rem);
    min-width: 0;
    justify-content: center;
    font-size: .9rem;
    padding: .72rem .75rem;
    min-height: 46px;
  }
  .hero-stats {
    gap: 0;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px dashed var(--line);
    justify-content: space-between;
  }
  .hero-stats > div {
    flex: 1;
    text-align: center;
    padding: 0 .2rem;
  }
  .hero-stats > div + div {
    border-inline-start: 1px solid var(--line);
  }
  .hero-stats b { font-size: 1.1rem; }
  .hero-stats span { font-size: .7rem; display: block; margin-top: 2px; }
  .hero-carousel .carousel-indicators {
    bottom: auto;
    top: calc(clamp(220px, 48vw, 300px) - 28px);
    justify-content: center;
    margin: 0;
    z-index: 4;
  }
  .hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px; height: 8px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
  }
  .hero-carousel .carousel-indicators .active {
    background: var(--brand);
    transform: scale(1.15);
  }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { display: none; }
}
@media (max-width: 575.98px) {
  .hero-bg {
    height: 232px;
    border-radius: 0 0 20px 20px;
  }
  .hero-bg img { object-position: center 42%; }
  .hero-copy { margin-top: -2.15rem; }
  .hero-content { padding: 1.05rem .95rem 1.05rem; border-radius: 18px; }
  .hero-carousel .carousel-indicators { top: 208px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { flex: 1 1 auto; width: 100%; min-width: 100%; }
}

/* =========================================================
   FEATURES
   ========================================================= */
.features { margin-top: -40px; position: relative; z-index: 2; }
.feature {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); height: 100%; transition: transform .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature i { font-size: 24px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.col-lg-3:nth-child(even) .feature i { background: var(--green-soft); color: var(--green-dark); }
.feature h6 { margin: 0 0 2px; font-size: 16px; }
.feature small { color: var(--muted); }
@media (max-width: 575px) { .feature { flex-direction: column; text-align: center; padding: 14px 10px; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 800; font-size: 14px; margin-bottom: 6px; letter-spacing: .3px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: currentColor; vertical-align: middle; margin-inline-end: 8px; }
.eyebrow.light { color: rgba(255,255,255,.85); }

/* Categories */
.cat-card {
  display: block; position: relative; background: #fff; border-radius: var(--radius); padding: 16px 12px 18px;
  text-align: center; border: 1.5px solid transparent; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all .35s var(--ease); height: 100%;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card .img { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: var(--bg); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover img { transform: scale(1.12); }
.cat-card h6 { font-size: 15.5px; margin: 0 0 3px; }
.cat-card small { color: var(--muted); }

/* Deals */
.deals-section { background: linear-gradient(135deg, var(--brand) 0%, #a8001c 100%); color: #fff; position: relative; overflow: hidden; }
.deals-section::before, .deals-section::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.deals-section::before { width: 500px; height: 500px; top: -250px; left: -150px; }
.deals-section::after { width: 300px; height: 300px; bottom: -150px; right: 10%; }
.deals-section .container { position: relative; z-index: 1; }
.deals-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.deals-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 6px; }
.deals-head p { margin: 0; opacity: .85; }
.countdown { display: flex; gap: 10px; }
.countdown.is-ended { opacity: .55; }
.countdown.is-ended b { color: #fff; }
.countdown div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 10px 14px; min-width: 76px; text-align: center; backdrop-filter: blur(6px); }
.countdown b { display: block; font-family: var(--font-head); font-size: 30px; line-height: 1.1; font-weight: 900; }
.countdown span { font-size: 13px; opacity: .85; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 22px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button {
  border: 1.5px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 30px;
  font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: .2s;
}
.filter-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.filter-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort-select { width: auto; border-radius: 30px; border: 1.5px solid var(--line); font-weight: 600; padding-top: 9px; padding-bottom: 9px; }

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-card {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: #f7f5f1; }
.product-card .thumb-link { display: block; width: 100%; height: 100%; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card h6 a { color: inherit; text-decoration: none; }
.product-card h6 a:hover { color: var(--brand); }
.badge-off {
  position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 20px;
}
.badge-new { background: var(--green); }
.wish {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 17px;
  color: var(--ink-2); box-shadow: var(--shadow-sm); transition: .25s;
}
.wish:hover { color: var(--brand); transform: scale(1.1); }
.wish.active { color: var(--brand); }
.wish.active i::before { content: "\f415"; }
.quick-btn {
  position: absolute; bottom: 12px; right: 50%; transform: translate(50%, 0); opacity: 1; z-index: 2;
  background: rgba(29,29,31,.88); color: #fff; border: 0; padding: 7px 16px; border-radius: 30px;
  font-size: 13.5px; font-weight: 700; transition: .35s var(--ease); white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
  pointer-events: auto;
}
.quick-btn:hover { background: var(--brand); color: #fff; }
@media (max-width: 991.98px) {
  .product-card .quick-btn {
    font-size: 12px; padding: 6px 12px;
  }
}
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.rating { color: var(--gold); font-weight: 700; }
.rating span { color: var(--muted); font-weight: 500; }
.product-card h6 { font-size: 16.5px; margin: 0 0 10px; line-height: 1.5; }
.product-card h6:hover { color: var(--brand); }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-head); font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.price small { font-size: 14px; }
.old-price { display: block; font-size: 13.5px; color: var(--muted); text-decoration: line-through; font-weight: 600; font-family: var(--font-body); }
.add-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--brand-soft); color: var(--brand);
  font-size: 22px; display: grid; place-items: center; transition: .25s var(--ease); flex-shrink: 0;
}
.add-btn:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }
.qty {
  display: inline-flex; align-items: center; background: var(--brand); color: #fff; border-radius: 14px;
  height: 44px; overflow: hidden; animation: qtyIn .3s var(--ease);
}
@keyframes qtyIn { from { transform: scale(.6); opacity: 0; } }
.qty button { border: 0; background: transparent; color: #fff; width: 34px; height: 100%; font-size: 18px; }
.qty button:hover { background: rgba(0,0,0,.12); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }

/* Deals variant */
.deals-section .product-card { border: 0; }

.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-state i { font-size: 54px; }

/* =========================================================
   PROMO, TESTIMONIALS, NEWSLETTER
   ========================================================= */
.promo { position: relative; overflow: hidden; border-radius: 24px; padding: 38px 34px; color: #fff; height: 100%; min-height: 240px; display: flex; align-items: center; }
.promo > div { position: relative; z-index: 1; max-width: 420px; }
.promo h3 { font-size: 28px; margin: 0 0 8px; }
.promo p { opacity: .9; margin-bottom: 20px; }
.promo-red { background: linear-gradient(135deg, var(--ink) 0%, #3a0a12 100%); }
.promo-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.promo-icon { position: absolute; left: -20px; bottom: -40px; font-size: 200px; opacity: .1; transform: rotate(-15deg); }
.code { background: rgba(255,255,255,.2); border: 2px dashed rgba(255,255,255,.6); padding: 0 10px; border-radius: 10px; letter-spacing: 1px; }

.testimonials { background: #fff; }
.testimonial { background: var(--bg); border-radius: var(--radius); padding: 26px; height: 100%; position: relative; transition: transform .3s var(--ease); }
.testimonial:hover { transform: translateY(-4px); }
.testimonial::before { content: "”"; position: absolute; top: 4px; left: 20px; font-size: 80px; line-height: 1; color: var(--brand); opacity: .15; font-family: Georgia, serif; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p { color: var(--ink-2); line-height: 1.9; }
.who { display: flex; align-items: center; gap: 12px; }
.who > span { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.who small { display: block; color: var(--muted); }

.newsletter {
  background: #fff; border-radius: 24px; padding: 34px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; border: 1.5px dashed rgba(225,10,43,.35);
  background-image: radial-gradient(circle at 0% 100%, var(--brand-soft), transparent 40%), radial-gradient(circle at 100% 0%, var(--green-soft), transparent 40%);
}
.newsletter h3 { margin: 0 0 4px; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form .form-control { border-radius: 40px; padding: 12px 20px; border: 1.5px solid var(--line); }
.newsletter-form .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(225,10,43,.1); }

/* =========================================================
   FOOTER (مطابق للتصميم الأصلي)
   ========================================================= */
.footer { background: var(--ink); color: #b9b9c0; padding: 64px 0 24px; }
.footer-logo {
  height: 54px; width: auto; max-width: 180px; object-fit: contain;
  background: #fff; padding: 8px 14px; border-radius: 14px; margin-bottom: 16px; display: block;
}
.footer p { margin: 0 0 4px; line-height: 1.8; font-size: .95rem; }
.footer h6 { color: #fff; margin-bottom: 16px; font-size: 17px; font-weight: 800; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: .92rem; }
.footer li a { color: inherit; transition: .2s; }
.footer li a:hover { color: #fff; padding-inline-start: 4px; }
.contact-list li { display: flex; align-items: flex-start; gap: 2px; }
.contact-list i { color: var(--brand); margin-inline-end: 8px; flex: 0 0 auto; margin-top: 3px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; transition: .25s;
}
.socials a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; font-size: 14px;
}
.footer-copy { opacity: .92; }
.footer-dev {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #c9c9d1; text-decoration: none; font-size: .86rem; font-weight: 600;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.footer-dev strong { color: #fff; font-weight: 800; }
.footer-dev > i:first-child { color: var(--brand); font-size: .95rem; }
.footer-dev .bi-facebook { color: #8ab4f8; font-size: .92rem; opacity: .9; }
.footer-dev:hover {
  color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.footer-dev:hover strong { color: #fff; }
.footer-dev:hover .bi-facebook { color: #fff; opacity: 1; }
.footer-bottom .pay { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.footer-bottom .pay i { font-size: 22px; margin-inline-start: 6px; color: #fff; }

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-drawer.offcanvas,
.cart-drawer {
  width: 420px !important;
  max-width: 100vw;
  border: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  /* vh وليس % — يمنع تمدد الدرج لطول الصفحة بالكامل واختفاء الأزرار */
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
.cart-drawer .offcanvas-header {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  flex: 0 0 auto;
}
.cart-drawer .offcanvas-title { font-weight: 800; }
.cart-drawer .offcanvas-title i { color: var(--brand); }
.cart-drawer .offcanvas-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px 18px 12px;
  -webkit-overflow-scrolling: touch;
}
.free-ship { background: var(--green-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.free-ship p { margin: 0 0 8px; font-size: 14px; color: var(--green-dark); font-weight: 700; }
.free-ship .bar { height: 7px; border-radius: 10px; background: rgba(78,138,26,.15); overflow: hidden; }
.free-ship .bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .6s var(--ease); }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: fadeUp .3s ease; }
.cart-item img { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; background: var(--bg); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item h6 { font-size: 15px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item small { color: var(--muted); }
.cart-item .line-price { font-weight: 800; color: var(--ink); display: block; margin-top: 4px; }
.cart-item .qty {
  height: 36px; border-radius: 12px; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); overflow: hidden; background: #fff; direction: ltr;
}
.cart-item .qty button {
  width: 34px; height: 36px; border: 0; background: var(--bg); color: var(--ink);
  font-weight: 900; font-size: 1.05rem; line-height: 1;
}
.cart-item .qty button:active { background: var(--brand-soft); color: var(--brand); }
.cart-item .qty span {
  min-width: 30px; text-align: center; font-weight: 900; font-size: .95rem; color: var(--ink);
}
.cart-item .remove { border: 0; background: transparent; color: var(--muted); font-size: 18px; padding: 4px; }
.cart-item .remove:hover { color: var(--brand); }
.cart-empty { text-align: center; padding: 40px 10px; }
.cart-empty i { font-size: 64px; color: var(--line); }
.cart-empty h6 { font-weight: 800; margin: .75rem 0 .35rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1rem; }
.cart-empty .btn { min-width: 160px; }
.cart-footer {
  flex: 0 0 auto !important;
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -8px 24px rgba(29,29,31,.06);
  position: relative;
  z-index: 2;
}
.cart-footer .btn-brand,
.cart-footer .btn-ghost { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.cart-footer-links {
  display: flex;
  gap: .5rem;
  margin-top: .55rem;
}
.cart-footer-links .btn {
  flex: 1 1 0;
  min-height: 42px;
  font-size: .9rem;
  font-weight: 700;
}
.coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon .form-control { border-radius: 30px; min-width: 0; }
.coupon .btn { padding: 8px 18px; flex: 0 0 auto; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-2); }
.sum-row.discount { color: var(--green-dark); }
.sum-row.total { font-size: 19px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 14px; }
.sum-row.total b { color: var(--brand); font-family: var(--font-head); font-weight: 900; }

/* =========================================================
   MODALS
   ========================================================= */
.modal-content { border: 0; border-radius: 24px; overflow: hidden; }
.quick-view .qv-close { position: absolute; top: 16px; left: 16px; z-index: 3; background-color: #fff; border-radius: 50%; padding: 10px; opacity: 1; }
.qv-img { background: #f7f5f1; height: 100%; min-height: 300px; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 34px 30px; }
.qv-body h3 { margin: 6px 0 10px; }
.qv-body .price { font-size: 30px; }
.qv-body p { color: var(--ink-2); line-height: 1.9; }
.qv-cat { background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 20px; }
.checkout .modal-header { border-bottom: 1px solid var(--line); }
.checkout .modal-title i { color: var(--brand); }
.checkout .form-control { border-radius: 12px; padding: 11px 14px; border: 1.5px solid var(--line); }
.checkout .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(225,10,43,.1); }
.checkout .form-label { font-weight: 700; font-size: 14.5px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay-options input { display: none; }
.pay-options span { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; transition: .2s; text-align: center; }
.pay-options input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.checkout-total { display: flex; justify-content: space-between; align-items: center; background: var(--bg); padding: 14px 16px; border-radius: 12px; }
.checkout-total b { font-family: var(--font-head); font-size: 22px; color: var(--brand); }
.checkout .modal-footer { border-top: 0; padding-top: 0; }
.success-box { text-align: center; padding: 40px 28px; }
.success-check {
  width: 90px; height: 90px; border-radius: 50%; background: var(--green); color: #fff; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 46px; box-shadow: 0 0 0 12px var(--green-soft);
  animation: pop .6s var(--ease);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } }

/* =========================================================
   MISC
   ========================================================= */
.toast { border: 0; border-radius: 14px; box-shadow: var(--shadow); background: var(--ink); color: #fff; font-weight: 600; }
.toast .toast-body { display: flex; align-items: center; gap: 10px; }
.toast .toast-body i { font-size: 20px; color: var(--green); }

.to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 1020; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; font-size: 20px; box-shadow: var(--shadow-brand);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* شريط الموبايل الثابت — مثل شريط تطبيقات الجوال */
.bottom-nav {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  z-index: 1025 !important;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(29,29,31,.1);
  /* يمنع أي وراثة غريبة */
  transform: none !important;
  margin: 0 !important;
}
.bottom-nav a {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-2);
  gap: 3px;
  padding: 6px 2px;
  text-decoration: none;
  transition: color .2s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav i { font-size: 22px; line-height: 1; }
.bottom-nav span { line-height: 1.15; }
.bottom-nav a:hover,
.bottom-nav a:focus,
.bottom-nav a.active { color: var(--brand); }
.bottom-nav em {
  position: absolute;
  top: 2px;
  left: calc(50% + 8px);
  font-style: normal;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(225,10,43,.35);
}
.bottom-nav em:empty,
.bottom-nav em[data-empty="1"] { display: none; }

@media (max-width: 991.98px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); left: 16px; right: auto; }
  .section { padding: 60px 0; }
  .brand img { height: 42px; }
  .features { margin-top: -18px; }

  /* فوتر موبايل مضغوط وواضح */
  .footer {
    padding: 36px 0 calc(28px + env(safe-area-inset-bottom, 0px));
    text-align: start;
  }
  .footer .container { padding-inline: 1.1rem; }
  .footer-logo {
    height: 44px;
    margin: 0 auto 12px;
  }
  .footer .row > .col-lg-4:first-child {
    text-align: center;
    margin-bottom: .35rem;
  }
  .footer .row > .col-lg-4:first-child p {
    font-size: .9rem;
    max-width: 32ch;
    margin-inline: auto;
  }
  .footer .socials {
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 8px;
  }
  .footer .socials a {
    width: 42px;
    height: 42px;
  }
  .footer h6 {
    font-size: 14.5px;
    margin-bottom: 10px;
    letter-spacing: .02em;
  }
  .footer li {
    margin-bottom: 8px;
    font-size: .88rem;
  }
  .footer .col-6 {
    margin-top: .25rem;
  }
  .footer .col-lg-4:last-child {
    margin-top: .5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .contact-list li {
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }
  .footer-bottom {
    margin-top: 22px;
    padding-top: 14px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    font-size: 12.5px;
  }
  .footer-dev {
    font-size: .78rem;
    padding: .38rem .7rem;
    order: 2;
  }
  .footer-copy { order: 1; }
  .footer-bottom .pay {
    margin-inline-start: 0;
    order: 3;
  }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.fly-img { position: fixed; z-index: 3000; width: 70px; height: 70px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); transition: all .8s cubic-bezier(.5, -.3, .7, 1); }

/* =========================================================
   PRODUCT / CART / CHECKOUT (inner pages)
   ========================================================= */
.page-title { font-weight: 900; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.sheeb-empty-card, .sheeb-success-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); max-width: 560px; margin-inline: auto; padding: 2.2rem 1.4rem;
}
.sheeb-success-card { max-width: 520px; }
.success-icon { font-size: 3.4rem; color: var(--green); line-height: 1; margin-bottom: .5rem; }

.pd-page { padding: 1.25rem 0 2.25rem; background: var(--bg); }
.pd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.pd-crumbs a { color: var(--brand); text-decoration: none; font-weight: 700; }
.pd-crumbs i { font-size: .7rem; opacity: .7; }
.pd-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 2.2rem; align-items: start; }
.pd-gallery { position: sticky; top: 88px; }
.pd-main-img {
  position: relative; background: var(--surface); border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pd-main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pd-badge { position: absolute; top: 14px; right: 14px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; padding: .28rem .7rem; border-radius: 999px; }
.pd-thumbs { display: flex; gap: .55rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { flex: 0 0 68px; width: 68px; height: 68px; padding: 0; border-radius: 14px; border: 2px solid var(--line); background: #fff; overflow: hidden; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(225,10,43,.15); }
.pd-info {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.35rem 1.4rem 1.45rem; box-shadow: var(--shadow-sm);
}
.pd-cat { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--green-dark); background: var(--green-soft); padding: .28rem .7rem; border-radius: 999px; margin-bottom: .65rem; }
.pd-title { font-weight: 900; font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.3; color: var(--ink); margin: 0 0 .45rem; }
.pd-unit { color: var(--muted); font-size: .9rem; margin-bottom: .95rem; }
.pd-price-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pd-price { display: flex; align-items: baseline; gap: .65rem; }
.pd-price span { color: var(--brand); font-weight: 900; font-size: 1.75rem; font-family: var(--font-head); }
.pd-price del { color: var(--muted); font-size: 1rem; }
.pd-stock { font-size: .8rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; }
.pd-stock.is-in { background: var(--green-soft); color: var(--green-dark); }
.pd-stock.is-out { background: var(--brand-soft); color: var(--brand-dark); }
.pd-desc { color: var(--ink-2); line-height: 1.8; font-size: .96rem; margin: 0 0 1.2rem; }
.pd-options { margin-bottom: 1.15rem; }
.pd-options.is-hidden { display: none; }
.pd-label, .pd-opt-title { font-size: .88rem; font-weight: 700; margin-bottom: .55rem; color: var(--ink-2); }
.pd-selected-line { margin-bottom: .85rem; }
.pd-opt-group { margin-bottom: .95rem; }
.pd-color-list, .pd-size-list, .pd-variant-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.pd-color-btn, .pd-size-btn, .pd-variant {
  display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; padding: .35rem .7rem; cursor: pointer;
}
.pd-color-btn.active, .pd-size-btn.active, .pd-variant.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(225,10,43,.12); }
.pd-size-btn.active { background: var(--brand); color: #fff; }
.pd-buy-row { display: flex; gap: .65rem; align-items: stretch; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.pd-qty button { width: 42px; height: 48px; border: 0; background: var(--bg); font-size: 1.2rem; font-weight: 900; color: var(--ink); }
.pd-qty input { width: 48px; height: 48px; border: 0; text-align: center; font-weight: 800; font-size: 1rem; }
.pd-add { flex: 1; height: 48px; border-radius: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.pd-wa { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .65rem; height: 46px; border-radius: 14px; border: 1px solid #25d366; color: #128c7e; text-decoration: none; font-weight: 800; background: #f3fff7; }
.pd-wa:hover { background: #25d366; color: #fff; }
.pd-perks { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; margin: 1.05rem 0 1rem; }
.pd-perk { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .4rem; font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.pd-perk i { color: var(--brand); font-size: 1.15rem; }
.pd-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--muted); }
.pd-meta b { color: var(--ink); }
.pd-details { margin-top: 1.75rem; padding: 1.35rem 1.4rem; background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pd-details-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 .75rem; }
.pd-details p { margin: 0; color: var(--ink-2); line-height: 1.85; }
.pd-related { padding: 2rem 0 2.5rem; background: var(--bg); }
.pd-related .section-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 1.1rem; }
.pd-sticky-buy {
  display: none; position: fixed;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  right: 0; left: 0; z-index: 1020; background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: .7rem .9rem; gap: .65rem; align-items: center;
  box-shadow: 0 -8px 24px rgba(29,29,31,.08);
}
.pd-sticky-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pd-sticky-price small { font-size: .65rem; color: var(--muted); font-weight: 700; }
.pd-sticky-price strong { color: var(--brand); font-size: 1rem; font-weight: 900; }
.pd-sticky-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pd-sticky-qty button { width: 34px; height: 40px; border: 0; background: var(--bg); font-weight: 900; }
.pd-sticky-qty span { min-width: 28px; text-align: center; font-weight: 800; }

.cart-page { position: relative; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,380px); gap: 1.5rem; align-items: start; }
.cart-lines { min-width: 0; }
.cart-line {
  display: grid; grid-template-columns: 88px minmax(0,1fr) auto; gap: 1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin-bottom: .85rem;
}
.cart-page-actions {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  z-index: 1020;
  gap: .55rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(29,29,31,.08);
}
.cart-page-actions .btn { flex: 1 1 0; min-height: 48px; font-weight: 800; }
.sheeb-empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.cart-empty-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: .5rem; }
.cart-empty-actions .btn { min-width: 160px; }
.cart-line-img img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--bg); }
.cart-line-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-line-name:hover { color: var(--brand); }
.cart-line-variant { color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.cart-line-price { font-weight: 700; color: var(--brand); margin-top: .25rem; }
.cart-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .65rem; }
.cart-line-total { font-weight: 900; min-width: 5.5rem; text-align: start; }
.cart-qty-ctrl.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cart-qty-ctrl button { border: 0; background: var(--bg); width: 34px; height: 34px; font-weight: 700; }
.cart-qty-ctrl .cart-qty-val { min-width: 36px; text-align: center; font-weight: 700; }
.summary-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem;
  position: sticky; top: 88px; box-shadow: var(--shadow-sm);
}
.summary-card h3 { font-size: 1.15rem; font-weight: 900; margin: 0 0 1rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary-line.total { border: 0; font-weight: 900; font-size: 1.1rem; padding-top: .85rem; color: var(--ink); }
.summary-line.total span:last-child { color: var(--brand); }
.coupon-row { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-row input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: #fff; min-width: 0; }

/* نموذج إتمام الطلب / السلة — الحقول كانت بدون تنسيق */
.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.checkout-panel > h2:first-child { margin-top: 0; }
.checkout-section { margin-top: 1.6rem; }
.checkout-section > h2 { margin-top: 0; }
.checkout-note {
  display: block;
  background: var(--brand-soft);
  color: var(--ink-2);
  border: 1px solid #f7d5db;
  border-radius: 12px;
  padding: .75rem .9rem;
  margin: 0 0 1rem;
  font-size: .88rem;
  line-height: 1.55;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.form-grid .field.full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  width: 100%;
}
.field label {
  font-size: .9rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a92' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.4rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(225, 10, 43, .1);
}
.field-hint {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin: .15rem 0 0;
  line-height: 1.45;
}

.checkout-fulfillment,
.payment-options { display: grid; gap: .65rem; }
.checkout-fulfillment label, .payment-options label {
  display: flex; gap: .75rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 1rem 1.05rem; margin: 0; background: #fff; cursor: pointer; transition: .2s var(--ease);
}
.checkout-fulfillment label input,
.payment-options label input {
  width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--brand);
}
.checkout-fulfillment label:has(input:checked),
.payment-options label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(225,10,43,.12); }
.checkout-fulfillment strong, .payment-options strong { display: block; font-weight: 800; }
.checkout-fulfillment small, .payment-options small { display: block; color: var(--muted); margin-top: .25rem; line-height: 1.45; }
.checkout-page .page-title { font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 900; }
.checkout-page h2 { font-size: 1.1rem; font-weight: 900; margin: 0 0 .85rem; color: var(--ink); }
.checkout-delivery[hidden] { display: none !important; }
.checkout-btn { margin-top: .85rem; }
.flash { border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem; }
.flash.error { background: #fdecea; color: #8a1f16; border: 1px solid #f5c6c0; }
.flash.warning { background: #fff8e6; color: #7a5a00; border: 1px solid #f0dfb0; }
.flash.success { background: #eaf7ee; color: #1d6b36; border: 1px solid #c7e6d0; }

@media (max-width: 991.98px) {
  .pd-page { padding: .85rem 0 calc(132px + env(safe-area-inset-bottom, 0px)); }
  .pd-layout { grid-template-columns: 1fr; gap: .85rem; }
  .pd-gallery { position: static; }
  .pd-main-img { border-radius: 18px; }
  .pd-main-img img { aspect-ratio: 1; max-height: none; }
  .pd-info { padding: 1.1rem 1rem 1.15rem; border-radius: 18px; }
  .pd-title { font-size: 1.35rem; }
  .pd-price span { font-size: 1.45rem; }
  .pd-buy-row { display: none; }
  .pd-perks { gap: .4rem; }
  .pd-perk { padding: .6rem .3rem; font-size: .7rem; }
  .pd-details { margin-top: 1.1rem; padding: 1.1rem 1rem; border-radius: 16px; }
  .pd-related { padding: 1.4rem 0 calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
  .pd-sticky-buy { display: flex; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .summary-card .cart-desktop-ctas { display: none; }
  .cart-page-actions { display: flex; }
  .cart-page {
    padding-bottom: calc(88px + 66px + env(safe-area-inset-bottom, 0px));
  }
  .cart-line { grid-template-columns: 72px minmax(0,1fr); grid-template-areas: "img info" "img total"; }
  .cart-line-img { grid-area: img; }
  .cart-line-info { grid-area: info; min-width: 0; }
  .cart-line-total { grid-area: total; margin-top: .35rem; }
  .cart-line-img img { width: 72px; height: 72px; }
  .cart-drawer { max-width: 100vw !important; width: 100% !important; }
  .cart-footer {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cart-footer .btn-lg { padding: .7rem 1rem; font-size: 1rem; min-height: 48px; }
  .sum-row { margin-bottom: 6px; font-size: .92rem; }
  .sum-row.total { font-size: 1.05rem; margin-bottom: 10px; padding-top: 8px; }
  .coupon { margin-bottom: 10px; }
}
@media (max-width: 575.98px) {
  .form-grid { grid-template-columns: 1fr; }
  .checkout-panel { padding: 1.1rem 1rem 1.25rem; }
  .coupon-row { flex-direction: column; }
}
@media (min-width: 992px) {
  .pd-sticky-buy { display: none !important; }
}
