:root {
  --ink: #121212;
  --paper: #fff7e8;
  --white: #ffffff;
  --yellow: #ffd60a;
  --pink: #ff2e63;
  --cyan: #08d9d6;
  --violet: #7b2ff7;
  --orange: #ff7a1a;
  --green: #25d366;
  --muted: #5c5650;
  --b: 3px solid var(--ink);
  --sh: 6px 6px 0 var(--ink);
  --sh-sm: 4px 4px 0 var(--ink);
  --r: 18px;
  --f-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  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 { font-family: var(--f-head); line-height: 1.15; margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: var(--b); border-radius: 999px;
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  box-shadow: var(--sh-sm); background: var(--white);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-wa { background: var(--green); color: var(--ink); }
.btn-insta { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-light { background: var(--yellow); }
.btn.full { width: 100%; }
.btn-chip {
  border: var(--b); background: var(--white); border-radius: 999px;
  padding: 6px 14px; font-weight: 800; font-family: var(--f-head); box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: var(--paper); font-size: 13.5px; }
.topbar-in { display: flex; gap: 18px; align-items: center; justify-content: center; padding: 7px 0; flex-wrap: wrap; }
.topbar-phone { color: var(--yellow); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #999; }
.status.open i { background: var(--green); box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: pulse 1.8s infinite; }
.status.closed i { background: var(--pink); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--b); }
.header-in { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 40px; height: 50px; transform: rotate(-6deg); transition: transform .2s; }
.logo:hover .logo-icon { transform: rotate(4deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: var(--f-head); font-weight: 900; font-size: 21px; }
.logo-text b mark { background: #ffe600; color: var(--ink); padding: 0 5px; border-radius: 6px; border: 2px solid var(--ink); }
.logo-text small { font-family: var(--f-head); font-weight: 800; font-size: 14px; margin-top: 4px; direction: ltr; text-align: start; }
[dir="rtl"] .logo-text small { text-align: end; }
.logo-text small i { font-style: normal; color: #e0b800; }
.logo.light .logo-text small { color: var(--paper); }
.logo.light .logo-text small i { color: #ffe600; }
.nav { display: flex; gap: 6px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-family: var(--f-head); font-size: 15px; border: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); background: var(--yellow); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn {
  position: relative; width: 48px; height: 48px; border: var(--b); border-radius: 14px;
  background: var(--yellow); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink);
}
.cart-count {
  position: absolute; top: -9px; inset-inline-end: -9px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--pink); color: var(--white); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }
.menu-btn { display: none; width: 48px; height: 48px; border: var(--b); border-radius: 14px; background: var(--white); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.menu-btn span { width: 20px; height: 3px; background: var(--ink); border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-block; padding: 6px 14px; border: var(--b); border-radius: 999px; background: var(--cyan);
  font-weight: 700; font-family: var(--f-head); font-size: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 900; margin: 22px 0 16px; letter-spacing: -1px; }
.hero h1 mark { background: var(--yellow); color: var(--ink); padding: 0 12px; border: var(--b); border-radius: 14px; display: inline-block; transform: rotate(-2deg); box-shadow: var(--sh); margin-top: 8px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 15px 26px; font-size: 16px; }
.hero-stats { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats li { border: var(--b); border-radius: 16px; padding: 10px 16px; background: var(--white); box-shadow: var(--sh-sm); display: flex; flex-direction: column; min-width: 110px; }
.hero-stats b { font-family: var(--f-head); font-size: 26px; font-weight: 900; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-art { position: relative; height: 480px; }
.blob {
  position: absolute; inset: 30px 20px; border: var(--b); border-radius: 46% 54% 40% 60% / 55% 40% 60% 45%;
  background: var(--pink); box-shadow: var(--sh); animation: morph 10s ease-in-out infinite;
  background-image: radial-gradient(rgba(255,255,255,.25) 2px, transparent 2px); background-size: 18px 18px;
}
@keyframes morph { 50% { border-radius: 58% 42% 55% 45% / 40% 60% 40% 60%; } }

/* device illustrations (devices.js) */
svg.phone { display: block; width: 100%; height: auto; overflow: visible; }
.hero-phone { position: absolute; width: 190px; }
.d1 { top: 40px; inset-inline-start: 34%; transform: rotate(-10deg); z-index: 2; animation: float 6s ease-in-out infinite; }
.d2 { top: 110px; inset-inline-start: 6%; transform: rotate(-22deg); animation: float 7s ease-in-out infinite reverse; }
.d3 { top: 120px; inset-inline-start: 62%; transform: rotate(12deg); animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
.sticker {
  position: absolute; z-index: 3; padding: 10px 18px; border: var(--b); border-radius: 14px;
  font-family: var(--f-head); font-weight: 800; box-shadow: var(--sh-sm); white-space: nowrap;
}
.s1 { background: var(--yellow); bottom: 50px; inset-inline-start: 4%; transform: rotate(-6deg); }
.s2 { background: var(--cyan); top: 18px; inset-inline-end: 0; transform: rotate(7deg); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--yellow); border-block: var(--b); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: 10px -10px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--f-head); font-weight: 900; font-size: 26px; letter-spacing: 2px; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head.left { text-align: start; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; margin: 10px 0 8px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.card { background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); }

/* category cards */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; text-align: start; border: var(--b); border-radius: 22px; padding: 22px; min-height: 180px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh); transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.cat-emoji { font-size: 38px; margin-bottom: auto; }
.cat-card b { font-family: var(--f-head); font-size: 22px; font-weight: 900; margin-top: 18px; }
.cat-card small { font-size: 14px; font-weight: 500; opacity: .85; }
.cat-card .arrow { position: absolute; top: 18px; inset-inline-end: 18px; width: 36px; height: 36px; border: var(--b); border-radius: 50%; display: grid; place-items: center; background: var(--white); font-weight: 900; }
[dir="ltr"] .cat-card .arrow { transform: scaleX(-1); }
.c-yellow { background: var(--yellow); }
.c-pink { background: var(--pink); color: var(--white); }
.c-cyan { background: var(--cyan); }
.c-violet { background: var(--violet); color: var(--white); }
.c-pink .arrow, .c-violet .arrow { color: var(--ink); }

/* ---------- Shop ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button, .brands button {
  border: var(--b); background: var(--white); border-radius: 999px; padding: 9px 18px;
  font-family: var(--f-head); font-weight: 700; font-size: 14.5px; transition: background .15s;
}
.tabs button.active { background: var(--ink); color: var(--yellow); box-shadow: 3px 3px 0 var(--pink); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; border: var(--b); border-radius: 999px; background: var(--white); padding: 0 14px; }
.search input { border: 0; outline: 0; background: transparent; padding: 10px 0; width: 200px; }
#sort { border: var(--b); border-radius: 999px; padding: 10px 14px; background: var(--white); font-weight: 600; }
.brands { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.brands button { padding: 6px 14px; font-size: 13px; border-width: 2px; }
.brands button.active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.p-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; animation: pop .35s both; }
.p-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.p-media {
  position: relative; height: 220px; display: grid; place-items: center; border-bottom: var(--b); cursor: pointer;
  background: var(--bg, var(--paper)); background-image: radial-gradient(rgba(0,0,0,.08) 1.5px, transparent 1.5px); background-size: 16px 16px;
}
.p-media img { max-height: 190px; object-fit: contain; }
.p-media .phone { width: 112px; transform: rotate(-8deg); transition: transform .3s; }
.p-card:hover .p-media .phone { transform: rotate(0) scale(1.06); }
.p-media svg.acc { width: 120px; height: 120px; transition: transform .3s; }
.p-card:hover .p-media svg.acc { transform: scale(1.08) rotate(-4deg); }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 12.5px; font-weight: 800; font-family: var(--f-head); box-shadow: 2px 2px 0 var(--ink);
}
.badge.hot { background: var(--pink); color: var(--white); }
.badge.offer { background: var(--yellow); }
.badge.newin { background: var(--cyan); }
.badge.used { background: var(--white); inset-inline-start: auto; inset-inline-end: 12px; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-brand { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.p-name { font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.3; cursor: pointer; }
.p-name small { font-weight: 600; color: var(--muted); font-size: 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 5px; }
.specs span { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); direction: ltr; }
.cond { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.batt { display: inline-flex; align-items: center; gap: 5px; }
.batt i { display: inline-block; width: 30px; height: 12px; border: 2px solid var(--ink); border-radius: 3px; position: relative; overflow: hidden; }
.batt i::before { content: ""; position: absolute; inset: 0; width: var(--lvl); background: var(--green); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price b { font-family: var(--f-head); font-weight: 900; font-size: 19px; }
.price s { font-size: 13px; color: var(--muted); }
.ask {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 46px; padding: 0 12px;
  border: var(--b); border-radius: 14px; background: var(--green); font-family: var(--f-head); font-weight: 800; font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; transition: transform .15s;
}
.ask:hover { transform: translate(-2px, -2px); }
.ask:active { transform: translate(3px, 3px); box-shadow: none; }
.price-req { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 18px; padding: 8px 14px; border: var(--b); border-radius: 12px; background: var(--yellow); align-self: flex-start; }
.cart-note { margin: 0; font-weight: 600; font-size: 14px; color: var(--muted); text-align: center; }
.add {
  width: 46px; height: 46px; border: var(--b); border-radius: 14px; background: var(--yellow);
  font-size: 24px; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; flex-shrink: 0; transition: transform .15s;
}
.add:hover { background: var(--pink); color: var(--white); }
.add:active { transform: translate(3px, 3px); box-shadow: none; }
.empty { text-align: center; font-size: 18px; font-weight: 700; padding: 40px 0; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* ---------- Repair ---------- */
.repair { background: var(--violet); color: var(--white); border-block: var(--b); }
.repair .sec-head p { color: rgba(255,255,255,.85); }
.repair .kicker { color: var(--ink); }
.repair-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: var(--b); border-radius: 16px;
  background: var(--white); color: var(--ink); font-weight: 700; font-family: var(--f-head); box-shadow: var(--sh-sm);
  text-align: start; transition: transform .15s;
}
.service:hover { transform: translate(-2px, -2px) rotate(-1deg); background: var(--yellow); }
.service span { font-size: 24px; }
.form { color: var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.form h3 { font-size: 24px; font-weight: 900; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea, .drawer-foot input {
  border: var(--b); border-radius: 12px; padding: 11px 14px; background: var(--paper); outline: none; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus, .drawer-foot input:focus { background: var(--white); box-shadow: 3px 3px 0 var(--cyan); }
.form small { font-size: 13px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { border: var(--b); border-radius: 22px; padding: 24px; box-shadow: var(--sh); }
.why-card:nth-child(even) { transform: translateY(18px); }
.why-card span { font-size: 36px; display: block; margin-bottom: 10px; }
.why-card b { font-family: var(--f-head); font-size: 20px; font-weight: 900; }
.why-card p { margin: 6px 0 0; font-size: 15px; opacity: .9; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; }
.visit-info { padding: 30px; background: var(--yellow); }
.visit-info h2 { font-size: 36px; font-weight: 900; margin-bottom: 20px; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.info-list li { display: flex; gap: 14px; }
.info-list li > span { width: 46px; height: 46px; flex-shrink: 0; border: var(--b); border-radius: 12px; background: var(--white); display: grid; place-items: center; font-size: 22px; }
.info-list b { font-family: var(--f-head); }
.info-list p { margin: 2px 0 0; }
.info-list a { font-weight: 800; text-decoration: underline; }
.status.inline { font-size: 14px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials .btn { padding: 10px 18px; font-size: 14px; }
.map { overflow: hidden; min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 46px 0 90px; margin-top: 40px; }
.footer-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer p { margin: 0; color: #cfc6b8; }
.footer small { color: #8f877b; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--green); border: var(--b); box-shadow: var(--sh-sm); display: grid; place-items: center; color: var(--ink);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(12deg); } }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(18,18,18,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); z-index: 90; background: var(--paper);
  border-inline-start: var(--b); display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
[dir="ltr"] .drawer { transform: translateX(105%); }
.drawer.open { transform: translateX(0) !important; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: var(--b); background: var(--yellow); }
.drawer-head h3 { font-size: 22px; font-weight: 900; }
.x { width: 40px; height: 40px; border: var(--b); border-radius: 12px; background: var(--white); font-weight: 900; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.c-item { display: flex; gap: 12px; align-items: center; background: var(--white); border: var(--b); border-radius: 14px; padding: 10px; }
.c-thumb { width: 54px; height: 64px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--paper); border: 2px solid var(--ink); }
.c-thumb .phone { width: 40px; }
.c-thumb svg.acc { width: 42px; height: 42px; }
.c-thumb img { max-height: 56px; }
.c-info { flex: 1; min-width: 0; }
.c-info b { display: block; font-family: var(--f-head); font-size: 14.5px; line-height: 1.3; }
.c-info small { color: var(--muted); font-weight: 700; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); font-weight: 900; line-height: 1; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }
.cart-empty { text-align: center; padding: 50px 10px; font-weight: 700; color: var(--muted); }
.cart-empty span { font-size: 52px; display: block; margin-bottom: 10px; }
.drawer-foot { border-top: var(--b); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.total b { font-family: var(--f-head); font-size: 22px; font-weight: 900; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px; border: var(--b); border-radius: 12px; font-weight: 700; font-size: 14px; }
.seg input:checked + span { background: var(--ink); color: var(--yellow); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(18,18,18,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-box { width: min(820px, 100%); max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; position: relative; transform: scale(.94); transition: transform .25s; }
.modal.show .modal-box { transform: scale(1); }
.modal-box .x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.m-media { min-height: 360px; display: grid; place-items: center; border-inline-end: var(--b); background-image: radial-gradient(rgba(0,0,0,.08) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.m-media .phone { width: 180px; transform: rotate(-8deg); }
.m-media svg.acc { width: 190px; height: 190px; }
.m-media img { max-height: 320px; }
.m-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.m-body h3 { font-size: 28px; font-weight: 900; }
.m-body .price b { font-size: 28px; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.m-actions .btn { flex: 1 1 auto; white-space: nowrap; border-radius: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 100px; left: 50%; z-index: 100; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--yellow); padding: 12px 22px; border-radius: 999px; font-weight: 700; border: 2px solid var(--yellow);
  transition: opacity .25s, translate .25s; white-space: nowrap;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-in, .repair-in, .visit { grid-template-columns: 1fr; }
  .hero-art { height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-phone { width: 150px; }
  .cats, .why { grid-template-columns: repeat(2, 1fr); }
  .why-card:nth-child(even) { transform: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--paper); border-bottom: var(--b);
    padding: 12px 16px; gap: 4px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .header { position: sticky; }
  .header-in { position: relative; }
}
@media (max-width: 600px) {
  .header-in { height: 66px; gap: 10px; }
  .logo-icon { width: 32px; height: 40px; }
  .logo-text b { font-size: 17px; }
  .logo-text small { font-size: 12px; }
  .cart-btn, .menu-btn { width: 42px; height: 42px; }
  .btn-chip { padding: 5px 10px; }
  .hero { padding-top: 34px; }
  .hero-art { height: 310px; }
  .hero-phone { width: 115px; }
  .sticker { font-size: 13px; padding: 7px 12px; }
  .hero-stats li { min-width: 0; flex: 1; padding: 8px 10px; }
  .hero-stats b { font-size: 20px; }
  .cats { gap: 12px; }
  .cat-card { min-height: 150px; padding: 16px; }
  .cat-card b { font-size: 18px; }
  .cat-card small { font-size: 12.5px; }
  .cat-card .arrow { width: 30px; height: 30px; top: 12px; inset-inline-end: 12px; }
  .why { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 12px; font-size: 14px; }
  .tools, .search { width: 100%; }
  .search input { width: 100%; }
  #sort { width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-media { height: 170px; padding-top: 26px; }
  .p-media .phone { width: 80px; }
  .p-media svg.acc { width: 86px; height: 86px; }
  .p-body { padding: 12px; gap: 6px; }
  .p-name { font-size: 15px; }
  .specs { display: none; }
  .price b { font-size: 15px; }
  .add { width: 38px; height: 38px; font-size: 20px; }
  .ask { height: 38px; font-size: 12px; padding: 0 6px; border-radius: 12px; }
  .badge { font-size: 11px; padding: 2px 8px; top: 8px; inset-inline-start: 8px; }
  .badge.used { inset-inline-end: 8px; }
  .modal-box { grid-template-columns: 1fr; }
  .m-media { min-height: 240px; border-inline-end: 0; border-bottom: var(--b); }
  .map, .map iframe { min-height: 320px; }
  .visit-info { padding: 22px; }
  .topbar-in { gap: 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* سعر المنتج */
.p-price { font-weight: 800; font-size: 1.05rem; margin: 6px 0 2px; color: inherit; direction: ltr; text-align: start; }
.p-price small { font-size: .75em; font-weight: 600; opacity: .8; }
.p-price.big { font-size: 1.5rem; margin: 10px 0; }
