/* =========================================================
   أبو صالح — تصميم المتجر
   ========================================================= */
:root {
  --navy: #0f1a2b;
  --navy-2: #182840;
  --navy-3: #22385a;
  --red: #d7261e;
  --red-2: #b51c15;
  --red-soft: #fdecea;
  --gold: #f4a81d;
  --gold-soft: #fff4dc;
  --green: #15803d;
  --green-soft: #e7f6ec;
  --wa: #1fae53;
  --wa-2: #178f43;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #121b29;
  --muted: #667085;
  --line: #e4e8ee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 26, 43, .05), 0 8px 24px rgba(15, 26, 43, .06);
  --shadow-lg: 0 18px 50px rgba(15, 26, 43, .16);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; }

.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic-xl { width: 56px; height: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  transition: background .18s, transform .1s, box-shadow .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding-inline: 11px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(215, 38, 30, .25); }
.btn-primary:hover { background: var(--red-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(31, 174, 83, .22); }
.btn-wa:hover { background: var(--wa-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f6; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: #eef1f6; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(127, 127, 127, .12); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; line-height: 1.6; }
.badge-red { background: var(--red); color: #fff; }
.badge-dark { background: var(--navy); color: #fff; }
.badge-gold { background: var(--gold); color: var(--navy); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #eef2f7; color: var(--navy-3); font-size: .85rem; font-weight: 700; }
.pill .ic { width: 16px; height: 16px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--red); color: #fff; font-size: .86rem; font-weight: 700; text-align: center; padding: 7px 0; }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 20px rgba(0, 0, 0, .18); }
.header-main { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 52px; height: auto; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.3rem; font-weight: 900; }
.brand-text small { font-size: .78rem; color: #b7c3d6; font-weight: 600; }
.search { flex: 1; display: flex; max-width: 560px; margin-inline: auto; background: #fff; border-radius: 12px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; outline: none; color: var(--text); background: transparent; }
.search button { border: 0; background: var(--red); color: #fff; padding: 0 16px; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-wa { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.hdr-wa .ic { width: 28px; height: 28px; color: #4ade80; }
.hdr-wa span { display: flex; flex-direction: column; line-height: 1.2; }
.hdr-wa small { font-size: .72rem; color: #b7c3d6; }
.hdr-wa b { font-size: .92rem; }
.cart-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--red); color: #fff; }
.cart-btn .ic { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--navy); }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; color: #fff; }
.main-nav { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.main-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav .container::-webkit-scrollbar { display: none; }
.main-nav a { padding: 11px 14px; font-weight: 700; font-size: .93rem; color: #d3dcea; white-space: nowrap; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; border-bottom-color: var(--red); }

/* ---------- Drawers ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(9, 15, 26, .55); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); }
.drawer-right .drawer-panel { right: 0; transform: translateX(100%); }
.drawer-left .drawer-panel { left: 0; transform: translateX(-100%); }
.drawer.open { pointer-events: auto; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head strong { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
#mobileNav .drawer-panel { padding-bottom: 18px; }
#mobileNav .btn-wa { margin: auto 18px 0; width: auto; }
.search-mobile { margin: 14px 18px; border: 1.5px solid var(--line); flex: none; }
.mnav { display: flex; flex-direction: column; padding: 0 10px; overflow-y: auto; }
.mnav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-weight: 700; }
.mnav a:hover { background: var(--bg); }
.mnav a .ic { color: var(--red); }
.mnav small { margin-inline-start: auto; background: var(--bg); padding: 0 8px; border-radius: 999px; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* cart drawer */
.cart-items { flex: 1; overflow-y: auto; padding: 8px 18px; }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.citem img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.citem-name { font-weight: 700; font-size: .93rem; line-height: 1.45; display: block; }
.citem-opt { font-size: .8rem; color: var(--muted); }
.citem-price { font-weight: 800; color: var(--red); font-size: .95rem; }
.citem-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.citem-remove { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 8px; }
.citem-remove:hover { color: var(--red); background: var(--red-soft); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); padding: 30px; }
.cart-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fbfcfd; }
.cart-foot p { margin: 0; display: flex; align-items: center; gap: 6px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.cart-total strong { font-size: 1.35rem; font-weight: 900; }

/* qty */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.qty button { border: 0; background: none; width: 40px; height: 46px; display: grid; place-items: center; color: var(--navy); }
.qty button:hover { background: var(--bg); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 800; font-size: 1.05rem; outline: none; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 30px; height: 32px; }
.qty-sm button .ic { width: 15px; height: 15px; }
.qty-sm input { width: 30px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy) var(--hero) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(10, 17, 30, .94) 0%, rgba(10, 17, 30, .78) 45%, rgba(10, 17, 30, .35) 100%); }
.hero-inner { min-height: 520px; display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-sm .hero-inner { min-height: 380px; }
.hero-text { max-width: 620px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; margin-bottom: 14px; }
.hero p { font-size: 1.12rem; color: #d7deea; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(244, 168, 29, .14); color: var(--gold); font-weight: 800; font-size: .88rem; margin-bottom: 16px; border: 1px solid rgba(244, 168, 29, .35); }
.eyebrow-dark { background: var(--red-soft); color: var(--red); border-color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-models { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #b7c3d6; font-weight: 700; font-size: .9rem; }
.hero-models b { padding: 2px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Trust ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 6px; }
.trust-item > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.trust-item strong { display: block; font-size: .98rem; }
.trust-item span { font-size: .84rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-tight { padding: 28px 0 60px; }
.section-soft { background: #fff; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-head p { color: #b7c3d6; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.section-head h2 .ic { color: var(--gold); width: 28px; height: 28px; }
.section-head p { margin: 0; color: var(--muted); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 800; white-space: nowrap; }
.link-more .ic { width: 18px; height: 18px; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold); margin-bottom: 6px; }
.cat-ic .ic { width: 28px; height: 28px; }
.cat-card strong { font-size: 1rem; }
.cat-card small { color: var(--muted); }

/* offers */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-card { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.offer-media { aspect-ratio: 16/9; overflow: hidden; background: #0a1220; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.offer-card:hover .offer-media img { transform: scale(1.05); }
.offer-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.offer-body h3 { margin: 0; font-size: 1.12rem; }
.offer-body p { margin: 0; color: #b7c3d6; font-size: .92rem; }
.offer-body .btn { margin-top: auto; }

/* price */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong { color: var(--red); font-size: 1.2rem; font-weight: 900; }
.price del { color: var(--muted); font-size: .9rem; }
.price-light strong { color: var(--gold); font-size: 1.35rem; }
.price-light del { color: #8d9ab0; }
.save { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .8rem; padding: 2px 10px; border-radius: 999px; }
.price-light .save { background: rgba(74, 222, 128, .14); color: #4ade80; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.pcard-media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; display: block; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .35s; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.pcard-out { position: absolute; inset: auto 10px 10px; background: rgba(15, 26, 43, .85); color: #fff; text-align: center; padding: 5px; border-radius: 10px; font-weight: 800; font-size: .85rem; }
.pcard.is-out .pcard-media img { filter: grayscale(.55); opacity: .75; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.pcard-cat { color: var(--muted); font-size: .8rem; font-weight: 700; }
.pcard-title { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.pcard-title a:hover { color: var(--red); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--green); font-weight: 700; }
.pcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pcard-meta .ic { width: 15px; height: 15px; }
.pcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard-actions .btn:first-child { flex: 1; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.about-text p { color: #3b4658; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.about-points span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.about-points .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.about-media { position: relative; }
.about-media img { border-radius: 22px; width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-card { position: absolute; bottom: -18px; right: -18px; background: #fff; border-radius: 16px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); }
.about-card > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--red); color: #fff; }
.about-card strong { display: block; }
.about-card span { font-size: .85rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red-2), var(--red) 60%, #e8461f); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.3rem, 2.6vw, 1.85rem); margin-bottom: 6px; }
.cta-inner p { margin: 0; color: #ffe3e0; max-width: 640px; display: flex; gap: 6px; align-items: center; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: stretch; }
.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row p { margin: 2px 0 0; }
.ci { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.ci-wa { background: var(--green-soft); color: var(--wa); }
.phones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.phones a { padding: 4px 12px; border-radius: 8px; background: var(--bg); font-weight: 700; }
.phones a:hover { background: var(--red-soft); color: var(--red); }
.map { border-radius: 20px; overflow: hidden; min-height: 360px; box-shadow: var(--shadow); background: #dde3ea; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2cddd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 50px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.brand-light { color: #fff; margin-bottom: 14px; }
.f-about p { font-size: .92rem; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.f-links a:hover { color: #fff; }
.f-phones a { display: inline-flex; align-items: center; gap: 8px; }
.f-phones .ic { width: 16px; height: 16px; color: var(--gold); }
.f-address { display: flex; gap: 8px; font-size: .93rem; }
.f-address .ic { color: var(--gold); margin-top: 3px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .86rem; text-align: center; }

/* floating WA */
.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31, 174, 83, .45); animation: pulse 2.4s infinite; }
.wa-float .ic { width: 30px; height: 30px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 28px rgba(31, 174, 83, .45), 0 0 0 0 rgba(31, 174, 83, .45); } 50% { box-shadow: 0 10px 28px rgba(31, 174, 83, .45), 0 0 0 14px rgba(31, 174, 83, 0); } }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility .3s; font-weight: 700; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .ic { color: #4ade80; }
.toast a { color: var(--gold); text-decoration: underline; white-space: nowrap; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #fff; padding: 26px 0 30px; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.page-hero p { margin: 6px 0 0; color: #c2cddd; }
.page-hero .breadcrumb { color: #9fb0c8; }
.page-hero .breadcrumb b { color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--red); }
.page-hero .breadcrumb a:hover { color: #fff; }
.breadcrumb b { color: var(--text); font-weight: 700; }

/* ---------- Store ---------- */
.store-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.store-layout > *, .product-layout > *, .cart-page > *, .checkout > *, .about > *, .contact > *, .maint > * { min-width: 0; }
.filters { position: sticky; top: 140px; display: grid; gap: 14px; }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-box h4 { font-size: 1rem; margin-bottom: 10px; }
.filter-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: .94rem; }
.filter-link .ic { width: 18px; height: 18px; color: var(--muted); }
.filter-link small { margin-inline-start: auto; color: var(--muted); background: var(--bg); padding: 0 8px; border-radius: 999px; }
.filter-link:hover { background: var(--bg); }
.filter-link.active { background: var(--red-soft); color: var(--red); }
.filter-link.active .ic { color: var(--red); }
.checkbox { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cbd3de; display: grid; place-items: center; }
.checkbox .ic { width: 14px; height: 14px; opacity: 0; }
.checkbox.on { background: var(--red); border-color: var(--red); color: #fff; }
.checkbox.on .ic { opacity: 1; }
.filter-help { text-align: center; background: linear-gradient(160deg, #fff, var(--gold-soft)); }
.filter-help > .ic { width: 40px; height: 40px; color: var(--gold); }
.filter-help strong { display: block; margin: 6px 0 2px; }
.filter-help p { font-size: .88rem; color: var(--muted); }
.store-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.store-toolbar > .muted { font-weight: 700; white-space: nowrap; }
.sort-form { margin-inline-start: auto; }
.sort-form select { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; font-weight: 600; }
.chips-scroll { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state h3 { color: var(--text); margin: 8px 0 0; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; margin-top: 8px; }
.gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 12px; cursor: zoom-in; transition: opacity .2s; }
.zoom-btn { position: absolute; bottom: 12px; left: 12px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: grid; place-items: center; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 82px; height: 82px; border: 2px solid var(--line); border-radius: 12px; padding: 3px; background: #fff; }
.gallery-thumbs button.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo-cat { display: inline-block; color: var(--red); font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.pinfo h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 900; margin-bottom: 14px; }
.pinfo-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.pinfo-price strong { font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1.2; }
.pinfo-price del { color: var(--muted); font-size: 1.1rem; }
.pinfo-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stock { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { background: var(--green-soft); color: var(--green); }
.stock-out { background: var(--red-soft); color: var(--red); }
.pinfo-short { color: #3b4658; font-size: 1.02rem; }
.key-specs { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.key-specs h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 10px; color: var(--red); }
.key-specs ul { list-style: none; margin: 0; padding: 0; }
.key-specs li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.key-specs li:last-child { border-bottom: 0; }
.key-specs li span { color: var(--muted); }
.key-specs li b { text-align: left; }
.key-specs .link-more { margin-top: 8px; font-size: .9rem; }
.buy-box { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: #fff; border: 2px solid var(--navy); box-shadow: var(--shadow); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-group { display: grid; gap: 8px; }
.opt-label { font-weight: 800; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; background: #fff; }
.opt input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.opt input:focus-visible + span { outline: 2px solid var(--navy); }
.out-box { display: flex; gap: 12px; align-items: flex-start; background: var(--red-soft); color: var(--red-2); padding: 14px; border-radius: 12px; }
.out-box p { margin: 0; color: #7a2a24; font-size: .92rem; }
.pmeta { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.pmeta span { color: var(--muted); }
.pmeta a { color: var(--red); font-weight: 700; }
.ptrust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.ptrust div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.ptrust .ic { color: var(--red); width: 24px; height: 24px; }

.tabs { margin-top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tab-list { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; background: #fafbfc; }
.tab-list button { border: 0; background: none; padding: 16px 24px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-list button.active { color: var(--red); border-bottom-color: var(--red); background: #fff; }
.tab-panel { display: none; padding: 26px; }
.tab-panel.active { display: block; }
.rich { font-size: 1.02rem; color: #2b3647; }
.rich h3 { font-size: 1.15rem; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; color: var(--navy); }
.rich h3 .ic { color: var(--red); }
.check-list, .inc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-list li, .inc-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-top: 3px; }
.inc-list .ic { color: var(--red); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two-col h3 { margin-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; background: #f7f9fb; color: var(--navy-3); font-weight: 800; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.related { margin-top: 50px; }

.sticky-buy { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 9, 16, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Cart / Checkout ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 10px; flex-wrap: wrap; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; width: 34px; height: 2px; background: var(--line); margin-inline-start: 4px; }
.steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e7ebf0; font-weight: 800; }
.steps span .ic { width: 16px; height: 16px; }
.steps .active { color: var(--navy); }
.steps .active span { background: var(--red); color: #fff; }
.steps .done span { background: var(--green); color: #fff; }
.cart-page, .checkout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-table { padding: 8px 20px; }
.crow { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow img { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.crow-name { font-weight: 800; line-height: 1.5; }
.crow-name:hover { color: var(--red); }
.crow-sub { font-size: .85rem; color: var(--muted); }
.crow-total { font-weight: 900; min-width: 110px; text-align: left; }
.out-tag { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--red); background: var(--red-soft); padding: 1px 8px; border-radius: 999px; }
.summary { padding: 22px; position: sticky; top: 140px; display: grid; gap: 12px; }
.summary h3 { margin: 0 0 4px; font-size: 1.2rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; }
.sum-row span { color: var(--muted); }
.sum-total { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 1.15rem; }
.sum-total span { color: var(--text); font-weight: 800; }
.sum-total b { color: var(--red); font-size: 1.4rem; font-weight: 900; }
.sum-trust { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: var(--muted); }
.sum-trust span { display: flex; align-items: center; gap: 6px; }
.sum-trust .ic { width: 17px; height: 17px; color: var(--green); }
.sum-items { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sitem { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.sitem img { width: 54px; height: 54px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.sitem b { display: block; line-height: 1.4; }
.sitem small { color: var(--muted); }
.checkout-form { padding: 24px; }
.checkout-form h3 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field span { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 26, 43, .08); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.err { color: var(--red); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pay-method { margin-top: 20px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--green); background: var(--green-soft); }
.pay-method strong { display: flex; align-items: center; gap: 6px; }
.pay-method small { display: block; color: #3b4658; margin-top: 2px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--green); flex: none; margin-top: 4px; position: relative; }
.radio.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.alert { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 16px; align-items: flex-start; }
.alert-error { background: var(--red-soft); color: var(--red-2); }
.alert-warn { background: var(--gold-soft); color: #8a5a00; margin: 0; font-size: .9rem; }
.loading { padding: 30px; text-align: center; color: var(--muted); }

.success-card { padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.success-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 8px; animation: pop .5s; }
.success-ic .ic { width: 44px; height: 44px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.order-no { font-size: 1.3rem; color: var(--red); letter-spacing: 1px; }
.order-recap { width: 100%; text-align: right; margin: 18px 0 8px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.recap-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.recap-row img { width: 56px; height: 56px; object-fit: contain; background: var(--bg); border-radius: 10px; }
.recap-row small { display: block; color: var(--muted); }

/* ---------- Maintenance ---------- */
.maint { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.maint-types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.mt-card > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 6px; }
.mt-card span { color: var(--muted); font-size: .88rem; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feature > .ic { width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--navy); color: var(--gold); }
.app-promo { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #fff; border-radius: 24px; padding: 30px 40px; border: 1px solid var(--line); }
.app-promo img { max-height: 320px; width: auto; }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hdr-wa span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .header-main { gap: 10px; flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .header-actions { margin-inline-start: auto; }
  .brand img { width: 44px; }
  .brand-text strong { font-size: 1.15rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr; }
  .offer-card { flex-direction: row; }
  .offer-media { width: 42%; aspect-ratio: auto; flex: none; }
  .about, .contact, .maint { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .store-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .chips-scroll { display: flex; flex: 1; min-width: 0; }
  .store-toolbar { flex-wrap: wrap; }
  .store-toolbar > .muted { order: 2; }
  .mobile-cats { order: 1; flex-basis: 100%; }
  .sort-form { order: 3; }
  .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; }
  .cart-page, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-buy { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; box-shadow: 0 -8px 24px rgba(15, 26, 43, .1); transform: translateY(110%); transition: transform .25s; }
  .sticky-buy.show { transform: none; }
  .sb-info { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
  .sb-info strong { color: var(--red); font-size: 1.15rem; font-weight: 900; }
  .sb-info del { color: var(--muted); font-size: .8rem; }
  body:has(.sticky-buy.show) .wa-float { bottom: 86px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { font-size: .78rem; }
  .section { padding: 42px 0; }
  .hero-inner { min-height: 440px; padding-top: 40px; padding-bottom: 40px; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 17, 30, .95) 10%, rgba(10, 17, 30, .65) 100%); }
  .hero-cta .btn { flex: 1; }
  .trust-grid { gap: 4px; }
  .trust-item { gap: 8px; }
  .trust-item > .ic { width: 38px; height: 38px; padding: 8px; }
  .trust-item strong { font-size: .88rem; }
  .trust-item span { font-size: .75rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 16px 10px; }
  .product-grid, .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px 10px 12px; }
  .pcard-title { font-size: .9rem; }
  .price strong { font-size: 1.02rem; }
  .price del { font-size: .8rem; }
  .pcard-meta { font-size: .72rem; gap: 6px; }
  .pcard-actions .btn { padding: 8px 8px; font-size: .8rem; }
  .pcard-actions .btn .ic { width: 16px; height: 16px; }
  .badge { font-size: .7rem; padding: 2px 8px; }
  .offer-card { flex-direction: column; }
  .offer-media { width: 100%; aspect-ratio: 16/9; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .about-points, .check-list, .inc-list, .two-col { grid-template-columns: 1fr; }
  .about-card { right: 10px; bottom: -14px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .ptrust { grid-template-columns: repeat(2, 1fr); }
  .pinfo-price strong { font-size: 1.65rem; }
  .buy-row .btn { flex: 1 1 100%; }
  .buy-row .qty + .btn { flex: 1; }
  .tab-panel { padding: 18px; }
  .tab-list button { padding: 14px 16px; }
  .spec-table th { width: 42%; }
  .spec-table th, .spec-table td { padding: 11px 12px; font-size: .92rem; }
  .crow { grid-template-columns: 70px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 8px 12px; }
  .crow img { width: 70px; height: 70px; grid-area: img; }
  .crow-info { grid-area: info; }
  .crow .qty { grid-area: qty; justify-self: start; }
  .crow-total { grid-area: total; min-width: 0; }
  .crow-rm { grid-area: rm; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-form { padding: 18px; }
  .steps { font-size: .85rem; gap: 6px; }
  .steps li:not(:last-child)::after { width: 14px; }
  .app-promo { flex-direction: column; padding: 24px; text-align: center; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; left: 16px; }
}
