/* ===================================================================
   main.css - معاذ كيدز
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: 15px;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; border-radius: 4px; }
::selection { background: #1a1a1a; color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
.ico { display: block; }

/* ===== شريط الإعلان ===== */
.announce {
  background: #1a1a1a; color: #fff; text-align: center;
  padding: 10px 16px; font-size: 12.5px; font-weight: 500;
}
.announce:empty { display: none; }

/* ===== الرأس ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fefaf6;
  border-bottom: 1px solid rgba(154,132,102,0.18);
  transition: padding .3s;
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  transition: padding .3s;
}
.header-right { display: flex; gap: 4px; align-items: center; justify-self: start; }
.header-left { display: flex; gap: 4px; align-items: center; justify-self: end; }

.brand {
  display: flex; align-items: center; gap: 10px;
  justify-self: center; transition: opacity 0.2s; max-width: 100%;
}
.brand:hover { opacity: 0.85; }
.brand img {
  height: 76px; max-width: 220px; width: auto;
  object-fit: contain; display: block;
  mix-blend-mode: multiply;
  transition: height .3s ease;
}
.brand img:not([src]), .brand img[src=""] { display: none; }
.brand span { font-weight: 700; font-size: 18px; color: #1a1a1a; white-space: nowrap; }
.brand img[src]:not([src=""]) + span { display: none; }

.topbar.scrolled .brand img { height: 46px; }
.topbar.scrolled .topbar-inner { padding: 4px 0; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: #1a1a1a;
  transition: all 0.2s; border: none; cursor: pointer;
  position: relative; flex-shrink: 0;
}
.icon-btn:hover { background: rgba(0,0,0,0.05); }
.icon-btn.small { width: 34px; height: 34px; }
.icon-btn .ico { width: 22px; height: 22px; stroke-width: 1.5; }
.icon-wa { background: #25D366; width: 36px; height: 36px; }
.icon-wa:hover { background: #1ea952; }
.icon-wa .ico { width: 20px; height: 20px; color: #fff; }

.header-cart-count {
  position: absolute; top: -3px; inset-inline-end: -3px;
  background: #c8102e; color: #fff;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 100px; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-cart-count:empty { display: none; }

/* ===== شريط البحث ===== */
.search-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.search-panel.open { max-height: 90px; padding-bottom: 14px; padding-top: 4px; }
.header-search { position: relative; width: 100%; }
.header-search .search-icon {
  position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #8a8a8a; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.header-search input {
  width: 100%; height: 48px; padding: 0 50px;
  border: 1.5px solid #eadfd2; border-radius: 100px;
  font-family: inherit; font-size: 15px;
  background: #fff; color: #1a1a1a; outline: none; transition: all 0.2s;
}
.header-search input:focus { border-color: #b49a74; box-shadow: 0 4px 12px rgba(180,154,116,0.12); }

/* ===== القائمة الشفافة ===== */
.cats-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.12);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cats-overlay.open { opacity: 1; pointer-events: auto; }

.cats-panel {
  position: fixed; top: 0; right: 0; left: auto;
  width: min(340px, 86vw); height: 100%;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  z-index: 100;
  transform: translateX(105%); visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.22,0.61,0.36,1), visibility 0s linear 0.38s;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.6);
  box-shadow: -6px 0 32px rgba(0,0,0,0.06);
  padding-top: env(safe-area-inset-top);
}
.cats-panel.open { transform: none; visibility: visible; transition-delay: 0s; }

.cats-panel-head {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; padding: 18px 20px 14px;
  font-weight: 700; font-size: 16px; color: #1a1a1a; gap: 10px;
}
.cats-panel-head #catsTitle { text-align: center; font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; color: #1a1a1a; font-size: 20px;
  cursor: pointer; transition: background .2s;
}
.back-btn:hover { background: rgba(0,0,0,0.05); }

.cats-list {
  padding: 4px 14px; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto; flex: 1;
}
.cats-list .cat-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 16px; border-radius: 12px;
  font-size: 16px; font-weight: 400; color: #1a1a1a;
  background: transparent; border: none; text-align: right;
  width: 100%; font-family: inherit; cursor: pointer; transition: background .2s;
}
.cats-list .cat-item:hover { background: rgba(0,0,0,0.05); }
.cats-list .cat-item.active { background: rgba(0,0,0,0.07); font-weight: 700; }
.cats-list .cat-item .arrow { color: #b0b0b0; font-size: 18px; line-height: 1; margin-inline-start: auto; }

/* ===== الغلاف ===== */
.hero-bg { position: relative; overflow: hidden; background: #faf7f3; }
.hero-cover, .hero-bg .pf {
  position: absolute; top: 0; right: 0; left: auto; bottom: 0;
  width: 46%; height: 100%; min-height: 0;
  border-radius: 0; background: none; object-fit: cover; z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
  mask-image: linear-gradient(to left, #000 60%, transparent 100%);
}
.hero-bg .pf .frame.ph { display: none; }
.hero-bg:has(.pf img) .hero-cover { display: none; }
.hero-bg .hero {
  position: relative; z-index: 1;
  direction: ltr; display: flex; align-items: center;
  min-height: 330px; padding: 36px 0; gap: 0;
}
.hero-bg .hero-text { direction: rtl; width: 56%; align-items: center; text-align: center; }
.hero h1 { font-weight: 400; color: #a98f6a; margin-bottom: 14px; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.25; }
.hero h1::first-line { color: #2b2118; }
.hero p { margin: 0 auto 22px; font-size: 14.5px; color: #6f6a64; max-width: 420px; }
.btn-row { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-main {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #6b5a43;
  border: 1.5px solid #b49a74; gap: 8px; padding: 12px 26px;
  border-radius: 100px; font-size: 14.5px; font-weight: 500; transition: all 0.25s;
}
.cta-main:hover { background: #b49a74; color: #fff; }
.cta-alt, #waHero { display: none !important; }

@media (min-width: 900px) {
  .hero-cover, .hero-bg .pf { width: 42%; }
  .hero-bg .hero { min-height: 440px; }
  .hero-bg .hero-text { width: 52%; }
}

/* ===== شريط الثقة ===== */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 40px 0 0; background: transparent; }
.trust div {
  background: #fff; border: 1px solid #f1ece6; border-radius: 16px;
  padding: 20px 16px; font-size: 13.5px; font-weight: 500; color: #2a2a2a;
  display: flex; align-items: center; gap: 12px; transition: background 0.2s;
}
.trust svg { flex: none; color: #9a8466; }

/* ===== عناوين ===== */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { font-weight: 500; font-size: 26px; color: #1a1a1a; margin: 0; line-height: 1.3; }
.sec-head p { font-size: 14px; color: #8a8a8a; margin: 6px 0 0; }

/* ===== المتجر ===== */
.shop { padding-top: 64px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.gender-bar { display: inline-flex; gap: 4px; background: #f6f4f1; border-radius: 100px; padding: 4px; }
.gender-btn {
  padding: 8px 20px; border-radius: 100px; font-size: 14px; font-weight: 500;
  color: #6b6b6b; transition: all 0.2s; cursor: pointer; font-family: inherit;
  background: transparent; border: none; white-space: nowrap;
}
.gender-btn:hover { color: #1a1a1a; }
.gender-btn.active { background: #fff; color: #1a1a1a; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.filter-select {
  min-width: 170px; height: 42px; border: 1.5px solid #ece8e2;
  border-radius: 100px; padding: 0 16px; font-family: inherit;
  font-size: 14px; background: #fff; color: #1a1a1a;
  cursor: pointer; outline: none; transition: border-color 0.2s;
}
.filter-select:focus { border-color: #b49a74; }

/* ===== شبكة المنتجات ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.shop-empty {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 24px; background: #fff; border: 1px solid #f1ece6;
  border-radius: 24px; gap: 8px;
}
.grid:empty + .shop-empty { display: flex; }
.shop-empty svg { color: #b8a78a; fill: none; stroke: currentColor; margin-bottom: 6px; }
.shop-empty h3 { font-weight: 500; font-size: 19px; color: #1a1a1a; }
.shop-empty p { font-size: 14px; color: #8a8a8a; max-width: 340px; }

/* ===== بطاقة المنتج ===== */
.card {
  background: #fff; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.08); }
.card .ph-wrap { aspect-ratio: 3/4; background: #f5f5f5; overflow: hidden; position: relative; cursor: zoom-in; border-radius: 20px 20px 0 0; }
.card img.product-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s, transform 0.5s; }
.card:hover img.product-img { transform: scale(1.04); }
.card img.product-img.ld { opacity: 1; }
.no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; color: #d0d0d0; }
.zoom-hint {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.95); display: grid; place-items: center;
  font-size: 16px; pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.card:hover .zoom-hint { opacity: 1; }
.card-body { padding: 14px 14px 6px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 14.5px; font-weight: 500; line-height: 1.5; margin: 0 0 4px; color: #1a1a1a; }
.card-code { font-size: 11.5px; color: #a0a0a0; margin: 0 0 6px; }
.card-meta { font-size: 12.5px; color: #6b6b6b; margin: 6px 0; }
.card-meta b { color: #1a1a1a; font-weight: 500; }
.card-desc { font-size: 12.5px; color: #8a8a8a; margin: 6px 0; line-height: 1.5; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.swatch {
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: #fff; overflow: hidden;
  cursor: pointer; box-shadow: 0 0 0 1.5px #d4d4d4; transition: all 0.2s; flex: none;
}
.swatch:hover { box-shadow: 0 0 0 2.5px #8a8a8a; transform: scale(1.05); }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch.selected { box-shadow: 0 0 0 3px #1a1a1a; }
.swatch.txt { width: auto; height: auto; min-height: 32px; padding: 6px 14px; border-radius: 100px; font-size: 12px; color: #1a1a1a; background: #fff; box-shadow: 0 0 0 1.5px #d4d4d4; }
.swatch.txt.selected { background: #1a1a1a; color: #fff; box-shadow: 0 0 0 1.5px #1a1a1a; }
.swatch.off { opacity: 0.35; position: relative; cursor: not-allowed; }
.swatch.off::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%); }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.size-chip {
  border: 1.5px solid #e5e5e5; border-radius: 10px;
  padding: 6px 12px; font-size: 12px; cursor: pointer;
  font-family: inherit; color: #1a1a1a; background: #fff;
  transition: all 0.2s; min-height: 36px; min-width: 44px;
  font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
}
.size-chip:hover:not(.off) { border-color: #1a1a1a; background: #fafafa; }
.size-chip.selected { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.size-chip.off { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.price { font-weight: 500; font-size: 16px; color: #1a1a1a; margin-top: 8px; }
.old-price { font-size: 12.5px; color: #b0b0b0; text-decoration: line-through; margin-inline-start: 8px; }

.order-btn {
  background: #1a1a1a; color: #fff; border: none; border-radius: 100px;
  font-size: 13.5px; font-weight: 500; padding: 13px;
  margin: 10px 14px 14px; width: calc(100% - 28px);
  transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.order-btn:hover:not(.disabled) { background: #000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.order-btn.disabled { background: #d4d4d4; pointer-events: none; color: #8a8a8a; }

.badge-sold, .badge-sale {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 5px 12px; font-size: 11px; font-weight: 600;
  z-index: 2; border-radius: 100px; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.badge-sold { background: #1a1a1a; color: #fff; }
.badge-sale { background: #c8102e; color: #fff; }

/* ===== كيف تطلب ===== */
.how { padding-top: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps > div { background: #fff; border: 1px solid #f1ece6; padding: 28px 22px; text-align: center; border-radius: 22px; transition: all 0.3s; }
.steps > div:hover { transform: translateY(-4px); }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; background: #1a1a1a; color: #fff; font-weight: 600; font-size: 17px; border-radius: 50%; }
.steps strong { display: block; color: #1a1a1a; font-size: 16px; margin: 8px 0 6px; font-weight: 500; }
.steps span { display: block; font-size: 13.5px; color: #8a8a8a; line-height: 1.7; }

/* ===== الأسئلة الشائعة ===== */
.faq { padding-top: 64px; }
.faq details { border-bottom: 1px solid #f0f0f0; padding: 0; }
.faq details:hover { background: #fafafa; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 15.5px; padding: 20px 4px; color: #1a1a1a; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 300; color: #1a1a1a; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq p { color: #6b6b6b; line-height: 1.9; padding: 0 4px 20px; font-size: 14px; }

/* ===== التوصيل ===== */
.delivery { padding-top: 64px; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dcard { border: 1.5px solid #f0f0f0; padding: 32px 22px; text-align: center; background: #fff; border-radius: 20px; transition: all 0.3s; }
.dcard:hover { border-color: #1a1a1a; transform: translateY(-4px); }
.dcard i { font-style: normal; font-size: 36px; display: block; margin-bottom: 12px; }
.dcard .dname { font-weight: 500; font-size: 16px; color: #1a1a1a; margin-bottom: 4px; }
.dcard .dprice { font-weight: 500; font-size: 28px; color: #1a1a1a; }

/* ===== شريط التواصل ===== */
.contact-band { margin-top: 64px; background: #fcfaf7; border: 1px solid #f1ece6; padding: 40px 32px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-radius: 28px; }
.contact-band > div:first-child { flex: 1 1 280px; min-width: 0; }
.contact-band h3 { font-weight: 500; font-size: 22px; color: #1a1a1a; margin: 0 0 6px; }
.contact-band p { margin: 0; color: #6b6b6b; font-size: 14px; }
.pill-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 14px 28px; border-radius: 100px; font-size: 14.5px; font-weight: 500; transition: all 0.2s; box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.pill-wa:hover { background: #1ea952; transform: translateY(-2px); }
.addr { display: inline-flex; align-items: center; gap: 6px; color: #1a1a1a; font-weight: 500; margin-top: 10px; font-size: 13px; }

/* ===== الفوتر ===== */
footer { margin-top: 56px; border-top: 1px solid #f0f0f0; background: #fafafa; padding: 44px 0 28px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid #f0f0f0; }
.foot .brand img { height: 42px; mix-blend-mode: multiply; }
.foot .brand span { font-size: 17px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin: 28px 0; }
.foot-cols h4 { color: #1a1a1a; margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.foot-cols a { display: block; color: #6b6b6b; padding: 5px 0; font-size: 13.5px; transition: color 0.2s; }
.foot-cols a:hover { color: #1a1a1a; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.socials a:hover { transform: translateY(-3px) scale(1.05); }
.socials a svg { width: 22px; height: 22px; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-facebook { background: #1877f2; }
.soc-tiktok { background: #000; }
.copy { text-align: center; color: #a0a0a0; font-size: 12.5px; margin-top: 20px; }
.footer-note { font-size: 12px; color: #b0b0b0; text-align: center; margin-top: 6px; }

/* ===== الزر الأخضر الثابت ===== */
.cart-mobile-bar {
  display: flex;
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  background: #25D366;
  border: none; color: #fff;
  padding: 16px 22px; font-weight: 600;
  font-size: 15.5px;
  box-shadow: 0 12px 40px rgba(37,211,102,0.4);
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cart-mobile-bar.is-empty { display: none !important; }
.cart-mobile-bar .cart-mobile-total { font-weight: 400; opacity: 0.9; font-size: 13.5px; margin-inline-start: 6px; }

/* ===== النوافذ ===== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 100; display: none;
  align-items: flex-start; justify-content: center;
  overflow-y: auto;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 520px; padding: 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
  margin: auto 0;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal h3 { margin: 0 0 18px; font-weight: 500; font-size: 21px; color: #1a1a1a; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; padding: 13px; }

/* ===== الأزرار ===== */
.btn { border: 1.5px solid #e5e5e5; border-radius: 12px; padding: 12px 20px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 500; background: #fff; color: #1a1a1a; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { background: #fafafa; border-color: #d4d4d4; }
.btn.primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn.primary:hover { background: #000; }
.btn.green { background: #25D366; color: #fff; border-color: #25D366; }
.btn.green:hover { background: #1ea952; }
.btn.danger { background: #c8102e; color: #fff; border-color: #c8102e; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff;
  padding: 13px 22px; font-size: 14px;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: all 0.3s; max-width: 90vw;
  text-align: center; border-radius: 100px; font-weight: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== السلة ===== */
.cart-modal { max-width: 560px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.cart-item img, .cart-item .noimg { width: 76px; height: 92px; object-fit: cover; flex: none; background: #f5f5f5; display: grid; place-items: center; font-size: 30px; border-radius: 12px; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .nm { font-weight: 500; font-size: 14.5px; line-height: 1.4; color: #1a1a1a; margin-bottom: 3px; }
.cart-item .mt { font-size: 12.5px; color: #8a8a8a; }
.cart-item .pr { font-weight: 500; color: #1a1a1a; margin-top: 5px; font-size: 14.5px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 34px; height: 34px; border: 1.5px solid #e5e5e5; background: #fff; font-size: 16px; border-radius: 50%; display: grid; place-items: center; transition: all 0.2s; color: #1a1a1a; font-weight: 500; cursor: pointer; }
.qty button:hover { border-color: #1a1a1a; }
.qty .rm { width: auto; border-radius: 100px; padding: 0 12px; font-size: 12px; color: #c8102e; border-color: #f3c3cb; margin-inline-start: auto; font-weight: 500; }
.cart-total { display: flex; justify-content: space-between; font-weight: 500; font-size: 19px; padding: 18px 0 6px; color: #1a1a1a; }
.cart-empty { text-align: center; color: #8a8a8a; padding: 44px 16px; font-size: 14.5px; line-height: 1.8; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cart-actions .btn { padding: 15px; font-size: 14.5px; border-radius: 14px; }

/* ===== Lightbox ===== */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.96); display: none; flex-direction: column; align-items: center; padding: 64px 16px 16px; }
.lb.open { display: flex; }
.lb-stage { position: relative; flex: 1; min-height: 0; width: 100%; max-width: 960px; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: 8px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.95); color: #1a1a1a; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; z-index: 2; }
.lb-prev { right: 12px; }
.lb-next { left: 12px; }
.lb-close { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.95); color: #1a1a1a; font-size: 18px; cursor: pointer; z-index: 3; display: grid; place-items: center; }
.lb-count { direction: ltr; position: absolute; top: 24px; right: 20px; color: #fff; font-size: 13.5px; font-weight: 500; background: rgba(0,0,0,0.5); padding: 6px 14px; border-radius: 100px; }
.lb-cap { color: #fff; font-weight: 500; font-size: 15.5px; margin: 14px 0 10px; text-align: center; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px; }
.lb-thumbs:empty { display: none; }
.lb-th { flex: none; width: 60px; height: 60px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; opacity: 0.5; border-radius: 10px; transition: all 0.2s; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; }
.lb-th.on { border-color: #fff; opacity: 1; }

/* ===== استجابة الجوال ===== */
@media (max-width: 900px) {
  .hero-bg .hero { min-height: 320px; }
  .hero-bg .hero-text { width: 100%; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .dgrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-inner { gap: 8px; padding: 6px 0; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn .ico { width: 20px; height: 20px; }
  .icon-btn.small { width: 30px; height: 30px; }
  .brand img { height: 64px; max-width: 170px; }
  .topbar.scrolled .brand img { height: 42px; }
  .header-search input { height: 44px; padding: 0 44px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .shop { padding-top: 40px; }
  .how, .faq, .delivery { padding-top: 40px; }
  .sec-head h2 { font-size: 21px; }
  .card-title { font-size: 13.5px; }
  .price { font-size: 14.5px; }
  .order-btn { margin: 8px 10px 10px; width: calc(100% - 20px); padding: 11px; font-size: 12.5px; }
  .card-body { padding: 11px 11px 4px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps > div { padding: 18px 14px; text-align: right; display: flex; align-items: center; gap: 14px; }
  .steps b { margin: 0; width: 38px; height: 38px; font-size: 15px; flex-shrink: 0; }
  .steps strong { font-size: 14.5px; margin: 0 0 2px; }
  .steps span { font-size: 12.5px; }
  .contact-band { padding: 24px 18px; border-radius: 20px; text-align: center; }
  .contact-band h3 { font-size: 17.5px; }
  .contact-band .pill-wa { width: 100%; justify-content: center; padding: 14px 22px; font-size: 14px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
  .foot { flex-direction: column; text-align: center; }
  .socials { justify-content: center; }
  footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .modal { padding: 20px 16px; border-radius: 16px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14.5px; }
  .cta-main { padding: 12px 26px; font-size: 13.5px; }
  .card .ph-wrap { aspect-ratio: 3/4; }
  .swatch { width: 32px; height: 32px; }
  .size-chip { padding: 5px 10px; font-size: 11.5px; min-height: 34px; min-width: 40px; }
  .gender-btn { padding: 7px 14px; font-size: 13px; }
  .filter-select { min-width: 140px; font-size: 13px; height: 38px; }
  .shop-toolbar { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}