/* =========================================================
   Iz Mart BD E-commerce UI  —  style.css
   Blade-friendly: each section is self-contained
   ========================================================= */

:root {
  --primary: #0b2d6b;          /* brand navy */
  --primary-dark: #071d48;
  --primary-light: #1e4fa8;
  --primary-tint: #f2f6fd;
  --primary-soft: #e3ebf8;
  --sale: #e11d48;              /* discount / hot badges */
  --danger: #dc2626;            /* form errors */
  --accent: #ffb400;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #ececec;
  --bg: #f6f7f9;
  --white: #ffffff;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(20, 20, 40, .06);
  --shadow-hover: 0 10px 28px rgba(20, 20, 40, .12);
  --container: 1600px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hind Siliguri", "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }
.section { margin: 36px auto; }

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--primary-dark); color: #c7d4ee; font-size: 13px;
}
.top-strip .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 12px; }
.top-strip .links { display: flex; gap: 18px; }
.top-strip a:hover { color: #fff; }

/* ---------- Header ---------- */
.header { background: var(--white); }
.header .container { display: flex; align-items: center; gap: 32px; height: 84px; }
/* Logo: "iz" mark + "Iz Mart" + gold "BD" badge  (Laravel: real logo pele <img> diye replace korun) */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -1px; box-shadow: 0 6px 16px rgba(11,45,107, .35); position: relative;
}
.logo-text { font-family: "Poppins", sans-serif; font-size: 28px; font-weight: 700; color: var(--primary); letter-spacing: -.8px; line-height: 1; display: flex; align-items: center; white-space: nowrap; }
.logo-text small { font-size: 12px; font-weight: 800; letter-spacing: .8px; background: var(--accent); color: #3a2a00; padding: 3px 7px; border-radius: 5px; margin-left: 7px; line-height: 1.2; }

.search { flex: 1; display: flex; max-width: 680px; margin: 0 auto; }
.search select {
  border: 1.5px solid var(--border); border-right: 0; border-radius: 30px 0 0 30px;
  padding: 0 14px; background: #fafafa; color: var(--muted); font-family: inherit; outline: none;
}
.search input {
  flex: 1; height: 46px; border: 1.5px solid var(--border); padding: 0 18px;
  font-size: 15px; font-family: inherit; outline: none; min-width: 0;
}
.search input:focus { border-color: var(--primary); }
.search button {
  width: 64px; background: var(--primary); color: #fff; border-radius: 0 30px 30px 0;
  display: grid; place-items: center; transition: background .2s;
}
.search button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.h-action { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; position: relative; }
.h-action .ic {
  width: 42px; height: 42px; border: 1.5px solid var(--border); border-radius: 50%;
  display: grid; place-items: center; color: var(--text); transition: .2s;
}
.h-action:hover .ic { border-color: var(--primary); color: var(--primary); }
.h-action b { color: var(--text); display: block; font-size: 14px; font-weight: 600; }
.h-action small { font-size: 12px; }
.badge {
  position: absolute; top: -4px; left: 28px; background: var(--primary); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; }

/* ---------- Nav bar ---------- */
.navbar { background: var(--primary); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.navbar .container { display: flex; align-items: stretch; height: 52px; }
.cat-btn {
  width: 260px; background: var(--primary-dark); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 0 18px; font-size: 17px; font-weight: 600; flex-shrink: 0;
}
.cat-btn small { font-weight: 400; font-size: 12px; opacity: .85; margin-left: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; padding-left: 20px; flex: 1; }
.nav-links a {
  color: #fff; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 6px; transition: background .2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, .16); }
.nav-cart {
  background: var(--primary-dark); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 20px; font-weight: 600;
}
.nav-cart small { font-weight: 400; font-size: 13px; opacity: .9; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 260px 1fr 230px; gap: 22px; margin-top: 0; }

.cat-sidebar { background: var(--white); border: 1px solid var(--border); border-top: 0; align-self: start; }
.cat-sidebar li a {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border);
  font-size: 15px; transition: .2s; position: relative;
}
.cat-sidebar li:last-child a { border-bottom: 0; }
.cat-sidebar li a .ci { width: 26px; height: 26px; border-radius: 6px; background: var(--primary-soft); display: grid; place-items: center; font-size: 14px; }
.cat-sidebar li a::after { content: "›"; margin-left: auto; color: #bbb; font-size: 18px; transition: .2s; }
.cat-sidebar li a:hover { color: var(--primary); background: var(--primary-tint); padding-left: 22px; }
.cat-sidebar li a:hover::after { color: var(--primary); }

.hero-main { padding-top: 22px; min-width: 0; }

/* slider */
.slider { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 2.35 / 1; box-shadow: var(--shadow); }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; padding: 0 6%; color: #fff; overflow: hidden; }
.slide-1 { background: radial-gradient(circle at 70% 30%, #2f6bdc 0%, #0b2d6b 55%, #04122f 100%); }
.slide-2 { background: linear-gradient(120deg, #f59e0b 0%, #b45309 100%); }
.slide-3 { background: linear-gradient(120deg, #0f766e 0%, #134e4a 100%); }
.slide::before, .slide::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.slide::before { width: 380px; height: 380px; right: -80px; top: -120px; }
.slide::after { width: 220px; height: 220px; right: 22%; bottom: -110px; }
.slide-content { position: relative; z-index: 2; max-width: 58%; }
.slide-tag { display: inline-block; background: var(--accent); color: #3a2a00; font-weight: 700; padding: 4px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 14px; }
.slide h2 { font-size: clamp(22px, 3.4vw, 46px); line-height: 1.15; margin-bottom: 10px; font-weight: 700; }
.slide p { font-size: clamp(13px, 1.3vw, 17px); opacity: .92; margin-bottom: 20px; }
.slide-emoji { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); font-size: clamp(70px, 12vw, 170px); z-index: 2; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 30px;
  font-weight: 600; font-size: 15px; transition: .25s;
}
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--primary); font-size: 20px; z-index: 5; opacity: 0; transition: .3s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow.prev { left: 14px; } .slider-arrow.next { right: 14px; }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.dots button { width: 9px; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .5); transition: .3s; }
.dots button.active { width: 26px; background: #fff; }

/* category carousel */
.cat-carousel-wrap { position: relative; margin-top: 20px; }
.cat-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 106px; background: var(--white); border-radius: var(--radius); overflow: hidden; text-align: center;
  box-shadow: var(--shadow); transition: .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-card .thumb { height: 92px; display: grid; place-items: center; font-size: 44px; background: #eef3fb; }
.cat-card span { display: block; padding: 8px 6px 10px; font-size: 13.5px; line-height: 1.3; min-height: 50px; }
.carousel-next {
  position: absolute; right: -8px; top: 34px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 18px; box-shadow: 0 6px 14px rgba(11,45,107,.4);
}

/* big discount */
.discount-box { margin-top: 22px; background: var(--primary); border-radius: 12px; overflow: hidden; align-self: start; }
.discount-box .head { background: var(--primary-soft); padding: 16px; text-align: center; font-size: 20px; font-weight: 700; }
.hot { background: var(--sale); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }
.discount-list { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.d-item { background: #fff; border-radius: 8px; display: flex; gap: 10px; padding: 8px; align-items: center; transition: .2s; }
.d-item:hover { transform: scale(1.02); }
.d-item .thumb { width: 82px; height: 82px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; font-size: 40px; background: #f5f5f5; }
.d-item h4 { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--primary); font-weight: 700; font-size: 16px; }
.old { color: #9ca3af; text-decoration: line-through; font-size: 13px; margin-left: 4px; font-weight: 400; }

/* ---------- Promo banners ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo {
  border-radius: 16px; padding: 38px; min-height: 230px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow); transition: .3s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.promo-1 { background: linear-gradient(120deg, #fff5e6 0%, #ffe1b3 100%); }
.promo-2 { background: linear-gradient(120deg, #eef3fc 0%, #cfdcf5 100%); }
.promo small { font-weight: 600; color: var(--primary); background: #fff; padding: 4px 12px; border-radius: 20px; align-self: flex-start; margin-bottom: 10px; font-size: 13px; }
.promo h3 { font-size: clamp(24px, 3vw, 38px); color: #0b2d6b; line-height: 1.15; margin-bottom: 14px; max-width: 60%; }
.promo .btn { align-self: flex-start; }
.promo .big-emoji { position: absolute; right: 30px; bottom: 10px; font-size: clamp(80px, 10vw, 140px); filter: drop-shadow(0 12px 18px rgba(0,0,0,.15)); }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.sec-head h2::before { content: ""; width: 5px; height: 26px; background: var(--primary); border-radius: 3px; }
.view-all { color: var(--primary); font-weight: 600; border: 1.5px solid var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 14px; transition: .2s; }
.view-all:hover { background: var(--primary); color: #fff; }

/* flash sale */
.flash { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.countdown { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.countdown span { background: var(--primary); color: #fff; font-weight: 700; min-width: 38px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 16px; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { padding: 7px 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--border); font-size: 14px; font-weight: 500; transition: .2s; }
.tabs button.active, .tabs button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.product {
  background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  transition: .3s; position: relative; display: flex; flex-direction: column;
}
.product:hover { box-shadow: var(--shadow-hover); border-color: transparent; transform: translateY(-4px); }
.product .thumb { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: 76px; background: #f8f8f8; overflow: hidden; }
.product .thumb .emo { transition: transform .4s; }
.product:hover .thumb .emo { transform: scale(1.12); }
.p-badge { position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.p-badge.new { background: var(--success); }
.p-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; transform: translateX(50px); transition: .3s; }
.product:hover .p-actions { transform: translateX(0); }
.p-actions button { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.1); display: grid; place-items: center; transition: .2s; }
.p-actions button:hover, .p-actions button.liked { background: var(--primary); color: #fff; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 12px; color: var(--muted); }
.p-title { font-size: 15px; font-weight: 600; margin: 3px 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.rating { color: var(--accent); font-size: 13px; margin-bottom: 6px; }
.rating span { color: var(--muted); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.add-cart {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: .2s; flex-shrink: 0;
}
.add-cart:hover { background: var(--primary); color: #fff; }
.add-cart.added { background: var(--success); color: #fff; }
.stock-bar { height: 6px; background: #eee; border-radius: 4px; margin: 8px 0 4px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 4px; }
.stock-txt { font-size: 12px; color: var(--muted); }

/* ---------- Wide banner ---------- */
.wide-banner {
  border-radius: 16px; padding: 40px 48px; background: linear-gradient(110deg, #1f2430 0%, #0b2d6b 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; position: relative;
}
.wide-banner h3 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 6px; }
.wide-banner p { opacity: .8; }
.wide-banner .code { border: 2px dashed var(--accent); color: var(--accent); padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 22px; letter-spacing: 2px; }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand { background: #fff; border-radius: 10px; height: 86px; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #9ca3af; border: 1px solid var(--border); transition: .3s; filter: grayscale(1); }
.brand:hover { color: var(--primary); border-color: var(--primary); filter: none; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: 12px; padding: 22px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.feature .fi { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.feature b { display: block; font-size: 16px; }
.feature small { color: var(--muted); font-size: 13px; }

/* ---------- Newsletter ---------- */

/* ---------- Footer ---------- */
.footer { background: #0d1b3e; color: #a3b1cf; margin-top: 50px; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 40px; }
.footer h4 { color: #9ca3af; font-size: 15px; font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .6px; }
.footer li { margin-bottom: 12px; }
.footer li a { color: #e5e7eb; transition: .2s; display: inline-block; }
.footer li a:hover { color: #fff; transform: translateX(4px); }
.footer .logo-text { color: #fff; }
.footer p { font-size: 14.5px; margin: 16px 0 0; line-height: 1.75; text-align: justify; }
.footer a.val:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: #262b35; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; transition: .25s; }
.socials a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.socials .fb { background: #1877f2; }
.socials .tw { background: #1da1f2; }
.socials .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.socials .yt { background: #ff0000; }
.footer .follow { flex-shrink: 0; }

/* payment strip */
.pay-strip { background: #0a1632; padding: 28px 0; }
.pay-bar { background: #fff; border-radius: 6px; display: flex; align-items: center; gap: 0; overflow: hidden; min-height: 54px; }
.pay-with { font-size: 12px; color: #6b7280; font-weight: 600; padding: 0 14px; white-space: nowrap; border-right: 1px solid #e5e7eb; align-self: stretch; display: grid; place-items: center; }
.pay-logos { display: flex; align-items: center; gap: 6px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pay-logos::-webkit-scrollbar { display: none; }
.pay-logos span { flex-shrink: 0; height: 32px; min-width: 46px; padding: 0 8px; border: 1px solid #e5e7eb; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; transition: .2s; }
.pay-logos span:hover { border-color: #9ca3af; transform: translateY(-2px); }
.pay-logos span i { width: 16px; height: 16px; border-radius: 50%; display: block; opacity: .9; }
.ssl-badge { background: #1e3a8a; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px; padding: 6px 14px; margin: 6px; border-radius: 4px; text-align: center; line-height: 1.2; white-space: nowrap; }
.ssl-badge small { display: block; font-size: 9px; font-weight: 500; opacity: .8; letter-spacing: 0; }

.footer-bottom { background: #0a1632; border-top: 1px solid #1c2c55; padding: 20px 0; font-size: 15px; text-align: center; color: #e5e7eb; }
.footer-bottom a { color: #8fb0ff; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 92px; width: 50px; height: 50px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; z-index: 60; box-shadow: 0 8px 20px rgba(11,45,107,.4); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary-dark); }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- Off-canvas (mobile menu) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; pointer-events: none; transition: .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.offcanvas { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; background: #fff; z-index: 100; transform: translateX(-100%); transition: .3s; overflow-y: auto; }
.offcanvas.show { transform: none; }
.offcanvas .oc-head { background: var(--primary); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 18px; }
.offcanvas .oc-head button { color: #fff; font-size: 24px; }
.offcanvas .oc-title { padding: 14px 18px 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.offcanvas .cat-sidebar { border: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: #1f2430; color: #fff; padding: 12px 22px; border-radius: 30px; z-index: 200; transition: .35s; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .hero { grid-template-columns: 240px 1fr; }
  .discount-box { grid-column: 1 / -1; }
  .discount-list { display: grid; grid-template-columns: repeat(4, 1fr); }
  .cat-btn { width: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 992px) {
  .top-strip { display: none; }
  .header .container { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .menu-toggle { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
  .logo-text { font-size: 23px; }
  .logo-text small { font-size: 10.5px; padding: 2px 6px; }
  .logo-mark { width: 38px; height: 38px; font-size: 20px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search select { display: none; }
  .search input { border-radius: 30px 0 0 30px; height: 42px; }
  .header-actions { margin-left: auto; gap: 12px; }
  .h-action .txt { display: none; }
  .navbar { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero > .cat-sidebar { display: none; }
  .hero-main { padding-top: 14px; }
  .discount-list { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 80;
    border-top: 1px solid var(--border); box-shadow: 0 -4px 14px rgba(0,0,0,.06); justify-content: space-around; padding: 6px 0;
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); gap: 2px; position: relative; padding: 2px 10px; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav .badge { left: auto; right: 4px; top: -2px; }
  body { padding-bottom: 64px; }
  .footer { margin-top: 30px; }
}

@media (max-width: 640px) {
  .section { margin: 26px auto; }
  .slider { aspect-ratio: 1.6 / 1; }
  .slide-content { max-width: 70%; }
  .slide .btn { padding: 8px 16px; font-size: 13px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo { padding: 26px; min-height: 190px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product .thumb { font-size: 56px; }
  .p-actions { transform: none; }
  .p-body { padding: 10px; }
  .p-title { font-size: 14px; }
  .flash { padding: 16px; }
  .discount-list { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { flex-direction: column; text-align: center; padding: 16px 10px; }
  .wide-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .sec-head h2 { font-size: 20px; }
  .h-action.hide-sm { display: none; }
}

/* =========================================================
   CAMPAIGNS PAGE
   ========================================================= */

/* page header + breadcrumb */
.page-head {
  background: linear-gradient(120deg, #fff 0%, var(--primary-tint) 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--primary-soft);
}
.page-head .container { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 26px; position: relative; z-index: 1; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head p { color: var(--muted); font-size: 14px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb b { color: var(--text); }

/* featured campaign */
.camp-hero {
  border-radius: 18px; overflow: hidden; position: relative; color: #fff;
  background: radial-gradient(circle at 80% 20%, #2f6bdc 0%, #0b2d6b 45%, #04122f 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; min-height: 340px;
  box-shadow: 0 18px 40px rgba(11,45,107, .25);
}
.camp-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1.5px, transparent 1.5px);
  background-size: 22px 22px; opacity: .5;
}
.camp-hero-body { padding: 44px 48px; position: relative; z-index: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.camp-hero h2 { font-size: clamp(28px, 4vw, 50px); line-height: 1.1; margin-bottom: 10px; }
.camp-hero h2 em { font-style: normal; color: var(--accent); }
.camp-hero p { opacity: .9; margin-bottom: 22px; max-width: 460px; }
.big-timer { display: flex; gap: 10px; margin-bottom: 24px; }
.big-timer div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; width: 72px; padding: 10px 0; text-align: center; }
.big-timer b { display: block; font-size: 28px; line-height: 1.1; }
.big-timer small { font-size: 12px; opacity: .85; }
.camp-hero-art { position: relative; z-index: 1; height: 100%; min-height: 340px; display: grid; place-items: center; }
.camp-hero-art .disc {
  width: 230px; height: 230px; border-radius: 50%; background: var(--accent); color: #0b2d6b;
  display: grid; place-content: center; text-align: center; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 16px rgba(255,180,0,.25), 0 0 0 32px rgba(255,180,0,.12); animation: float 4s ease-in-out infinite;
}
.camp-hero-art .disc span { font-size: 22px; display: block; }
.camp-hero-art .disc strong { font-size: 76px; display: block; }
.camp-hero-art .fl { position: absolute; font-size: 46px; animation: float 5s ease-in-out infinite; }
.camp-hero-art .fl.a { top: 12%; left: 12%; }
.camp-hero-art .fl.b { bottom: 14%; right: 12%; animation-delay: 1s; }
.camp-hero-art .fl.c { top: 18%; right: 16%; animation-delay: 2s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---- campaign details ---- */
.cd-hero { margin-top: 4px; min-height: 360px; }
.cd-hero h2 { font-size: clamp(28px, 4vw, 48px); }
.cd-hero p b { color: var(--accent); }
.cd-hero.ended { filter: grayscale(.55); }
.cd-hero .disc { color: var(--primary); }
.live-pill.soon i, .live-pill.ended i { display: none; }
.live-pill.soon { background: rgba(255,180,0,.2); border-color: rgba(255,180,0,.55); }
.cd-timer-label { font-size: 14px; opacity: .85; margin-bottom: 8px; font-weight: 600; letter-spacing: .3px; }
.cd-ended { display: inline-block; background: rgba(255,255,255,.15); border-radius: 10px; padding: 10px 16px; margin-bottom: 22px; font-weight: 600; }
.cd-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-share { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cd-share:hover { background: rgba(255,255,255,.25); }
.cd-hero-btns .btn:disabled { opacity: .85; cursor: default; }

.cd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.cd-stats > div { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.cd-stats span { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 22px; }
.cd-stats b { font-size: 18px; color: var(--primary); line-height: 1.2; }
.cd-stats small { color: var(--muted); font-size: 13px; }
.cd-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cd-perks span { background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 30px; }
.cd-cats { margin-bottom: 16px; }
.cd-note { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 16px; }
.cd-note.soon { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.cd-note.ended { background: #f3f4f6; color: var(--muted); }
.shop-grid.cd-grid { grid-template-columns: repeat(5, 1fr); }
.cd-grid .stock-bar { margin-top: 10px; }
.camp-body a:hover h4 { color: var(--primary); }

@media (max-width: 1200px) {
  .shop-grid.cd-grid { grid-template-columns: repeat(4, 1fr); }
  .cd-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .shop-grid.cd-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .shop-grid.cd-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-stats { gap: 10px; }
  .cd-stats > div { padding: 12px; column-gap: 10px; }
  .cd-stats span { width: 38px; height: 38px; font-size: 18px; }
  .cd-stats b { font-size: 15px; }
  .cd-hero { min-height: 0; }
}

/* filter bar */
.camp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.camp-toolbar .tabs button span { background: rgba(0,0,0,.08); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.camp-toolbar .tabs button.active span { background: rgba(255,255,255,.25); }
.sort-select { border: 1.5px solid var(--border); border-radius: 20px; padding: 8px 14px; font-family: inherit; background: #fff; outline: none; }

/* campaign cards */
.camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.camp-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: .3s; display: flex; flex-direction: column; }
.camp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.camp-banner { aspect-ratio: 16 / 8; position: relative; display: flex; align-items: center; padding: 0 24px; color: #fff; overflow: hidden; }
.camp-banner::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); right: -50px; top: -60px; }
.camp-banner h3 { font-size: 24px; line-height: 1.2; max-width: 60%; position: relative; z-index: 1; }
.camp-banner .emo { position: absolute; right: 22px; bottom: 12px; font-size: 64px; z-index: 1; transition: .4s; }
.camp-card:hover .camp-banner .emo { transform: scale(1.12) rotate(-6deg); }
.camp-status { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; z-index: 2; background: #fff; }
.camp-status.live { color: var(--success); }
.camp-status.soon { color: #d97706; }
.camp-status.ended { color: var(--muted); }
.camp-off { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #3a2a00; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 20px; z-index: 2; }
.camp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.camp-body h4 { font-size: 17px; margin-bottom: 4px; }
.camp-body p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.camp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); padding: 10px 0; border-top: 1px dashed var(--border); margin-top: auto; }
.camp-meta b { color: var(--text); }
.camp-timer { font-weight: 700; color: var(--primary); }
.camp-card .btn { justify-content: center; margin-top: 10px; }
.camp-card.is-ended { opacity: .75; }
.camp-card.is-ended .camp-banner { filter: grayscale(.8); }
.btn-outline { border: 1.5px solid var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--muted); }
.empty div { font-size: 50px; }

/* policy boxes */
.policy-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 50px; }
.policy-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.policy { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 12px; border-right: 1px solid var(--border); transition: .25s; text-align: center; font-weight: 600; font-size: 16px; }
.policy:first-child { border-left: 1px solid var(--border); }
.policy .pi { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: .25s; }
.policy:hover { background: var(--primary-tint); color: var(--primary); }
.policy:hover .pi { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer.no-gap { margin-top: 0; }

/* chat */
.chat-btn { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 16px; background: var(--primary); color: #fff; display: grid; place-items: center; z-index: 60; box-shadow: 0 8px 22px rgba(11,45,107,.45); transition: .2s; }
.chat-btn:hover { transform: translateY(-3px); }

/* =========================================================
   BRANDS PAGE
   ========================================================= */
.brand-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.brand-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: 30px; padding: 0 16px; flex: 1; max-width: 380px; transition: .2s; }
.brand-search:focus-within { border-color: var(--primary); }
.brand-search input { border: 0; outline: none; height: 44px; flex: 1; font-family: inherit; font-size: 15px; min-width: 0; background: transparent; }
.view-toggle { display: flex; background: #fff; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { width: 42px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.active { background: var(--primary); color: #fff; }

.az-bar { display: flex; flex-wrap: wrap; gap: 6px; background: #fff; padding: 12px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 24px; }
.az-bar button { min-width: 34px; height: 34px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text); transition: .2s; padding: 0 8px; }
.az-bar button:hover { background: var(--primary-soft); color: var(--primary); }
.az-bar button.active { background: var(--primary); color: #fff; }
.az-bar button:disabled { color: #d1d5db; cursor: default; background: none; }

/* top brands highlight */
.top-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tb-card { border-radius: 16px; padding: 22px; color: #fff; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: .3s; }
.tb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tb-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); right: -40px; bottom: -60px; }
.tb-card .tb-logo { width: 54px; height: 54px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.tb-card h3 { font-size: 20px; margin-top: 14px; }
.tb-card small { opacity: .85; }
.tb-card .tb-off { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 14px 16px; text-align: center; transition: .3s; position: relative; display: flex; flex-direction: column; align-items: center; }
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.brand-logo { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 26px; margin-bottom: 12px; transition: .3s; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-card:hover .brand-logo { transform: scale(1.06); }
.brand-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.brand-card small { color: var(--muted); font-size: 13px; }
.brand-card .verified { position: absolute; top: 10px; right: 10px; color: #2563eb; font-size: 14px; }
.brand-card .shop-link { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); opacity: 0; transform: translateY(6px); transition: .25s; }
.brand-card:hover .shop-link { opacity: 1; transform: none; }

/* list view */
.brand-grid.list { grid-template-columns: repeat(2, 1fr); }
.brand-grid.list .brand-card { flex-direction: row; text-align: left; padding: 14px 18px; gap: 16px; }
.brand-grid.list .brand-logo { width: 60px; height: 60px; font-size: 20px; margin: 0; flex-shrink: 0; }
.brand-grid.list .brand-card > div { flex: 1; }
.brand-grid.list .shop-link { opacity: 1; transform: none; margin: 0; }

/* seller CTA */
.seller-cta { border-radius: 16px; padding: 34px 40px; background: linear-gradient(110deg, var(--primary-tint), #dfe8f8); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border: 1px dashed #a9bfe6; }
.seller-cta h3 { font-size: 24px; color: #0b2d6b; }
.seller-cta p { color: var(--muted); }

/* footer v2 (real info) */
.footer-about { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid #1c2c55; margin-bottom: 36px; flex-wrap: wrap; }
.footer-about p { max-width: 520px; }
.footer-about b { color: #fff; }
.footer .label { font-size: 13px; color: #6b7280; display: block; margin-bottom: 2px; }
.footer .val { color: #e5e7eb; font-size: 14px; display: block; margin-bottom: 12px; }
.footer-grid.v2 { grid-template-columns: 1fr 1.4fr 1fr; }

@media (max-width: 1200px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .top-brands { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-grid.list { grid-template-columns: 1fr; }
  .brand-logo { width: 70px; height: 70px; font-size: 22px; }
  .brand-card .shop-link { opacity: 1; transform: none; }
  .top-brands { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tb-card { padding: 16px; min-height: 130px; }
  .tb-card h3 { font-size: 16px; }
  .brand-search { max-width: none; flex-basis: 100%; }
  .seller-cta { padding: 24px 20px; }
  .footer-grid.v2 { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-grid.v2 > div:first-child { grid-column: auto; }
  .footer-grid.v2 > div:nth-child(2) { grid-column: 1 / -1; order: 5; }
  .footer p { text-align: left; }
  .pay-with { display: none; }
  .ssl-badge { display: none; }
  .footer-bottom { font-size: 13.5px; }
}

/* =========================================================
   ALL CATEGORIES PAGE
   ========================================================= */
.cats-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }

.cats-index { background: #fff; border-radius: 14px; box-shadow: var(--shadow); position: sticky; top: 72px; overflow: hidden; }
.cats-index .ci-head { padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.cats-index .ci-head small { color: var(--muted); font-weight: 400; }
.cats-index ul { max-height: calc(100vh - 160px); overflow-y: auto; padding: 6px; }
.cats-index li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; transition: .2s; }
.cats-index li a .ci { width: 28px; height: 28px; border-radius: 7px; background: var(--primary-soft); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.cats-index li a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.cats-index li a:hover { background: var(--primary-tint); color: var(--primary); }
.cats-index li a.active { background: var(--primary); color: #fff; }
.cats-index li a.active .ci { background: rgba(255,255,255,.2); }
.cats-index li a.active em { color: #fff; }

.cats-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: 30px; padding: 0 16px; margin-bottom: 20px; transition: .2s; }
.cats-search:focus-within { border-color: var(--primary); }
.cats-search input { border: 0; outline: none; height: 46px; flex: 1; font-family: inherit; font-size: 15px; background: transparent; min-width: 0; }

.cat-block { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden; scroll-margin-top: 80px; }
.cat-block-head { display: flex; align-items: center; gap: 18px; padding: 20px 24px; position: relative; overflow: hidden; }
.cat-block-head::after { content: ""; position: absolute; right: -40px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.35); }
.cat-block-head .cb-icon { width: 66px; height: 66px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: 0 6px 14px rgba(0,0,0,.08); flex-shrink: 0; position: relative; z-index: 1; }
.cat-block-head .cb-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.cat-block-head h2 { font-size: 21px; position: relative; z-index: 1; }
.cat-block-head small { color: var(--muted); position: relative; z-index: 1; }
.cat-block-head .view-all { margin-left: auto; background: #fff; position: relative; z-index: 1; white-space: nowrap; }
.cat-block-head.is-dark h2 { color: #fff; }
.cat-block-head.is-dark small { color: rgba(255,255,255,.8); }
.cat-block-head.is-dark::after { background: rgba(255,255,255,.12); }

.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 22px 24px 24px; }
.sub-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px; transition: .25s; }
.sub-card:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(11,45,107,.10); transform: translateY(-3px); }
.sub-card .st { display: flex; align-items: center; gap: 14px; }
.sub-card .st-img { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--primary-tint, #eef3fb), #f6f7f9); display: grid; place-items: center; font-size: 30px; flex-shrink: 0; overflow: hidden; transition: .25s; }
.sub-card .st-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-card:hover .st-img { transform: scale(1.05); }
.sub-card .st-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sub-card .st-body b { font-size: 15.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .2s; }
.sub-card .st-body small { font-size: 12.5px; color: var(--muted); }
.sub-card .st-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f6f7f9; color: var(--muted); flex-shrink: 0; transition: .25s; }
.sub-card:hover .st-body b { color: var(--primary); }
.sub-card:hover .st-go { background: var(--primary); color: #fff; transform: translateX(3px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.chips a { font-size: 13px; padding: 4px 11px; border-radius: 20px; background: #f6f7f9; color: var(--muted); transition: .2s; }
.chips a:hover { background: var(--primary); color: #fff; }
.no-sub { padding: 18px 24px 22px; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 2px; }

.cat-chips-mobile { display: none; }

@media (max-width: 992px) {
  .cats-layout { grid-template-columns: 1fr; }
  .cats-index { display: none; }
  .cat-chips-mobile { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
  .cat-chips-mobile::-webkit-scrollbar { display: none; }
  .cat-chips-mobile a { flex-shrink: 0; background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13.5px; }
}
@media (max-width: 640px) {
  .cat-block-head { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .cat-block-head .cb-icon { width: 52px; height: 52px; font-size: 26px; }
  .cat-block-head h2 { font-size: 18px; }
  .cat-block-head .view-all { margin-left: 0; }
  .sub-grid { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; transition: .3s; border-bottom: 3px solid transparent; }
.info-card:hover { transform: translateY(-4px); border-bottom-color: var(--primary); box-shadow: var(--shadow-hover); }
.info-card .ii { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; transition: .3s; }
.info-card:hover .ii { background: var(--primary); color: #fff; }
.info-card h4 { font-size: 16px; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
.info-card a:hover { color: var(--primary); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; align-items: stretch; }
.contact-intro { background: linear-gradient(150deg, #1e4fa8 0%, #071d48 100%); color: #fff; border-radius: 18px; padding: 38px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.contact-intro::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); right: -80px; bottom: -90px; }
.contact-intro h2 { font-size: 30px; margin-bottom: 10px; }
.contact-intro > p { opacity: .9; margin-bottom: 26px; }
.c-line { display: flex; gap: 14px; margin-bottom: 20px; position: relative; z-index: 1; }
.c-line .cl-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; flex-shrink: 0; }
.c-line b { display: block; }
.c-line span, .c-line a { opacity: .85; font-size: 14px; }
.contact-intro .socials { margin-top: auto; position: relative; z-index: 1; }
.contact-intro .socials a { background: rgba(255,255,255,.15); }
.contact-intro .socials a:hover { background: #fff; color: var(--primary); }

.contact-form { background: #fff; border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; margin-bottom: 4px; }
.contact-form > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 16px; }
.f-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.f-group label small { color: var(--muted); font-weight: 400; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 15px;
  outline: none; transition: .2s; background: #fafafa; color: var(--text);
}
.f-group textarea { resize: vertical; min-height: 120px; }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(11,45,107,.08); }
.f-group.error input, .f-group.error select, .f-group.error textarea { border-color: var(--danger); background: #fef2f2; }
.f-err { color: var(--danger); font-size: 12.5px; margin-top: 4px; display: none; }
.f-group.error .f-err { display: block; }
.char-count { float: right; color: var(--muted); font-size: 12px; font-weight: 400; }
.contact-form .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; border-radius: 10px; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .ok { width: 76px; height: 76px; border-radius: 50%; background: #dcfce7; color: var(--success); display: grid; place-items: center; font-size: 38px; margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 6px; }
.form-success p { color: var(--muted); margin-bottom: 20px; }
.contact-form.sent form { display: none; }
.contact-form.sent .form-success { display: block; }

/* map */
.map-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.map-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.map-top h3 { font-size: 19px; }
.map-top p { color: var(--muted); font-size: 14px; }
.map-frame { position: relative; height: 420px; background: #e5e7eb; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-pin-card { position: absolute; left: 22px; bottom: 22px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 320px; display: flex; gap: 12px; }
.map-pin-card .ii { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.map-pin-card b { display: block; font-size: 15px; }
.map-pin-card span { font-size: 13px; color: var(--muted); display: block; margin-bottom: 8px; }
.map-pin-card a { font-size: 13px; font-weight: 600; color: var(--primary); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 0 20px; transition: .2s; }
.faq details[open] { box-shadow: 0 0 0 1.5px var(--primary); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14px; padding-bottom: 16px; }

@media (max-width: 1200px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .info-cards { grid-template-columns: 1fr; gap: 12px; }
  .contact-intro, .contact-form { padding: 24px 20px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .map-frame { height: 340px; }
  .map-pin-card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* =========================================================
   CATEGORY / SHOP LISTING PAGE
   ========================================================= */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; margin-top: 24px; }

/* filter sidebar */
.filters { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px; }
.filters-head { display: none; }
.f-box { background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.f-box > summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.f-box > summary::-webkit-details-marker { display: none; }
.f-box > summary::after { content: "⌄"; color: var(--muted); font-size: 18px; line-height: 1; transition: .2s; }
.f-box[open] > summary::after { transform: rotate(180deg); }
.f-box > summary em { font-style: normal; background: var(--primary); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; margin-left: 8px; margin-right: auto; }
.f-body { padding: 0 18px 16px; }

.tree a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--text); transition: .2s; }
.tree a:hover { background: var(--primary-tint); color: var(--primary); }
.tree a.back { color: var(--muted); font-size: 13px; }
.tree a.current { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tree a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.tree .lvl-2 { padding-left: 18px; }
.tree .lvl-3 { padding-left: 32px; }

/* dual price range */
.price-range { position: relative; height: 26px; margin: 6px 0 10px; }
.price-range .track { position: absolute; top: 11px; left: 0; right: 0; height: 5px; background: #e5e7eb; border-radius: 4px; }
.price-range .fill { position: absolute; top: 11px; height: 5px; background: var(--primary); border-radius: 4px; }
.price-range input { position: absolute; inset: 0; width: 100%; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; margin: 0; }
.price-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.price-range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 7px 10px; font-family: inherit; font-size: 14px; outline: none; min-width: 0; }
.price-inputs input:focus { border-color: var(--primary); }

.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.opt input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.opt em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opts label input, .color-opts label input { display: none; }
.size-opts label span { display: grid; place-items: center; min-width: 42px; height: 36px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.size-opts label input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.color-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.color-opts label span { display: block; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: .2s; position: relative; }
.color-opts label input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.f-clear { width: 100%; padding: 11px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; color: var(--muted); transition: .2s; }
.f-clear:hover { border-color: var(--primary); color: var(--primary); }

/* listing top */
.shop-bc { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.shop-bc a:hover { color: var(--primary); }
.shop-bc b { color: var(--text); font-weight: 600; }
.shop-top { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-top h1 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.shop-top h1 span { font-size: 26px; }
.shop-top .count { color: var(--muted); font-size: 14px; }
.shop-top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shop-top select { border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px; font-family: inherit; font-size: 14px; outline: none; background: #fff; min-width: 150px; }
.shop-top select:focus { border-color: var(--primary); }
.filter-btn { display: none; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 14px; font-weight: 600; background: #fff; }

.sub-pills { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.sub-pills::-webkit-scrollbar { display: none; }
.sub-pills a { flex-shrink: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border); border-radius: 30px; padding: 6px 16px 6px 6px; font-size: 14px; font-weight: 500; transition: .2s; }
.sub-pills a span { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 15px; }
.sub-pills a:hover { border-color: var(--primary); color: var(--primary); }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-chips:empty { display: none; }
.active-chips button { display: flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary); border-radius: 20px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.active-chips button:hover { background: var(--primary); color: #fff; }
.active-chips .clear-all { background: none; color: var(--muted); text-decoration: underline; }

/* listing product cards */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shop-grid .product .p-btn { margin-top: 10px; width: 100%; justify-content: center; border-radius: 8px; padding: 9px; font-size: 14px; }
.p-btn.oos { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.p-btn.oos:hover { background: #e5e7eb; }
.product.is-oos .thumb .emo { filter: grayscale(.7); opacity: .7; }
.oos-tag { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(31,36,48,.85); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.p-btn.added { background: var(--success); }

/* list view */
.shop-grid.list { grid-template-columns: 1fr; }
.shop-grid.list .product { flex-direction: row; }
.shop-grid.list .product .thumb { width: 200px; flex-shrink: 0; }
.shop-grid.list .p-body { justify-content: center; }
.shop-grid.list .p-title { min-height: 0; }
.shop-grid.list .p-btn { width: auto; align-self: flex-start; padding: 9px 28px; }

/* pagination */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1.5px solid var(--border); font-weight: 600; transition: .2s; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }

.skeleton .thumb, .skeleton .sk { background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton .sk { height: 12px; border-radius: 6px; margin-bottom: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1200px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; margin-top: 14px; }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: 310px; max-height: none; background: var(--bg); z-index: 100; padding: 0 14px 20px; transform: translateX(-100%); transition: .3s; gap: 12px; }
  .filters.show { transform: none; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--primary); color: #fff; margin: 0 -14px; padding: 14px 18px; font-weight: 700; font-size: 17px; z-index: 2; }
  .filters-head button { color: #fff; font-size: 24px; line-height: 1; }
  .filter-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-top { padding: 12px; }
  .shop-top h1 { font-size: 19px; width: 100%; }
  .shop-top .right { margin-left: 0; width: 100%; }
  .shop-top select { flex: 1; min-width: 0; }
  .shop-top .view-toggle { display: none; }
  .shop-grid.list { grid-template-columns: 1fr; }
  .shop-grid .product .p-btn { font-size: 13px; padding: 8px 4px; }
}

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.steps { display: flex; justify-content: center; gap: 0; margin: 26px auto 22px; max-width: 720px; }
.step { flex: 1; text-align: center; position: relative; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step b { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2.5px solid var(--border); display: grid; place-items: center; margin: 0 auto 6px; position: relative; z-index: 1; font-size: 14px; color: var(--muted); }
.step.done b, .step.on b { border-color: var(--primary); background: var(--primary); color: #fff; }
.step.done::before, .step.on::before { background: var(--primary); }
.step.on { color: var(--text); font-weight: 700; }

.btn-ghost { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.co-layout { display: grid; grid-template-columns: 1fr 400px; gap: 22px; align-items: start; }
.co-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; }
.co-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.co-title::before { content: ""; width: 4px; height: 20px; background: var(--primary); border-radius: 3px; }
.co-title small { color: var(--muted); font-weight: 400; font-size: 13px; }
.co-title .num { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }
.co-side { position: sticky; top: 72px; }

/* order items */
.co-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.co-item:last-child { border-bottom: 0; padding-bottom: 0; }
.co-item:first-child { padding-top: 0; }
.co-item .thumb { width: 70px; height: 70px; border-radius: 10px; background: #f6f7f9; display: grid; place-items: center; font-size: 36px; flex-shrink: 0; }
.co-item .info { flex: 1; min-width: 0; }
.co-item h4 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item .unit { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 30px; margin-top: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; font-size: 16px; color: var(--text); transition: .2s; }
.qty button:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary); }
.qty button:disabled { color: #ccc; cursor: default; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; font-size: 14px; }
.co-item .line { font-weight: 700; color: var(--primary); font-size: 16px; text-align: right; min-width: 80px; }
.co-item .rm { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; transition: .2s; flex-shrink: 0; }
.co-item .rm:hover { background: var(--primary); color: #fff; }
.co-empty { text-align: center; padding: 20px 0 6px; color: var(--muted); }
.co-empty div { font-size: 48px; }
.co-more { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 12px; border: 2px dashed var(--primary); border-radius: 12px; color: var(--primary); font-weight: 700; background: rgba(11,45,107,.03); transition: .2s; }
.co-more:hover { background: var(--primary); color: #fff; }
.co-more small { font-weight: 500; opacity: .8; }
.co-empty .btn { margin-top: 12px; }

/* phone input with flag */
.phone-in { display: flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fafafa; transition: .2s; }
.phone-in:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(11,45,107,.08); }
.phone-in .cc { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-right: 1.5px solid var(--border); font-size: 14px; font-weight: 600; background: #f3f4f6; }
.phone-in .flag { width: 22px; height: 15px; background: #006a4e; border-radius: 2px; position: relative; }
.phone-in .flag::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f42a41; left: 6px; top: 3.5px; }
.f-group .phone-in input { border: 0; background: transparent; box-shadow: none; }
.f-group.error .phone-in { border-color: var(--danger); background: #fef2f2; }

/* radio cards (area + payment) */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-cards > * { min-width: 0; }
.r-card { position: relative; cursor: pointer; }
.r-card input { position: absolute; opacity: 0; }
.r-card > span { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; transition: .2s; height: 100%; }
.r-card > span::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; margin-left: auto; flex-shrink: 0; transition: .2s; }
.r-card input:checked + span { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px rgba(11,45,107,.08); }
.r-card input:checked + span::after { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.r-card input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.r-card b { display: block; font-size: 14.5px; }
.r-card small { color: var(--muted); font-size: 12.5px; }
.r-card .fee { font-weight: 700; color: var(--primary); font-size: 13px; }
.pay-logo { width: 46px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: -.3px; }
.pay-logo.ssl { background: #1e3a8a; }
.pay-logo.bkash { background: #e2136e; }
.pay-logo.nagad { background: #f6921e; }
.pay-logo.cod { background: #f59e0b; font-size: 18px; }
/* payment list: sidebar-e 1 column, compact row */
#payCards { grid-template-columns: 1fr; gap: 10px; }
#payCards .r-card > span { padding: 11px 14px; gap: 14px; }
#payCards .r-card > span > span:last-of-type { min-width: 0; }
#payCards .r-card b, #payCards .r-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#payCards .r-card b { line-height: 1.3; }
#payCards .r-card small { line-height: 1.3; }
.pay-note { margin-top: 12px; font-size: 13px; background: #f6f7f9; border-radius: 10px; padding: 10px 14px; color: var(--muted); display: flex; gap: 8px; }

.info-note { background: #e0f2fe; color: #075985; border-radius: 10px; padding: 12px 16px; font-size: 13.5px; }
.info-note a { color: var(--primary); font-weight: 700; }

/* summary */
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 600; }
.sum-row.disc b { color: var(--success); }
.sum-row.total { border-top: 1.5px dashed var(--border); margin-top: 8px; padding-top: 14px; font-size: 17px; color: var(--text); font-weight: 700; }
.sum-row.total b { color: var(--primary); font-size: 22px; font-weight: 700; }
.save-tag { background: #dcfce7; color: var(--success); font-size: 13px; font-weight: 600; text-align: center; border-radius: 8px; padding: 7px; margin-top: 10px; }

.coupon { display: flex; margin-top: 6px; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.coupon:focus-within { border-color: var(--primary); }
.coupon input { flex: 1; border: 0; outline: none; padding: 0 14px; height: 44px; font-family: inherit; font-size: 14px; text-transform: uppercase; min-width: 0; }
.coupon input::placeholder { text-transform: none; }
.coupon button { background: var(--primary); color: #fff; padding: 0 20px; font-weight: 600; }
.coupon-msg { font-size: 13px; margin-top: 6px; min-height: 18px; }
.coupon-msg.ok { color: var(--success); }
.coupon-msg.bad { color: var(--danger); }
.coupon-hint { font-size: 12.5px; color: var(--muted); }
.coupon-hint code { background: #fff1a8; padding: 1px 6px; border-radius: 4px; font-weight: 700; color: var(--text); cursor: pointer; }

.agree { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); align-items: flex-start; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.agree a { color: var(--primary); font-weight: 600; }
.agree.error { color: var(--danger); }
.place-btn { width: 100%; justify-content: center; padding: 15px; font-size: 17px; border-radius: 12px; margin-top: 16px; box-shadow: 0 8px 20px rgba(11,45,107,.3); }
.place-btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.back-home { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.back-home:hover { color: var(--primary); }
.secure { display: flex; justify-content: center; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* mobile sticky bar */
.co-bar { display: none; }

/* success modal */
.modal { position: fixed; inset: 0; background: rgba(15,18,25,.55); z-index: 300; display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: .3s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; border-radius: 20px; padding: 36px 30px; max-width: 440px; width: 100%; text-align: center; transform: scale(.9); transition: .3s; }
.modal.show .modal-box { transform: none; }
.modal-box .ok { width: 84px; height: 84px; border-radius: 50%; background: #dcfce7; color: var(--success); display: grid; place-items: center; font-size: 44px; margin: 0 auto 18px; animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.modal-box h3 { font-size: 22px; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 14.5px; }
.order-id { background: #f6f7f9; border-radius: 12px; padding: 14px; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; font-size: 13px; color: var(--muted); }
.order-id b { display: block; color: var(--text); font-size: 15px; }
.modal-box .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 992px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .co-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; z-index: 85; padding: 10px 16px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); align-items: center; gap: 12px; }
  .co-bar small { color: var(--muted); display: block; font-size: 12px; }
  .co-bar b { color: var(--primary); font-size: 19px; }
  .co-bar .btn { margin-left: auto; padding: 12px 22px; border-radius: 10px; }
  body[data-route="checkout"] { padding-bottom: 72px; }
  body[data-route="checkout"] .bottom-nav { display: none; }
}
@media (max-width: 640px) {
  .steps { margin: 18px auto 16px; }
  .step { font-size: 11.5px; }
  .co-card { padding: 18px 16px; }
  .radio-cards { grid-template-columns: 1fr; }
  .co-item { flex-wrap: wrap; }
  .co-item .info { flex-basis: calc(100% - 140px); }
  .co-item .line { min-width: 0; margin-left: 84px; text-align: left; flex: 1; }
}

/* =========================================================
   BLOG (list + details)
   ========================================================= */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; margin-top: 26px; margin-bottom: 10px; }
.blog-layout.list { grid-template-columns: 300px 1fr; }

/* sidebar */
.blog-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 72px; }
.b-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.b-box h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.b-box h3::before { content: ""; width: 4px; height: 18px; background: var(--primary); border-radius: 3px; }
.b-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; border: 1.5px solid transparent; transition: .2s; cursor: text; }
.b-search:focus-within { border-color: var(--primary); }
.b-search input { flex: 1; border: 0; outline: none; height: 50px; font-family: inherit; font-size: 15px; min-width: 0; background: transparent; }
.recent { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.recent:last-child { border-bottom: 0; padding-bottom: 0; }
.recent:first-of-type { padding-top: 0; }
.r-thumb { width: 74px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.recent b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; transition: .2s; }
.recent small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.recent i { font-style: normal; font-size: 12px; color: #2563eb; }
.recent:hover b { color: var(--primary); }
.b-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b-tags button, .b-tags a { font-size: 13px; padding: 5px 12px; border-radius: 20px; background: #f6f7f9; color: var(--muted); transition: .2s; }
.b-tags button:hover, .b-tags a:hover, .b-tags button.active { background: var(--primary); color: #fff; }

/* cover art (replace with <img> later) */
.b-cover { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; border-radius: 10px; }
.b-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); z-index: 1; }
.b-emo { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); font-size: clamp(54px, 7vw, 90px); filter: drop-shadow(0 12px 16px rgba(0,0,0,.25)); transition: .4s; }
.b-cover-title { position: relative; z-index: 2; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; max-width: 70%; text-shadow: 0 2px 8px rgba(0,0,0,.35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-cover.big { aspect-ratio: 16 / 7; border-radius: 14px; }
.b-cover.big .b-emo { font-size: clamp(80px, 11vw, 150px); }
.b-cover.big .b-cover-title { display: none; }

/* cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b-card { background: #fff; border-radius: 14px; border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; transition: .3s; }
.b-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.b-card:hover .b-emo { transform: translateY(-50%) scale(1.12) rotate(-6deg); }
.b-body { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.b-body h3 { font-size: 18px; line-height: 1.35; margin-bottom: 8px; transition: .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-body a:hover h3 { color: var(--primary); }
.b-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.b-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: auto; align-items: center; }
.b-cat { display: inline-block; align-self: flex-start; font-size: 12.5px; color: #2563eb; background: #eff6ff; padding: 3px 10px; border-radius: 20px; margin-top: 8px; font-weight: 500; }
.b-more { color: var(--primary); font-weight: 700; margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font-size: 16px; }
.b-more span { transition: .2s; }
.b-card:hover .b-more span, .b-featured:hover .b-more span { transform: translateX(5px); }

/* featured */
.b-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 22px; align-items: center; transition: .3s; }
.b-featured:hover { box-shadow: var(--shadow-hover); }
.b-featured .b-cover.big { aspect-ratio: 16 / 10; }
.bf-body { padding-right: 14px; display: flex; flex-direction: column; }
.bf-label { align-self: flex-start; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.bf-body h2 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; margin-bottom: 10px; }
.bf-body p { color: var(--muted); margin-bottom: 14px; line-height: 1.65; }
.bf-body .b-cat { margin-top: 0; }

/* article */
.b-article { min-width: 0; }
.b-article-body { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 30px 36px; margin-top: -40px; position: relative; z-index: 2; margin-left: 20px; margin-right: 20px; }
.b-article-body h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin: 10px 0 12px; }
.b-meta.big { font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.author i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; }
.b-content { font-size: 17px; line-height: 1.85; color: #374151; }
.b-content p { margin-bottom: 16px; }
.b-content h2 { font-size: 21px; color: var(--text); margin: 26px 0 10px; }
.b-content ul, .b-content ol { margin: 0 0 18px 22px; }
.b-content ul { list-style: disc; }
.b-content ol { list-style: decimal; }
.b-content li { margin-bottom: 6px; padding-left: 4px; }
.b-content li::marker { color: var(--primary); font-weight: 700; }
.b-content blockquote { border-left: 4px solid var(--primary); background: var(--primary-tint); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; font-weight: 500; color: var(--text); }
.b-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 24px; }
.b-share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.b-share a, .b-share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; transition: .2s; }
.b-share .fb { background: #1877f2; }
.b-share .wa { background: #25d366; }
.b-share button { background: #6b7280; }
.b-share a:hover, .b-share button:hover { transform: translateY(-3px); }

.b-related-prod { margin-top: 24px; }
.b-related-prod:empty { display: none; }
.b-related-prod h3 { font-size: 17px; margin-bottom: 12px; }
.rp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; transition: .2s; }
.rp:hover { border-color: var(--primary); }
.rp-thumb { width: 54px; height: 54px; border-radius: 10px; background: #f6f7f9; display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.rp > div { flex: 1; min-width: 0; }
.rp b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .price { font-size: 15px; }
.rp .add-cart { font-size: 20px; font-weight: 700; }
.oos-s { color: var(--muted); font-size: 12px; }

.b-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.b-nav a { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: .2s; }
.b-nav a:hover { border-color: var(--primary); background: var(--primary-tint); }
.b-nav a.nx { text-align: right; }
.b-nav small { color: var(--primary); font-weight: 600; font-size: 13px; }
.b-nav b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; margin-top: 4px; }
.b-article .blog-grid { grid-template-columns: repeat(3, 1fr); }

/* ---- blog details (prodhan.com layout: title > date/category + share > hero image > content) ---- */
.blog-layout.detail { grid-template-columns: 1fr 380px; gap: 34px; }
.b-title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.35; font-weight: 700; margin: 6px 0 16px; }
.b-headline { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.b-dc { display: flex; flex-direction: column; gap: 4px; }
.b-date { color: var(--muted); font-size: 15px; }
.b-catlink { color: #2563eb; font-size: 15px; }
.b-catlink:hover { text-decoration: underline; }
.b-share-sq { display: flex; gap: 10px; }
.b-share-sq a { width: 44px; height: 40px; border-radius: 3px; display: grid; place-items: center; color: #fff; transition: .2s; cursor: pointer; }
.b-share-sq a:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.b-share-sq .email { background: #3d9ae8; }
.b-share-sq .twitter { background: #1da1f2; }
.b-share-sq .facebook { background: #3b5998; }
.b-share-sq .linkedin { background: #0077b5; }
.b-share-sq .whatsapp { background: #25d366; }
.b-cover.hero { aspect-ratio: 2 / 1; border-radius: 6px; }
.b-cover.hero .b-emo { font-size: clamp(90px, 13vw, 180px); right: 10%; }
.b-cover.hero .b-cover-title { font-size: clamp(20px, 2.6vw, 34px); max-width: 55%; -webkit-line-clamp: 3; }
.detail .b-article-body { margin: 22px 0 0; }
.detail .b-meta.big { justify-content: flex-start; }
.copy-btn { padding: 8px 18px; font-size: 14px; }

.detail .blog-side .recent { gap: 16px; padding: 14px 0; }
.detail .blog-side .r-thumb { width: 112px; height: 104px; font-size: 42px; border-radius: 4px; }
.detail .blog-side .recent b { font-size: 16px; -webkit-line-clamp: 2; }
.detail .blog-side .recent small { font-size: 14px; margin-top: 10px; }
.detail .blog-side .recent i { font-size: 14px; }
.recent.current b { color: var(--primary); }
.recent.current .r-thumb { box-shadow: 0 0 0 3px var(--primary); }

@media (max-width: 1200px) {
  .blog-layout.detail { grid-template-columns: 1fr 320px; gap: 24px; }
  .detail .blog-side .r-thumb { width: 90px; height: 84px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .b-article .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .blog-layout, .blog-layout.list, .blog-layout.detail { grid-template-columns: 1fr; }
  .blog-side { position: static; }
  .blog-layout.list .blog-side { order: 2; }
  .b-featured { grid-template-columns: 1fr; }
  .bf-body { padding: 0 6px 6px; }
}
@media (max-width: 640px) {
  .blog-grid, .b-article .blog-grid { grid-template-columns: 1fr; }
  .b-article-body { margin: -24px 8px 0; padding: 22px 18px; }
  .detail .b-article-body { margin: 16px 0 0; }
  .b-share-sq a { width: 40px; height: 38px; }
  .b-cover.hero .b-cover-title { display: none; }
  .detail .blog-side .r-thumb { width: 84px; height: 76px; font-size: 32px; }
  .detail .blog-side .recent b { font-size: 15px; }
  .b-content { font-size: 16px; }
  .b-cover.big { aspect-ratio: 16 / 9; }
  .rp-list, .b-nav { grid-template-columns: 1fr; }
  .b-nav a.nx { text-align: left; }
}

@media (max-width: 992px) {
  .camp-hero { grid-template-columns: 1fr; }
  .camp-hero-art { display: none; }
  .camp-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-btn { bottom: 80px; right: 16px; }
  .to-top { right: 16px; bottom: 146px; width: 46px; height: 46px; }
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 24px; }
  .camp-hero-body { padding: 28px 22px; }
  .big-timer div { width: 60px; }
  .big-timer b { font-size: 22px; }
  .camp-grid { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr 1fr; }
  .policy { border-bottom: 1px solid var(--border); padding: 22px 10px; font-size: 14px; }
  .policy:nth-child(odd) { border-left: 1px solid var(--border); }
}

/* =========================================================
   TRACK ORDER
   ========================================================= */
.tr-search { background: #fff; border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 220px 1fr; overflow: hidden; }
.tr-search-art { background: linear-gradient(150deg, var(--primary-light), var(--primary-dark)); display: grid; place-items: center; font-size: 96px; }
.tr-search form { padding: 30px 34px; }
.tr-search h2 { font-size: 24px; margin-bottom: 4px; }
.tr-search form > p { color: var(--muted); margin-bottom: 18px; }
.tr-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: start; }
.tr-fields .f-group { margin-bottom: 0; }
.tr-fields .btn { margin-top: 27px; padding: 13px 26px; border-radius: 10px; }
.tr-hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
.tr-hint code { background: var(--primary-soft); color: var(--primary); padding: 2px 8px; border-radius: 5px; font-weight: 700; }
.tr-hint code[data-demo] { cursor: pointer; }
.tr-hint code[data-demo]:hover { background: var(--primary); color: #fff; }

.tr-mine { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.tr-mine a { background: #fff; border: 1.5px solid var(--border); border-radius: 30px; padding: 5px 14px; font-weight: 600; color: var(--text); transition: .2s; }
.tr-mine a small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.tr-mine a:hover, .tr-mine a.active { border-color: var(--primary); color: var(--primary); }

#trResult:not(:empty) { margin-top: 24px; scroll-margin-top: 80px; }
.tr-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 26px 28px; }
.tr-head { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.tr-head small { color: var(--muted); font-size: 13px; display: block; }
.tr-head h2 { font-size: 26px; color: var(--primary); letter-spacing: .5px; }
.tr-date { font-size: 13.5px; color: var(--muted); }
.tr-status { display: flex; align-items: center; gap: 12px; background: var(--primary-soft); border-radius: 14px; padding: 12px 18px; }
.tr-status > span { font-size: 28px; }
.tr-status b { font-size: 17px; color: var(--primary); }
.tr-status.done { background: #dcfce7; }
.tr-status.done b { color: var(--success); }
.tr-status.cancelled { background: #fee2e2; }
.tr-status.cancelled b { color: var(--danger); }
.tr-eta { text-align: right; }
.tr-eta b { font-size: 17px; }

.tr-progress { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); padding: 30px 0 10px; }
.tr-line { position: absolute; top: 50px; left: 8.33%; right: 8.33%; height: 4px; background: var(--border); border-radius: 4px; }
.tr-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 4px; transition: width .8s; }
.tr-step { text-align: center; position: relative; z-index: 1; padding: 0 4px; }
.tr-step .dot { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #fff; border: 3px solid var(--border); color: var(--muted); font-weight: 700; font-size: 15px; }
.tr-step b { display: block; font-size: 14px; color: var(--muted); }
.tr-step small { font-size: 12px; color: var(--muted); }
.tr-step.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.tr-step.done b { color: var(--text); }
.tr-step.now .dot { background: #fff; border-color: var(--primary); font-size: 20px; box-shadow: 0 0 0 6px var(--primary-soft); animation: trPulse 2s infinite; }
.tr-step.now b { color: var(--primary); }
@keyframes trPulse { 50% { box-shadow: 0 0 0 10px rgba(11,45,107,.08); } }
.tr-cancel-note { background: #fef2f2; color: #991b1b; border-radius: 12px; padding: 14px 18px; margin-top: 20px; }

.tr-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-top: 20px; }
.tr-box { border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.tr-box h3 { font-size: 16px; margin-bottom: 14px; }
.tr-timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.tr-timeline li:last-child { padding-bottom: 0; }
.tr-timeline li::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--border); }
.tr-timeline li:last-child::before { display: none; }
.tr-timeline li > span { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.tr-timeline li.now > span { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tr-timeline b { display: block; font-size: 15px; }
.tr-timeline li.now b { color: var(--primary); }
.tr-timeline small { color: var(--muted); font-size: 13px; }
.tr-info { display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; font-size: 14.5px; }
.tr-info dt { color: var(--muted); }
.tr-info dd { font-weight: 500; }
.tr-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tr-item .thumb { width: 46px; height: 46px; border-radius: 10px; background: #f6f7f9; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.tr-item div { flex: 1; min-width: 0; }
.tr-item b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-item small { color: var(--muted); }
.tr-sum { margin-top: 10px; font-size: 14.5px; }
.tr-sum div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.tr-sum b { color: var(--text); }
.tr-sum .disc b { color: var(--success); }
.tr-sum .total { border-top: 1.5px dashed var(--border); margin-top: 6px; padding-top: 10px; font-size: 17px; color: var(--text); font-weight: 700; }
.tr-sum .total b { color: var(--primary); font-size: 20px; }
.tr-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }
.tr-actions .btn { padding: 10px 20px; font-size: 14.5px; }
.tr-cancel { color: var(--danger); border-color: #fecaca; }
.tr-cancel:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.tr-notfound { text-align: center; padding: 40px 20px; }
.tr-notfound > div { font-size: 54px; }
.tr-notfound h3 { margin: 8px 0 6px; }
.tr-notfound p { color: var(--muted); }
.tr-notfound a { color: var(--primary); font-weight: 700; }

@media (max-width: 992px) {
  .tr-search { grid-template-columns: 1fr; }
  .tr-search-art { font-size: 60px; padding: 18px; }
  .tr-fields { grid-template-columns: 1fr 1fr; }
  .tr-fields .btn { margin-top: 0; grid-column: 1 / -1; justify-content: center; }
  .tr-head { grid-template-columns: 1fr 1fr; }
  .tr-head > div:first-child { grid-column: 1 / -1; }
  .tr-eta { text-align: left; }
  .tr-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tr-search form, .tr-card { padding: 20px 16px; }
  .tr-fields { grid-template-columns: 1fr; }
  .tr-head { grid-template-columns: 1fr; }
  .tr-progress { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .tr-line { display: none; }
  .tr-step .dot { width: 38px; height: 38px; }
  .tr-step b { font-size: 12.5px; }
  .tr-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* invoice print: shudhu order card */
@media print {
  .top-strip, .header, .navbar, .page-head, .tr-search, .tr-mine, .tr-actions, .policy-strip, .footer,
  .chat-btn, .to-top, .bottom-nav, .toast { display: none !important; }
  body { background: #fff; padding: 0; }
  .tr-card { box-shadow: none; padding: 0; }
  #trResult { margin: 0; }
}
