/* BuyFast storefront — mobile-first, RTL-aware (logical properties) */
:root {
  --brand: #0b3bdb;
  --brand-600: #0a33bf;
  --brand-900: #071a5e;
  --brand-50: #eef2ff;
  --accent: #ff6a00;
  --accent-600: #e65f00;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --err: #dc2626;
  --err-bg: #fee2e2;
  --warn-bg: #fef3c7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; }
html[dir="rtl"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-link { border-color: transparent; background: transparent; color: var(--brand); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(15,23,42,.06); }

/* Top bar & header */
.topbar { background: var(--brand-900); color: #dbe4ff; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar-perks, .topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-perks span { display: inline-flex; gap: 6px; align-items: center; }
.topbar .ic { width: 16px; height: 16px; color: #8fb0ff; }
.topbar a { color: #fff; }
.lang-switch { font-weight: 700; padding: 3px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 24px; letter-spacing: -.03em; text-decoration: none !important; flex: none; }
.logo b { color: var(--brand); font-weight: 800; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #3d6bff); color: #ffd23f; }
.logo-mark .ic { width: 22px; height: 22px; }
.logo-text { direction: ltr; }
.logo-light { color: #fff; }
.logo-light b { color: #8fb0ff; }
.search { flex: 1; display: flex; max-width: 640px; border: 2px solid var(--brand); border-radius: 12px; overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; padding: 11px 14px; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; }
.header-actions { display: flex; gap: 6px; margin-inline-start: auto; }
.hdr-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; position: relative; text-decoration: none !important; }
.hdr-link:hover { background: var(--brand-50); }
.hdr-link .ic { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 0; inset-inline-start: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.menu-toggle { display: none; }
.catnav { border-top: 1px solid var(--line); background: #fff; }
.catnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { padding: 11px 12px; white-space: nowrap; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; text-decoration: none; }
.catnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.catnav-deal { color: var(--accent) !important; display: inline-flex; gap: 4px; align-items: center; }
.drawer { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 60; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(320px, 86vw); background: #fff; padding: 12px 16px; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0 0; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: #14532d; }
.alert-error { background: var(--err-bg); color: #7f1d1d; }
.alert-info { background: var(--brand-50); color: var(--brand-900); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #3d6bff 0%, transparent 60%), linear-gradient(135deg, var(--brand-900) 0%, var(--brand) 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-block: 56px; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #ffd23f; }
.eyebrow .ic { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin: 16px 0 12px; letter-spacing: -.03em; }
.hero p { font-size: 18px; color: #dbe4ff; max-width: 520px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #dbe4ff; font-size: 14px; }
.hero-points li { display: inline-flex; gap: 6px; align-items: center; }
.hero-points .ic { color: #6ee7a8; width: 18px; height: 18px; }
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile { background: rgba(255,255,255,.96); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 1; display: grid; place-items: center; }
.hero-tile img { width: 78%; }
.hero-tile.t2, .hero-tile.t4 { transform: translateY(22px); }
.hero-badge { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--accent); color: #fff; border-radius: 99px; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
html[dir="rtl"] .hero-badge { transform: translate(50%, -50%); }
.hero-badge b { font-size: 26px; line-height: 1; }
.hero-badge span { font-size: 12px; font-weight: 600; }

/* Sections */
.section { padding-block: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 22px; display: inline-flex; align-items: center; gap: 8px; }
.section-head h2 .ic { color: var(--accent); }
.section-head a { font-weight: 600; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; }
.section-head a .ic { width: 16px; height: 16px; }
.section-deals { background: linear-gradient(180deg, #fff4ec 0%, var(--bg) 100%); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 16px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; }
.cat-ic img { width: 48px; height: 48px; }
.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; align-items: center; color: #fff; text-decoration: none !important; min-height: 150px; overflow: hidden; }
.promo h3 { font-size: 22px; margin: 6px 0 10px; max-width: 360px; }
.promo-blue { background: linear-gradient(135deg, #102a8a, #2f5bff); }
.promo-orange { background: linear-gradient(135deg, #e65f00, #ff9a3d); }
.promo-ic { width: 96px; height: 96px; opacity: .35; stroke-width: 1.2; }
.eyebrow-sm { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 700; }
.link-arrow { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; }
.link-arrow .ic { width: 16px; height: 16px; }
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em; min-width: 110px; text-align: center; text-decoration: none !important; }
.brand-chip:hover { border-color: var(--brand); color: var(--brand); }
.brand-chip img { max-height: 28px; margin: auto; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard-img { position: relative; aspect-ratio: 1; background: #f8fafc; display: grid; place-items: center; padding: 18px; }
.pcard-img img { max-height: 100%; object-fit: contain; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 8px; z-index: 1; }
.badge-off { background: var(--accent); color: #fff; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pcard-title { color: var(--ink); font-weight: 600; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
.price-lg { font-size: 30px; }
.price-was { color: var(--muted); font-size: 14px; white-space: nowrap; }
.bnpl-hint { font-size: 12px; color: var(--ink-2); background: #f1f5f9; padding: 4px 8px; border-radius: 6px; }
.add-form { margin-top: 6px; }

/* Breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-block: 16px; }
.crumbs .ic { width: 14px; height: 14px; }
.crumbs a { color: var(--muted); }

/* Shop */
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-head h1 { margin: 0; font-size: 26px; }
.shop-head small { color: var(--muted); font-weight: 500; font-size: 16px; }
.sort-form { display: flex; gap: 8px; align-items: center; }
.sort-form label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], textarea { font: inherit; color: var(--ink); border: 1px solid #cfd6e4; border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; width: 100%; }
select { width: auto; padding-inline-end: 28px; }
.field select { width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11,59,219,.25); border-color: var(--brand); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; padding-bottom: 30px; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: sticky; top: 120px; }
.filter-block { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.filter-block h4 { font-size: 14px; margin-bottom: 10px; }
.filter-link { display: block; padding: 4px 0; color: var(--ink-2); }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.check small { color: var(--muted); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; background: #fff; border-radius: var(--radius); padding: 48px 20px; box-shadow: var(--shadow); margin-block: 20px; }
.empty .ic { width: 48px; height: 48px; color: var(--muted); margin-bottom: 8px; }
.show-sm { display: none; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pdp-main { position: relative; aspect-ratio: 1; background: #f8fafc; border-radius: var(--radius); display: grid; place-items: center; padding: 30px; }
.pdp-main img { max-height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 6px; cursor: pointer; flex: none; }
.thumb.active { border-color: var(--brand); }
.pdp-brand { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.pdp-info h1 { font-size: 26px; margin: 6px 0 10px; }
.pdp-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.stock { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; }
.stock .ic { width: 16px; height: 16px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--err); }
.pdp-price { padding: 14px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.save-pill { background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; }
.vat-note { width: 100%; font-size: 12.5px; color: var(--muted); }
.bnpl-box { display: flex; gap: 12px; align-items: center; background: #f5f3ff; border: 1px solid #e4e0ff; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; font-size: 14px; }
.bnpl-box > .ic { color: #6d28d9; width: 26px; height: 26px; }
.bnpl-logos { display: flex; gap: 6px; margin-top: 6px; }
.bnpl-logos span, .pay-ic-tabby, .pay-ic-tamara { font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.tabby, .pay-ic-tabby { background: #3bffc1; color: #0b0b0b; }
.tamara, .pay-ic-tamara { background: linear-gradient(90deg, #f6c6a8, #d7b8f5); color: #1a1a1a; }
.pdp-short { color: var(--ink-2); margin: 14px 0; }
.pdp-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.pdp-buy .btn { flex: 1; min-width: 150px; }
.qty { display: inline-flex; border: 1px solid #cfd6e4; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { border: 0; background: #f1f5f9; width: 40px; cursor: pointer; display: grid; place-items: center; }
.qty input { width: 52px; border: 0; text-align: center; border-radius: 0; padding: 10px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 40px; padding: 6px 0; }
.pdp-perks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.pdp-perks li { display: flex; gap: 12px; align-items: flex-start; background: #f8fafc; border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }
.pdp-perks li > .ic { color: var(--brand); width: 24px; height: 24px; }
.pdp-perks b { display: block; }
.pdp-perks span { color: var(--muted); }
.zone-select { padding: 4px 8px; font-size: 13px; margin-inline-start: 6px; }
.zone-info { display: block; margin-top: 4px; }
.pdp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.pdp-section { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pdp-section h2 { font-size: 19px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.prose { color: var(--ink-2); }
.prose h1 { color: var(--ink); }

/* Cart & checkout */
.page-title { font-size: 26px; margin: 22px 0 16px; display: flex; align-items: center; gap: 10px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; padding-bottom: 30px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto 40px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 84px; height: 84px; background: #f8fafc; border-radius: 10px; padding: 8px; display: grid; place-items: center; }
.cart-name { color: var(--ink); font-weight: 600; }
.cart-line { font-weight: 800; min-width: 100px; text-align: end; }
.cart-actions { display: flex; gap: 10px; padding-top: 14px; }
.summary { position: sticky; top: 120px; }
.summary h3 { font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 10px; font-size: 14.5px; }
.sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 18px; }
.free-ship-note { background: var(--warn-bg); color: #78350f; font-size: 13px; padding: 8px 10px; border-radius: 8px; margin: 4px 0; }
.summary .btn-lg { margin-top: 14px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badges span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #dbe4ff; }
.pay-badges-dark { margin-top: 14px; justify-content: center; }
.pay-badges-dark span { background: #f1f5f9; border-color: var(--line); color: var(--ink-2); }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-grid .field { margin-bottom: 0; }
.field label { font-weight: 600; font-size: 14px; }
.hint { color: var(--muted); font-size: 12.5px; }
.err { color: var(--err); font-size: 12.5px; font-weight: 600; }
.has-error input, .has-error select { border-color: var(--err); }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.pay-option small { display: block; color: var(--muted); font-size: 13px; }
.pay-ic { width: 54px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #f1f5f9; flex: none; }
.mini-items { list-style: none; padding: 0; margin: 0 0 10px; }
.mini-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mini-items img { width: 48px; height: 48px; object-fit: contain; background: #f8fafc; border-radius: 8px; padding: 4px; }
.mini-items small { color: var(--muted); }

/* Order */
.order-hero { text-align: center; padding: 34px 20px; margin-top: 24px; }
.order-hero-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.order-hero-ic .ic { width: 34px; height: 34px; }
.is-ok .order-hero-ic { background: var(--ok-bg); color: var(--ok); }
.is-pending .order-hero-ic { background: var(--warn-bg); color: #b45309; }
.is-failed .order-hero-ic { background: var(--err-bg); color: var(--err); }
.order-no { display: inline-block; background: var(--bg); padding: 8px 16px; border-radius: 99px; margin: 8px 0 14px; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.order-meta div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.order-meta small { display: block; color: var(--muted); font-size: 12px; }

/* Auth & account */
.auth-wrap { display: grid; place-items: center; padding-block: 40px; }
.auth-card { width: 100%; max-width: 440px; }
.account-head { display: flex; justify-content: space-between; align-items: center; }
.account-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; padding-bottom: 30px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: var(--ink-2); }
.pill-confirmed, .pill-processing { background: var(--brand-50); color: var(--brand); }
.pill-shipped { background: #e0f2fe; color: #0369a1; }
.pill-delivered, .pill-paid, .pill-authorized { background: var(--ok-bg); color: var(--ok); }
.pill-cancelled, .pill-failed { background: var(--err-bg); color: var(--err); }
.pill-pending, .pill-cod { background: var(--warn-bg); color: #92400e; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; padding-bottom: 30px; }
.contact-grid p { display: flex; gap: 10px; align-items: center; }
.contact-grid .ic { color: var(--brand); }

/* Trust strip & footer */
.trust-strip { background: #fff; border-top: 1px solid var(--line); margin-top: 30px; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.trust-in > div { display: flex; gap: 12px; align-items: center; }
.trust-in .ic { width: 34px; height: 34px; color: var(--brand); background: var(--brand-50); border-radius: 10px; padding: 6px; }
.trust-in b { display: block; font-size: 14.5px; }
.trust-in span { color: var(--muted); font-size: 13px; }
.site-footer { background: #0b1437; color: #c7d2fe; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 15px; }
.site-footer a:not(.logo):not(.btn) { display: block; color: #c7d2fe; padding: 3px 0; font-size: 14px; }
.site-footer p { font-size: 14px; display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.site-footer .ic { width: 18px; height: 18px; color: #8fb0ff; }
.muted-light { color: #9aa7d6; display: block !important; margin-top: 12px !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: 13px; color: #9aa7d6; }
.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 50; }
.wa-float .ic { width: 30px; height: 30px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 70; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100vw - 32px); }
.toast a { color: #8fb0ff; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 820px) {
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex; }
  .menu-toggle { display: inline-grid; }
  .header-in { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .hero-in { grid-template-columns: 1fr; padding-block: 36px; }
  .hero-art { display: none; }
  .promo-row, .pdp, .pdp-tabs, .cart-layout, .checkout-layout, .account-layout, .contact-grid { grid-template-columns: 1fr; }
  .pdp { padding: 14px; gap: 18px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
  .order-meta { grid-template-columns: 1fr 1fr; }
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info del" "img qty line"; }
  .cart-thumb { width: 64px; height: 64px; grid-area: img; }
  .cart-info { grid-area: info; }
  .cart-row .qty { grid-area: qty; justify-self: start; }
  .cart-line { grid-area: line; min-width: 0; }
  .cart-row > .icon-btn { grid-area: del; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .product-grid, .product-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-body { padding: 10px; }
  .price { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-grid, .trust-in { grid-template-columns: 1fr; }
  .logo { font-size: 21px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-ic { width: 56px; height: 56px; }
  .cat-ic img { width: 36px; height: 36px; }
  .cat-tile { font-size: 12.5px; padding: 12px 6px; }
}
