/* ═══════════════════════════════════════════════════════════════
   MARJANE — Estilos e-commerce
   Responsive · PC + Mobile · Bilingüe FR / AR
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #E30613;
  --red-dark:   #b00010;
  --red-light:  #ff2233;
  --red-dim:    rgba(227,6,19,.1);
  --orange:     #FF6B00;
  --green:      #16a34a;
  --green-light:#22c55e;
  --yellow:     #f59e0b;

  --bg:         #f5f5f5;
  --bg-white:   #ffffff;
  --bg-gray:    #f0f0f0;
  --border:     #e5e7eb;
  --border-dark:#d1d5db;

  --text-dark:  #111827;
  --text-mid:   #374151;
  --text-gray:  #6b7280;
  --text-light: #9ca3af;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);

  --radius:     10px;
  --radius-lg:  16px;
  --radius-pill:99px;

  --header-h:   110px; /* top + nav */
  --font:       'Inter', sans-serif;
  --font-ar:    'Cairo', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Arabic mode */
body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}
body.lang-ar .fa-arrow-right::before { content: '\f060'; }

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 99px; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 500;
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.header-top { background: var(--bg-white); padding: 10px 0; }
.header-top-inner {
  display: flex; align-items: center; gap: 16px;
}

.header-logo .logo-svg { height: 44px; width: auto; }

.header-search { flex: 1; max-width: 600px; }
.search-wrap {
  display: flex; align-items: center;
  background: var(--bg-gray);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  transition: border-color .2s;
  position: relative;
}
.search-wrap:focus-within { border-color: var(--red); background: #fff; }
.search-icon { color: var(--text-gray); font-size: 14px; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: transparent;
  padding: 10px 10px;
  font-size: 14px; color: var(--text-dark);
  outline: none; font-family: inherit;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-light); }
.search-clear {
  background: none; border: none;
  color: var(--text-gray); font-size: 14px;
  padding: 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.search-clear:hover { background: var(--border); color: var(--text-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-lang {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  color: var(--text-mid);
  transition: all .2s;
  background: var(--bg-white);
}
.btn-lang:hover { border-color: var(--red); color: var(--red); }
.btn-lang i { font-size: 14px; }

.btn-cart {
  position: relative;
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}
.btn-cart:hover  { background: var(--red-dark); }
.btn-cart:active { transform: scale(.94); }

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--orange);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ── NAV ──────────────────────────────────────────────────── */
.header-nav {
  background: var(--red);
  padding: 0;
}
.header-nav-inner {
  display: flex; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 18px;
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s;
  border-bottom: 3px solid transparent;
  position: relative;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.15); color: #fff; border-bottom-color: #fff; }
.dd-arrow { font-size: 10px; transition: transform .2s; }
.nav-link-dd.open .dd-arrow { transform: rotate(180deg); }

/* ── CAT DROPDOWN ─────────────────────────────────────────── */
.cat-overlay {
  position: fixed; inset: 0;
  z-index: 490; background: transparent;
}
.cat-menu {
  position: sticky; top: var(--header-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 480;
  padding: 16px 0;
}
.cat-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.cat-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.cat-menu-item:hover { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.cat-menu-item span { font-size: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 360px;
}
@media (max-width: 768px) { .hero-section { height: 280px; } }
@media (max-width: 480px) { .hero-section { height: 240px; } }

.hero-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  width: calc(100% / 3);
  display: flex; align-items: center;
  padding: 32px 0;
  flex-shrink: 0;
}
.hero-content {
  flex: 1;
  padding: 0 60px;
  z-index: 2;
}
@media (max-width: 768px) { .hero-content { padding: 0 24px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-sub {
  font-size: clamp(12px, 1.5vw, 15px);
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--red);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero-btn:active { transform: scale(.97); }

.hero-visual {
  flex-shrink: 0; width: 300px;
  display: flex; align-items: center; justify-content: center;
  padding-right: 40px;
}
.hero-visual img {
  height: 260px; width: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
@media (max-width: 768px) {
  .hero-visual { display: none; }
}

.hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer;
  transition: background .2s, width .2s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 99px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transition: background .2s;
  z-index: 10;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
@media (max-width: 480px) {
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
}

/* ══════════════════════════════════════════════
   CATEGORY PILLS
══════════════════════════════════════════════ */
.cat-pills-section { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.cat-pills {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--bg-white);
  font-size: 13px; font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer;
  transition: all .15s;
}
.cat-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }
.cat-pill.active { background: var(--red); border-color: var(--red); color: #fff; }
.cat-pill .pill-icon { font-size: 16px; }

/* ══════════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════════ */
.products-section { padding: 28px 0 48px; }
.products-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 20px; font-weight: 700; color: var(--text-dark);
}
.products-count { font-size: 13px; color: var(--text-gray); }

.search-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--red-dim);
  border: 1px solid rgba(227,6,19,.2);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px; color: var(--text-mid);
}
.search-banner i { color: var(--red); }
.search-clear-btn {
  margin-left: auto; color: var(--text-gray);
  font-size: 14px; padding: 2px 6px;
  border-radius: var(--radius);
  transition: background .15s;
}
.search-clear-btn:hover { background: rgba(0,0,0,.05); color: var(--text-dark); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── PRODUCT CARD ─────────────────────────────────────────── */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-gray);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.promo-badge {
  position: absolute; top: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
body.lang-ar .promo-badge { right: 10px; }
body:not(.lang-ar) .promo-badge { left: 10px; }

.product-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 16px; font-weight: 800;
  color: var(--red);
}
.product-old-price {
  font-size: 12px; color: var(--text-light);
  text-decoration: line-through;
}
.product-discount {
  font-size: 11px; font-weight: 700;
  background: var(--red-dim);
  color: var(--red);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}
.product-unit {
  font-size: 11px; color: var(--text-gray);
  margin-bottom: 10px;
}

.btn-add-card {
  width: 100%;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 9px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, transform .1s;
}
.btn-add-card:hover  { background: var(--red-dark); }
.btn-add-card:active { transform: scale(.97); }
.btn-add-card.added  { background: var(--green); }

/* No results */
.no-results {
  text-align: center; padding: 80px 20px;
  color: var(--text-light);
}
.no-results i { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.no-results p { font-size: 16px; }

/* ══════════════════════════════════════════════
   PROMO STRIP
══════════════════════════════════════════════ */
.promo-strip {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.promo-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .promo-strip-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promo-strip-inner { grid-template-columns: 1fr; } }

.promo-strip-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
}
.promo-strip-item > i {
  font-size: 28px; color: var(--red);
  flex-shrink: 0;
}
.promo-strip-item div { display: flex; flex-direction: column; gap: 2px; }
.promo-strip-item strong { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.promo-strip-item span  { font-size: 12px; color: var(--text-gray); }

/* ══════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 48px 0;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.newsletter-text h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.newsletter-text p  { font-size: 14px; color: rgba(255,255,255,.8); }

.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  color: #fff; font-size: 14px;
  outline: none;
  backdrop-filter: blur(4px);
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.7); }
.newsletter-form button {
  background: #fff;
  color: var(--red);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
  transition: transform .15s;
}
.newsletter-form button:hover { transform: scale(1.02); }
@media (max-width: 600px) {
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { width: 100%; max-width: none; }
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { background: #111827; color: #d1d5db; padding-top: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 13px; font-weight: 700;
  color: #fff;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 16px; color: #9ca3af; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li, .footer-col ul li a {
  font-size: 13px; color: #9ca3af;
  display: flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li .fa-location-dot { color: var(--red); font-size: 11px; }

.footer-social {
  display: flex; gap: 10px;
}
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 14px;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--red); color: #fff; }

.store-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #d1d5db; font-size: 12px;
  padding: 6px 12px; border-radius: var(--radius);
  margin-right: 6px; margin-bottom: 6px;
  transition: background .15s;
}
.store-badge:hover { background: rgba(255,255,255,.15); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
#footer-copy { font-size: 12px; color: #6b7280; }
.footer-pay { display: flex; gap: 10px; color: #6b7280; font-size: 22px; }

/* ══════════════════════════════════════════════
   CART SIDEBAR
══════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 800;
  backdrop-filter: blur(2px);
}
.cart-sidebar {
  position: fixed; top: 0; bottom: 0;
  width: min(400px, 95vw);
  background: var(--bg-white);
  z-index: 900;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
body:not(.lang-ar) .cart-sidebar { right: 0; }
body.lang-ar .cart-sidebar { left: 0; transform: translateX(-110%); }
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-size: 18px; font-weight: 700; }
.cart-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray); font-size: 16px;
  transition: background .15s;
}
.cart-close:hover { background: var(--bg-gray); color: var(--text-dark); }

.cart-body { flex: 1; overflow-y: auto; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 64px 24px;
  color: var(--text-light);
}
.cart-empty i { font-size: 48px; opacity: .3; }
.cart-empty p  { font-size: 15px; }

/* Cart items */
.cart-item {
  display: flex; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden; background: var(--bg-gray);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--red); }

.cart-item-controls {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.qty-ctrl {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-ctrl button {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-mid);
  transition: background .15s;
}
.qty-ctrl button:hover { background: var(--bg-gray); }
.qty-ctrl span {
  width: 28px; text-align: center;
  font-size: 13px; font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 28px;
}
.btn-remove-item {
  margin-left: auto; color: var(--text-light);
  font-size: 13px; padding: 4px 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.btn-remove-item:hover { background: var(--red-dim); color: var(--red); }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}
.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
}
.cart-total-row span:first-child { font-weight: 600; }
#cart-total-price { font-size: 20px; font-weight: 800; color: var(--red); }

.btn-checkout {
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 13px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-bottom: 8px;
  transition: background .2s;
}
.btn-checkout:hover  { background: var(--red-dark); }
.btn-continue {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  color: var(--text-mid);
  border: 2px solid var(--border);
  transition: border-color .15s, color .15s;
  background: var(--bg-white);
}
.btn-continue:hover { border-color: var(--red); color: var(--red); }

/* ══════════════════════════════════════════════
   PRODUCT MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 850;
  backdrop-filter: blur(4px);
}
.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 94vw);
  max-height: 90vh;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  z-index: 860;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: translate(-50%, -48%) scale(.95); }
  to   { opacity:1; transform: translate(-50%, -50%) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(0,0,0,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-mid);
  z-index: 2;
  transition: background .15s;
}
.modal-close:hover { background: rgba(0,0,0,.15); }

.modal-inner {
  display: flex; gap: 0;
}
@media (max-width: 600px) { .modal-inner { flex-direction: column; } }

.modal-img-wrap {
  width: 48%; flex-shrink: 0;
  position: relative;
  background: var(--bg-gray);
  min-height: 280px;
}
.modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
@media (max-width: 600px) {
  .modal-img-wrap { width: 100%; min-height: 220px; }
  .modal-img-wrap img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
.modal-img-wrap .promo-badge { position: absolute; top: 14px; left: 14px; }

.modal-info { flex: 1; padding: 28px 24px; }
.modal-cat-label {
  display: inline-block;
  background: var(--red-dim); color: var(--red);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 10px;
}
.modal-info h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.modal-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.modal-price { font-size: 28px; font-weight: 800; color: var(--red); }
.modal-old-price { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.modal-discount {
  font-size: 13px; font-weight: 700;
  background: var(--red-dim); color: var(--red);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.modal-unit-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-gray);
  margin-bottom: 20px;
}
.modal-unit-row i { color: var(--text-light); }
.dot { color: var(--text-light); }

.modal-qty {
  display: flex; align-items: center;
  gap: 0; margin-bottom: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content; overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-mid);
  transition: background .15s;
}
.qty-btn:hover { background: var(--bg-gray); }
#modal-qty-val {
  min-width: 40px; text-align: center;
  font-size: 16px; font-weight: 700;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  line-height: 40px;
}

.btn-add-modal {
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 13px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .2s;
}
.btn-add-modal:hover { background: var(--red-dark); }
.btn-add-modal.added { background: var(--green); }

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px;
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  max-width: 340px;
  animation: toastIn .25s ease;
}
body:not(.lang-ar) .toast { right: 24px; }
body.lang-ar .toast { left: 24px; }
@keyframes toastIn {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .header-logo .logo-svg { height: 36px; }
  .btn-lang span { display: none; }
  .btn-lang { padding: 8px 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px; }
  .section-title { font-size: 17px; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── RTL overrides ────────────────────────────────────────── */
body.lang-ar .promo-badge { left: auto; right: 10px; }
body.lang-ar .modal-img-wrap img { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
body.lang-ar .modal-img-wrap .promo-badge { left: auto; right: 14px; }
body.lang-ar .cart-sidebar { right: auto; left: 0; }
body.lang-ar .hero-content { text-align: right; }

/* ── UTILITY ──────────────────────────────────────────────── */
.hidden { display: none !important; }
