/* =============================================================
 *  THÈME V2 — هوية بصرية احترافية
 *  -------------------------------------------------------------
 *  يُحمَّل بعد app.css ليضبط الألوان والمسافات والتجاوب.
 *  الاتجاه: كتالوج عيّنات — أسطح هادئة، حبر داكن، لمسة أخضر النيل.
 *  RTL أصلي: نستخدم الخصائص المنطقية (inline / block).
 * ============================================================= */

:root {
  /* ---- العلامة: أخضر النيل ---- */
  --brand-50:  #e9f2ef;
  --brand-100: #d4e6e0;
  --brand-500: #127c6b;
  --brand-600: #0e6b5c;
  --brand-700: #0b564a;
  --brand-800: #08423a;

  /* ---- محايدات دافئة ---- */
  --neutral-0:   #ffffff;
  --neutral-50:  #f8f7f4;
  --neutral-100: #f0eee8;
  --neutral-200: #e4e1d8;
  --neutral-300: #cfcbc0;
  --neutral-500: #716d63;
  --neutral-700: #3b3934;
  --neutral-800: #232220;
  --neutral-900: #121211;

  /* ---- أسطح وأحبار ---- */
  --page:    #f8f7f4;
  --surface: #ffffff;
  --ink:     #141412;
  --muted:   #6f6b62;
  --line:    #e4e1d8;
  --field:   #f2f0ea;

  /* ---- حقول كتالوج العيّنات ---- */
  --field-1: #e9e3d5;
  --field-2: #dde7e2;
  --field-3: #e0e5ec;
  --field-4: #efe1db;

  /* ---- حالات ---- */
  --success-50:  #e9f4ee;
  --success-600: #16653f;
  --warning-50:  #fbf1dd;
  --warning-600: #8a5a10;
  --danger-50:   #fbeceb;
  --danger-600:  #a92d24;

  /* ---- المسافات ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ---- الحواف: مربّعة وهادئة ---- */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
  --radius-full: 999px;

  /* ---- بلا ظلال على العناصر الساكنة ---- */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  /* ---- الخطوط ---- */
  --font-sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  /* ---- الشبكة ---- */
  --container-max: 77.5rem; /* 1240px */
}

/* =============================================================
 *  الأساس
 * ============================================================= */
html { scroll-padding-block-start: 6rem; }

body {
  background: var(--page);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

a { transition: color .18s ease, border-color .18s ease, background-color .18s ease; }

.container {
  max-inline-size: var(--container-max);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

::selection { background: var(--brand-600); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

/* =============================================================
 *  الشريط العلوي
 * ============================================================= */
.announce {
  background: var(--ink);
  color: #f4f2ec;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 2.25rem;
}

.announce-inner > * { min-inline-size: 0; }

.announce-inner > span:first-child { flex: 1 1 auto; }

.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce .announce-side { display: flex; align-items: center; gap: 1.25rem; color: #c9c5ba; }
.announce .announce-side a { color: #c9c5ba; text-decoration: none; }
.announce .announce-side a:hover { color: #fff; }

/* =============================================================
 *  الترويسة
 * ============================================================= */
.site-header {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  box-shadow: none;
  z-index: 60;
}

.header-inner {
  gap: clamp(1rem, 2.5vw, 2rem);
  block-size: 4.5rem;
}

.brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  gap: 0.625rem;
}

.brand:hover { color: var(--brand-700); }

.brand-mark {
  inline-size: 2.375rem;
  block-size: 2.375rem;
  background: var(--brand-600);
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

/* البحث */
.search-input {
  block-size: 2.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--field);
  font-size: 0.875rem;
  color: var(--ink);
  padding-inline: 1rem 3.25rem;
}

.search-input::placeholder { color: #8b877c; }

.search-input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
  background: #fff;
}

.search-btn {
  inset-inline-end: 0.25rem;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 0;
  background: var(--brand-600);
}

.search-btn:hover { background: var(--brand-700); }

/* روابط */
.header-nav { gap: 0.25rem; }

.nav-link {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
}

.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }

.nav-link svg { inline-size: 1.125rem; block-size: 1.125rem; }

.cart-count {
  background: var(--brand-600);
  border-radius: 0;
  font-size: 0.625rem;
}

/* شريط التصنيفات */
.category-bar {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}

.category-list { block-size: 2.75rem; gap: 0.25rem; }

.category-list a {
  position: relative;
  padding: 0.375rem 0.75rem;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--neutral-700);
}

.category-list a:hover { color: var(--brand-700); background: transparent; }

.category-list a::after {
  content: '';
  position: absolute;
  inset-inline: 0.75rem;
  inset-block-end: 0.125rem;
  block-size: 2px;
  background: var(--brand-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.category-list a:hover::after { transform: scaleX(1); }

/* =============================================================
 *  الأزرار
 * ============================================================= */
.btn {
  min-block-size: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  border-width: 1px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--neutral-300);
}

.btn-outline:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: var(--field); border-color: var(--neutral-300); }

.btn-hero { background: var(--ink); color: #fff; }
.btn-hero:hover { background: var(--brand-700); }

.btn-hero-outline { background: transparent; color: var(--ink); border-color: var(--neutral-300); }
.btn-hero-outline:hover { background: transparent; border-color: var(--ink); }

.btn-sm { min-block-size: 2.25rem; padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

.btn:disabled, .btn[disabled] { opacity: .45; }

/* =============================================================
 *  الأقسام والعناوين
 * ============================================================= */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tight { padding-block-start: 0; }

.section-header {
  align-items: flex-end;
  margin-block-end: clamp(1.25rem, 2.5vw, 2rem);
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 600;
  padding-inline-start: 0;
  margin: 0;
  line-height: 1.25;
}

.section-title::before { display: none; content: none; }

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-700);
  margin-block-end: 0.375rem;
  letter-spacing: 0.02em;
}

.link-more {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 0.375rem;
  padding-block-end: 0.125rem;
  border-block-end: 1px solid var(--neutral-300);
}

.link-more:hover { color: var(--brand-700); border-color: var(--brand-700); }

/* =============================================================
 *  الهيرو — جدار العيّنات
 * ============================================================= */
.hero-v2 {
  background: #f2f0ea;
  border-block-end: 1px solid var(--line);
}

.hero-v2-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy { max-inline-size: 34rem; }

.hero-title {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  color: var(--brand-700);
}

.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.85;
  color: var(--muted);
  max-inline-size: 44ch;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--neutral-300);
}

.hero-stats div { display: grid; gap: 0.125rem; }

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.hero-stats span { font-size: 0.75rem; color: var(--muted); }

/* جدار الصور */
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.625rem;
  aspect-ratio: 1 / 0.94;
  min-block-size: 22rem;
}

.specimen {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--tile, var(--field));
  padding: 6%;
}

.specimen img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .5s ease;
}

.specimen:hover img { transform: scale(1.05); }

.specimen:nth-child(1) { grid-area: 1 / 1 / 4 / 4; --tile: var(--field-1); }
.specimen:nth-child(2) { grid-area: 1 / 4 / 4 / 7; --tile: var(--field-3); }
.specimen:nth-child(3) { grid-area: 4 / 1 / 7 / 3; --tile: var(--field-2); }
.specimen:nth-child(4) { grid-area: 4 / 3 / 7 / 5; --tile: var(--field-4); }
.specimen:nth-child(5) { grid-area: 4 / 5 / 7 / 7; --tile: #ecebe6; }

/* شريط الثقة */
.trust-bar { background: var(--surface); border-block-end: 1px solid var(--line); }

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem);
  border-inline-start: 1px solid var(--line);
}

.trust-item:first-child { border-inline-start: 0; }

.trust-item svg {
  inline-size: 1.375rem;
  block-size: 1.375rem;
  stroke: var(--brand-700);
  flex: none;
}

.trust-item strong { display: block; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.trust-item span { display: block; font-size: 0.6875rem; color: var(--muted); line-height: 1.4; }

/* =============================================================
 *  التصنيفات — بلاطات لونية
 * ============================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-block-size: 12.5rem;
  padding: 1.5rem;
  background: var(--tile, var(--field-1));
  color: var(--ink);
  overflow: hidden;
}

.cat-tile:nth-child(1) { --tile: var(--field-1); }
.cat-tile:nth-child(2) { --tile: var(--field-3); }
.cat-tile:nth-child(3) { --tile: var(--field-2); }
.cat-tile:nth-child(4) { --tile: var(--field-4); }
.cat-tile:nth-child(5) { --tile: #ecebe6; }

.cat-tile:hover { background: var(--tile); color: var(--ink); }

.cat-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(20 20 18 / 0.55);
  letter-spacing: 0.02em;
}

.cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.cat-en {
  display: block;
  font-size: 0.6875rem;
  color: rgb(20 20 18 / 0.5);
  margin-block-start: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-arrow {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.25rem;
  font-size: 1rem;
  color: rgb(20 20 18 / 0.55);
  transition: transform .2s ease, inset-inline-end .2s ease;
}

.cat-tile:hover .cat-arrow { inset-inline-end: 1rem; }

/* =============================================================
 *  شبكة المنتجات وبطاقاتها
 * ============================================================= */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: border-color .18s ease;
}

.product-card:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--neutral-500);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--field);
  padding: 7%;
}

.product-thumb img {
  object-fit: contain;
  transition: transform .45s ease;
}

.product-card:hover .product-thumb img { transform: scale(1.035); }

.discount-badge {
  inset-block-start: 0.625rem;
  inset-inline-start: 0.625rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.4375rem;
  letter-spacing: 0.01em;
}

.stock-badge {
  inset-block-start: 0.625rem;
  inset-inline-end: 0.625rem;
  background: var(--warning-50);
  color: var(--warning-600);
  border-radius: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.4375rem;
}

.product-body {
  padding: 0.875rem 1rem 1.125rem;
  gap: 0.375rem;
}

.product-brand {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.product-name {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  min-block-size: 2.9em;
}

.product-name:hover { color: var(--brand-700); }

.product-rating { font-size: 0.75rem; color: var(--muted); gap: 0.25rem; }
.stars { color: var(--warning-600); }

.product-price { padding-block-start: 0.5rem; gap: 0.5rem; }

.price-current {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-compare {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.price-current, .price-compare { white-space: nowrap; }

.price-save {
  background: var(--danger-50);
  color: var(--danger-600);
  padding: 0.125rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* =============================================================
 *  شريط العلامات التجارية
 * ============================================================= */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.5rem;
  padding-block: 0.5rem;
}

.brand-strip a {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--neutral-500);
  border-block-end: 1px solid transparent;
  padding-block-end: 0.125rem;
}

.brand-strip a:hover { color: var(--ink); border-color: var(--ink); }

/* =============================================================
 *  المميزات (بدون بطاقات)
 * ============================================================= */
.feature-row-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
}

.feature-v2 { display: grid; gap: 0.5rem; align-content: start; }

.feature-v2 svg {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  stroke: var(--brand-700);
  margin-block-end: 0.25rem;
}

.feature-v2 h3 { font-size: 0.9375rem; font-weight: 600; margin: 0; }
.feature-v2 p { font-size: 0.8125rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* =============================================================
 *  شريط الدعوة للشراء
 * ============================================================= */
.cta-band {
  background: var(--brand-700);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.cta-band p { color: rgb(255 255 255 / 0.75); font-size: 0.9375rem; margin: 0; }

.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--field); color: var(--ink); }

.btn-on-dark { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.btn-on-dark:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; }

/* =============================================================
 *  التذييل
 * ============================================================= */
.site-footer {
  background: var(--ink);
  color: #b9b5aa;
  margin-block-start: 0;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer-grid {
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  margin-block-end: 2.5rem;
}

.footer-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-block-end: 1rem;
}

.footer-about { font-size: 0.875rem; line-height: 1.9; max-inline-size: 34ch; }

.footer-brand { color: #fff; font-family: var(--font-display); font-size: 1.25rem; margin-block-end: 0.875rem; }

.footer-links { font-size: 0.875rem; gap: 0.5rem; }
.footer-links a { color: #b9b5aa; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-block-start: 1px solid rgb(255 255 255 / 0.12);
  padding-block-start: 1.25rem;
  color: #8e8a80;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
}

.footer-bottom p { margin: 0; }

.footer-pay { display: flex; gap: 0.5rem; flex-wrap: wrap; color: #b9b5aa; }

/* =============================================================
 *  البطاقات والنماذج (سلة / دفع / حساب)
 * ============================================================= */
.form-card, .cart-summary, .cart-item, .pdp-gallery, .pdp-info {
  border-radius: 0;
  box-shadow: none;
  border-color: var(--line);
}

.cart-summary { box-shadow: none; }

.form-input {
  border-radius: 0;
  border-color: var(--neutral-300);
  background: #fff;
}

.form-input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.form-label { font-size: 0.8125rem; }

.qty-selector, .qty-selector button, .qty-selector input, .sort-select, .pay-option, .table-wrap, .pagination a, .pagination span {
  border-radius: 0;
}

.pay-option.is-active { box-shadow: none; }

.table-wrap { border-radius: 0; }

.stat-card { border-radius: 0; }

.pagination .active { background: var(--brand-600); border-color: var(--brand-600); }

.tag { border-radius: 0; }

/* حالات فارغة */
.empty-state .icon {
  color: var(--brand-600);
  margin-inline: auto;
  margin-block-end: 1rem;
}

/* أيقونات الدفع */
.pay-option-icon svg {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  color: var(--brand-700);
}

/* قائمة الثقة في السلة */
.summary-trust li { display: flex; align-items: flex-start; gap: 0.5rem; }
.summary-trust li::before {
  content: '✓';
  color: var(--brand-600);
  font-weight: 700;
  line-height: 1.6;
}

/* صفحة المنتج */
.pdp-gallery { background: var(--field); border: 1px solid var(--line); }
.pdp-info { background: var(--surface); }

.pdp-title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }

.pdp-price .price-current { font-size: 1.75rem; }

.pdp-price { border-color: var(--line); flex-wrap: wrap; }

.pdp-price .price-save { align-self: center; }

.feature-icon svg { inline-size: 1rem; block-size: 1rem; }

.plp-sidebar { inset-block-start: 10rem; }

.feature-icon { border-radius: 0; background: var(--brand-50); }

/* الفلاتر */
.plp-sidebar { border-radius: 0; box-shadow: none; border-color: var(--line); }

/* فلاتر الموبايل: لوحة قابلة للفتح */
.plp-filters { border: 0; }
.plp-filters-summary { display: none; }

@media (max-width: 64rem) {
  .plp-filters {
    background: var(--surface);
    border: 1px solid var(--line);
  }

  .plp-filters-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .plp-filters-summary::-webkit-details-marker { display: none; }
  .plp-filters-summary::after { content: '+'; font-size: 1.25rem; line-height: 1; }
  .plp-filters[open] .plp-filters-summary::after { content: '−'; }

  .plp-filters .plp-sidebar {
    position: static;
    border: 0;
    border-block-start: 1px solid var(--line);
    padding: 1rem;
  }
}

.filter-option input { accent-color: var(--brand-600); }

/* =============================================================
 *  التجاوب — موبايل / تابلت / لابتوب
 * ============================================================= */
@media (max-width: 64rem) {
  .hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem 3rem;
  }

  .hero-copy { max-inline-size: none; }

  .hero-mosaic {
    aspect-ratio: auto;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(9rem, 1fr));
    min-block-size: 0;
  }

  .specimen:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
  .specimen:nth-child(2) { grid-area: 1 / 3 / 2 / 5; }
  .specimen:nth-child(3) { grid-area: 2 / 3 / 3 / 4; }
  .specimen:nth-child(4) { grid-area: 2 / 4 / 3 / 5; }
  .specimen:nth-child(5) { display: none; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feature-row-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
}

@media (max-width: 48rem) {
  .announce-inner { justify-content: center; text-align: center; }
  .announce .announce-side { display: none; }

  .header-inner {
    flex-wrap: wrap;
    block-size: auto;
    gap: 0.5rem 0.75rem;
    padding-block: 0.75rem;
  }

  .brand { font-size: 1.0625rem; flex-shrink: 1; min-inline-size: 0; }
  .brand-mark { inline-size: 2rem; block-size: 2rem; }
  .brand-sub { display: none; }

  .header-nav { gap: 0; margin-inline-start: auto; }

  .nav-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .nav-link .label { display: none; }

  .search-form {
    order: 4;
    flex-basis: 100%;
    max-inline-size: none;
  }

  .search-input { block-size: 2.5rem; }

  .category-list { block-size: 2.5rem; padding-inline: 0; }

  .hero-title { font-size: clamp(2rem, 8.5vw, 2.75rem); }

  .hero-lede { font-size: 0.9375rem; }

  .hero-actions .btn { flex: 1 1 auto; }

  .hero-stats { gap: 1.5rem; }

  .hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(7.5rem, 1fr));
    gap: 0.5rem;
  }

  .specimen:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
  .specimen:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
  .specimen:nth-child(3) { grid-area: 2 / 1 / 3 / 2; }
  .specimen:nth-child(4) { grid-area: 2 / 2 / 3 / 3; }
  .specimen:nth-child(5) { display: none; }

  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-inline-start: 0; border-block-start: 1px solid var(--line); padding: 0.75rem 0.5rem; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-block-start: 0; }
  .trust-item span { display: none; }

  .section { padding-block: 2.5rem; }

  .cat-tile { min-block-size: 9.5rem; padding: 1rem; }
  .cat-name { font-size: 1.0625rem; }
  .cat-arrow { inset-block-start: 0.875rem; inset-inline-end: 0.875rem; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }

  .product-body { padding: 0.75rem 0.75rem 1rem; }
  .product-name { font-size: 0.8125rem; }
  .price-current { font-size: 0.9375rem; }
  .product-thumb { padding: 6%; }

  .feature-row-v2 { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .cta-actions { inline-size: 100%; }
  .cta-actions .btn { flex: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cart-item { grid-template-columns: 4.5rem minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { inline-size: 100%; }
  .hero-stats strong { font-size: 1.125rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tile { min-block-size: 8.5rem; }
  .cat-name { font-size: 1rem; }
  .cat-en { display: none; }
  .product-grid { gap: 0.5rem; }
  .product-body { padding: 0.625rem 0.625rem 0.875rem; }
  .discount-badge, .stock-badge { font-size: 0.625rem; }
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .specimen img, .product-thumb img, .cat-arrow { transition: none !important; }
}
