/* =====================================================================
   تصميم المتجر
   ===================================================================== */
:root {
  --brand: #0d6e5b;
  --accent: #f4a300;
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 30%, #fff);
  --accent-dark: color-mix(in srgb, var(--accent) 85%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
  --ink: #17191e;
  --ink-2: #3c414c;
  --muted: #6b7180;
  --bg: #f7f6f2;
  --card: #ffffff;
  --line: #e8e5dd;
  --soft: #f1efe9;
  --danger: #d92d20;
  --success: #12a150;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; direction: rtl; text-align: right;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.ico-xl { width: 56px; height: 56px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 999px; padding: 11px 22px;
  font-weight: 700; font-size: 15px; line-height: 1.2; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #1c1605; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: var(--soft); }
.spinner {
  width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { min-height: 60vh; display: grid; place-items: center; color: var(--brand); }
.page-loading .spinner { width: 34px; height: 34px; border-width: 3px; }

/* ---------- الشريط العلوي والهيدر ---------- */
.preview-bar {
  background: #7c3aed; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600;
}
.preview-bar button { margin-inline-start: 8px; border: 0; background: #fff; color: #7c3aed; border-radius: 999px; padding: 3px 12px; font-weight: 700; }
.announce { background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce .ico { color: var(--accent); }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 20px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.logo-img { height: 44px; width: 44px; object-fit: contain; }
.logo-text b { color: var(--brand); font-weight: inherit; }
.logo-text.latin { font-family: 'Montserrat', 'Cairo', sans-serif; font-weight: 800; letter-spacing: -.01em; direction: ltr; }
.logo-light .logo-text b { color: var(--accent); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 999px; height: 44px; padding: 0 16px; font-weight: 700; color: var(--ink);
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  min-width: 22px; height: 22px; border-radius: 999px; background: var(--soft); color: var(--muted);
  font-size: 12.5px; display: grid; place-items: center; padding: 0 6px; transition: transform .2s;
}
.cart-count.show { background: var(--accent); color: #1c1605; }
.cart-count.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.secure-note { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 14px; }

/* ---------- الصفحة الرئيسية ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'%3E%3Crect x='26' y='26' width='28' height='28'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 120% at 90% 0%, color-mix(in srgb, var(--brand) 70%, #fff) 0%, var(--brand) 40%, var(--brand-dark) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 16px 72px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.hero-kicker .ico { color: var(--accent); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; opacity: .9; max-width: 520px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-ctas .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; }
.hero-stats span { font-size: 13.5px; opacity: .8; }
.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-visual a { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); transition: transform .3s; background: #fff; }
.hero-visual a:hover { transform: translateY(-4px); }
.hero-visual a:first-child { grid-row: span 2; }
.hero-visual a:first-child img { height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; bottom: -14px; right: -10px; background: #fff; color: var(--ink); border-radius: 16px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px;
}
.hero-float .ico { color: var(--brand); width: 30px; height: 30px; background: var(--brand-soft); border-radius: 10px; padding: 5px; }
.hero-float small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { color: var(--muted); font-size: 13px; }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { color: var(--brand); font-weight: 800; font-size: 14px; letter-spacing: .3px; }

.shop-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box .ico { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-right: 44px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 16px;
  font-weight: 700; font-size: 14px; transition: all .2s;
}
.chip:hover { border-color: var(--ink-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort-select { width: auto; min-width: 170px; }

/* ---------- كارت المنتج ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.tag-sale { background: var(--danger); color: #fff; }
.p-out { position: absolute; inset: auto 0 0 0; background: rgba(23, 25, 30, .8); color: #fff; text-align: center; padding: 6px; font-weight: 700; font-size: 14px; }
.p-card.is-out .p-media img { filter: grayscale(.6); opacity: .8; }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.p-name { font-size: 16.5px; margin: 0; font-weight: 700; }
.p-name a:hover { color: var(--brand); }
.p-dots { display: flex; gap: 5px; align-items: center; }
.p-dots span { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.p-dots em { font-style: normal; font-size: 12px; color: var(--muted); }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.p-price { display: flex; flex-direction: column; line-height: 1.2; }
.p-price .now { font-weight: 800; font-size: 18px; color: var(--brand); }
.p-price s { color: var(--muted); font-size: 13px; }
.empty-state { text-align: center; padding: 50px 16px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- كيفاش تطلب ---------- */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 22px; font-size: 44px;
  font-weight: 800; color: color-mix(in srgb, var(--brand) 16%, transparent); line-height: 1;
}
.step-card .ico { width: 48px; height: 48px; padding: 11px; background: var(--brand); color: #fff; border-radius: 14px; margin-bottom: 14px; }
.step-card h3 { font-size: 18px; }
.step-card p { color: var(--muted); margin: 0; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--brand); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

.cta-band {
  background: var(--ink); color: #fff; border-radius: 26px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .8; }

/* ---------- الفوتر ---------- */
.site-footer { background: #121418; color: #d5d8de; padding: 52px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a, .site-footer .fline { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #c0c4cc; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.logo-light { color: #fff; margin-bottom: 12px; }
.muted-light { color: #9ba1ab; font-size: 14.5px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); justify-content: center; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 20px; font-size: 13.5px; color: #8b919b; text-align: center; }

/* ---------- زر واتساب ---------- */
.wa-float {
  position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31, 168, 85, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- السلة الجانبية ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(17, 19, 23, 0); pointer-events: none; transition: background .25s; }
.drawer-wrap.open { background: rgba(17, 19, 23, .45); pointer-events: auto; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.drawer-wrap.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 19px; display: flex; gap: 8px; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.drawer-foot:empty { display: none; }
.empty-cart { text-align: center; padding: 50px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.free-ship { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--brand-dark); }
.free-ship .ico { color: var(--success); }
.progress { height: 7px; background: rgba(0, 0, 0, .08); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 700; font-size: 15px; display: block; line-height: 1.35; }
.cart-opts { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.cart-bundle { font-size: 12.5px; color: var(--success); font-weight: 700; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cart-price { font-weight: 800; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cart-price s { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.cart-remove { width: 34px; height: 34px; color: var(--muted); }
.cart-remove:hover { color: var(--danger); background: #fdecea; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; }
.sum-row.total { font-size: 19px; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.sum-row.save { color: var(--success); font-weight: 700; }

/* ---------- عداد الكمية ---------- */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--soft); }
.qty span, .qty input { min-width: 36px; text-align: center; font-weight: 800; border: 0; width: 44px; background: transparent; }
.qty-sm button { width: 32px; height: 32px; }
.qty-sm span { min-width: 26px; width: auto; font-size: 14px; }

/* ---------- الحقول ---------- */
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.field label b { color: var(--danger); }
.input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.input.invalid { border-color: var(--danger); background: #fffafa; }
input[dir="ltr"].input { text-align: right; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7180' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
textarea.input { min-height: 100px; resize: vertical; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-full { grid-column: 1 / -1; }

/* ---------- صفحة المنتج ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 50px; }
.gallery { position: sticky; top: 88px; }
.gallery-main { position: relative; border-radius: 24px; overflow: hidden; background: var(--soft); aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main .p-tags { top: 16px; right: 16px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button {
  flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--soft);
}
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.pdp-cat { color: var(--brand); font-weight: 700; font-size: 14px; }
.price-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.price-block .now { font-size: 30px; font-weight: 800; color: var(--brand); }
.price-block s { color: var(--muted); font-size: 18px; }
.save-pill { background: #fdecea; color: var(--danger); font-weight: 800; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.stock-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.stock-line.low { color: #b54708; }
.stock-line.low .dot { background: #f79009; box-shadow: 0 0 0 4px rgba(247, 144, 9, .2); animation: pulse 1.6s infinite; }
.stock-line.out { color: var(--danger); }
.stock-line.out .dot { background: var(--danger); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 144, 9, .05); } }
.short-desc { color: var(--ink-2); }
.opt-group { margin: 18px 0; }
.opt-label { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.opt-label span.val { color: var(--muted); font-weight: 600; }
.opt-label .link-btn { margin-inline-start: auto; }
.link-btn { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line);
  position: relative; transition: box-shadow .2s, transform .15s; padding: 0;
}
.swatch:hover { transform: scale(1.06); }
.swatch.active { box-shadow: 0 0 0 2.5px var(--ink); }
.swatch.active::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translate(1px, -1px); filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6));
}
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 54px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 800; color: var(--ink); transition: all .15s; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.size-btn small { font-weight: 600; font-size: 11px; color: var(--muted); }
.size-btn:hover { border-color: var(--ink-2); }
.size-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-btn.active small { color: rgba(255, 255, 255, .75); }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.opt-card {
  text-align: right; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; position: relative;
  transition: all .15s; display: flex; flex-direction: column; gap: 2px; color: var(--ink);
}
.opt-card:hover { border-color: var(--ink-2); }
.opt-card strong { font-size: 15px; }
.opt-card small { color: var(--muted); font-size: 12.5px; }
.opt-card .extra { font-weight: 800; font-size: 13.5px; color: var(--brand); }
.opt-card.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt-card .ribbon { position: absolute; top: -10px; left: 10px; background: var(--accent); color: #1c1605; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.order-box {
  background: #fff; border: 2px solid var(--brand); border-radius: 22px; padding: 22px; margin-top: 22px;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--brand) 12%, transparent);
}
.order-box-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.order-box-head .ico { width: 38px; height: 38px; padding: 8px; background: var(--brand); color: #fff; border-radius: 12px; }
.order-box-head h2 { font-size: 20px; margin: 0; }
.order-box > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.order-summary { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 16px 0; font-size: 14.5px; }
.order-summary .sum-row.total { font-size: 18px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mini-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini-trust div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 10px 6px; }
.mini-trust .ico { color: var(--brand); width: 22px; height: 22px; }

.tabs { margin-top: 10px; }
.tab-btns { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btns button { border: 0; background: none; padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 15px; }
.tab-btns button.active { color: var(--ink); border-bottom-color: var(--brand); }
.tab-panel { padding: 20px 0; color: var(--ink-2); display: none; }
.tab-panel.active { display: block; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature-list li { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.feature-list .ico { color: var(--success); }

.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .25s;
}
.sticky-buy.show { transform: none; }
.sticky-buy .sb-price { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-buy .sb-price small { color: var(--muted); font-size: 12px; }
.sticky-buy .sb-price strong { font-size: 18px; color: var(--brand); }
.sticky-buy .btn { flex: 1; }

/* جدول المقاسات */
.size-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.size-table th, .size-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: center; }
.size-table th { background: var(--soft); font-weight: 800; }

/* ---------- النوافذ المنبثقة ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 120; background: rgba(17, 19, 23, 0); display: grid; place-items: center; padding: 16px; transition: background .2s; }
.modal-wrap.open { background: rgba(17, 19, 23, .5); }
.modal { background: #fff; border-radius: 22px; width: min(560px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: all .2s; }
.modal-wrap.open .modal { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px; }

/* ---------- الرسائل ---------- */
#toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: tin .25s; transition: opacity .4s, transform .4s;
}
.toast .ico { color: #4ade80; }
.toast.error { background: var(--danger); }
.toast.error .ico { color: #fff; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- صفحة إتمام الطلب ---------- */
.checkout-steps { display: flex; justify-content: center; gap: 10px; padding: 26px 0 8px; flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.checkout-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 13px; }
.checkout-steps .done b, .checkout-steps .cur b { background: var(--brand); color: #fff; }
.checkout-steps .cur { color: var(--ink); }
.checkout-steps i { width: 30px; height: 2px; background: var(--line); align-self: center; }
.checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 20px 0 60px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.panel h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.panel h2 .ico { color: var(--brand); }
.summary-panel { position: sticky; top: 88px; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row .input { flex: 1; text-transform: uppercase; }
.coupon-msg { font-size: 13.5px; font-weight: 700; margin-top: -6px; margin-bottom: 8px; }
.coupon-msg.ok { color: var(--success); }
.coupon-msg.err { color: var(--danger); }
.cod-box { display: flex; gap: 12px; align-items: center; background: var(--brand-soft); border: 1.5px solid var(--brand-line); border-radius: 14px; padding: 14px; margin: 18px 0; }
.cod-box .ico { width: 36px; height: 36px; color: var(--brand); }
.cod-box strong { display: block; }
.cod-box span { color: var(--muted); font-size: 13.5px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 4px 0 14px; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- صفحة الشكر ---------- */
.thanks { max-width: 680px; margin: 40px auto 70px; }
.thanks-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 28px; text-align: center; box-shadow: var(--shadow); }
.thanks-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; background: color-mix(in srgb, var(--success) 14%, #fff); color: var(--success); display: grid; place-items: center; }
.thanks-icon .ico { width: 44px; height: 44px; stroke-width: 2.5; }
.thanks-icon.wait { background: #e9f9ef; color: #1fa855; }
.order-id { display: inline-block; background: var(--soft); border: 1px dashed var(--ink-2); border-radius: 12px; padding: 8px 18px; font-weight: 800; font-size: 18px; letter-spacing: 1px; margin: 6px 0 16px; direction: ltr; }
.thanks-details { text-align: right; background: var(--bg); border-radius: 18px; padding: 18px; margin: 22px 0; }
.thanks-details h3 { font-size: 16px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.timeline div { background: var(--bg); border-radius: 14px; padding: 14px 10px; font-size: 13.5px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.timeline .ico { color: var(--brand); width: 26px; height: 26px; }
.thanks-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- الاستجابة للشاشات ---------- */
@media (max-width: 1024px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 68px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: inline-grid; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 16px 56px; gap: 34px; }
  .hero-visual { max-width: 520px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary-panel { position: static; order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
  body.has-sticky .wa-float { bottom: 88px; }
  body.has-sticky .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .p-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-body { padding: 10px 12px 12px; }
  .p-name { font-size: 14.5px; }
  .p-price .now { font-size: 16px; }
  .p-foot .btn { width: 100%; }
  .section { padding: 44px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-btn .cart-label { display: none; }
  .cta-band { padding: 28px 22px; }
  .order-box { padding: 18px 16px; }
  .panel { padding: 18px 16px; }
  .trust-item .ico { width: 38px; height: 38px; padding: 8px; }
  .trust-item strong { font-size: 14px; }
  .trust-item span { font-size: 12px; }
  .hero-stats { gap: 20px; }
  .shop-tools .sort-select { flex: 1; }
  .header-inner { height: 62px; }
  .main-nav { top: 62px; }
  .logo { font-size: 19px; }
  .timeline { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
