/* Laptop Plaza storefront styles */
:root {
  --brand-900: #14234d;
  --brand-800: #1d326b;
  --brand-700: #2b4c9b;
  --brand: #3456a6;
  --brand-400: #5b7cc9;
  --brand-100: #e7edfa;
  --brand-50: #f3f6fd;
  --accent: #ffb020;
  --accent-600: #f29d00;
  --accent-50: #fff6e3;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e8ef;
  --bg: #f4f6fa;
  --card: #ffffff;
  --danger: #dc2626;
  --danger-50: #fdecec;
  --ok: #15924f;
  --ok-50: #e7f6ee;
  --wa: #1fa855;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 18px rgba(17, 24, 39, .06);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, .16);
  --header-h: 128px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
main.container { min-height: 60vh; padding-top: 22px; padding-bottom: 48px; outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.3px; }
h2 { letter-spacing: -.2px; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--brand-900); color: #c7d2ee; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 34px; }
.tb-left { display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.tb-right { display: flex; gap: 18px; }
.tb-right a:hover { color: #fff; }

.header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; color: var(--brand-700); font-weight: 800; letter-spacing: -.4px; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 500; }

.search { flex: 1; position: relative; display: flex; align-items: center; max-width: 680px; }
.search-ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 110px 0 44px; border: 1.5px solid var(--line);
  border-radius: 999px; outline: none; background: var(--bg); transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.search button {
  position: absolute; right: 4px; height: 38px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--brand-700); color: #fff; font-weight: 700;
}
.search button:hover { background: var(--brand-800); }
.suggest {
  position: absolute; top: 54px; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 70;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--brand-50); }
.suggest img, .suggest .ph { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; font-size: 9px; }
.suggest .s-name { font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest .s-price { font-weight: 700; color: var(--brand-700); font-size: 14px; white-space: nowrap; }
.suggest .s-all { justify-content: center; font-weight: 700; color: var(--brand-700); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.h-action { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r); color: var(--ink-2); font-weight: 700; font-size: 14px; line-height: 1.15; }
.h-action:hover { background: var(--brand-50); color: var(--brand-700); }
.h-action small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.cart-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); }
.badge {
  position: absolute; top: -3px; right: -3px; background: var(--accent); color: var(--ink);
  font-size: 11px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.icon-btn { background: none; border: 0; padding: 8px; color: var(--ink-2); border-radius: 10px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--brand-50); }
.menu-toggle { display: none; }

.nav { background: var(--brand-700); }
.nav-head { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: #fff; font-weight: 600; font-size: 14px; }
.nav-item > a svg { opacity: .7; }
.nav-item:hover > a, .nav-item > a.active { background: rgba(255, 255, 255, .12); }
.mega {
  display: none; position: absolute; top: 100%; left: 0; width: max-content; max-width: min(720px, 90vw);
  background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--r) var(--r); padding: 18px 20px; z-index: 65;
}
.nav-item:nth-last-child(-n+4) .mega { left: auto; right: 0; }
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(170px, 1fr)); gap: 2px 18px; }
.mega a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; font-size: 14px; border-radius: 8px; color: var(--ink-2); }
.mega a:hover { background: var(--brand-50); color: var(--brand-700); }
.mega small { color: var(--muted); font-size: 12px; }
.mega .mega-all { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; display: block; font-weight: 700; color: var(--brand-700); }
.backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 75; }

/* ---------- buttons & generic ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; border: 0; font-weight: 700; background: var(--brand-700); color: #fff; white-space: nowrap;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--brand-800); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-600); }
.btn-outline { background: #fff; color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand-700); }
.btn-outline:hover { background: var(--brand-50); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #178a45; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--brand-700); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 38px 0 14px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 23px; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.section-head a { color: var(--brand-700); font-weight: 700; font-size: 14px; white-space: nowrap; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty svg { color: var(--brand-400); margin: 0 auto 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-ok { background: var(--ok-50); color: var(--ok); }
.pill-warn { background: var(--accent-50); color: #9a6200; }
.pill-bad { background: var(--danger-50); color: var(--danger); }
.pill-info { background: var(--brand-100); color: var(--brand-700); }
.notice { padding: 14px 16px; border-radius: var(--r); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice-ok { background: var(--ok-50); color: #0f5f35; }
.notice-warn { background: var(--accent-50); color: #7a4d00; }
.notice-bad { background: var(--danger-50); color: #991b1b; }
.notice-info { background: var(--brand-50); color: var(--brand-800); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; }
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 330px; background: var(--brand-800); }
.slide {
  position: absolute; inset: 0; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide-1 { background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .14), transparent 40%), linear-gradient(120deg, var(--brand-900), var(--brand-700) 65%, var(--brand-400)); }
.slide-2 { background: radial-gradient(circle at 80% 70%, rgba(255, 176, 32, .35), transparent 45%), linear-gradient(120deg, #1a1033, #3b1f6e 60%, #6d3fc4); }
.slide-3 { background: radial-gradient(circle at 85% 40%, rgba(255, 255, 255, .15), transparent 40%), linear-gradient(120deg, #06332a, #0f6b52 60%, #1aa37a); }
.slide .kicker { display: inline-flex; width: fit-content; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 14px; }
.slide h2 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; max-width: 560px; letter-spacing: -.8px; }
.slide p { margin: 0 0 24px; color: rgba(255, 255, 255, .82); max-width: 470px; }
.slide .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.slide-art { position: absolute; right: 34px; bottom: 26px; width: 34%; max-width: 300px; opacity: .95; }
.slide-art img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); background: #fff; border-radius: 22px; padding: 14px; }
.dots { position: absolute; left: 44px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .4); padding: 0; transition: width .2s; }
.dots button.on { width: 26px; background: #fff; }
.hero-side { display: grid; gap: 16px; }
.hero-tile { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; transition: transform .15s; }
.hero-tile:hover { transform: translateY(-2px); }
.hero-tile h3 { margin: 0 0 4px; font-size: 19px; }
.hero-tile p { margin: 0 0 10px; font-size: 14px; max-width: 80%; }
.hero-tile span { font-weight: 700; font-size: 14px; }
.hero-tile svg.bg { position: absolute; right: -10px; bottom: -10px; opacity: .15; }
.tile-a { background: var(--accent-50); color: #6b4300; }
.tile-b { background: var(--ok-50); color: #0f5f35; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 16px; }
.perk .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; }
.perk b { display: block; font-size: 14px; }
.perk span { font-size: 12.5px; color: var(--muted); }

/* ---------- categories & brands ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { padding: 20px 12px 16px; text-align: center; transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(17, 24, 39, .12); }
.cat-tile .ico { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); display: grid; place-items: center; }
.cat-tile b { display: block; font-size: 14.5px; }
.cat-tile span { font-size: 12.5px; color: var(--muted); }
.brands { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.brand-chip { flex-shrink: 0; padding: 12px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); letter-spacing: .3px; transition: border-color .15s, color .15s; }
.brand-chip:hover { border-color: var(--brand); color: var(--brand-700); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.p-card { display: flex; flex-direction: column; padding: 14px; position: relative; transition: box-shadow .18s, transform .18s; }
.p-card:hover { box-shadow: 0 10px 28px rgba(17, 24, 39, .13); transform: translateY(-2px); }
.p-card .img { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.p-card:hover .img img { transform: scale(1.04); }
.ph { background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; border-radius: 10px; width: 100%; height: 100%; font-weight: 800; font-size: 13px; text-align: center; padding: 8px; }
.p-card .brandname { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.p-card .name { font-size: 14px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.p-card .name:hover { color: var(--brand-700); }
.p-card ul { margin: 0 0 10px; padding-left: 15px; font-size: 12px; color: var(--muted); }
.p-card ul li { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-weight: 800; color: var(--brand-700); font-size: 18px; letter-spacing: -.2px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; font-weight: 500; display: block; }
.status { font-weight: 700; font-size: 13.5px; }
.status.out_of_stock { color: var(--danger); }
.status.upcoming, .status.pre_order, .status.in_stock { color: #9a6200; }
.add-btn { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand-700); color: #fff; display: grid; place-items: center; transition: background .15s, transform .15s; }
.add-btn:hover { background: var(--accent); color: var(--ink); transform: scale(1.06); }
.ask-btn { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--wa); padding: 6px 10px; border-radius: 999px; background: #e9f8ef; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; z-index: 1; }

/* ---------- listing ---------- */
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.filters { padding: 18px; position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 30px); overflow: auto; }
.filters h3 { font-size: 12px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.filters label small { margin-left: auto; color: var(--muted); }
.filters input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand-700); }
.filters .scroll { max-height: 240px; overflow: auto; padding-right: 4px; }
.filters .range { display: flex; gap: 8px; }
.filters .range input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.filter-search { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; font-size: 13px; background: var(--bg); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; background: #fff; }
.filter-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager button:hover { border-color: var(--brand); }
.pager button.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: default; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; padding: 26px; }
.gallery { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: #fff; position: sticky; top: calc(var(--header-h) + 14px); }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-size: 25px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.meta span { background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.meta b { color: var(--brand-800); }
.price-box { background: var(--brand-50); border-radius: var(--r); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-box .price { font-size: 30px; }
.price-box .price-old { display: inline; margin-left: 8px; font-size: 15px; }
.key-specs { margin: 18px 0 6px; padding: 0; list-style: none; }
.key-specs li { padding: 9px 0 9px 26px; border-bottom: 1px dashed var(--line); font-size: 14px; position: relative; }
.key-specs li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); }
.key-specs li:last-child { border-bottom: 0; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; height: 46px; background: #fff; }
.qty button { width: 42px; border: 0; background: none; font-size: 18px; color: var(--ink-2); }
.qty button:hover { background: var(--brand-50); }
.qty input { width: 44px; border: 0; text-align: center; outline: none; font-weight: 700; }
.assure { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assure div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--bg); font-size: 13px; }
.assure svg { color: var(--brand-700); flex-shrink: 0; }
.tabs { margin-top: 22px; }
.tab-btns { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab-btns button { background: none; border: 0; padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btns button.on { color: var(--brand-700); border-color: var(--brand-700); }
.tab-pane { padding: 20px 4px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { width: 32%; color: var(--muted); font-weight: 600; background: var(--bg); }

/* ---------- cart & checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto 36px; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 6px; }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-row a.nm { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-row .qty { height: 38px; }
.cart-row .qty button { width: 34px; }
.cart-row .qty input { width: 34px; }
.rm { background: none; border: 0; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.rm:hover { background: var(--danger-50); color: var(--danger); }
.summary { padding: 20px; position: sticky; top: calc(var(--header-h) + 14px); }
.summary h3 { margin: 0 0 12px; font-size: 18px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 19px; }
.mini-items { display: grid; gap: 10px; margin-bottom: 12px; max-height: 300px; overflow: auto; }
.mini-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.mini-item .thumb { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; position: relative; }
.mini-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-item .thumb b { position: absolute; top: -6px; right: -6px; background: var(--ink-2); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.mini-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.checkout-steps { display: grid; gap: 16px; }
.step { padding: 22px; }
.step h2 { font-size: 18px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.step h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-700); color: #fff; font-size: 14px; display: grid; place-items: center; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field textarea { min-height: 76px; resize: vertical; }
.field .err { color: var(--danger); font-size: 12.5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.options { display: grid; gap: 10px; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; background: #fff; }
.opt-card:hover { border-color: var(--brand-400); }
.opt-card input { position: absolute; opacity: 0; }
.opt-card .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3cad8; flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.opt-card.on { border-color: var(--brand-700); background: var(--brand-50); }
.opt-card.on .radio { border-color: var(--brand-700); }
.opt-card.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-700); }
.opt-card input:focus-visible + .radio { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.opt-card b { display: block; font-size: 14.5px; }
.opt-card small { color: var(--muted); font-size: 12.5px; }
.opt-card .right { margin-left: auto; font-weight: 800; white-space: nowrap; }
.pay-logo { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0; letter-spacing: .3px; }
.pl-cod { background: #475569; }
.pl-bkash { background: #e2136e; }
.pl-nagad { background: #f6921e; }
.pl-bank { background: #0f766e; }
.pl-sslcommerz { background: #1d4ed8; }
.pay-detail { margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--bg); font-size: 14px; display: none; }
.pay-detail.on { display: block; }
.pay-detail ol { margin: 6px 0 12px; padding-left: 20px; }
.pay-detail .num { font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.copy { border: 0; background: var(--brand-100); color: var(--brand-700); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 6px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 14px 0; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-700); }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- order page ---------- */
.order-hero { padding: 28px; text-align: center; }
.order-hero .big-ico { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.order-hero.ok .big-ico { background: var(--ok-50); color: var(--ok); }
.order-hero.warn .big-ico { background: var(--accent-50); color: #9a6200; }
.order-hero.bad .big-ico { background: var(--danger-50); color: var(--danger); }
.order-no { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 18px; background: var(--bg); padding: 8px 16px; border-radius: 999px; margin-top: 8px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 22px 0 6px; }
.tl-step { text-align: center; font-size: 12.5px; color: var(--muted); position: relative; }
.tl-step .c { width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: #fff; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 800; font-size: 13px; position: relative; z-index: 1; }
.tl-step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-step.done { color: var(--ink); font-weight: 700; }
.tl-step.done .c, .tl-step.done::before { background: var(--ok); }
.history { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.history li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.history li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-400); }
.history time { color: var(--muted); font-size: 12px; display: block; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- static pages ---------- */
.page { padding: 30px; max-width: 860px; }
.page h2 { margin-top: 26px; font-size: 18px; }
.track-box { max-width: 520px; margin: 30px auto; padding: 28px; }

/* ---------- newsletter / CTA & footer ---------- */
.newsletter { background: linear-gradient(110deg, var(--brand-800), var(--brand-700)); color: #fff; margin-top: 30px; }
.nl-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.nl-inner h2 { margin: 0 0 4px; font-size: 24px; }
.nl-inner p { margin: 0; color: #c9d5f2; }
.nl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer { background: #0e1630; color: #a8b3cf; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 42px; padding-bottom: 28px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand img { border-radius: 10px; }
.f-about p { margin: 0 0 16px; max-width: 360px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #dbe3f7; }
.socials a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid #1f2a4d; padding-top: 16px; padding-bottom: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badges span { padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #dbe3f7; font-size: 11.5px; font-weight: 700; }

/* ---------- floating buttons & assistant ---------- */
.fab { position: fixed; right: 18px; z-index: 80; border: 0; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.fab:hover { transform: translateY(-2px); }
.fab-ai { bottom: 18px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: linear-gradient(120deg, var(--brand-700), #6d4fd8); gap: 8px; font-weight: 800; }
.fab-wa { bottom: 84px; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); }
.assistant {
  position: fixed; right: 18px; bottom: 18px; width: 400px; max-width: calc(100vw - 24px); height: min(640px, calc(100vh - 36px));
  background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(17, 24, 39, .28); z-index: 90; display: flex; flex-direction: column; overflow: hidden;
}
.assistant[hidden] { display: none; }
.as-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: linear-gradient(120deg, var(--brand-800), var(--brand-700)); color: #fff; }
.as-head img { border-radius: 10px; }
.as-head div { flex: 1; line-height: 1.2; }
.as-head small { display: block; font-size: 12px; color: #c9d5f2; }
.as-head .icon-btn { color: #fff; }
.as-head .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.as-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); align-self: flex-start; }
.msg.me { background: var(--brand-700); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.err { background: var(--danger-50); color: #991b1b; align-self: flex-start; }
.msg a { color: var(--brand-700); font-weight: 700; text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.as-products { display: grid; gap: 8px; align-self: stretch; }
.as-prod { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); font-size: 13px; }
.as-prod .thumb { width: 56px; height: 56px; }
.as-prod .thumb img { width: 100%; height: 100%; object-fit: contain; }
.as-prod .nm { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-prod .pr { color: var(--brand-700); font-weight: 800; }
.as-prod .add-btn { width: 34px; height: 34px; }
.as-chips { display: flex; gap: 6px; padding: 8px 12px 0; flex-wrap: wrap; background: #fff; }
.as-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.as-chips button:hover { border-color: var(--brand); color: var(--brand-700); }
.as-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; align-items: flex-end; }
.as-form textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; max-height: 120px; outline: none; font-size: 14px; }
.as-form textarea:focus { border-color: var(--brand); }
.as-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-700); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.as-form button[disabled] { opacity: .5; }
.as-note { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); background: #fff; text-align: center; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140px); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: transform .25s; z-index: 120; max-width: calc(100% - 32px);
  display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg);
}
.toast a { color: var(--accent); font-weight: 800; }
.toast.show { transform: translate(-50%, 0); }

.skeleton { background: linear-gradient(90deg, #eceff5 25%, #f6f8fb 50%, #eceff5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  :root { --header-h: 118px; }
  .menu-toggle { display: grid; }
  .brand-text small, .hide-sm { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; padding-right: 90px; }
  .search button { padding: 0 14px; }
  .h-action { padding: 4px; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; transform: translateX(-100%); transition: transform .25s; z-index: 85; overflow: auto; background: #fff; }
  .nav.open { transform: translateX(0); }
  .nav .container { padding: 0; }
  .nav-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .nav-list { flex-direction: column; }
  .nav-item > a { color: var(--ink); padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .nav-item:hover > a, .nav-item > a.active { background: var(--brand-50); }
  .mega { display: none !important; }
  .hero { grid-template-columns: 1fr; }
  .slider { min-height: 300px; }
  .slide { padding: 26px 24px 62px; }
  .slide h2 { font-size: 27px; }
  .slide-art { display: none; }
  .dots { left: 24px; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .gallery { position: static; padding: 16px; }
  .topbar .tb-left { display: none; }
  .topbar-inner { justify-content: center; }
  .fields { grid-template-columns: 1fr; }
  .options.cols-3 { grid-template-columns: 1fr; }
  .timeline { font-size: 11px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  h1 { font-size: 22px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 14px 6px 12px; }
  .cat-tile .ico { width: 46px; height: 46px; border-radius: 13px; }
  .cat-tile span { display: none; }
  .cat-tile b { font-size: 12.5px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perk { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-tile p { max-width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-card { padding: 10px; }
  .p-card ul { display: none; }
  .p-card .name { font-size: 13px; }
  .price { font-size: 15.5px; }
  .add-btn { width: 36px; height: 36px; }
  .sub-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .sub-chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex-shrink: 0; }
  .cart-row { grid-template-columns: 64px minmax(0, 1fr) 36px; grid-template-areas: "t n r" "t q p"; gap: 8px 12px; }
  .cart-row .thumb { grid-area: t; width: 64px; height: 64px; }
  .cart-row .nmwrap { grid-area: n; }
  .cart-row .qty { grid-area: q; justify-self: start; }
  .cart-row .line-total { grid-area: p; justify-self: end; align-self: center; }
  .cart-row .rm { grid-area: r; }
  .assure { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab-ai span { display: none; }
  .fab-ai { width: 54px; padding: 0; }
  .assistant { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; border-radius: 0; }
  .step { padding: 16px; }
  .timeline .tl-step span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- v4 additions ---------- */
.promo-strip { display: block; text-align: center; background: var(--accent); color: var(--ink); font-size: 13.5px; padding: 8px 16px; }
.promo-strip:hover { background: var(--accent-600); }
.slide-4 { background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .1), transparent 40%), linear-gradient(120deg, #0b0f1a, #1f2937 60%, #374151); }
.slide-5 { background: radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .25), transparent 45%), linear-gradient(120deg, #7a3e00, #d97706 60%, #fbbf24); }
.slide:has(.slide-art) h2, .slide:has(.slide-art) p { max-width: 56%; }
@media (max-width: 1180px) { .slide-art { display: none; } .slide:has(.slide-art) h2, .slide:has(.slide-art) p { max-width: 560px; } }
.tile-img { position: absolute; right: 12px; bottom: 12px; width: 38%; max-height: 80%; object-fit: contain; }
.msg.staff { border-left: 3px solid var(--ok); }
.msg small { display: block; font-size: 11px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.as-tool { width: 40px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.as-tool:hover { background: var(--brand-50); color: var(--brand-700); }
.as-tool.rec { color: #fff; background: var(--danger); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .25); } }
