/* Buymod — متجر ملابس: أسود، أبيض، رملي دافئ */
[hidden] { display: none !important; }
:root {
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #6f6a64;
  --line: #e7e2da;
  --sand: #f6f3ee;
  --paper: #ffffff;
  --sale: #b42318;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* شريط الإعلان */
.ann { background: var(--ink); color: #fff; text-align: center; font-size: 13px; letter-spacing: .3px; padding: 8px 12px; }

/* الهيدر */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 64px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.brand { justify-self: center; display: block; grid-column: 2; grid-row: 1; }
#waTop { grid-column: 1; grid-row: 1; }
.brand img { height: 34px; width: auto; }
.ic-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; }
.ic-btn:hover { background: var(--sand); }
.ic-btn.end { justify-self: end; grid-column: 3; }
.catnav { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 8px; max-width: 1280px; margin: 0 auto; }
.catnav::-webkit-scrollbar { display: none; }
.catnav button { flex: 0 0 auto; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); padding: 8px 14px; min-height: 40px; cursor: pointer; border-radius: 999px; transition: color .2s, background .2s; }
.catnav button:hover { color: var(--ink); }
.catnav button.on { color: #fff; background: var(--ink); }

/* الواجهة */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero-in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 72px 24px 80px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 6vw, 72px); line-height: 1.15; letter-spacing: -.5px; max-width: 12ch; }
.hero-sub { margin: 16px 0 28px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: .3px; border: 1px solid var(--ink); transition: background .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.hero-mark { position: absolute; z-index: 1; left: -4%; bottom: -14%; width: min(56vw, 720px); height: auto; opacity: .06; pointer-events: none; }
/* واجهة بصورة */
.hero.has-img { background: var(--ink); color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.hero.has-img .hero-media { position: absolute; inset: 0; }
.hero.has-img .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-img .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .08) 55%); }
.hero.has-img .hero-in { width: 100%; }
.hero.has-img .eyebrow, .hero.has-img .hero-sub { color: rgba(255, 255, 255, .85); }
.hero.has-img .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero.has-img .btn:hover { background: transparent; color: #fff; }
.hero.has-img .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.hero.has-img .btn.ghost:hover { background: #fff; color: var(--ink); }
.hero.has-img .hero-mark { display: none; }

/* المزايا */
.perks { max-width: 1280px; margin: 0 auto; padding: 22px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; border-bottom: 1px solid var(--line); }
.perk { display: flex; gap: 12px; align-items: center; padding: 6px 4px; }
.perk svg { width: 28px; height: 28px; stroke-width: 1.3; }
.perk b { display: block; font-weight: 600; font-size: 15px; }
.perk span { display: block; color: var(--muted); font-size: 13.5px; }

/* الأقسام */
.sec { max-width: 1280px; margin: 0 auto; padding: 52px 16px 8px; scroll-margin-top: 120px; }
.sec-head { margin-bottom: 20px; }
.sec-head.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin: 0; font-weight: 500; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.2px; }
.count { color: var(--muted); font-size: 14px; }

/* الفئات: بطاقات طولية */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cat { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; cursor: pointer; background: var(--sand); overflow: hidden; font: inherit; color: var(--ink); text-align: start; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat .cl { position: absolute; inset-inline: 0; bottom: 0; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cat.img .cl { color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); padding-top: 40px; }
.cat .cl b { font-weight: 500; font-size: 17px; }
.cat .cl small { font-size: 13px; opacity: .8; }
.cat .cl svg { width: 18px; height: 18px; transform: scaleX(-1); }
/* بدون صورة: بطاقة نصية أنيقة */
.cat.txt { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.cat.txt .big { font-size: clamp(26px, 4vw, 38px); font-weight: 300; }
.cat.txt::before { content: ""; position: absolute; inset: auto -18% -10% auto; width: 90%; aspect-ratio: 1; background: url(/brand/favicon-b.png) center / contain no-repeat; opacity: .05; }
.cat.on { outline: 2px solid var(--ink); outline-offset: -2px; }

/* أدوات البحث */
.tools { display: flex; gap: 10px; margin-bottom: 18px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 0 14px; min-height: 46px; color: var(--muted); }
.search:focus-within { border-color: var(--ink); color: var(--ink); }
.search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 16px; background: none; color: var(--ink); min-width: 0; }
.tools select { border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; padding: 0 12px; min-height: 46px; color: var(--ink); }

/* المنتجات */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.card .im { position: relative; aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.card .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card .im .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .im .alt { opacity: 1; }
  .card:hover .im img:not(.alt) { transform: scale(1.03); }
}
.badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 3px 9px; }
.badge.sale { background: var(--sale); }
.card.out .im::after { content: "نفدت الكمية"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .6); font-weight: 600; letter-spacing: .5px; }
.card .t { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .p { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card .p b { font-weight: 600; font-size: 16px; }
.card .p b.s { color: var(--sale); }
.card .p s { color: var(--muted); font-size: 13.5px; }
.card .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 18px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.dots em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.sizes { color: var(--muted); font-size: 12.5px; letter-spacing: .5px; direction: ltr; }
.loading, .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 16px; }
.empty { background: var(--sand); }
.empty button { margin-top: 14px; }

/* طريقة الطلب */
.how { padding-bottom: 60px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 24px 20px; border-bottom: 1px solid var(--line); }
.steps li + li { border-inline-start: 1px solid var(--line); }
.steps span { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.steps b { display: block; font-weight: 500; font-size: 18px; margin: 6px 0 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* الفوتر */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .75); text-align: center; padding: 48px 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ftr img { width: 150px; height: auto; }
.ftr p { margin: 0; max-width: 40ch; font-size: 14.5px; }
.ftr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.ftr-links a { color: #fff; text-decoration: none; font-size: 14.5px; padding: 8px 2px; }
.ftr-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr-wa { color: #fff; border: 1px solid rgba(255, 255, 255, .4); padding: 10px 20px; text-decoration: none; font-size: 14.5px; }
.ftr small { opacity: .55; font-size: 12.5px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- تابلت ---- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- الهاتف ---- */
@media (max-width: 760px) {
  .ann { font-size: 12.5px; padding: 7px 10px; }
  .hdr-in { height: 56px; padding: 0 8px; }
  .brand img { height: 28px; }
  .catnav { justify-content: flex-start; padding: 0 8px 8px; gap: 2px; }
  .catnav button { font-size: 14.5px; padding: 8px 12px; }

  .hero-in { padding: 40px 20px 44px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 15.5px; margin: 12px 0 22px; }
  .hero-cta .btn { flex: 1; padding: 0 12px; }
  .hero-mark { width: 92vw; left: -18%; bottom: -8%; }
  .hero.has-img { min-height: 72vh; }

  .perks { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 18px 16px; }
  .perk { align-items: flex-start; gap: 8px; }
  .perk svg { width: 24px; height: 24px; }
  .perk b { font-size: 14px; }
  .perk span { font-size: 12.5px; line-height: 1.45; }

  .sec { padding: 36px 16px 4px; scroll-margin-top: 112px; }
  /* الفئات: صف يُسحب أفقياً */
  .cats { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 42%; scroll-snap-align: start; }
  .cat .cl { padding: 10px; }
  .cat .cl b { font-size: 15.5px; }

  .tools select { max-width: 42%; font-size: 14.5px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .card { gap: 8px; }
  .card .t { font-size: 14px; }
  .card .p b { font-size: 15px; }
  .badge { top: 8px; right: 8px; font-size: 12px; padding: 2px 7px; }

  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-inline-start: 0; }
  .steps li { padding: 18px 4px; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; }
  .steps li span { grid-row: span 2; padding-top: 4px; }
  .steps b { margin: 0; font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* شريط البحث: الحقول تتقلص على الهاتف بدل أن تدفع الصفحة للعرض */
.search { min-width: 0; }
.search input { width: 100%; }
.tools select { flex: 0 1 auto; min-width: 0; }
@media (max-width: 760px) { .tools select { max-width: 40%; } }

/* ================= ألوان البانر: كحلي + كريمي + أبيض ناعم ================= */
:root {
  --navy: #1f293f;
  --navy-deep: #0f1424;
  --cream: #e9dfd6;
  --ink: #0f1424;
  --ink-2: #1f293f;
  --muted: #6c6a72;
  --line: #e3ddd7;
  --sand: #f4f1ef;
  --paper: #ffffff;
}
.ann { background: var(--navy); }
.catnav button.on { background: var(--navy); }
.btn { background: var(--navy); border-color: var(--navy); }
.btn:hover { background: #fff; color: var(--navy); }
.btn.ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.hero { background: linear-gradient(160deg, var(--sand) 0%, var(--cream) 100%); }
.perk svg { color: var(--navy); }
.cat.txt { background: linear-gradient(170deg, #fff 0%, var(--sand) 100%); }
.cat.txt .big { color: var(--navy); }
.cat.on { outline-color: var(--navy); }
.steps span { color: var(--navy); font-weight: 600; }
.ftr { background: var(--navy-deep); }
.search:focus-within { border-color: var(--navy); color: var(--navy); }
:focus-visible { outline-color: var(--navy); }

/* الواجهة بالبانر: الصورة كاملة بدون قص، والعنوان والأزرار تحتها */
.hero.has-img { display: block; min-height: 0; background: linear-gradient(180deg, var(--sand), var(--cream)); color: var(--ink); }
.hero.has-img .hero-media { position: static; inset: auto; }
.hero.has-img .hero-media::after { display: none; }
.hero.has-img .hero-media img { width: 100%; height: auto; object-fit: initial; display: block; }
.hero.has-img .hero-in { padding: 30px 24px 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.hero.has-img .eyebrow { display: none; }
.hero.has-img h1 { font-size: clamp(26px, 3.2vw, 40px); max-width: none; color: var(--navy); }
.hero.has-img .hero-sub { color: var(--muted); margin: 6px 0 0; }
.hero.has-img .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero.has-img .btn:hover { background: #fff; color: var(--navy); }
.hero.has-img .btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.hero.has-img .btn.ghost:hover { background: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .hero.has-img .hero-in { padding: 20px 16px 24px; display: block; text-align: start; }
  .hero.has-img h1 { font-size: 26px; }
  .hero.has-img .hero-sub { font-size: 14.5px; margin: 4px 0 16px; }
}
