/* ============================================================
   نسيم الشام — نظام التصميم الأساسي
   الخصائص المنطقية (inline-start/end) مستخدمة في كل مكان
   حتى يكون دعم RTL بنيوياً لا ترقيعاً.
   ============================================================ */

:root {
  --green:       #2E6B4F;
  --green-dark:  #1F4A36;
  --green-deep:  #17382A;
  --green-soft:  #F0F4F1;
  --gold:        #C9A227;
  --gold-light:  #E3C767;
  --gold-dark:   #A8871B;
  --red:         #C1121F;

  --cream:       #F7F5F0;
  --surface:     #FFFFFF;
  --ink:         #1E2A24;
  --muted:       #6B7A70;
  --line:        #E5E2DA;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --shadow:      0 2px 12px rgba(31,74,54,.08);
  --shadow-md:   0 6px 22px rgba(31,74,54,.12);
  --shadow-lg:   0 14px 40px rgba(31,74,54,.16);
  --wrap:        1200px;
  --header-h:    92px;

  --f-head: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --f-body: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.35; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- الأزرار ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--f-head); font-weight: 700; font-size: 14px;
  background: var(--green); color: #fff;
  transition: background .2s, transform .12s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #23200F; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline {
  background: transparent; color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost-light {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.65);
}
.btn-ghost-light:hover { background: #fff; color: var(--green-dark); box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.added { background: var(--gold); color: #23200F; }

/* ============================================================
   الشريط العلوي
   ============================================================ */
.topbar {
  background: var(--green-dark); color: #E8F0EA;
  font-size: 12.5px; padding: 7px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-ship { display: flex; align-items: center; gap: 8px; }
.topbar-ship svg { fill: none; stroke: var(--gold-light); stroke-width: 1.8; flex: none; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar-links a { opacity: .9; transition: opacity .18s, color .18s; }
.topbar-links a:hover { opacity: 1; color: var(--gold-light); }
.topbar-links .sep { opacity: .35; }

/* ============================================================
   الترويسة
   ============================================================ */
.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header .wrap {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 24px; padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--f-head); font-weight: 800; font-size: 20px;
  color: var(--green-dark); letter-spacing: -.2px;
}
.brand-tag { font-size: 11.5px; color: var(--muted); }

/* البحث */
.search { position: relative; }
.search input {
  width: 100%; padding: 12px 46px 12px 16px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color .18s, box-shadow .18s;
}
.search input::placeholder { color: #A9B4AD; }
.search input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,107,79,.1);
}
.search-btn {
  position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 6px; color: var(--muted); transition: color .18s, background .18s;
}
.search-btn:hover { color: var(--green); background: var(--green-soft); }
.search-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* أدوات الحساب والسلة */
.h-actions { display: flex; align-items: center; gap: 6px; }
.h-icon {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 10px;
  color: var(--green-dark); transition: background .18s, color .18s;
}
.h-icon:hover { background: var(--green-soft); color: var(--green); }
.h-icon svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.h-badge {
  position: absolute; top: 4px; inset-inline-start: 4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: #23200F;
  font-size: 11px; font-weight: 700; font-family: var(--f-head);
  border-radius: 9px; display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }

/* ============================================================
   شريط الأقسام
   ============================================================ */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 14px; font-size: 14px; font-weight: 500;
  color: var(--ink); position: relative; transition: color .18s;
}
.nav-list > li > a::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 6px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0);
  transition: transform .22s;
}
.nav-list > li > a:hover { color: var(--green); }
.nav-list > li > a:hover::after,
.nav-list > li > a.active::after { transform: scaleX(1); }
.nav-list > li > a.active { color: var(--green); font-weight: 700; }

.nav-offers {
  background: var(--gold); color: #23200F !important;
  border-radius: var(--radius-sm); font-weight: 700 !important;
  padding: 9px 16px !important; margin-inline-start: 8px;
  transition: background .18s;
}
.nav-offers::after { display: none !important; }
.nav-offers:hover { background: var(--gold-dark); color: #fff !important; }
.nav-offers svg { fill: none; stroke: currentColor; stroke-width: 2; }

/* درج الجوال */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(23,56,42,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 90;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  width: min(86vw, 330px); background: var(--surface);
  transform: translateX(100%); transition: transform .28s ease;
  z-index: 95; display: flex; flex-direction: column; overflow-y: auto;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open, html[dir="rtl"] .drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--line);
}
.drawer-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; font-size: 24px; color: var(--muted); }
.drawer-close:hover { background: var(--green-soft); color: var(--green); }
.drawer-nav { padding: 8px 0; }
.drawer-nav a {
  display: block; padding: 13px 20px; font-size: 15px;
  border-inline-start: 3px solid transparent; transition: background .18s, border-color .18s;
}
.drawer-nav a:hover, .drawer-nav a.active {
  background: var(--green-soft); border-inline-start-color: var(--green); color: var(--green);
}
.drawer-foot { margin-top: auto; padding: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.drawer-foot a { display: block; color: var(--green); font-weight: 700; margin-top: 4px; }

/* ============================================================
   الواجهة الرئيسية (Hero)
   ============================================================ */
.hero { padding: 22px 0 0; }
.hero-inner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 430px; display: flex; align-items: center; box-shadow: var(--shadow-md);
  background: var(--green-deep);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* الصورة مركّبة والطعام فيها إلى اليمين، لذا يوضع النص في الفراغ الأيسر
   دون قلب الصورة — تدرّج خفيف يضمن تباين النص */
.hero-inner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(23,56,42,0) 42%, rgba(23,56,42,.72) 72%, rgba(23,56,42,.88) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  margin-inline-start: auto;           /* في RTL يدفع الكتلة إلى اليسار */
  width: min(100%, 460px);
  padding: 40px 46px; text-align: center; color: #fff;
}
.hero-logo { width: 108px; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.hero-title {
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 800;
  color: var(--gold-light); text-shadow: 0 2px 14px rgba(0,0,0,.4); margin-bottom: 6px;
}
.hero-sub {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 700;
  font-family: var(--f-head); color: #fff; margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-cta { box-shadow: 0 6px 20px rgba(201,162,39,.4); }

/* ============================================================
   عناوين الأقسام
   ============================================================ */
.section { padding: 46px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title h2 { font-size: clamp(20px, 2.2vw, 26px); color: var(--green-dark); }
.section-title h2 .accent { color: var(--gold-dark); }
.pill {
  background: var(--gold); color: #23200F; font-size: 12px; font-weight: 700;
  font-family: var(--f-head); padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
.link-more {
  color: var(--green); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .18s, color .18s;
}
.link-more:hover { color: var(--gold-dark); gap: 10px; }

/* ============================================================
   بطاقات الأقسام
   ============================================================ */
.cat-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px;
}
.cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; text-decoration: none;
}
.cat-circle-img {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-circle-img img.is-placeholder { object-fit: contain; padding: 16%; }
.cat-circle:hover .cat-circle-img { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.cat-circle:hover .cat-circle-img img { transform: scale(1.08); }
.cat-circle h3 { font-size: 13.5px; color: var(--green-dark); line-height: 1.3; transition: color .18s; }
.cat-circle:hover h3 { color: var(--green); }

/* ============================================================
   بطاقة المنتج
   ============================================================ */
.p-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.p-card-media { position: relative; aspect-ratio: 4/3; background: var(--green-soft); overflow: hidden; }
.p-card-link { display: block; width: 100%; height: 100%; }
.p-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.p-card-media img.is-placeholder { object-fit: contain; padding: 10px; }
.p-card:hover .p-card-media img { transform: scale(1.05); }

.badge-off {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: var(--red); color: #fff; font-family: var(--f-head);
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(193,18,31,.3);
}
.badge-out {
  position: absolute; inset: 0; background: rgba(30,42,36,.6); color: #fff;
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 15px;
}
.wish-btn {
  position: absolute; top: 10px; inset-inline-start: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  color: var(--muted); transition: color .18s, transform .18s, background .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.wish-btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.wish-btn:hover { color: var(--red); transform: scale(1.1); }
.wish-btn.active { color: var(--red); }
.wish-btn.active svg { fill: currentColor; }

.p-card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.p-card-title { font-size: 14.5px; margin-bottom: 3px; }
.p-card-title a { transition: color .18s; }
.p-card-title a:hover { color: var(--green); }
.p-card-unit { font-size: 12.5px; color: var(--muted); }
.p-card-rate { margin: 5px 0 2px; }
.stars { font-size: 13px; letter-spacing: 1px; color: #D8D3C6; }
.stars .full, .stars .half { color: var(--gold); }
.p-card-price {
  display: flex; align-items: baseline; justify-content: center; gap: 9px;
  margin: 8px 0 12px; flex-wrap: wrap;
}
.price-now { font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--green-dark); }
.price-now .cur { font-size: 12px; font-weight: 600; }
.price-was { font-size: 13px; color: #A3ADA6; text-decoration: line-through; }
.btn-add { margin-top: auto; width: 100%; }
.btn-add svg { flex: none; }

/* ============================================================
   الشريط الدوّار (العروض)
   ============================================================ */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex; gap: 16px;
  transition: transform .45s cubic-bezier(.4,.0,.2,1);
  will-change: transform;
}
.carousel-track > * { flex: 0 0 calc((100% - 48px) / 4); }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--green-dark);
  z-index: 5; transition: background .18s, color .18s, opacity .18s;
}
.car-btn:hover { background: var(--green); color: #fff; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn:disabled:hover { background: var(--surface); color: var(--green-dark); }
.car-btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.car-prev { inset-inline-end: -14px; }
.car-next { inset-inline-start: -14px; }
.car-dots { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; background: #D5D9D3; transition: background .2s, width .2s; }
.car-dot.active { background: var(--green); width: 22px; border-radius: 4px; }

/* ============================================================
   شريط المزايا
   ============================================================ */
.trust {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 10px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 13px;
  padding: 4px 22px; border-inline-end: 1px solid var(--line);
}
.trust-item:last-child { border-inline-end: 0; }
.trust-ico {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--green-soft); display: grid; place-items: center; color: var(--green);
}
.trust-ico svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h4 { font-size: 14.5px; color: var(--green-dark); }
.trust-item p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   لافتات ترويجية
   ============================================================ */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 185px; display: flex; box-shadow: var(--shadow);
  background: var(--green-deep);
}
.promo-media { flex: 0 0 42%; background: var(--surface); }
.promo-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.promo-body { flex: 1 1 auto; min-width: 0; padding: 22px 22px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.promo-body h3 { font-size: 20px; color: var(--gold-light); margin-bottom: 4px; }
.promo-body p { font-size: 13.5px; opacity: .92; margin-bottom: 14px; }

/* ============================================================
   النشرة البريدية
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg); padding: 34px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(201,162,39,.13);
}
.newsletter-text { position: relative; z-index: 2; }
.newsletter-text h2 { font-size: 24px; margin-bottom: 4px; }
.newsletter-text p { font-size: 14px; opacity: .9; }
.newsletter-form { position: relative; z-index: 2; display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 280px; }
.newsletter-form input {
  flex: 1; padding: 13px 18px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--green-dark);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(227,199,103,.5); }

/* ============================================================
   التذييل
   ============================================================ */
.footer { background: var(--green-dark); color: #D9E4DC; margin-top: 46px; }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px; padding: 48px 0 36px;
}
.footer h4 {
  font-size: 16px; color: #fff; margin-bottom: 16px;
  position: relative; padding-bottom: 9px;
}
.footer h4::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 34px; height: 2px; background: var(--gold); border-radius: 2px;
}
.footer-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo { width: 66px; height: 66px; object-fit: contain; }
.footer-brand-top .n { font-family: var(--f-head); font-weight: 800; font-size: 19px; color: #fff; }
.footer-brand-top .t { font-size: 11.5px; color: var(--gold-light); }
.footer-blurb { font-size: 13.5px; line-height: 1.85; opacity: .85; max-width: 330px; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.09); display: grid; place-items: center;
  color: #fff; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--gold); color: #23200F; transform: translateY(-3px); }
.socials svg { fill: currentColor; }

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13.5px; opacity: .85;
  display: inline-flex; align-items: center; gap: 7px; transition: opacity .18s, color .18s, gap .18s;
}
.footer-links a::before { content: '‹'; color: var(--gold); font-size: 15px; }
.footer-links a:hover { opacity: 1; color: var(--gold-light); gap: 11px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; font-size: 13.5px; }
.footer-contact svg { flex: none; margin-top: 3px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact .dir-ltr { direction: ltr; display: inline-block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.11); padding: 17px 0;
  text-align: center; font-size: 13px; opacity: .8;
}

/* ============================================================
   التنبيه المنبثق
   ============================================================ */
#toast {
  position: fixed; inset-block-end: 26px; inset-inline-start: 26px;
  background: var(--green-dark); color: #fff;
  padding: 13px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .3s, opacity .3s, visibility .3s;
  z-index: 200; max-width: calc(100vw - 52px);
}
#toast.show { transform: translateY(0); opacity: 1; visibility: visible; }
.toast-ico {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--gold); color: #23200F;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* ============================================================
   التجاوب
   ============================================================ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px 14px; }
  .carousel-track > * { flex: 0 0 calc((100% - 32px) / 3); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header .wrap { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .trust-item:nth-child(2n) { border-inline-end: 0; }
  .promos { grid-template-columns: 1fr; }
  .promo { min-height: 155px; }
  .hero-inner { min-height: 360px; }
  .hero-inner::after { background: linear-gradient(to left, rgba(23,56,42,.35), rgba(23,56,42,.86)); }
  .hero-content { padding: 30px 26px; }
  .newsletter { padding: 28px 24px; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .topbar-links .hide-sm { display: none; }
  .topbar { font-size: 12px; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-name { font-size: 17px; }
  .brand-tag { display: none; }
  .h-icon { width: 40px; height: 40px; }
  .section { padding: 34px 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .carousel-track > * { flex: 0 0 calc((100% - 16px) / 2); }
  .car-prev { inset-inline-end: -8px; }
  .car-next { inset-inline-start: -8px; }
  .car-btn { width: 36px; height: 36px; }
  .trust { grid-template-columns: 1fr; padding: 16px; }
  .trust-item { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 14px 6px; }
  .trust-item:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 26px; }
  .newsletter-form { max-width: none; }
  #toast { inset-inline: 16px; inset-block-end: 16px; }
}

@media (max-width: 560px) {
  /* الروابط متاحة داخل الدرج الجانبي، فنترك للشريط سطراً واحداً نظيفاً */
  .topbar-links { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar-ship { white-space: nowrap; }
}

@media (max-width: 420px) {
  .carousel-track > * { flex: 0 0 100%; }
  .hero-title { font-size: 25px; }
  .newsletter-form { flex-direction: column; }
}

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