/* MRF online shop. Mobile first; system fonts only (fast on mobile data). */
:root {
  --red: #c8102e;
  --red-dark: #9e0b23;
  --red-soft: #fdecef;
  --ink: #16181d;
  --ink-2: #3b3f48;
  --muted: #6b7180;
  --line: #e7e8ec;
  --bg: #f4f5f7;
  --card: #fff;
  --ok: #138a43;
  --gold: #f5a524;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 10px 28px rgba(16, 24, 40, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Full-height page: the footer stays at the bottom even with few products. */
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
}
main { flex: 1 0 auto; width: 100%; padding-bottom: 48px; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; width: 100%; }
.page { padding-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; white-space: nowrap; }
.error { color: var(--red); font-weight: 600; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.ic.sm { width: 13px; height: 13px; vertical-align: -1px; }
.ic.lg { width: 26px; height: 26px; }
.ic.xl { width: 40px; height: 40px; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* Top strip */
.strip { background: var(--ink); color: #d5d7dc; font-size: 13px; }
.strip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.strip a { color: #fff; }
.strip-right { display: flex; gap: 18px; }
.strip .ic { width: 16px; height: 16px; margin-right: 4px; }

/* Header */
.top { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.top-row { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 18px; letter-spacing: -.2px; }
.brand small { color: var(--muted); font-size: 12px; }
.brand.light { color: #fff; }
.brand.light small { color: #a9adb6; }
.search { flex: 1; min-width: 0; display: flex; align-items: stretch; max-width: 680px; margin: 0 auto; }
.search input {
  flex: 1; min-width: 0; height: 46px; margin: 0; /* no gap above: the button and the box line up */ border: 2px solid var(--red); border-right: 0; border-radius: 10px 0 0 10px;
  padding: 0 16px; font: inherit; background: #fff; color: var(--ink);
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--red); }
.search button {
  width: 56px; border: 0; background: var(--red); color: #fff; border-radius: 0 10px 10px 0; cursor: pointer;
  display: grid; place-items: center;
}
.search button:hover { background: var(--red-dark); }
.cart-link { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.cart-link:hover { text-decoration: none; color: var(--red); }
.cart-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg); }
.badge {
  position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff;
}
.catbar { border-top: 1px solid var(--line); background: #fff; }
.catbar-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-row::-webkit-scrollbar { display: none; }
.catbar a {
  flex-shrink: 0; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 12px 14px; border-bottom: 3px solid transparent;
}
.catbar a:hover { color: var(--red); text-decoration: none; }
.catbar a.on { color: var(--red); border-bottom-color: var(--red); }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 42px; }
  .brand { flex: 1; }
  .brand img { width: 38px; height: 38px; }
  .catbar a { padding: 10px 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn.ghost:hover { background: var(--red-soft); }
.btn.light { background: #fff; color: var(--red); }
.btn.light:hover { background: #fff3f5; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: #178a45; }
.btn.big { padding: 13px 22px; font-size: 16px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.link { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; padding: 0 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 20px; vertical-align: middle; }
.pill.sale { background: var(--red); color: #fff; }

/* Carousel */
.hero { position: relative; max-width: 1240px; margin: 16px auto 0; padding: 0 16px; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 18px;
  scrollbar-width: none; box-shadow: var(--shadow);
}
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 8 / 3; overflow: hidden; background: #222; }
.slide.img img { width: 100%; height: 100%; object-fit: cover; }
.slide.img .cap { background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.25) 55%, transparent); }
.slide-link { position: absolute; inset: 0; }
.cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 10px; padding: 0 6%; color: #fff; max-width: 100%;
}
.cap h2 { font-size: clamp(22px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.5px; max-width: 640px; text-wrap: balance; }
.cap p { margin: 0; font-size: clamp(14px, 1.6vw, 18px); max-width: 560px; opacity: .92; }
.cap .btn { margin-top: 6px; }
.kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 20px; }
.slide.art.a1 { background: radial-gradient(circle at 80% 30%, #e8344f 0, transparent 45%), linear-gradient(120deg, #c8102e, #6d0618); }
.slide.art.a2 { background: radial-gradient(circle at 85% 70%, #2d3a55 0, transparent 50%), linear-gradient(120deg, #16181d, #2b3242); }
.slide.art.a3 { background: radial-gradient(circle at 80% 30%, #2fd07a 0, transparent 45%), linear-gradient(120deg, #138a43, #0b4d27); }
.art-shape {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center; color: rgba(255,255,255,.85);
}
.art-shape .ic { width: 46%; height: 46%; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
}
.car-btn:hover { background: #fff; }
.car-btn.prev { left: 28px; }
.car-btn.prev .ic { transform: rotate(180deg); }
.car-btn.next { right: 28px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s; }
.dots button.on { width: 26px; background: #fff; }
.hero.single .car-btn, .hero.single .dots { display: none; }
@media (max-width: 760px) {
  .hero { margin-top: 10px; }
  .slide { aspect-ratio: 16 / 10; }
  .slide.img { aspect-ratio: 16 / 9; }
  .art-shape { display: none; }
  .cap { padding: 0 20px 30px; justify-content: flex-end; gap: 6px; }
  .slide.img .cap { background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.25) 60%, transparent); }
  .slide.img { aspect-ratio: 4 / 3; }
  .cap .btn { padding: 8px 14px; font-size: 14px; }
  .kicker { font-size: 11px; }
  .car-btn { display: none; }
  .dots { bottom: 10px; }
}

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.trust > div { background: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); color: var(--red); }
.trust span { display: flex; flex-direction: column; color: var(--ink); line-height: 1.3; }
.trust small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } .trust > div { padding: 12px; } }


/* Sections */
.sec { margin-top: 28px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.sec-h h2 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.sec-h a { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.list-h { flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0; }
.sort select { width: auto; margin: 0; padding: 8px 12px; font-weight: 600; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 16px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs span { color: var(--ink-2); }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
  background: #fff; border-radius: var(--radius); padding: 16px 12px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile-img { width: 84px; height: 84px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; color: #b9bcc5; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.tile small { color: var(--muted); font-size: 12.5px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.row-scroll .card { scroll-snap-align: start; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .row-scroll { grid-auto-columns: 46%; gap: 10px; }
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.05); }
.card.sold .card-img img { opacity: .55; }
.ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #c3c6ce; }
.ph small { font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.ph.big .ic { width: 80px; height: 80px; }
.flag { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 8px; color: #fff; }
.flag.sale { background: var(--red); }
.flag.hot { background: var(--gold); color: #3a2600; }
.sold-out { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(22,24,29,.85); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 11.5px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .6px; }
.card-name {
  color: var(--ink); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.card-codes { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.card-price b { color: var(--red); font-size: 19px; font-weight: 800; }
.card-price s { color: var(--muted); font-size: 13.5px; }
/* Prices in one font that has both the digits and ৳ (Hind Siliguri, cut down
   to just those characters, ~4 KB). With two fonts, Windows drew ৳ from a
   Bangla font and the strike line of the old price sat at the wrong height. */
@font-face { font-family: "MRF Price"; src: url("/price-Regular.woff") format("woff"); font-weight: 400 600; font-display: swap; unicode-range: U+0020, U+002C, U+002E, U+0030-0039, U+09F3; }
@font-face { font-family: "MRF Price"; src: url("/price-Bold.woff") format("woff"); font-weight: 700 900; font-display: swap; unicode-range: U+0020, U+002C, U+002E, U+0030-0039, U+09F3; }
.card-price, .price-box b, .price-box s { font-family: "MRF Price", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.card-price s, .price-box s { text-decoration: line-through; text-decoration-thickness: 1.5px; white-space: nowrap; }
.btn.add { margin-top: auto; width: 100%; padding: 9px 12px; font-size: 14px; }
.card-body .btn.add { margin-top: 10px; }
@media (max-width: 560px) {
  .card-body { padding: 10px; }
  .card-price b { font-size: 17px; }
  .btn.add { font-size: 13px; padding: 8px; }
}
.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty p { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }

/* Product page */
.product { display: grid; gap: 22px; grid-template-columns: 1fr; background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); margin-top: 12px; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1fr; padding: 28px; gap: 40px; } }
.gallery { min-width: 0; }
.main-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 3px; width: 70px; height: 70px; flex-shrink: 0; cursor: pointer; }
.thumbs button.on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 8px 0 4px; }
.chip-brand { display: inline-block; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.chip-brand:hover { text-decoration: none; background: #fbd9df; }
.price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.price-box b { font-size: 34px; font-weight: 800; color: var(--red); letter-spacing: -.5px; }
.price-box s { color: var(--muted); font-size: 18px; }
.stock { font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.stock .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 48px; border: 0; background: var(--bg); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #e9eaee; }
.qty input { width: 56px; height: 48px; border: 0; text-align: center; font: inherit; font-weight: 800; margin: 0; padding: 0; border-radius: 0; -moz-appearance: textfield; }
.qty input:focus { outline: none; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { border: 0; margin-top: 6px; gap: 6px; background: none; }
.qty.sm button { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }
.qty.sm button.link { width: auto; background: none; font-size: 14px; }
.deliv { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.deliv-h { font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.zone { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); }
.deliv-f { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.details { margin-top: 16px; }
.details h2 { font-size: 19px; margin-bottom: 10px; }
.desc { white-space: pre-line; margin: 0; color: var(--ink-2); }

/* Cart & checkout */
.page-h { font-size: 26px; font-weight: 800; letter-spacing: -.3px; margin: 6px 0 16px; }
.checkout { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .checkout { grid-template-columns: 1.1fr 1fr; } }
.panel { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 18px; margin: 4px 0 14px; }
.panel h2:not(:first-child) { margin-top: 22px; }
.panel.narrow { max-width: 460px; }
.panel.success { background: #effaf3; box-shadow: inset 0 0 0 1px #bfe6cd; margin-bottom: 14px; }
.panel.success h1 { font-size: 21px; margin: 0 0 6px; color: var(--ok); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-img { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.line-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.line-info .muted { font-size: 13px; }
.lines { width: 100%; border-collapse: collapse; margin-top: 8px; }
.lines td { padding: 7px 0; }
.lines .total td { font-weight: 800; font-size: 19px; border-top: 1px solid var(--line); padding-top: 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; padding: 11px 13px;
  border: 1.5px solid #d3d6dd; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
label.radio { display: flex; align-items: center; gap: 10px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px; cursor: pointer; }
label.radio:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
label.radio input { width: auto; margin: 0; accent-color: var(--red); }
.qr { border: 1.5px dashed #cfd2da; border-radius: 12px; padding: 16px; margin-bottom: 12px; text-align: center; }
.qr img { margin: 0 auto 8px; width: 220px; height: auto; }
.qr label { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tracking */
.steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.steps li { padding-left: 30px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfd2da; background: #fff; }
.steps li.done { color: var(--ink); font-weight: 700; }
.steps li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.status.cancelled { color: var(--red); }

/* Footer, WhatsApp, toast */
.foot { background: #111318; color: #b7bac2; padding: 40px 0 18px; font-size: 14px; }
.foot h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot h3.mt { margin-top: 18px; }
.foot a { color: #e3e5ea; }
.foot p { margin: 6px 0; }
.foot .zone { color: #b7bac2; padding: 2px 0; }
.foot .zone b { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about p { max-width: 360px; }
.pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pays span { background: #1f232b; color: #fff; border: 1px solid #2e333d; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid #23272f; color: #80848d; font-size: 12.5px; }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.copy .credit { margin-left: auto; text-align: right; }
.copy .credit a { color: #b7bac2; text-decoration: underline; text-underline-offset: 2px; }
.copy .credit a:hover { color: #fff; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.45); z-index: 30;
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; z-index: 40;
  padding: 11px 20px; border-radius: 24px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; box-shadow: var(--shadow-lg);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Phones: compact home sections (last, so these win). */
@media (max-width: 560px) {
  .trust { gap: 8px; }
  .trust > div { padding: 10px; gap: 8px; font-size: 13.5px; }
  .trust .ic.lg { width: 22px; height: 22px; }
  .trust small { font-size: 11.5px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { padding: 12px 6px; font-size: 13px; }
  .tile-img { width: 60px; height: 60px; }
  .tile small { font-size: 11px; }
  .sec { margin-top: 22px; }
  .sec-h h2 { font-size: 19px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
/* Category / brand / printer pages, printers list, guides */
.list-top .page-h { margin-bottom: 6px; }
.intro { color: var(--ink-2); max-width: 820px; margin: 0 0 12px; }
.printer-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pchip { background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 20px; }
.pchip:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pchip.more { color: var(--red); }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 12px; text-align: center; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.brand-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.brand-tile b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.brand-tile small { color: var(--muted); font-size: 12.5px; }
.pr-group { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
.pr-group h2 { font-size: 18px; margin-bottom: 10px; }
.specs { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.compat { margin: 14px 0 0; font-size: 14px; }
.compat b { display: block; margin-bottom: 6px; }
.compat .printer-chips { gap: 6px; }
.compat-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.name-bn { font-size: 16px; color: var(--ink-2); margin: 0 0 2px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.guide-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.guide-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.guide-card b { font-size: 17px; line-height: 1.3; }
.guide-card span { color: var(--muted); font-size: 14px; }
.guide-card em { color: var(--red); font-style: normal; font-weight: 700; font-size: 14px; margin-top: auto; }
.article { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; max-width: 820px; margin-top: 12px; }
@media (min-width: 760px) { .article { padding: 36px 44px; } }
.article h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.article h2 { font-size: 20px; margin: 22px 0 8px; }
.article p, .article li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.article ul { padding-left: 22px; }
.search.inline { margin: 6px 0 0; max-width: 560px; }

/* Own brand pages (Print-Rite, Just-Rite / JR) and home intro */
.own-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 18px; padding: 28px; color: #fff; box-shadow: var(--shadow); }
.own-hero.pr { background: radial-gradient(circle at 85% 30%, #e8344f 0, transparent 45%), linear-gradient(120deg, #c8102e, #6d0618); }
.own-hero.jr { background: radial-gradient(circle at 85% 30%, #3b4a6b 0, transparent 50%), linear-gradient(120deg, #16181d, #2b3242); }
.own-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.5px; margin: 10px 0 4px; }
.own-hero .bn { margin: 0 0 14px; opacity: .92; font-size: 16px; }
.own-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; opacity: .95; }
.own-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.btn.ghost-light:hover { background: rgba(255,255,255,.12); }
.own-logo { width: 120px; height: 120px; background: #fff; border-radius: 50%; padding: 14px; flex-shrink: 0; }
@media (max-width: 640px) { .own-logo { display: none; } .own-hero { padding: 22px 18px; } }
.own-about p { color: var(--ink-2); max-width: 900px; }
.pchip small { color: var(--muted); font-weight: 500; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.intro-sec h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.3px; margin-bottom: 6px; }
.intro-sec > p { color: var(--ink-2); margin: 0 0 14px; max-width: 900px; }
.own-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .own-cards { grid-template-columns: 1fr; } }
.own-card { border-radius: var(--radius); padding: 18px 20px; color: #fff; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); transition: transform .15s; }
.own-card:hover { text-decoration: none; transform: translateY(-3px); }
.own-card.pr { background: linear-gradient(120deg, #c8102e, #8a0a1c); }
.own-card.jr { background: linear-gradient(120deg, #16181d, #2f3748); }
.own-card b { font-size: 22px; font-weight: 800; }
.own-card span { opacity: .9; font-size: 14px; }
.own-card em { font-style: normal; font-weight: 700; margin-top: 6px; }
.own-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ok); font-weight: 600; margin: 12px 0 0; }
.own-line .ic { margin-top: 1px; }
.catbar a.brandlink { color: var(--red); }
.article.wide { max-width: 980px; }
.article h3 { font-size: 17px; margin: 16px 0 4px; }
.article ol { padding-left: 22px; }
.disclose { background: var(--red-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px !important; }
.picks { margin-top: 4px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 4px; }
.price-table th { text-align: left; font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 6px; }
.price-table td { border-bottom: 1px solid var(--line); padding: 9px 6px; vertical-align: top; }
.price-table th.r, .price-table td.r { text-align: right; }
@media (max-width: 560px) { .price-table td.muted, .price-table th:nth-child(2) { display: none; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
