:root {
  /* IQ Card brand: dark navy + gold */
  --navy: #1b2033;
  --navy-2: #2a3047;
  --yellow: #f2b324;
  --yellow-2: #ffd25a;
  --yellow-soft: #fff4d6;
  --gold-grad: linear-gradient(180deg, #ffd25a 0%, #f2b324 55%, #d9961a 100%);
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #20232c;
  --muted: #6b7280;
  --line: #e3e5ea;
  --ok: #16a34a;
  --bad: #dc2626;
  --info: #2563eb;
  --warn: #d97706;
  --r: 14px;
  --shadow: 0 6px 24px rgba(20, 24, 36, .08);
  --font: 'Nunito', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.lang-ar { --font: 'Cairo', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; }
.w100 { width: 100%; }
[hidden] { display: none !important; }

/* ---------- header */
.announce { background: var(--yellow); color: var(--navy); text-align: center; font-size: 13px; font-weight: 700; padding: 7px 16px; }
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 24px; font-weight: 900; letter-spacing: .3px; color: #fff; }
/* brand wordmark: "IQ" gold + "CARD" white, geometric bold */
.logo-mark img { height: 40px; width: auto; display: block; }
.wordmark { font-family: 'Montserrat', 'Nunito', sans-serif; font-weight: 800; font-size: 25px; letter-spacing: .5px; line-height: 1; white-space: nowrap; direction: ltr; }
.wordmark .wm-iq { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .wm-card { color: #fff; }
.footer .wordmark .wm-card { color: var(--navy); }
.brand-tag { display: block; font-family: 'Montserrat', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: 2.6px; color: #b9bfd0; margin-top: 4px; direction: ltr; }
.footer .brand-tag { color: var(--muted); }
.logo:hover .logo-mark img { transform: rotate(-4deg) scale(1.05); }
.logo-mark img { transition: transform .3s; }
.footer .logo-text { color: var(--navy); }
.search { flex: 1; position: relative; display: flex; background: #fff; border-radius: 999px; padding: 4px; max-width: 760px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 16px; color: var(--text); min-width: 0; height: 38px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 46px; height: 38px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.search-drop { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); overflow: hidden; z-index: 60; }
.search-drop a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.search-drop a:hover, .search-drop a.on { background: var(--bg); }
.search-drop img { width: 54px; height: 35px; object-fit: cover; border-radius: 6px; }
.search-drop small { color: var(--muted); display: block; font-size: 12px; }
.search-drop .none { padding: 14px; color: var(--muted); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: 13px; position: relative; white-space: nowrap; }
.pill:hover { background: var(--yellow-soft); }
.badge { background: var(--yellow); color: var(--navy); border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.catbar { background: var(--navy-2); }
.catbar-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { color: #d6d9e0; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.catbar a:hover, .catbar a.on { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: .15s; font-size: 15px; }
.btn-lg { height: 50px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-2); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-soft { background: var(--yellow-soft); color: var(--navy); border-color: #f3dc98; }
.btn-soft:hover { background: #ffefc0; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #c9ccd4; }
.btn-wa { background: #25d366; color: #fff; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; display: inline-grid; place-items: center; vertical-align: middle; }
.icon-btn:hover { background: var(--bg); color: var(--text); }

/* ---------- hero */
.hero { background: linear-gradient(135deg, #262c42 0%, #141828 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding-block: 54px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
.hero p { color: #cfd3dc; font-size: 17px; margin: 14px 0 22px; max-width: 560px; }
.hero-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; max-width: 560px; }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 0 14px; color: var(--text); font-size: 16px; min-width: 0; }
.hero-search button { width: 54px; height: 46px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--yellow); }
.hero-cards { position: relative; height: 290px; }
.hc { position: absolute; width: 62%; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.hc0 { inset-inline-start: 4%; top: 10px; rotate: -9deg; }
.hc1 { inset-inline-start: 34%; top: 40px; rotate: 6deg; z-index: 2; }
.hc2 { inset-inline-start: 16%; top: 130px; rotate: -2deg; z-index: 3; }
.hc { transition: rotate .4s, scale .4s; }
.hero-cards:hover .hc0 { rotate: -12deg; scale: 1.03; }
.hero-cards:hover .hc1 { rotate: 9deg; scale: 1.03; }

/* ---------- sections */
.section { margin-block: 34px; }
.section-head { margin-bottom: 14px; }
.section-head.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2, .how h2 { font-size: 23px; font-weight: 900; }
.section-text { margin: -6px 0 16px; max-width: 900px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--navy); background: var(--yellow); padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.page-title { font-size: 26px; font-weight: 900; margin-block: 8px 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile { background: var(--card); border-radius: var(--r); padding: 16px; display: flex; align-items: center; gap: 12px; font-weight: 800; box-shadow: var(--shadow); border: 1px solid transparent; transition: .15s; }
.cat-tile:hover { border-color: var(--yellow); transform: translateY(-2px); }
.cat-tile .ci { font-size: 26px; width: 44px; height: 44px; background: var(--yellow-soft); border-radius: 12px; display: grid; place-items: center; }

/* ---------- product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.pcard { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20,24,36,.14); }
.pcard-img { position: relative; padding: 12px 12px 0; }
.pcard-img img { width: 100%; height: auto; aspect-ratio: 400 / 260; object-fit: cover; border-radius: 10px; background: #eceef2; }
.tag-best { position: absolute; top: 18px; inset-inline-start: 18px; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 900; padding: 2px 9px; border-radius: 6px; z-index: 1; }
.tag-best.static { position: static; display: inline-block; }
.pcard-body { padding: 10px 14px 14px; }
.pcard-body h3 { font-size: 15.5px; font-weight: 800; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rating small { color: var(--muted); }
.stars { display: inline-flex; gap: 1px; font-size: 14px; line-height: 1; }
.star { position: relative; color: #d8dbe2; }
.star::before { content: '★'; position: absolute; inset-inline-start: 0; width: var(--f); overflow: hidden; color: #f5b301; }
[dir=rtl] .star::before { inset-inline-start: auto; right: 0; }
.from { font-size: 13px; color: var(--muted); margin-top: 4px; }
.from b { color: var(--text); font-size: 14px; }

/* ---------- carousel */
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.car-btn { position: absolute; top: 40%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.car-btn:hover { background: var(--yellow); }
.car-prev { inset-inline-start: -14px; }
.car-next { inset-inline-end: -14px; }

/* ---------- how */
.how { background: var(--card); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.step { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--bg); }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-weight: 900; margin-bottom: 6px; }
.step small { color: var(--muted); }

/* ---------- payments strip */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pay-card { background: var(--card); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--yellow)); }
.pay-card b { display: block; }
.pay-card small { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.pay-card.feat svg { width: 36px; height: 36px; color: var(--navy); background: var(--yellow-soft); padding: 7px; border-radius: 10px; flex-shrink: 0; }
.pay-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; overflow: hidden; }
.pay-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.paytag { display: inline-block; background: var(--c); color: #fff; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 6px; }

/* ---------- product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 26px; }
.media-card { position: relative; background: #fff; border-radius: 18px; padding: 40px; box-shadow: var(--shadow); }
.media-card img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.share-btn { position: absolute; top: 14px; inset-inline-start: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.accordions { margin-top: 22px; display: grid; gap: 10px; }
.accordions details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.accordions summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary svg { transition: transform .2s; flex-shrink: 0; }
.accordions details[open] summary svg { transform: rotate(180deg); }
.acc-body { padding: 0 18px 16px; color: #3f4451; }
.product-info .crumbs { margin-top: 0; }
.p-title { font-size: 34px; font-weight: 900; }
.p-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.p-meta .stars { font-size: 18px; }
.p-desc { font-size: 17px; color: #3f4451; margin: 0 0 14px; }
.notice { background: #f0f1f4; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
.notice.warn { background: #fff1e6; color: #9a3412; }
.buy-box { display: grid; gap: 12px; }
.fld { display: grid; gap: 5px; }
.fld > span { font-weight: 800; font-size: 14px; }
.fld input, .fld select, .fld textarea, .select-wrap select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; outline: 0; }
.fld textarea { height: auto; padding: 10px 14px; min-height: 90px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .select-wrap select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(246,195,67,.25); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; font-weight: 600; }
.select-wrap svg { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.price-box { height: 50px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 19px; }
.price-box .cur { color: var(--muted); font-size: 14px; font-weight: 700; }
.trust { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.chip:hover, .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.related h3 { font-size: 18px; font-weight: 900; }

/* ---------- boxes / forms */
.card-box { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.box-title { font-size: 18px; font-weight: 900; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.box-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-bottom: 40px; }
.sticky { position: sticky; top: 90px; }
.pm-list { display: grid; gap: 10px; }
.pm-opt { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: .15s; }
.pm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pm-opt:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.pm-logo { width: 48px; height: 48px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 900; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.pm-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pm-txt { flex: 1; display: grid; }
.pm-txt small { color: var(--muted); }
.pm-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.pm-opt:has(input:checked) .pm-dot { border: 7px solid var(--c); }
.check { display: flex; gap: 8px; align-items: center; margin: 14px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.check a { text-decoration: underline; }
.form-err { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.sum-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sum-line img { width: 58px; border-radius: 6px; }
.sum-line .grow { flex: 1; min-width: 0; }
.sum-line small { color: var(--muted); display: block; }
.sum-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 900; padding: 14px 0 4px; }

/* cart */
.cart-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 90px; border-radius: 8px; }
.cart-row .nm { font-weight: 800; }
.cart-row .nm small { display: block; color: var(--muted); font-weight: 600; }
.cart-row .oos { color: var(--bad); font-size: 12px; font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 36px; border: 0; background: #fff; cursor: pointer; font-size: 18px; font-weight: 800; }
.qty button:hover { background: var(--bg); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; }
.cart-foot .tot { font-size: 20px; font-weight: 900; }
.empty { text-align: center; padding: 50px 16px; }
.empty.big { padding: 90px 16px; }
.e404 { font-size: 90px; font-weight: 900; color: var(--yellow); line-height: 1; }
.loading { height: 80px; background: linear-gradient(90deg, #f1f2f5 25%, #e8eaee 50%, #f1f2f5 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 10px; }
@keyframes sh { to { background-position: -200% 0; } }

/* order page */
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.order-head .page-title { margin: 0; display: flex; align-items: center; gap: 6px; }
.status { font-weight: 900; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.st-warn { background: #fef3c7; color: #92400e; }
.st-info { background: #dbeafe; color: #1e40af; }
.st-ok { background: #dcfce7; color: #166534; }
.st-bad { background: #fee2e2; color: #991b1b; }
.st-mute { background: #e5e7eb; color: #374151; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 20px 0; counter-reset: s; }
.stepper li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 16px; height: 3px; background: var(--line); inset-inline-start: -50%; width: 100%; z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li span { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-weight: 900; z-index: 1; position: relative; }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.done::before, .stepper li.cur::before { background: var(--ok); }
.stepper li.cur span { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.stepper li.cur b, .stepper li.done b { color: var(--text); }
.stepper li.bad span { background: var(--bad); border-color: var(--bad); color: #fff; }
.save-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--yellow-soft); border: 1px solid #f3dc98; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-weight: 700; font-size: 14px; }
.save-link span { display: inline-flex; gap: 6px; align-items: center; }
.pay-box { border-top: 5px solid var(--c); }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.pay-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.pay-row small { color: var(--muted); font-weight: 700; }
.pay-row .val { display: flex; align-items: center; gap: 8px; font-size: 18px; flex-wrap: wrap; }
.pay-row.big { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: color-mix(in srgb, var(--c) 35%, #fff); }
.pay-row.big .val b { font-size: 30px; font-weight: 900; }
.pay-inst { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 4px 0 0; }
.pay-qr { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.pay-qr img { width: 210px; height: 210px; object-fit: contain; }
.pay-qr small { color: var(--muted); font-weight: 700; }
.change-method { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.upload-wrap summary { list-style: none; cursor: pointer; margin: 0; }
.upload-wrap summary::-webkit-details-marker { display: none; }
.upload-form { display: grid; gap: 14px; margin-top: 12px; }
.drop { position: relative; border: 2px dashed #cdd1d9; border-radius: 14px; min-height: 150px; display: grid; place-items: center; cursor: pointer; background: #fafbfc; overflow: hidden; }
.drop:hover { border-color: var(--yellow); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-in { display: grid; justify-items: center; gap: 4px; color: var(--muted); pointer-events: none; }
.drop-in b { color: var(--text); }
.drop img { max-height: 260px; object-fit: contain; pointer-events: none; }
.review-msg { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #dbeafe; border-top-color: var(--info); animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.bad { background: #fee2e2; color: #991b1b; display: block; }
.alert.mute { background: #e5e7eb; color: #374151; }
.code-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ci-head { margin-bottom: 8px; }
.code-line { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--bg); padding: 8px 10px; border-radius: 10px; margin-top: 6px; }
.code-line code { font-size: 17px; font-weight: 800; letter-spacing: 1px; word-break: break-all; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.tbl th { color: var(--muted); font-size: 12.5px; font-weight: 800; }
.tbl tfoot td { border-bottom: 0; font-size: 16px; }
.order-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-top: 10px; }
.order-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; }
.track-box { text-align: center; margin: 40px auto; max-width: 480px; }
.track-box form { text-align: start; margin-top: 16px; }
.track-ico svg { width: 56px; height: 56px; padding: 12px; background: var(--yellow); border-radius: 16px; color: var(--navy); margin: 0 auto 6px; }
.prose { margin-bottom: 40px; font-size: 16px; }

/* ---------- footer */
.footer { background: #fff; margin-top: 50px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-block: 40px 20px; }
.footer h4 { font-size: 15px; font-weight: 900; margin-bottom: 10px; }
.footer h4.mt { margin-top: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: #4b5060; }
.footer ul a { display: inline-flex; align-items: center; gap: 6px; }
.footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer li.muted { display: flex; gap: 6px; align-items: center; }
.f-brand p { color: var(--muted); font-size: 14px; }
.f-pay { display: flex; gap: 8px; }
.f-bottom { border-top: 1px solid var(--line); padding-block: 16px 24px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.f-bottom p { margin: 0; max-width: 820px; }
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 800; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; }
.toast a { color: var(--yellow); text-decoration: underline; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .car-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 36px; }
  .hero-cards { display: none; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product-info { order: -1; }
  .media-card { padding: 22px; }
  .checkout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .car-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; }
  .logo-text { font-size: 20px; }
  .wordmark { font-size: 20px; }
  .logo-mark img { height: 32px; }
  .topbar .brand-tag { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .top-actions { margin-inline-start: auto; }
  .hide-sm { display: none; }
  .pill { padding: 0 11px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .car-track { grid-auto-columns: 46%; gap: 10px; }
  .car-btn { display: none; }
  .pcard-img { padding: 8px 8px 0; }
  .pcard-body { padding: 8px 10px 12px; }
  .pcard-body h3 { font-size: 14px; }
  .p-title { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .pay-layout { grid-template-columns: 1fr; }
  .pay-qr img { margin: 0 auto; }
  .cart-row { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .cart-row img { width: 70px; }
  .cart-row .line-total { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-box { padding: 16px; }
  .stepper b { font-size: 11.5px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .wa-float { bottom: 14px; inset-inline-end: 14px; width: 50px; height: 50px; }
}

/* ---------- language menu & Kurdish font */
.lang-ku { --font: 'Noto Sans Arabic', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-drop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; min-width: 150px; z-index: 70; display: grid; }
.lang-drop a { color: var(--text); padding: 9px 12px; border-radius: 8px; font-weight: 700; font-family: 'Noto Sans Arabic', 'Cairo', 'Nunito', sans-serif; }
.lang-drop a:hover { background: var(--bg); }
.lang-drop a.on { background: var(--yellow-soft); }

/* =====================================================================
   Animations — the design stays the same, only motion is added on top
   ===================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes shine { from { inset-inline-start: -60%; } to { inset-inline-start: 130%; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@keyframes stepPulse { 0% { box-shadow: 0 0 0 0 rgba(246,195,67,.7); } 100% { box-shadow: 0 0 0 12px rgba(246,195,67,0); } }
@keyframes priceFlash { 0% { color: var(--warn); transform: scale(1.12); } 100% { color: inherit; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes confettiFall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes codeIn { from { opacity: 0; transform: scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* page entrance */
main { animation: fadeIn .35s ease-out both; }
.hero { background-size: 200% 200%; animation: gradientMove 14s ease infinite; }
.hero-text > * { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.hc { animation: fadeUp .8s .2s both, floatY 6s 1s ease-in-out infinite; }
.hc1 { animation-delay: .35s, 1.6s; }
.hc2 { animation-delay: .5s, 2.2s; }

/* header */
.topbar { transition: box-shadow .25s; }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.search { transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(246,195,67,.55); }
.search-drop:not([hidden]), .lang-menu[open] .lang-drop { animation: slideDown .18s ease-out; }
.pill, .chip, .cat-tile, .link-more { transition: background .2s, color .2s, transform .2s, border-color .2s; }
.pill:active, .chip:active { transform: scale(.95); }
.badge.bump { animation: bump .5s ease; }

/* scroll reveal (class added by JS only, so content is visible without JS) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* product cards */
.pcard { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.pcard-img { overflow: hidden; }
.pcard-img img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard-img img { transform: scale(1.06) rotate(-1deg); }
.pcard-img::after { content: ''; position: absolute; top: 12px; bottom: 0; width: 40%; inset-inline-start: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); pointer-events: none; }
.pcard:hover .pcard-img::after { animation: shine .8s ease; }
.cat-tile .ci { transition: transform .3s; }
.cat-tile:hover .ci { transform: rotate(-8deg) scale(1.12); }
.car-btn { transition: background .2s, transform .2s; }
.car-btn:hover { transform: scale(1.08); }

/* buttons */
.btn { position: relative; overflow: hidden; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn .rpl { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); width: 40px; height: 40px; margin: -20px 0 0 -20px; transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; inset-inline-start: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn-primary:hover::after { animation: shine .9s ease; }

/* product page */
.media-card img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.media-card:hover img { transform: perspective(800px) rotateY(-6deg) rotateX(3deg) scale(1.02); }
.product-media { animation: fadeUp .6s both; }
.product-info { animation: fadeUp .6s .1s both; }
.accordions details[open] .acc-body { animation: slideDown .25s ease-out; }
#priceOut.flash { display: inline-block; animation: priceFlash .5s ease; }
.fly { position: fixed; z-index: 200; border-radius: 10px; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .75s cubic-bezier(.55,-0.1,.4,1), opacity .75s; }

/* checkout / order */
.pm-opt { transition: border-color .2s, background .2s, transform .15s; }
.pm-opt:hover { transform: translateY(-1px); }
.pm-dot { transition: border-width .2s; }
.stepper li.cur span { animation: stepPulse 1.6s infinite; }
.stepper li::before { transition: background .6s; }
.code-line { animation: codeIn .5s both; }
.code-item:nth-child(2) .code-line { animation-delay: .1s; }
.code-item:nth-child(3) .code-line { animation-delay: .2s; }
.alert { animation: fadeUp .4s both; }
.drop { transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--yellow); background: var(--yellow-soft); }
.copied-ok { background: #dcfce7 !important; color: #166534 !important; transition: background .2s; }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 300; pointer-events: none; border-radius: 2px; animation: confettiFall var(--t) cubic-bezier(.25,.6,.4,1) forwards; }

/* misc */
.toast:not([hidden]) { animation: toastIn .3s cubic-bezier(.2,.7,.2,1); }
.wa-float { animation: pulseRing 2.2s infinite; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Live notifications (toasts, push opt-in, my orders)
   ===================================================================== */
.badge-red { background: #dc2626; color: #fff; }
.pill-bell .badge { animation: bump .5s ease; }
.nt-stack { position: fixed; top: 84px; inset-inline-end: 16px; z-index: 150; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.nt { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--text); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(17,24,39,.22); border-inline-start: 5px solid var(--nc, var(--yellow)); animation: ntIn .35s cubic-bezier(.2,.8,.2,1); transition: opacity .25s, transform .25s; }
.nt.out { opacity: 0; transform: translateY(-8px) scale(.98); }
.nt-success { --nc: #16a34a; }
.nt-alert { --nc: #dc2626; }
.nt-order { --nc: #2563eb; }
.nt-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--nc, var(--yellow)) 15%, #fff); color: var(--nc, var(--navy)); font-weight: 900; flex-shrink: 0; }
.nt-success .nt-ic { animation: pop .6s ease .1s both; }
.nt-txt { flex: 1; min-width: 0; display: grid; }
.nt-txt b { font-size: 14.5px; }
.nt-txt small { color: var(--muted); font-size: 13px; }
.nt-go { font-size: 12.5px; font-weight: 800; color: var(--nc, var(--navy)); white-space: nowrap; }
.nt-x { position: absolute; top: 4px; inset-inline-end: 6px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 6px; line-height: 1; }
@keyframes ntIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

.push-box { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fffbeb, #fff6dc); border: 1px solid #f3dc98; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.push-ic { font-size: 26px; animation: ring 2.4s ease-in-out infinite; transform-origin: top center; }
.push-txt { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.push-txt small { color: #6b5b2a; }
.push-status { font-weight: 800; font-size: 13px; margin-top: 4px; color: #92400e; }
.push-status.on { color: #166534; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }

.notif-list, .my-orders { display: grid; gap: 8px; }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); transition: background .15s; }
.notif-row:hover, .mo-row:hover { background: var(--bg); }
.notif-row.unread { background: #fffbeb; border-color: #f3dc98; }
.mo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: background .15s; }
.mo-row div { display: grid; }
@media (max-width: 640px) {
  .nt-stack { top: auto; bottom: 80px; inset-inline-end: 12px; width: calc(100vw - 24px); }
  .nt-go { display: none; }
  .mo-row { grid-template-columns: 1fr auto; }
  .mo-row .status { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .push-ic, .nt, .nt-success .nt-ic { animation: none; } }
