/* ============ نحت — الواجهة ============ */
:root {
  --bg: #F3EBE2;          /* الخلفية الكريمية */
  --section: #E9DED3;     /* خلفية الصور والأقسام */
  --card: #F9F4EE;        /* جسم البطاقات */
  --primary: #2C2D49;     /* اللون الداكن (كحلي) */
  --text: #211B36;
  --muted: #6E5753;
  --line: #E0D3C7;
  --cream: #F4EBE1;       /* النص فوق الداكن */
  --radius: 22px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Fraunces", "El Messiri", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }

.container { max-width: 1240px; margin: 0 auto; padding-inline: 28px; }
.narrow { max-width: 820px; }
.arr { width: 18px; height: 18px; flex: none; }
html[dir="ltr"] .arr { transform: scaleX(-1); }

/* عنوان صغير فوق العناوين */
.eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; }

/* ---------- شريط الإعلان المتحرك ---------- */
.announce { background: var(--primary); color: var(--cream); overflow: hidden; font-size: 12.5px; height: 38px; display: flex; align-items: center; }
html[lang="en"] .announce { text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
html[dir="rtl"] .marquee { animation-name: marquee-rtl; }
.marquee-group { display: flex; flex: none; }
.marquee span { white-space: nowrap; padding-inline: 34px; opacity: .85; position: relative; }
.marquee span::after { content: "·"; position: absolute; inset-inline-end: -4px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo img { max-height: 54px; width: auto; }
.logo-text { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--primary); }
.logo-sub { font-size: 11px; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; padding-block: 6px; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
html[lang="en"] .nav a { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.nav a:hover, .nav a.active { border-bottom-color: var(--primary); }
.hdr-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: none; background: none; border-radius: 50%; text-decoration: none; color: var(--primary); transition: background .2s; }
.icon-btn:hover { background: var(--section); }
.icon-btn svg { width: 25px; height: 25px; }
.lang-btn { font-size: 13px; font-weight: 700; width: auto; padding-inline: 10px; border-radius: 22px; }
.cart-badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: var(--cream); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }

.search-panel { border-top: 1px solid var(--line); padding-block: 16px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--card); border-radius: 40px; padding: 11px 20px; outline: none; }
.search-form input:focus { border-color: var(--primary); }

/* القائمة الجانبية */
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(30, 14, 16, .55); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(410px, 82%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
html[dir="ltr"] .drawer { transform: translateX(100%); }
.drawer-overlay.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; }
.drawer-brand svg { width: 22px; height: 22px; }
.drawer-links { padding: 18px 26px; display: flex; flex-direction: column; }
.drawer-links a { text-decoration: none; padding: 18px 2px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
html[lang="en"] .drawer-links a { text-transform: uppercase; letter-spacing: .14em; font-size: 15px; }
.drawer-foot { margin-top: auto; padding: 22px 26px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.drawer-foot a { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.drawer-foot a svg { width: 22px; height: 22px; }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 38px; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--primary); color: var(--cream); font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(54, 27, 31, .6); }
.btn:hover .arr { transform: translateX(-3px); }
html[dir="ltr"] .btn:hover .arr { transform: scaleX(-1) translateX(-3px); }
.btn .arr { transition: transform .25s; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-cream { background: var(--cream); color: var(--primary); border-color: var(--cream); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--cream); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 20px; font-size: 14px; gap: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.link-arrow:hover .arr { transform: translateX(-3px); }

/* ---------- البانر ---------- */
.hero { position: relative; background: var(--primary); color: var(--cream); overflow: hidden; text-align: center; }
.hero-inner { position: relative; z-index: 1; padding-block: 64px 30px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.12; margin: 0 auto 16px; max-width: 900px; white-space: pre-line; }
.hero p { font-size: clamp(16px, 2vw, 19px); opacity: .75; margin: 0 auto 30px; max-width: 560px; }
.hero-art { position: relative; z-index: 1; width: min(440px, 88%); margin: 10px auto 0; color: var(--cream); --gap: var(--primary); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--cream); }
.waves path { vector-effect: non-scaling-stroke; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 10; opacity: .55; animation: dash 30s linear infinite; }
.waves path:nth-child(2) { stroke-dasharray: 6 9; opacity: .4; animation-duration: 40s; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.sparkle { position: absolute; color: var(--cream); opacity: .5; width: 16px; height: 16px; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; transform: scale(.7); } }

/* الطابعة */
.printer { width: 100%; height: auto; display: block; overflow: visible; }
.printer .ln { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.printer .layer { fill: currentColor; stroke: var(--gap); stroke-width: 1.2; }
.printer .spool-ring { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
.printer .glow { fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- المزايا ---------- */
.features { padding-block: 44px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding-inline: 22px; }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature-icon { flex: none; color: var(--primary); padding-top: 2px; }
.feature-icon svg { width: 30px; height: 30px; }
.feature strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
html[lang="en"] .feature strong { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.feature span { font-size: 15px; color: var(--muted); }

/* ---------- الأقسام ---------- */
.section { padding-block: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.section-head h2, .page-title { font-size: clamp(32px, 4.4vw, 48px); margin: 0; line-height: 1.15; }
.page-head { padding-block: 48px 14px; }
.page-head p { color: var(--muted); margin: 8px 0 0; }

/* ---------- البطاقات ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -24px rgba(54, 27, 31, .55); }
.card-media { position: relative; display: block; aspect-ratio: 1 / .88; background: var(--section); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: var(--img-fit, cover); transition: transform .6s, opacity .4s; }
.fit-contain .card-media img { padding: 8%; }
.card:hover .card-media img:first-child { transform: scale(1.04); }
.card-media .img-2 { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .img-2 { opacity: 1; }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; background: var(--primary); color: var(--cream); font-size: 12.5px; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
html[lang="en"] .badge { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.badge.light { inset-inline-start: auto; inset-inline-end: 14px; background: var(--card); color: var(--primary); border: 1px solid var(--line); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 12.5px; color: var(--muted); font-weight: 600; }
html[lang="en"] .card-brand { text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.35; text-decoration: none; margin-top: 4px; }
.card-sub { color: var(--muted); font-size: 15px; }
.card-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 18px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; }
.price .now-sale { color: #9a3b2a; }
.card-status { color: var(--muted); font-size: 15px; }
.add-link { border: none; background: none; padding: 0; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; color: var(--primary); }
.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; color: #c8b7a8; }
.placeholder-img svg { width: 30%; height: 30%; }

/* حالة فارغة */
.empty-state { text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 44px 24px; background: var(--card); grid-column: 1 / -1; }
.empty-state .mini-printer { width: 150px; margin: 0 auto 14px; color: var(--primary); --gap: var(--card); }
.empty-state h3 { font-size: 26px; margin: 0 0 6px; }
.empty-state p { color: var(--muted); margin: 0 auto 22px; max-width: 420px; }

/* التصنيفات */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cat-tile { text-decoration: none; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s; }
.cat-tile:hover { transform: translateY(-4px); }
.cat-media { aspect-ratio: 1 / .85; background: var(--section); overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-family: var(--display); font-weight: 700; font-size: 18px; }

/* ---------- الشريط الترويجي ---------- */
.promo { position: relative; background: var(--primary); color: var(--cream); overflow: hidden; }
.promo-inner { position: relative; z-index: 1; padding-block: 72px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.promo h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.15; margin: 0 0 14px; }
.promo p { opacity: .75; font-size: 18px; margin: 0 0 30px; max-width: 460px; }
.promo-art { width: min(300px, 70%); justify-self: center; color: var(--cream); }

/* ---------- من نحن ---------- */
.about h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; margin: 0 0 22px; max-width: 760px; }
.about p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 32px; white-space: pre-line; }
.about-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; max-height: 460px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-band { margin-top: 64px; position: relative; padding: 26px 0; }
.brand-band::before, .brand-band::after { content: ""; position: absolute; inset-inline: 0; height: 22px; background: repeating-linear-gradient(to bottom, var(--primary) 0 3px, transparent 3px 6px); }
.brand-band::before { top: 0; }
.brand-band::after { bottom: 0; }
.brand-band-inner { border: 2px solid var(--primary); border-radius: 18px; margin-inline: 14px; padding: 34px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-band-inner img { max-height: 120px; width: auto; }
.brand-band-name { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 12vw, 120px); line-height: 1; color: var(--primary); }
.brand-band-tag { display: flex; align-items: center; gap: 14px; color: var(--primary); font-size: 16px; }
.brand-band-tag::before, .brand-band-tag::after { content: ""; width: 60px; height: 1.5px; background: currentColor; }

/* ---------- الفلاتر والنماذج ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--card); padding: 7px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: .2s; }
.chip.active, .chip:hover { background: var(--primary); color: var(--cream); border-color: var(--primary); }
.select, .input, .textarea { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 16px; outline: none; width: 100%; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--primary); }
.select.inline { width: auto; }
.textarea { min-height: 120px; resize: vertical; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* صفحة المنتج */
.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-block: 44px 80px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--section); border: 1.5px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: var(--img-fit, cover); }
.fit-contain .gallery-main img { padding: 6%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 78px; height: 78px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--section); }
.thumbs button.active { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { position: sticky; top: 110px; }
.pd-cat { color: var(--muted); font-size: 14px; text-decoration: none; font-weight: 600; }
.pd-info h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 4px 0 12px; line-height: 1.2; }
.pd-info .price { font-size: 24px; margin-bottom: 22px; }
.opt-label { font-weight: 700; font-size: 14px; margin: 18px 0 8px; }
.opt-label span { font-weight: 400; color: var(--muted); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 18px; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.opt.active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.opt .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.qty-row { display: flex; gap: 12px; align-items: stretch; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 42px; height: 48px; border: none; background: none; font-size: 18px; }
.qty input { width: 40px; text-align: center; border: none; background: none; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-row .btn { flex: 1; }
.stock-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.pd-desc { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); white-space: pre-line; color: var(--muted); }

/* السلة */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.cart-line { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 100px; height: 100px; border-radius: 16px; overflow: hidden; background: var(--section); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { margin: 0; font-size: 18px; }
.cart-line small { color: var(--muted); display: block; }
.cart-line .qty button { height: 36px; width: 36px; }
.link-btn { background: none; border: none; color: var(--muted); text-decoration: underline; font-size: 14px; padding: 0; }
.summary { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 110px; }
.summary h2 { margin: 0 0 16px; font-size: 24px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { font-weight: 800; font-size: 19px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.hint { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field label .req { color: #9a3b2a; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.pay-opt input { margin-top: 5px; accent-color: var(--primary); }
.pay-opt small { color: var(--muted); display: block; }
.bank-box { background: var(--section); border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 10px; }
.bank-box div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.msg { padding: 12px 16px; border-radius: 12px; margin-top: 14px; font-weight: 500; }
.msg.ok { background: #e7efdf; color: #3e5a2c; }
.msg.err { background: #f5ddd5; color: #8a2f1e; }
.card-box { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; }
.success-box { text-align: center; padding: 50px 24px; }
.success-box .big { font-size: 30px; font-weight: 800; letter-spacing: 1px; margin: 8px 0 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .feature-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--section); display: grid; place-items: center; padding: 0; }
.contact-list .feature-icon svg { width: 22px; height: 22px; }
.prose { white-space: pre-line; padding-bottom: 80px; }
.status-pill { display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--section); font-weight: 700; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--primary); color: var(--cream); padding-block: 60px 26px; }
.site-footer a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { margin: 0 0 18px; font-family: var(--display); font-size: 19px; }
html[lang="en"] .site-footer h4 { text-transform: uppercase; letter-spacing: .14em; font-size: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 16px; }
.footer-logo { font-family: var(--display); font-size: 30px; font-weight: 700; display: block; margin-bottom: 14px; }
.footer-logo img { max-height: 60px; width: auto; filter: brightness(0) invert(.93); }
.site-footer p { opacity: .75; margin: 0; max-width: 340px; }
.socials { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.socials a { opacity: .85; display: grid; place-items: center; }
.socials svg { width: 24px; height: 24px; }
.footer-bottom { border-top: 1px solid rgba(244, 235, 225, .14); padding-top: 24px; text-align: center; font-size: 14.5px; opacity: .7; }

/* ---------- تنبيه ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; transform: translate(-50%, 160%); background: var(--primary); color: var(--cream); padding: 13px 24px; border-radius: 999px; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { font-weight: 700; }
.setup-warning { background: #f5ddd5; color: #8a2f1e; padding: 10px 16px; text-align: center; font-size: 13.5px; }
.skeleton { background: linear-gradient(90deg, var(--section), var(--card), var(--section)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: 1 / 1.25; }
@keyframes sk { to { background-position: -200% 0; } }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.hero :focus-visible, .promo :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

/* ---------- التجاوب ---------- */
@media (max-width: 1024px) {
  .grid, .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(odd) { border-inline-start: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .hdr-icons .lang-btn { display: none; }
  .hdr { min-height: 76px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rail { grid-auto-columns: 74%; margin-inline-end: -28px; padding-inline-end: 28px; }
  .product-page, .cart-layout, .two-col, .promo-inner { grid-template-columns: 1fr; gap: 28px; }
  .promo-inner { padding-block: 60px 30px; }
  .pd-info, .summary { position: static; }
  .section { padding-block: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature { padding-inline: 14px; }
}
@media (max-width: 520px) {
  .container { padding-inline: 20px; }
  .rail { margin-inline-end: -20px; padding-inline-end: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .icon-btn { width: 40px; height: 40px; }
  .lang-btn { padding-inline: 6px; }
  .logo-text { font-size: 27px; }
  .grid .card-body { padding: 14px; }
  .grid .card-title { font-size: 16px; }
  .feature { flex-direction: row; gap: 12px; padding-inline: 10px; }
  .feature-icon svg { width: 26px; height: 26px; }
  .feature span { font-size: 14px; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line .thumb { width: 76px; height: 76px; }
  .cart-line .line-total { grid-column: 2; }
  .section-head h2 { font-size: 32px; }
  .brand-band-tag::before, .brand-band-tag::after { width: 28px; }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee { width: 100%; justify-content: center; }
  .marquee-group + .marquee-group { display: none; }
}
