/* SHODIRA professional look (2026-11-20). Loaded LAST, after styles, fx3d, gfx, deals and reviews:
   it only refines them (calmer colours, less glow, a store-style header), so the 3D, graphics and deals layers keep working.
   Remove the <link> to pro.css in build.py to go back to the previous look. */
:root {
  --bg: #060913;
  --bg-2: #0a0f1c;
  --surface: #0e1526;
  --surface-2: #131c31;
  --line: rgba(150, 175, 220, 0.12);
  --line-strong: rgba(150, 185, 240, 0.26);
  --text: #eef2fa;
  --muted: #9aa8c3;
  --dim: #6b7a99;
  --blue: #2f7dff;
  --blue-2: #1f68e6;
  --cyan: #8cc8ff;
  --glow: 0 0 0 1px rgba(47, 125, 255, .35), 0 8px 22px rgba(47, 125, 255, .22);
  --radius: 14px;
}
body { background: var(--bg); letter-spacing: -0.003em; }
::selection { background: rgba(47, 125, 255, .35); }

/* ---------- Top bar (delivery, warranty, registered company) ---------- */
.status-bar.topbar {
  background: #03050b; border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: .78rem; text-align: left; padding: 0;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.topbar-perks li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-perks svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.topbar-links a { color: var(--muted); }
.topbar-links a:hover { color: #fff; }
@media (max-width: 980px) { .topbar .topbar-links { display: none; } }
@media (max-width: 720px) {
  .topbar-in { justify-content: center; }
  .topbar-perks { gap: 14px; }
  .topbar .topbar-perks li:nth-child(n+3) { display: none; }
  .topbar-perks li { font-size: .72rem; }
}
@media (max-width: 480px) { .topbar .topbar-perks li:nth-child(2) { display: none; } }

/* ---------- Header: logo, search, pages, cart ---------- */
.site-header { background: rgba(6, 9, 19, .92); border-bottom: 1px solid var(--line); }
.nav { height: auto; min-height: 66px; gap: 22px; }
.brand { letter-spacing: .2em; font-size: 1rem; }
.brand img { filter: none; }
.nav-search { flex: 1 1 auto; max-width: 560px; display: flex; align-items: center; position: relative; }
.nav-search input {
  width: 100%; height: 42px; padding: 0 46px 0 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: .92rem;
  -webkit-appearance: none; appearance: none;
}
.nav-search input::placeholder { color: var(--dim); }
.nav-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 125, 255, .2); }
.nav-search button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.nav-search button:hover { background: var(--blue-2); }
.nav-search button svg { width: 17px; height: 17px; }
.nav-links { margin-left: 0; }
.nav-links a, .nav-links button.linklike { font-size: .88rem; padding: 8px 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { box-shadow: none; color: #fff; }
.nav-actions { margin-left: auto; }
.icon-btn { border-radius: 10px; background: transparent; border-color: var(--line-strong); }
.icon-btn:hover { background: var(--surface); }

/* Department row */
.catbar { border-top: 1px solid var(--line); background: rgba(10, 15, 28, .9); }
.catbar ul {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.catbar ul::-webkit-scrollbar { display: none; }
.catbar a {
  display: block; padding: 10px 12px; font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.catbar a:hover { color: #fff; }
.catbar a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }
.catbar a.cat-deals { color: #ffcf5a; }
.catbar li:first-child a { padding-left: 0; }

@media (max-width: 1180px) { .nav-links a { padding: 8px 7px; font-size: .84rem; } .nav { gap: 14px; } }
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-links { position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - 160px); }
  .catbar a { padding: 9px 11px; font-size: .82rem; }
}

/* ---------- Calmer type, buttons and surfaces ---------- */
.slogan { text-shadow: none; }
.slogan::before, .eyebrow::before { box-shadow: none; }
.eyebrow { letter-spacing: .14em; font-weight: 600; font-size: .74rem; }
h2 { letter-spacing: -0.025em; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--blue); box-shadow: 0 4px 14px rgba(47, 125, 255, .28); }
.btn-primary:hover { background: var(--blue-2); box-shadow: 0 6px 18px rgba(47, 125, 255, .35); transform: none; }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(200, 220, 255, .5); background: rgba(255, 255, 255, .05); }
.card { background: var(--surface); border-color: var(--line); }
a.card:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .35), 0 0 0 1px var(--line-strong); }
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-2); }
.section-head { margin-bottom: 26px; }
.page-hero { background: linear-gradient(180deg, rgba(47, 125, 255, .08), transparent 70%); padding: 48px 0 30px; }

/* ---------- Product cards: clean photo area, clear price ---------- */
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.product-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.product-card .product-media { background: #f5f7fb; }
.product-card .product-media::after { display: none; }
.product-card .product-body .cat { color: var(--dim); font-weight: 600; }
.product-card .product-body h3 { font-weight: 600; }
.product-card .price { font-size: 1.18rem; }
.product-card:hover .btn-ghost { background: var(--blue); box-shadow: none; }
.card-perk::before { box-shadow: none; }
.card-perk-local { color: var(--cyan); }
.card-perk-local::before { background: var(--cyan); }
.pill { letter-spacing: .04em; font-weight: 600; }

/* ---------- Footer: company details and payment ---------- */
.site-footer { background: #04060d; }
.footer-company { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; }
.footer-company + .footer-bottom { border-top: 0; margin-top: 6px; padding-top: 6px; }
.pay-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.pay-note svg { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- Home hero: featured products panel (replaces the product orbit) ---------- */
.hero-stage.hero-stage-feature { min-height: 0; display: block; }
.hero-feature {
  background: rgba(14, 21, 38, .95); border: 1px solid var(--line-strong); border-radius: 18px; padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); min-height: 300px;
}
.hf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 2px 4px 14px; }
.hf-head span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.hf-head a { font-size: .85rem; color: var(--cyan); white-space: nowrap; }
.hero-stage.hero-stage-feature, .hero-feature { min-width: 0; max-width: 100%; }
.hf-rail {
  min-width: 0;
  display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: calc(50% - 6px); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-radius: 12px; outline: none;
}
.hf-rail::-webkit-scrollbar { display: none; }
.hf-rail:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.hf-tile { display: flex; flex-direction: column; gap: 4px; color: var(--text); border-radius: 12px; padding: 8px; transition: background .15s ease; scroll-snap-align: start; min-width: 0; }
.hf-tile:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.hf-pic { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.hf-pic img, .hf-pic .product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: scale-down; padding: 6%; }
.hf-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: #ffcf5a; color: #1a1300; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; letter-spacing: .03em; }
.hf-name { font-size: .86rem; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.hf-price { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; }
.hf-price s { color: var(--dim); font-weight: 500; font-size: .82rem; margin-left: 4px; }
.hf-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.hf-count { min-width: 92px; text-align: center; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.hf-arrow { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.hf-arrow:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); }
.hf-arrow:disabled { opacity: .35; cursor: default; }
.hf-arrow svg { width: 18px; height: 18px; }
.hf-next svg { transform: scaleX(-1); }

/* Product photos: always show the whole product inside its box (tall photos used to spill out and get cut off). */
.product-media:has(.product-photo), .pd-main:has(.product-photo) { position: relative; }
.product-media .product-photo, .pd-main .product-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: scale-down; }
.product-card .product-photo { padding: 7%; }
.pd-main .product-photo { padding: 6%; }
@media (max-width: 860px) {
  .hero-stage.hero-stage-feature { order: 2; }
  .hero-feature { padding: 12px; }
  .hf-rail { gap: 8px; grid-auto-columns: calc(50% - 4px); }
  .hf-name { font-size: .8rem; }
}

/* ---------- Shop banner: tidy row of product photos (replaces the tilted, floating cards) ---------- */
.shop-hero .fx-mini { display: none; }
.shop-hero-art {
  right: max(20px, calc((100vw - var(--max)) / 2 + 20px)); width: auto; height: auto; margin-top: 0; transform: translateY(-50%) !important;
  display: flex; gap: 12px;
}
.sha-pic {
  position: relative; inset: auto !important; width: 96px !important; transform: none !important; animation: none !important;
  border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 1px var(--line-strong);
}
.sha-pic:nth-child(n+5) { display: none; }
@media (max-width: 1200px) { .sha-pic { width: 80px !important; } .sha-pic:nth-child(n+4) { display: none; } }
@media (max-width: 900px) {
  .shop-hero-art { right: auto; transform: none !important; padding: 0 20px; gap: 8px; }
  .sha-pic { width: 56px !important; border-radius: 10px; }
  .sha-pic:nth-child(even) { margin-top: 0; }
  .sha-pic:nth-child(n+4) { display: flex; }
  .sha-pic:nth-child(n+5) { display: none; }
}
.shop-hero-art { transition: opacity .25s ease; }
.shop-hero-art.is-out { opacity: 0; }

/* ---------- Services: repair price lists ---------- */
.price-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.price-card h3 svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.price-list li:first-child { border-top: 0; }
.price-list b { color: #fff; font-weight: 600; white-space: nowrap; text-align: right; }
@media (max-width: 420px) { .price-list b { white-space: normal; max-width: 45%; } }
#prices { scroll-margin-top: 170px; }

/* ---------- sold out + notify me (2026-11-21) ---------- */
.pill-soldout { color: var(--warn-text); border-color: var(--warn-line); background: var(--warn-bg); }
.pd-notify { margin-top: 16px; padding: 16px; border: 1px solid var(--warn-line); border-radius: var(--radius-sm); background: rgba(42, 31, 5, .45); }
.pd-notify-title { margin: 0 0 10px; }
.pd-notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-notify-row input, .book-fields input, .book-fields select, .fbt-opt {
  flex: 1 1 220px; min-width: 0; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit;
}
.pd-notify-row input:focus, .book-fields input:focus, .book-fields select:focus, .fbt-opt:focus { border-color: var(--blue); outline: none; box-shadow: var(--glow); }
.pd-notify-out { margin: 8px 0 4px; color: var(--warn-text); min-height: 0; }
.pd-notify-out:empty { display: none; }
.pd-notify-done { display: flex; gap: 8px; align-items: center; margin: 0; color: #7be0a8; }
.pd-notify-done svg { width: 20px; height: 20px; flex: none; }

/* ---------- frequently bought together ---------- */
.pd-fbt { grid-column: 1 / -1; }
.fbt-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.fbt-item { flex: 1 1 200px; max-width: 280px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: opacity .2s; }
.fbt-item.is-off { opacity: .45; }
.fbt-pic { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; }
.fbt-pic img, .fbt-pic .product-photo { width: 100%; height: 100%; object-fit: contain; }
.fbt-name { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; line-height: 1.35; cursor: pointer; }
.fbt-name input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.fbt-opt { flex: none; padding: 7px 9px; font-size: .85rem; }
.fbt-price { margin-top: auto; font-weight: 600; }
.fbt-plus { align-self: center; font-size: 1.4rem; color: var(--dim); }
.fbt-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .fbt-row { flex-direction: column; }
  .fbt-item { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .fbt-pic { width: 64px; flex: none; }
  .fbt-name { flex: 1 1 0; }
  .fbt-opt, .fbt-price { margin-left: 72px; }
  .fbt-plus { display: none; }
  .fbt-buy .btn { width: 100%; }
}

/* ---------- book a repair (services) ---------- */
.book-card { margin-top: 22px; display: grid; gap: 16px; }
.book-card h3 { margin: 0 0 4px; }
.book-card p { margin: 0; }
.book-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.book-fields label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.book-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) { .book-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .book-fields { grid-template-columns: minmax(0, 1fr); } .book-go .btn { width: 100%; } }


/* Search suggestions under the header search box (pro.js) */
.ns-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; max-height: min(70vh, 480px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); padding: 6px;
}
.ns-box[hidden] { display: none; }
.ns-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.ns-item:hover, .ns-item.is-active { background: rgba(47, 125, 255, .14); }
.ns-pic { flex: 0 0 44px; height: 44px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.ns-pic img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.ns-name { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ns-name b { color: #fff; font-weight: 700; }
.ns-price { flex: 0 0 auto; font-weight: 600; white-space: nowrap; font-size: .85rem; }
.ns-price s { color: var(--dim); font-weight: 400; margin-left: 4px; }
.ns-price small { color: var(--dim); font-weight: 500; }
.ns-cat .ns-ico { flex: 0 0 44px; text-align: center; color: var(--blue); font-weight: 700; }
.ns-all { justify-content: center; color: var(--blue); font-weight: 600; border-top: 1px solid var(--line-strong); border-radius: 0 0 9px 9px; margin-top: 4px; }
.ns-empty { padding: 12px; color: var(--dim); font-size: .9rem; text-align: center; }
@media (max-width: 760px) { .ns-box { max-height: 60vh; } .ns-price { font-size: .8rem; } }

/* 2026-11-22: small supplier photos are never stretched past their real size (blurry); magnifier is off for them */
.pd-main.is-low-res { cursor: zoom-in; }
.pd-main.is-low-res.is-magnified .product-photo { transform: none; }
/* 2026-11-22: smaller product photo box (like Takealot) so supplier photos stay crisp; full size opens in the zoom viewer */
@media (min-width: 861px) { .product-detail--rich { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: 56px; } }
@media (max-width: 860px) { .pd-gallery { width: 100%; max-width: 440px; margin-inline: auto; } }
/* 2026-11-22: home strip items are links; service cards and repair prices open WhatsApp */
.stat-strip > div { padding: 0; }
.stat-link { display: block; height: 100%; padding: 22px; color: inherit; text-decoration: none; transition: background .2s ease; }
.stat-link:hover, .stat-link:focus-visible { background: rgba(42,140,255,.12); }
.wa-card { cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.wa-card:hover, .wa-card:focus-visible { transform: translateY(-2px); border-color: rgba(37,211,102,.6); }
.wa-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .9rem; color: #25d366; text-decoration: none; }
.price-list li.wa-row { cursor: pointer; border-radius: 6px; }
.price-list li.wa-row:hover, .price-list li.wa-row:focus-visible { background: rgba(37,211,102,.1); }
.ns-page .ns-ico { color: var(--cyan, #22d3ee); }
@media (prefers-reduced-motion: reduce) { .wa-card { transition: none; } }
