:root {
  --paper: #F2F4F8;
  --sheet: #FFFFFF;
  --ink: #14213D;
  --ink-soft: #55607A;
  --stamp: #2B3FD6;
  --stamp-soft: #E8EBFC;
  --rule: #CBD3E1;
  --marker: #FFE066;
  --sale: #C0362C;
  --ok: #157F4B;
  --display: "Lalezar", "IBM Plex Sans Arabic", sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.8;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.linkish { background: none; border: 0; padding: 0; color: var(--stamp); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.top nav .linkish { color: var(--ink-soft); text-decoration: none; font-weight: 500; }

/* شريط الإعلان */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 14.5px; padding: 7px 16px; font-weight: 500; }

/* الترويسة */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 244, 248, .93); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { font-family: var(--display); font-size: 30px; color: var(--stamp); text-decoration: none; line-height: 1; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 500; font-size: 15px; align-items: center; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover, .top nav .linkish:hover { color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 8px;
  border: 1px solid var(--rule); background: var(--sheet); cursor: pointer; font-size: 22px; line-height: 1;
}
.icon-btn svg, .cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-toggle { display: none; }
.top nav a[aria-current] { color: var(--ink); font-weight: 700; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 8px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 15px;
}
.cart-btn b { background: var(--marker); color: var(--ink); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  font: 600 16px var(--body); padding: 10px 22px; border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--stamp); border-color: var(--stamp); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.small { padding: 6px 14px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.btn.wa { background: #1F9D55; border-color: #1F9D55; }
.btn.wa:hover { background: #157F4B; border-color: #157F4B; }

/* الافتتاحية */
.hero { padding: 60px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8vw, 96px); line-height: 1.05; margin: 0 0 16px; }
.hero h1 .accent { color: var(--stamp); }
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 31em; margin: 0 0 26px; }
.hero .aud-label { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 600px; }
.aud {
  display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--sheet);
  border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.aud:hover { border-color: var(--stamp); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(43, 63, 214, .6); }
.aud .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--stamp-soft); color: var(--stamp); display: grid; place-items: center; flex: none; }
.aud b { display: block; font-size: 17px; line-height: 1.3; }
.aud small { color: var(--ink-soft); font-size: 13px; }
.aud .arr { margin-inline-start: auto; }
.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arr { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-search { position: relative; max-width: 600px; margin-top: 14px; }
.hero-search svg, .cat-search svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hero-search input, .cat-search input { padding-inline-start: 42px; background: transparent; border-color: var(--rule); }
.hero-search input { background: var(--sheet); height: 48px; border-radius: 10px; }

.slip {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  padding: 28px 28px 34px; box-shadow: 0 18px 40px -22px rgba(20, 33, 61, .45); transform: rotate(1.5deg);
}
.slip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 22px); opacity: .12; }
.slip h2 { font: 600 14px var(--body); color: var(--ink-soft); margin: 6px 0 18px; }
.slip dl { margin: 0; }
.slip .row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--rule); }
.slip dt { color: var(--ink-soft); font-size: 14px; }
.slip dd { margin: 0; font-weight: 600; min-height: 1.8em; }
.stamp {
  position: absolute; inset-inline-end: 22px; bottom: 20px; font-family: var(--display); font-size: 46px; line-height: 1; color: var(--stamp);
  border: 4px double var(--stamp); border-radius: 10px; padding: 8px 20px 2px; transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .88;
}
.stamp.hit { animation: hit .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes hit { from { transform: rotate(-11deg) scale(2.3); opacity: 0; } to { transform: rotate(-11deg) scale(1); opacity: .88; } }

/* شريط الثقة */
.trust { background: var(--sheet); border-block: 1px solid var(--rule); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 18px; margin: 0 auto; }
.trust li { padding-inline: 20px; border-inline-start: 1px solid var(--rule); display: grid; align-content: center; }
.trust li:first-child { border: 0; padding-inline-start: 0; }
.trust b { font-size: 16px; }
.trust span { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.trust .fl { display: flex; align-items: center; gap: 12px; }
.trust .fl img { height: 40px; width: auto; }
.trust .fl b { color: var(--ink); font-size: 14px; letter-spacing: .03em; }

/* العناوين */
section, .block { padding: 64px 0; }
.band { background: var(--sheet); border-block: 1px solid var(--rule); }
.head { margin-bottom: 28px; }
.head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.15; margin: 0 0 6px; }
.head p { color: var(--ink-soft); margin: 0; max-width: 42em; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.more-link { font-weight: 700; color: var(--stamp); text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* البطاقات */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 20px 16px;
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--stamp); box-shadow: 0 16px 32px -24px rgba(20, 33, 61, .55); transform: translateY(-2px); }
.card-sub { font-size: 13px; color: var(--stamp); font-weight: 600; }
.card h3 { font-size: 18.5px; font-weight: 700; margin: 0; line-height: 1.45; }
.card p { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.card .when { font-size: 13px; color: var(--ink-soft); background: var(--paper); border-radius: 6px; padding: 1px 9px; white-space: nowrap; }
.badge { position: absolute; top: -10px; inset-inline-end: 16px; background: var(--marker); color: var(--ink); font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 4px; }
.badge.sale { background: var(--sale); color: #fff; }
.price { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.price mark { background: linear-gradient(transparent 55%, var(--marker) 55%); color: inherit; padding: 0 4px; }
.price small { display: block; font: 400 12.5px var(--body); color: var(--ink-soft); }
.price .cur { font: 600 14px var(--body); color: var(--ink-soft); margin-inline-start: 4px; }
.price s { font: 500 14px var(--body); color: var(--ink-soft); margin-inline-start: 6px; }
.price .per { font: 500 13px var(--body); color: var(--ink-soft); }

/* الأقسام في الرئيسية */
.sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec { border: 1px solid var(--rule); border-radius: 14px; padding: 22px; background: var(--paper); }
.sec header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.sec .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--sheet); color: var(--stamp); display: grid; place-items: center; flex: none; border: 1px solid var(--rule); }
.sec h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.sec header p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.sec ul { list-style: none; margin: 0; padding: 0; }
.sec li a { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.sec li a:hover { color: var(--stamp); }
.sec li a:hover .arr { stroke: var(--stamp); }
.sec li small { margin-inline-start: auto; color: var(--ink-soft); font-size: 13px; }

/* صفحة الخدمات */
.cat-head { background: var(--sheet); border-bottom: 1px solid var(--rule); padding: 26px 0 0; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; color: var(--stamp); font-weight: 600; }
.crumbs b { font-weight: 500; color: var(--ink); }
.cat-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.2; margin: 8px 0 4px; }
.cat-head p { margin: 0; color: var(--ink-soft); max-width: 44em; }
.cat-head p:empty { display: none; }
.cat-tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; }
.cat-tabs a { text-decoration: none; font-weight: 600; padding: 10px 18px; border-bottom: 3px solid transparent; color: var(--ink-soft); white-space: nowrap; }
.cat-tabs a:hover { color: var(--ink); }
.cat-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--stamp); }
.cat-body > * { min-width: 0; }
.cat-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.sub-nav { position: sticky; top: 90px; }
.sub-nav h2 { font-size: 15px; margin: 0 0 8px; color: var(--ink-soft); font-weight: 600; }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sub-nav a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: 15.5px; }
.sub-nav a:hover { background: var(--sheet); }
.sub-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.sub-nav a[aria-current="page"] small { color: #C8D0E0; }
.sub-nav small { color: var(--ink-soft); font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 10px; }
.cat-search { position: relative; flex: 1; }
.cat-search input { background: var(--sheet); }
.sort select { width: auto; background: var(--sheet); padding: 9px 12px; }
.fcount { background: var(--stamp); color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; }
.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 14px; min-height: 28px; }
.count { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters button { background: var(--stamp-soft); color: var(--stamp); border: 0; border-radius: 999px; padding: 1px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.active-filters button::after { content: " ×"; }
.active-filters .clear-all { background: none; color: var(--ink-soft); text-decoration: underline; }
.active-filters .clear-all::after { content: ""; }
.results .cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.group + .group { margin-top: 36px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.group-head h2 { margin: 0; font-size: 20px; }
.group-head a { color: var(--stamp); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.more:empty { display: none; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--rule); border-radius: 12px; }
.empty h3 { margin: 0 0 6px; }
.empty p { color: var(--ink-soft); margin: 0 0 16px; }
.custom-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 30px; border-radius: 14px; background: var(--ink); color: #fff; }
.custom-cta h3 { margin: 0; font-size: 22px; }
.custom-cta p { margin: 0; color: #C8D0E0; font-size: 15.5px; }
.custom-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.custom-cta .btn:hover { background: var(--marker); border-color: var(--marker); }
.custom-cta.slim { margin-top: 26px; padding: 16px 20px; background: var(--sheet); color: var(--ink); border: 1px dashed var(--rule); }
.custom-cta.slim h3 { font-size: 17px; }
.custom-cta.slim p { color: var(--ink-soft); font-size: 14.5px; }
.custom-cta.slim .btn { background: transparent; border-color: var(--ink); }

/* نافذة التصفية */
.filters { width: min(420px, calc(100vw - 24px)); padding: 22px; display: none; gap: 14px; }
.filters[open] { display: grid; }
.filters-head { display: flex; align-items: center; gap: 12px; }
.filters-head h2 { margin: 0; font: 700 19px var(--body); flex: 1; }
.filters fieldset { border: 0; border-top: 1px solid var(--rule); padding: 12px 0 0; margin: 0; display: grid; gap: 2px; }
.filters legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--stamp); margin: 0; flex: none; }

/* طريقة الطلب */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 0 22px; border-inline-start: 1px solid var(--rule); }
.steps li:first-child { border: 0; padding-inline-start: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 54px; line-height: 1; color: var(--stamp); }
.steps h3 { font-size: 19px; margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* الأسئلة */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq details { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--stamp); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 6px 0 0; color: var(--ink-soft); font-size: 16px; }

/* التذييل */
footer { padding: 40px 0 90px; color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--rule); background: var(--sheet); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: center; }
.foot-brand p { margin: 8px 0 0; max-width: 28em; }
.fl-badge { display: flex; align-items: center; gap: 14px; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 16px; justify-self: start; }
.fl-badge img { height: 48px; width: auto; display: block; }
.fl-badge small { display: block; font-size: 13px; }
.fl-badge b { color: var(--ink); font-size: 18px; letter-spacing: .04em; }
.foot-links { display: grid; gap: 4px; justify-items: start; }
.foot-links .linkish, .foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.foot-links a[dir] { font-weight: 700; color: var(--ink); }

.wa-float {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 15; width: 56px; height: 56px; border-radius: 50%;
  background: #1F9D55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* النوافذ */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--sheet); }
dialog::backdrop { background: rgba(20, 33, 61, .45); backdrop-filter: blur(2px); }
.modal { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border-radius: 14px; padding: 30px; overflow: auto; }
.small-modal { width: min(460px, calc(100vw - 24px)); }
.terms-modal { width: min(760px, calc(100vw - 24px)); }
.modal-close { position: sticky; top: 0; float: left; margin: -14px -14px 0 0; z-index: 2; }
.modal-close button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet); font-size: 24px; line-height: 1; cursor: pointer; }
.modal h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
dialog[open] { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* صفحة المنتج */
.pm { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; }
.pm .crumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.pm .crumbs button { background: none; border: 0; padding: 0; color: var(--stamp); cursor: pointer; font-weight: 600; }
.pm .lead { color: var(--ink-soft); margin: 0 0 16px; }
.pm h4 { font-size: 16px; margin: 18px 0 6px; }
.pm ul.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15.5px; }
.pm ul.list li { display: flex; gap: 8px; }
.pm ul.list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pm ul.need li::before { content: "•"; color: var(--stamp); }
.pm .pterms { background: var(--paper); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; color: var(--ink-soft); margin-top: 16px; }
.buy { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: grid; gap: 14px; align-self: start; position: sticky; top: 0; }
.buy .price { font-size: 34px; }
.buy fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.buy legend { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.choice { display: flex; align-items: center; gap: 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 15px; }
.choice:has(input:checked) { border-color: var(--stamp); box-shadow: 0 0 0 1px var(--stamp); }
.choice input { accent-color: var(--stamp); width: 17px; height: 17px; margin: 0; flex: none; }
.choice span { flex: 1; }
.choice b { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; }
.buy .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buy .facts { display: grid; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.buy .facts div { display: flex; justify-content: space-between; }
.buy .facts b { color: var(--ink); }
.related { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 16px; }
.related h4 { margin: 0 0 10px; }
.related .row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.related button { flex: none; width: 210px; text-align: start; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.related button:hover { border-color: var(--stamp); }
.related button b { display: block; font-size: 14.5px; line-height: 1.5; }
.related button span { font-size: 13px; color: var(--ink-soft); }

/* السلة */
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(440px, 100vw); display: none; flex-direction: column; border-radius: 0; }
.drawer[open] { display: flex; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; }
.drawer-body { flex: 1; overflow: auto; padding: 10px 20px; }
.drawer-foot { border-top: 1px solid var(--rule); padding: 16px 20px; display: grid; gap: 10px; background: var(--paper); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.line h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.line .opts { grid-column: 1; font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.line .amt { font-weight: 700; white-space: nowrap; text-align: end; }
.line .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.line .ctl .qty button { width: 30px; height: 30px; font-size: 17px; }
.line .rm { background: none; border: 0; color: var(--sale); cursor: pointer; font-size: 14px; font-weight: 600; margin-inline-start: auto; }
.sum { display: grid; gap: 4px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-size: 19px; font-weight: 700; border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 4px; }
.sum .disc { color: var(--ok); }
.coupon { display: flex; gap: 6px; }
.coupon input { flex: 1; }
.coupon-msg { font-size: 14px; margin: 0; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.bad { color: var(--sale); }
.empty-cart { text-align: center; padding: 50px 10px; color: var(--ink-soft); }
.empty-cart svg { width: 54px; height: 54px; fill: none; stroke: var(--rule); stroke-width: 1.5; }

/* النماذج */
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label em { color: var(--sale); font-style: normal; }
input, select, textarea {
  font: 400 16px var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; width: 100%;
}
textarea { min-height: 100px; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--sale); }
.err { color: var(--sale); font-size: 14px; font-weight: 500; min-height: 1.4em; margin: 0; }
#checkoutForm, .stack { display: grid; gap: 14px; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-summary { background: var(--paper); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.co-summary ul { margin: 0 0 6px; padding: 0; list-style: none; }
.co-summary li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.co-summary .tot { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px solid var(--rule); padding-top: 6px; }
.co-summary small { color: var(--ink-soft); display: block; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop { display: grid; justify-items: center; gap: 2px; text-align: center; border: 2px dashed var(--rule); border-radius: 10px; padding: 18px; cursor: pointer; background: var(--paper); font-weight: 500; }
.drop.over, .drop:hover { border-color: var(--stamp); background: var(--stamp-soft); }
.drop svg { width: 28px; height: 28px; fill: none; stroke: var(--stamp); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop span { font-size: 13.5px; color: var(--ink-soft); }
.upload:focus-within .drop { outline: 3px solid var(--stamp); outline-offset: 2px; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.file-list li { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 6px; padding: 4px 10px; }
.file-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li small { color: var(--ink-soft); }
.file-list li.bad { color: var(--sale); }
.file-list button { background: none; border: 0; color: var(--sale); cursor: pointer; font-size: 18px; line-height: 1; }
.hp { position: absolute; left: -9999px; }
.agree { font-weight: 500; }

.done { text-align: center; padding: 10px 0; }
.done .seal { display: inline-block; font-family: var(--display); font-size: 40px; color: var(--stamp); border: 4px double var(--stamp); border-radius: 10px; padding: 6px 22px 0; transform: rotate(-6deg); margin: 6px 0 14px; }
.done p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 16px; }
.done .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.terms-body h3 { font-size: 18px; margin: 20px 0 6px; }
.terms-body p, .terms-body li { color: var(--ink-soft); font-size: 15.5px; }
.terms-body ul { padding-inline-start: 20px; margin: 0; }

.track-card { margin-top: 16px; background: var(--paper); border-radius: 10px; padding: 14px 16px; }
.track-card .st { font-weight: 700; color: var(--stamp); font-size: 18px; }
.track-card ol { margin: 8px 0 0; padding-inline-start: 20px; font-size: 14px; color: var(--ink-soft); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* الجوال */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sections { grid-template-columns: 1fr; }
  .cat-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sub-nav { position: static; }
  .sub-nav h2 { display: none; }
  .sub-nav ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .sub-nav a { white-space: nowrap; background: var(--sheet); border: 1px solid var(--rule); padding: 5px 12px; font-size: 14.5px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .trust li:nth-child(odd) { border: 0; padding-inline-start: 0; }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .cart-btn { margin-inline-start: auto; }
  .cart-btn span { display: none; }
  .hero { padding: 32px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .slip { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .steps li:nth-child(odd) { border: 0; padding-inline-start: 0; }
  section, .block { padding: 46px 0; }
  .pm { grid-template-columns: 1fr; }
  .buy { position: static; }
  .modal { padding: 22px 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .custom-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .audience { grid-template-columns: 1fr; }
  .cards, .results .cards { grid-template-columns: 1fr; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .toolbar { flex-wrap: wrap; }
  .cat-search { flex-basis: 100%; }
  .sort { margin-inline-start: auto; }
  .modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .filters { height: auto; max-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp.hit, dialog[open], .drawer[open], .cart-btn.bump { animation: none; }
  .btn, .card, .aud, .toast { transition: none; }
}

/* ===== المنتجات الجاهزة ===== */
.kind-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; font-size: 17px; }
.kind-head span { background: var(--marker); border-radius: 6px; padding: 0 10px; }
.kind-head small { color: var(--ink-soft); font-weight: 400; font-size: 14px; }
.cards + .kind-head { margin-top: 26px; }
.kicker { display: inline-block; background: var(--marker); color: var(--ink); font-weight: 700; font-size: 14px; border-radius: 6px; padding: 1px 10px; margin-bottom: 8px; }
.card.ready { padding: 0; overflow: hidden; gap: 0; }
.card.ready .ready-txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card.ready .badge { z-index: 3; top: 10px; box-shadow: 0 4px 10px -4px rgba(20, 33, 61, .4); }
.thumb { height: 230px; background: #E4E8F0; display: grid; place-items: start center; padding-top: 16px; overflow: hidden; position: relative; border-bottom: 1px solid var(--rule); }
.thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 46px; background: linear-gradient(transparent, rgba(228, 232, 240, .95)); }
.thumb .tp-scale { box-shadow: 0 14px 30px -14px rgba(20, 33, 61, .45); border-radius: 3px; transition: transform .25s ease; }
.thumb.land { place-items: center; padding: 0; }
.card.ready:hover .thumb .tp-scale { transform: translateY(-4px) rotate(-1deg); }
.tp-scale { overflow: hidden; position: relative; flex: none; }
.tp-scale > .tp-doc, .tp-scale > .tp-in { transform-origin: top right; position: absolute; top: 0; right: 0; }
.rp-stack { display: grid; gap: 18px; }

.product-modal.rp-modal { width: min(1180px, calc(100vw - 24px)); }
.rp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; }
.rp-head { grid-column: 1 / -1; }
.rp .crumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.rp .crumbs button { background: none; border: 0; padding: 0; color: var(--stamp); cursor: pointer; font-weight: 600; }
.rp .lead { color: var(--ink-soft); margin: 0 0 10px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chips span { background: var(--stamp-soft); color: var(--stamp); font-weight: 600; font-size: 13.5px; border-radius: 20px; padding: 2px 12px; }
.rp-view { background: #E4E8F0; border-radius: 12px; padding: 12px; display: grid; gap: 10px; align-self: start; position: sticky; top: 0; }
.rp-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 0 4px; }
.rp-pages { height: min(74vh, 820px); overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; padding: 0 1px; }
.rp-pages .tp-page { box-shadow: 0 18px 40px -20px rgba(20, 33, 61, .5); }
.rp-note { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.rp-form { position: static; }
.rp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.rp-fields label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.rp-fields .wide { grid-column: 1 / -1; }
.rp-fields input, .rp-fields select, .rp-fields textarea { font: inherit; font-size: 15px; font-weight: 400; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; background: var(--sheet); color: var(--ink); width: 100%; }
.rp-fields textarea { resize: vertical; line-height: 1.7; }
.rp-fields input:focus, .rp-fields select:focus, .rp-fields textarea:focus { outline: 2px solid var(--stamp); outline-offset: 0; border-color: var(--stamp); }
.imgf { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.imgf .btn { justify-self: start; cursor: pointer; }
.imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.imgs:empty { display: none; }
.imgs span { position: relative; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); background: #fff; }
.imgs img { width: 100%; height: 100%; object-fit: contain; }
.imgs button { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(20, 33, 61, .8); color: #fff; cursor: pointer; line-height: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { display: grid; justify-items: center; gap: 2px; cursor: pointer; font-size: 12.5px; color: var(--ink-soft); }
.swatches label { position: relative; }
.swatches input { position: absolute; top: 0; right: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.swatches i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--stamp); }
.swatches input:focus-visible + i { outline: 3px solid var(--stamp); outline-offset: 2px; }
.linkish.small { font-size: 14px; justify-self: start; margin-top: 4px; }
#rpErr { color: var(--sale); font-weight: 600; font-size: 14.5px; margin: 0; min-height: 0; }
#rpErr:empty { display: none; }
.upsell { border-top: 1px dashed var(--rule); padding-top: 10px; font-size: 14px; color: var(--ink-soft); }
.track-card .docs { display: grid; gap: 8px; margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.track-card .docs .btn { justify-self: start; }

@media (max-width: 860px) {
  .rp { grid-template-columns: minmax(0, 1fr); }
  .rp-view { position: static; }
  .rp-pages { height: 62vh; }
}
@media (max-width: 560px) {
  .card.ready .thumb { height: 170px; }
  .card.ready .thumb .tp-scale { zoom: .7; }
  .card.ready .ready-txt { padding: 10px 12px 12px; }
  .card.ready h3 { font-size: 16px; }
  .card.ready p { display: none; }
  .card.ready .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rp-fields { grid-template-columns: 1fr; }
}
