/* مطبعة الشهيد — storefront. Navy + print-gold, RTL first. Crop marks are the recurring motif. */
:root {
  --navy: #14284b; --navy-2: #1d3866; --navy-3: #2c5590; --ink: #16213a; --muted: #5d6782;
  --paper: #f6f7fa; --card: #fff; --line: #dde2ec; --soft: #edf1f8; --accent: #e8b21a; --accent-ink: #2a1f00;
  --ok: #1f8a55; --err: #b4313f; --wa: #1fa855;
  --display: 'Reem Kufi', 'Readex Pro', Tahoma, sans-serif;
  --body: 'Readex Pro', 'Segoe UI', Tahoma, Arial, sans-serif;
  --r: 12px; --shadow: 0 6px 22px rgba(20, 40, 75, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; justify-content: center; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir=rtl] .ic-flip, [dir=rtl] .go .ic { transform: none; } [dir=ltr] .go .ic { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: -999px; } .skip:focus { inset-inline-start: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
.wrap { max-width: 1220px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 8px; margin-top: 16px; } .stack-lg { display: grid; gap: 20px; min-width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 10px; padding: 11px 22px; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--card); line-height: 1.3; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); } .btn-accent:hover { background: #f2c13a; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); } .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; } .btn-outline:hover { border-color: var(--navy); }
.btn-wa { background: var(--wa); color: #fff; } .btn-wa:hover { background: #18914a; }
.btn-sm { padding: 7px 14px; font-size: .9rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .86rem; font-weight: 500; padding: 6px 16px; }
.top { background: var(--navy); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; }
.top-main { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: auto; }
.brand b { font-family: var(--display); font-size: 1.35rem; display: block; line-height: 1.2; }
.brand small { display: block; font-size: .74rem; opacity: .7; }
.search { flex: 1; display: flex; max-width: 520px; background: var(--navy-2); border-radius: 10px; overflow: hidden; border: 1.5px solid transparent; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 10px 14px; outline: none; }
.search input::placeholder { color: #b9c5dd; }
.search button { border: 0; background: transparent; color: #fff; padding: 0 14px; cursor: pointer; }
.hactions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lang-btn { color: #fff; opacity: .85; text-decoration: none; font-size: .9rem; padding: 8px 10px; border-radius: 8px; } .lang-btn:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 9px 14px; border-radius: 10px; position: relative; }
.count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--navy); font: 700 .72rem/20px var(--body); text-align: center; font-style: normal; }
.count:empty, .count[data-n="0"] { display: none; }
.icon-btn .count { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; color: #fff; }
.nav { border-top: 1px solid rgba(255, 255, 255, .08); }
.nav-inner { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a { color: #dbe3f2; text-decoration: none; padding: 9px 14px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav .sp { flex: 1; }
.nav .nav-quote { color: var(--accent); font-weight: 600; }
.nav-ic, .nav .short { display: none; }

/* ---------- drawer ---------- */
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); background: #fff; z-index: 80; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
[dir=ltr] .drawer { transform: translateX(-100%); }
.drawer-scrim { position: fixed; inset: 0; background: rgba(10, 20, 40, .45); z-index: 79; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-open .drawer { transform: none; } .drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-head .brand { color: var(--navy); } .drawer-head .brand img { width: 30px; }
.drawer-body { overflow-y: auto; padding: 10px 16px 30px; }
.drawer-body > a, .drawer-body summary { display: block; padding: 12px 4px; border-bottom: 1px solid var(--soft); text-decoration: none; font-weight: 500; cursor: pointer; }
.drawer-body details a { display: block; padding: 8px 16px; text-decoration: none; color: var(--muted); }
.drawer-body summary { font-family: var(--display); color: var(--navy); font-size: 1.05rem; list-style: none; }
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary::after { content: "+"; float: inline-end; color: var(--muted); } details[open] > summary::after { content: "–"; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 44px 54px; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.hero p { color: #c9d4e8; font-size: 1.08rem; max-width: 52ch; margin: 14px 0 24px; }
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; border: 1px dashed rgba(255, 255, 255, .28); border-radius: 6px; }
.hero-tile { background: #fff; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 10px 12px; color: var(--navy); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hero-tile img { width: 100%; aspect-ratio: 1.25; object-fit: contain; }
.hero-tile b { font-family: var(--display); font-size: 1rem; text-align: center; line-height: 1.3; }
.hero-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.crop { position: absolute; width: 26px; height: 26px; border: 0 solid var(--accent); }
.crop.c1 { top: -13px; inset-inline-start: -13px; border-width: 0 0 2px 2px; } [dir=rtl] .crop.c1 { border-width: 0 2px 2px 0; }
.crop.c2 { bottom: -13px; inset-inline-end: -13px; border-width: 2px 2px 0 0; } [dir=rtl] .crop.c2 { border-width: 2px 0 0 2px; }

/* ---------- sections ---------- */
.sec { padding-block: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: 1.7rem; color: var(--navy); }
.sec-head p { color: var(--muted); margin: 4px 0 0; }
.more { color: var(--navy-3); font-weight: 600; text-decoration: none; white-space: nowrap; } .more:hover { text-decoration: underline; }
.band-soft { background: var(--soft); }

/* departments */
.depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dept { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.dept:hover { border-color: var(--navy-3); box-shadow: var(--shadow); }
.dept-img { background: var(--soft); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; }
.dept-img img { max-height: 100%; width: auto; object-fit: contain; }
.dept-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dept h3 { font-size: 1.25rem; color: var(--navy); }
.dept p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.partner-band { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin-top: 24px; box-shadow: var(--shadow); }
.partner-band img { height: 64px; width: auto; flex: none; }
.partner-band small { color: var(--muted); font-size: .8rem; } .partner-band p { margin: 2px 0 0; color: var(--navy); font-size: 1.02rem; }
.desc ul.contents { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; } .desc ul.contents li::marker { color: var(--navy-3); }
.go { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-3); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.go .ic { width: 18px; height: 18px; }
.pill { align-self: flex-start; display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--soft); color: var(--navy-2); }
.pill-quote { background: #fff3d1; color: #7a5600; } .pill-wholesale { background: #dff3e5; color: #1d6b3f; } .pill-cart { background: #dcebff; color: #1d4f91; }

/* category circles */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 18px 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; }
.cat .ic { width: 112px; height: 112px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; stroke: none; transition: box-shadow .2s, transform .2s; }
.cat .ic img { width: 82%; height: 82%; object-fit: contain; }
.cat:hover .ic { box-shadow: inset 0 0 0 2px var(--navy-3); transform: translateY(-2px); }
.cat .nm { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.cat small { color: var(--muted); font-size: .78rem; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #c4cde0; box-shadow: var(--shadow); }
.card-img { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--soft); padding: 12px; }
.card-img img { width: 86%; height: 86%; object-fit: contain; }
.wish { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--muted); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.wish .ic { width: 18px; height: 18px; } .wish[aria-pressed=true] { color: var(--err); } .wish[aria-pressed=true] .ic { fill: currentColor; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; font-size: .74rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--navy); color: #fff; } .badge.sale { background: var(--err); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-cat { font-size: .78rem; color: var(--navy-3); font-weight: 600; text-decoration: none; }
.card-title { font: 500 1rem/1.45 var(--body); } .card-title a { text-decoration: none; } .card-title a:hover { color: var(--navy-3); }
.card-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.card .price { margin-top: auto; padding-top: 6px; }
.card-cta { margin-top: 10px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-weight: 600; color: var(--navy); }
.price .from { font-size: .8rem; color: var(--muted); font-weight: 400; }
.price .now { font-size: 1.12rem; } .price .old { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: .88rem; }
.price.quote { color: #7a5600; } .price.big .now { font-size: 1.6rem; } .price.big { font-size: 1.1rem; margin: 8px 0 12px; }

/* steps / why / promo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 4px; }
.steps li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 6px; }
.steps b { font-family: var(--display); font-size: 1.1rem; color: var(--navy); } .steps span { color: var(--muted); font-size: .92rem; }
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.why div { border-top: 3px solid var(--accent); padding-top: 12px; } .why h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; } .why p { color: var(--muted); font-size: .92rem; margin: 0; }
.promo { background: var(--navy); color: #fff; border-radius: 20px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.promo h2 { font-size: 1.7rem; margin: 10px 0 8px; } .promo p { color: #c9d4e8; } .promo img { width: 220px; background: #fff; border-radius: 50%; padding: 16px; }
.help { text-align: center; } .help h2 { color: var(--navy); font-size: 1.6rem; } .help p { color: var(--muted); }

/* department hero */
.dept-hero { background: var(--navy); color: #fff; }
.dept-hero-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; }
.dept-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 10px 0 6px; } .dept-hero p { color: #c9d4e8; max-width: 60ch; }
.dept-hero img { width: 200px; background: #fff; border-radius: 50%; padding: 14px; flex: none; }

/* ---------- listing ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); padding-block: 14px 0; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--navy); text-decoration: underline; }
.page-head { padding: 14px 0 20px; } .page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); } .page-head p { color: var(--muted); margin: 6px 0 0; }
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 50px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: sticky; top: 130px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; } .filters-head h3 { font-size: 1.1rem; } .filters-head .icon-btn { display: none; }
.filters h4 { margin: 16px 0 6px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: .94rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .range input { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.listing-main { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-toggle { display: none; }
.sorts { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
.sorts a { text-decoration: none; padding: 6px 12px; border-radius: 20px; font-size: .88rem; color: var(--muted); }
.sorts a[aria-current] { background: var(--navy); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 60px 20px; } .empty h1, .empty h2 { color: var(--navy); margin-bottom: 10px; }

/* ---------- product ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 30px; }
.pdp-media { position: sticky; top: 130px; background: #fff; border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; padding: 30px; }
.pdp-media img { width: 88%; height: 88%; object-fit: contain; }
.pdp-info { min-width: 0; }
.pdp-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); margin: 6px 0 2px; }
.lead { font-size: 1.04rem; color: var(--muted); }
.facts { list-style: none; padding: 14px 16px; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 8px; font-size: .92rem; }
.facts li { display: flex; gap: 10px; align-items: flex-start; } .facts .ic { color: var(--navy-3); width: 20px; height: 20px; margin-top: 3px; }
.field-label { display: block; font-weight: 600; margin: 14px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: .94rem; }
.chip input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); }
.chip input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--soft); }
.qty input { width: 96px; text-align: center; border: 0; height: 44px; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.tiers { width: 100%; border-collapse: collapse; margin: 16px 0 4px; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tiers caption { text-align: start; font-weight: 600; padding-bottom: 6px; }
.tiers td { padding: 7px 12px; border-top: 1px solid var(--soft); } .tiers td:last-child { text-align: end; }
.tiers tr.on td { background: #e9f6ee; color: var(--ok); font-weight: 700; }
.total-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 14px; padding: 14px 16px; background: var(--soft); border-radius: var(--r); }
.total-box b { font-size: 1.5rem; color: var(--navy); } .total-box small { flex-basis: 100%; }
.desc { margin-top: 26px; } .desc h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; } .desc p { color: #33405e; }

/* ---------- forms / panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.panel h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 14px; }
.quote-form { margin-top: 6px; } .quote-form > .muted { margin-top: -6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; min-width: 0; } .field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .92rem; }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(44, 85, 144, .15); }
textarea.input { resize: vertical; min-height: 90px; }
.has-err .input, .has-err .drop { border-color: var(--err); }
.err { color: var(--err); font-size: .86rem; }
.drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed #b7c3da; border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fafbfd; font-size: .9rem; color: var(--muted); position: relative; }
.drop:hover { border-color: var(--navy-3); } .drop .ic { color: var(--navy-3); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.has-file { border-style: solid; border-color: var(--ok); color: var(--ok); background: #f0faf4; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--navy); background: #f6f8fc; }
.pay-opt b { display: block; } .pay-opt span { color: var(--muted); font-size: .88rem; } .pay-opt input { margin-top: 6px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; } .alert.info { background: #e9f1fd; color: #1d4f91; } .alert.err { background: #fbe6e9; color: #8a2433; }

/* ---------- cart / checkout ---------- */
.cart-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 50px; }
.summary { position: sticky; top: 130px; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--soft); }
.cart-line:first-child { padding-top: 0; }
.thumb { width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.cl-main { min-width: 0; } .cl-main h3 { font: 500 1rem/1.4 var(--body); } .cl-main h3 a { text-decoration: none; } .cl-main small { color: var(--muted); }
.ok { color: var(--ok); }
.ctrl { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ctrl .qty button { height: 36px; width: 34px; } .ctrl .qty input { height: 36px; width: 80px; }
.line-total { font-weight: 700; color: var(--navy); white-space: nowrap; }
#cart-form .row { margin-top: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { font-size: 1.2rem; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.sum-rows { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 8px; }
.sum-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .92rem; }
.sum-item .qn { background: var(--soft); border-radius: 8px; padding: 2px 8px; font-size: .8rem; font-weight: 600; }
.sum-item small { display: block; color: var(--muted); font-size: .8rem; }
.success { text-align: center; max-width: 560px; margin: 50px auto 70px; }
.tick { width: 74px; height: 74px; border-radius: 50%; background: #e3f5ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; } .tick .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.success h1 { color: var(--navy); font-size: 1.8rem; margin-bottom: 10px; }
.order-no { font: 700 1.6rem/1.2 var(--body); color: var(--navy); background: var(--soft); border-radius: 12px; padding: 12px; margin: 8px 0 16px; letter-spacing: .04em; direction: ltr; user-select: all; }
.timeline { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.timeline li { padding: 8px 30px 8px 0; position: relative; color: var(--muted); } [dir=ltr] .timeline li { padding: 8px 0 8px 30px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li.done { color: var(--ink); font-weight: 600; } .timeline li.done::before { background: var(--ok); border-color: var(--ok); }

/* ---------- info pages ---------- */
.prose { padding-block: 10px 50px; } .prose h1 { color: var(--navy); font-size: 2rem; margin-bottom: 14px; } .prose h2 { color: var(--navy); font-size: 1.3rem; margin: 26px 0 10px; }
.prose p, .prose li { color: #33405e; } .prose ul, .prose ol { padding-inline-start: 20px; display: grid; gap: 6px; } .prose .row { margin-top: 24px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-bottom: 50px; }
.info { display: grid; gap: 12px; align-content: start; }
.info > div { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.info .ic { color: var(--navy-3); } .info small { display: block; color: var(--muted); font-size: .8rem; } .info b { font-size: 1.05rem; }
.sel { user-select: all; }
#wa-form .field { margin-bottom: 14px; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #c9d4e8; margin-top: 30px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-block: 40px 28px; }
.foot .brand { color: #fff; margin-bottom: 10px; } .foot p { font-size: .9rem; max-width: 40ch; }
.foot h4 { color: #fff; font-family: var(--display); font-size: 1.05rem; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.foot a { text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.contact-list li { display: flex; gap: 8px; align-items: flex-start; } .contact-list .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.socials { display: flex; gap: 8px; } .socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--navy-2); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 14px; font-size: .84rem; }

/* ---------- floating bits ---------- */
.wa-float { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(20px + env(safe-area-inset-right, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; display: flex; gap: 14px; align-items: center; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } .toast a { color: var(--accent); font-weight: 600; }
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .depts { gap: 10px; } .dept-body { padding: 12px; } .dept p { font-size: .85rem; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .hide-sm { display: none; }
  /* phones: the 4 main sections stay visible under the header */
  .nav-extra { display: none; }
  .nav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-block: 4px 6px; overflow: visible; }
  .nav a.nav-dept { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 4px; font-size: .78rem; background: rgba(255, 255, 255, .06); border-radius: 10px; min-width: 0; }
  .nav a.nav-dept[aria-current] { background: var(--accent); color: var(--accent-ink); box-shadow: none; font-weight: 600; border-radius: 10px; }
  .nav .nav-ic { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 1px; object-fit: contain; flex: none; }
  .nav .full { display: none; } .nav .short { display: inline; overflow: hidden; text-overflow: ellipsis; }
  .top-main { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .brand b { font-size: 1.15rem; } .brand small { display: none; } .brand img { width: 32px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 30px 36px; gap: 26px; }
  .hero-art { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
  .hero-tile { border-radius: 10px; padding: 4px; }
  .hero-tile b { font-size: .72rem; } .hero-tile { gap: 3px; padding: 6px 4px 8px; } .hero-tile img { aspect-ratio: 1; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(88vw, 340px); z-index: 80; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; top: 0; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  [dir=rtl] .filters { inset: 0 0 0 auto; transform: translateX(100%); }
  .filters-open .filters { transform: none; } .filters-head .icon-btn, .filter-toggle { display: inline-flex; }
  .filters-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 20, 40, .45); z-index: 79; }
  .pdp, .cart-wrap, .contact { grid-template-columns: 1fr; gap: 22px; }
  .pdp-media { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
  .summary { position: static; }
  .steps, .why { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; } .promo img { width: 150px; justify-self: center; grid-row: 1; }
  .dept-hero img { width: 120px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 1px; font-size: .72rem; color: var(--muted); text-decoration: none; position: relative; padding: 2px 0; }
  .tabbar a[aria-current] { color: var(--navy); font-weight: 600; }
  .tabbar .count { top: -4px; inset-inline-end: calc(50% - 22px); background: var(--accent); color: var(--accent-ink); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
  .foot { padding-bottom: 10px; }
}
@media (max-width: 560px) {
  /* phones: the 4 sections side by side, image + name only */
  .depts { gap: 6px; }
  .dept { border-radius: 12px; }
  .dept-img { aspect-ratio: 1; padding: 6px; }
  .dept-body { padding: 6px 4px 8px; gap: 2px; align-items: center; text-align: center; }
  .dept h3 { font-size: .78rem; line-height: 1.3; }
  .dept p, .dept .pill, .dept .go { display: none; }
  .partner-band { gap: 14px; padding: 12px 14px; margin-top: 16px; } .partner-band img { height: 44px; } .partner-band p { font-size: .9rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; } .card-title { font-size: .92rem; } .card-meta { font-size: .76rem; } .card-cta { padding: 7px 8px; font-size: .84rem; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; } .cat .ic { width: 92px; height: 92px; } .cat .nm { font-size: .84rem; }
  .form-grid { grid-template-columns: 1fr; }
  .steps, .why { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .sec { padding-block: 30px; } .sec-head h2 { font-size: 1.4rem; }
  .dept-hero-in { padding-block: 20px; } .dept-hero img { width: 90px; padding: 8px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); } .thumb { width: 64px; height: 64px; } .line-total { grid-column: 2; }
  .sorts { margin-inline-start: 0; }
  .panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- design service ---------- */
.alert.ok { background: #e4f3e9; color: #226a3d; }
.art-opts .tag { display: inline-block; background: var(--gold, #e8b21a); color: #1b1620; border-radius: 99px; padding: 0 8px; font-size: .8rem; margin-inline-start: 6px; }
.art-opts small { display: block; margin-top: 4px; font-size: .78rem; }
.brief-field, .design-only { display: none; }
.want-design .brief-field { display: block; } .want-design .design-only { display: inline; } .want-design .own-only { display: none; }
.design-page .page-head h1 .num { font-size: .9rem; font-weight: 400; }
.proof-box { border: 2px solid var(--navy); } .proof-box form { margin: 12px 0 6px; }
.proof-box .msg-img img { max-height: 420px; }
.changes { margin-top: 8px; } .changes summary { list-style: none; } .changes summary::-webkit-details-marker { display: none; }
.stack-sm { display: grid; gap: 10px; margin-top: 10px; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 85%; align-self: flex-end; background: #f1f4f9; border-radius: 14px; padding: 10px 14px; }
.msg.me { align-self: flex-start; background: #e7eefb; }
.msg b { display: block; font-size: .8rem; color: var(--navy); } .msg p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: .85rem; padding: 2px; text-align: center; }
.msg.is-proof { border: 2px solid var(--gold, #e8b21a); }
.msg-img img { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin-top: 6px; background: #fff; }
.msg-file { display: inline-block; margin-top: 6px; font-weight: 600; }
.msg-form { display: grid; gap: 10px; } .msg-form input[type=file] { flex: 1; min-width: 0; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; } [hidden] { display: none !important; }

/* «صمّملي» call-outs */
.design-cta { display: flex; gap: 12px; align-items: flex-start; background: #fff8e6; border: 1.5px dashed var(--accent); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.design-cta .ic { width: 28px; height: 28px; flex: none; color: var(--navy); }
.design-cta b { display: block; color: var(--navy); } .design-cta p { margin: 2px 0 0; font-size: .9rem; color: #4a5470; }
.design-band { background: linear-gradient(135deg, #fff8e6, #fff); border: 1px solid #f1dfae; border-radius: 20px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.design-band h2 { color: var(--navy); font-size: 1.6rem; margin: 6px 0; } .design-band p { color: #4a5470; margin: 0 0 14px; }
.design-band ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.design-band li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 14px; display: flex; gap: 12px; align-items: center; counter-increment: s; }
.design-band li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.design-band .tagline { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 2px 12px; font-size: .82rem; font-weight: 600; }
@media (max-width: 760px) { .design-band { grid-template-columns: 1fr; padding: 20px; } .design-band h2 { font-size: 1.3rem; } }

.map-box { margin: 34px 0 10px; } .map-box .sec-head { flex-wrap: wrap; gap: 10px; }
.map-box iframe { width: 100%; height: 380px; border: 0; border-radius: 16px; background: var(--soft); display: block; }
@media (max-width: 760px) { .map-box iframe { height: 300px; } }
@media (max-width: 1180px) and (min-width: 901px) { .nav a { padding: 9px 9px; font-size: .9rem; } }
.hero h1 .eyebrow { display: block; font-family: var(--body); font-size: clamp(.9rem, 1.6vw, 1.05rem); font-weight: 600; color: var(--accent); margin-bottom: 10px; letter-spacing: 0; }

/* ---------- phone comfort ---------- */
.buy-sticky { display: none; }
@media (max-width: 900px) {
  .announce { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; padding: 5px 12px; } .announce .more { display: none; }
  /* scrolling down slides the logo + search rows up out of view (transform only — the page never shifts); the sections row stays */
  .top { transition: transform .22s ease; will-change: transform; }
  .top.compact { transform: translateY(calc(-1 * var(--hide, 0px))); }
  .buy-sticky { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; z-index: 45;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 34, 66, .08);
    padding: 10px 16px; transform: translateY(140%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .buy-sticky.show { transform: none; visibility: visible; }
  .buy-sticky small { display: block; color: var(--muted); font-size: .75rem; } .buy-sticky b { font-size: 1.15rem; color: var(--navy); }
  .buy-sticky .btn { flex: 1; max-width: 230px; }
  html[lang=en] .nav a.nav-dept { font-size: .7rem; gap: 3px; } html[lang=en] .nav .nav-ic { width: 18px; height: 18px; }
}

/* ---------- listing filters ---------- */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink, #1b2236); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.fchip small { color: var(--muted); font-size: .75rem; }
.fchip:hover { border-color: var(--navy); }
.fchip.on { background: var(--navy); border-color: var(--navy); color: #fff; } .fchip.on small { color: #c9d3ea; }
.filters form { margin: 0; }
.quick-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick-chips::-webkit-scrollbar { display: none; } .quick-chips .fchip { flex: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.achip { display: inline-flex; gap: 6px; align-items: center; background: #fff6dc; border: 1px solid #f0d58a; color: var(--navy); border-radius: 99px; padding: 4px 12px; font-size: .84rem; text-decoration: none; }
.achip.clear { background: none; border-color: transparent; text-decoration: underline; color: var(--muted); }
.fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; margin-inline-start: 4px; }
