/* =====================================================================
   Neuron Tech — storefront (P3): mega menu, search suggestions, product
   cards and rails, listing pages with filters, product page, store page,
   compare, home sections. Uses the --nt-* tokens from site.css.
   ===================================================================== */

/* ---------- header additions ---------- */
.nt-mega-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem .85rem; border: 0; background: none; color: var(--nt-ink); font-weight: 700; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nt-mega-btn i:first-child { color: var(--nt-blue); }
.nt-mega-btn .caret { font-size: .7rem; transition: transform .2s; }
.nt-mega-btn[aria-expanded="true"] { border-bottom-color: var(--nt-lime-deep); }
.nt-mega-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nt-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--nt-line); box-shadow: 0 24px 40px -24px rgba(11, 16, 36, .35); max-height: 72vh; overflow-y: auto; z-index: 1031; }
.nt-mega__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem 1.2rem; padding: 1.4rem 0 1.6rem; }
.nt-mega__col .root { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--nt-ink); margin-bottom: .45rem; }
.nt-mega__col .root i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--nt-blue-soft); color: var(--nt-blue); font-size: .95rem; }
.nt-mega__col ul { list-style: none; margin: 0; padding: 0 0 0 2.4rem; }
.nt-mega__col li a { display: block; padding: .18rem 0; color: var(--nt-muted); font-size: .9rem; }
.nt-mega__col li a:hover, .nt-mega__col .root:hover { color: var(--nt-blue-deep); }
@media (max-width: 1199.98px) { .nt-mega__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .nt-mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .nt-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .nt-mega__col ul { padding-left: 0; } }
@media (max-width: 420px) { .nt-mega__grid { grid-template-columns: 1fr; } }

/* search suggestions */
.nt-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--nt-line); border-radius: 16px; box-shadow: var(--nt-shadow-lift); max-height: 70vh; overflow-y: auto; z-index: 1040; padding: .35rem; text-align: left; }
.sg-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: 11px; color: var(--nt-ink-2); }
.sg-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--nt-paper); flex: 0 0 40px; }
.sg-item > i { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 10px; background: var(--nt-blue-soft); color: var(--nt-blue); }
.sg-item .sg-txt { display: flex; flex-direction: column; min-width: 0; }
.sg-item .sg-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-item .sg-s { font-size: .78rem; color: var(--nt-muted); }
.sg-item:hover, .sg-item.active { background: var(--nt-blue-soft); color: var(--nt-ink); }
.sg-all { display: block; padding: .55rem .65rem; margin-top: .2rem; border-top: 1px solid var(--nt-line); font-weight: 600; font-size: .88rem; }

/* ---------- product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--nt-card); border: 1px solid var(--nt-line); border-radius: var(--nt-radius); overflow: hidden; height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--nt-shadow-lift); border-color: var(--nt-line-2); }
.pcard-media { display: block; aspect-ratio: 1 / 1; background: #F4F3EF; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #C3C0B5; font-size: 2.4rem; }
.pcard-flags { position: absolute; top: .55rem; left: .55rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; pointer-events: none; }
.flag { font-size: .7rem; font-weight: 800; padding: .18rem .5rem; border-radius: 999px; line-height: 1.3; letter-spacing: .01em; }
.flag-deal { background: var(--nt-lime); color: var(--nt-ink); }
.flag-cond { background: var(--nt-ink); color: #fff; }
.flag-unoff { background: #FFE7B8; color: #7A4A00; }
.pcard-wish { position: absolute; top: .5rem; right: .5rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--nt-ink-2); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(11, 16, 36, .12); transition: transform .15s; }
.pcard-wish:hover { transform: scale(1.08); }
[data-wish].on, [data-wish].on i { color: #E0384F; }
.pcard-body { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem .75rem; flex: 1 1 auto; min-width: 0; }
.pcard-brand { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nt-muted); }
.pcard-title { font-size: .95rem; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
html[lang="bn"] .pcard-title { line-height: 1.4; min-height: 2.8em; }
.pcard-title a { color: var(--nt-ink); }
.pcard-title a:hover { color: var(--nt-blue-deep); }
.pcard-specs { font-size: .76rem; color: var(--nt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; margin-top: .15rem; }
.pcard-price .now { font-size: 1.08rem; font-weight: 800; color: var(--nt-ink); }
.pcard-price .was { font-size: .8rem; color: var(--nt-muted); }
.pcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; font-size: .76rem; color: var(--nt-muted); min-width: 0; }
.pcard-meta .store { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stock.low { color: var(--nt-warn); font-weight: 700; }
.stock.out { color: var(--nt-danger); font-weight: 700; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .45rem; }
.pcard-foot .offers { font-size: .76rem; font-weight: 700; }
.pcard-compare { border: 1px solid var(--nt-line); background: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; color: var(--nt-ink-2); display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }
.pcard-compare:hover, [data-compare].on { border-color: var(--nt-blue); color: var(--nt-blue-deep); background: var(--nt-blue-soft); }

/* rails & grids */
.card-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 216px); gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem .9rem; scrollbar-width: thin; }
.card-rail__item { scroll-snap-align: start; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: .9rem; }
.shop-grid--wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 575.98px) {
    .shop-grid, .shop-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .pcard-body { padding: .55rem .6rem .6rem; }
    .pcard-title { font-size: .86rem; }
    .pcard-price .now { font-size: .98rem; }
    .pcard-compare { padding: .18rem .45rem; }
    .card-rail { grid-auto-columns: minmax(156px, 172px); gap: .6rem; }
}
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.rail-head h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin: 0; }
.rail-head p { margin: .2rem 0 0; color: var(--nt-muted); font-size: .9rem; }
.rail-head > a { font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ---------- listing pages ---------- */
.shop-head { padding: 26px 0 8px; }
.shop-title { display: flex; align-items: center; gap: .8rem; margin: .5rem 0 .2rem; }
.shop-title h1 { font-size: clamp(1.45rem, 3.2vw, 2.15rem); margin: 0; }
.shop-title h1 .pre { display: block; font-size: .85rem; font-weight: 600; color: var(--nt-muted); letter-spacing: 0; }
.shop-title .brand-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--nt-line); padding: 4px; }
.shop-head .lede { color: var(--nt-muted); max-width: 70ch; margin: .2rem 0 .4rem; }
.subcats { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .3rem; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.subcat { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; background: #fff; border: 1px solid var(--nt-line); border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--nt-ink-2); }
.subcat i { color: var(--nt-blue); }
.subcat .n { font-size: .78rem; font-weight: 600; color: var(--nt-muted); background: var(--nt-paper); border-radius: 999px; padding: .02rem .45rem; }
.subcat:hover { border-color: var(--nt-blue); color: var(--nt-ink); }
.shop-body { padding: 12px 0 56px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 992px) {
    .shop-layout { grid-template-columns: 252px minmax(0, 1fr); }
    .shop-filters { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; padding-right: .3rem; align-self: start; }
    .shop-filters .offcanvas-header { display: none; }
    .shop-filters .offcanvas-body { padding: 0; overflow: visible; }
}
.shop-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.shop-count { color: var(--nt-muted); font-size: .9rem; font-weight: 600; margin-right: auto; }
.shop-sort .form-select { min-width: 190px; border-radius: 999px; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .4rem .3rem .75rem; border-radius: 999px; background: var(--nt-ink); color: #fff; font-size: .82rem; font-weight: 600; }
.filter-chip i { font-size: 1rem; color: var(--nt-lime); }
.filter-chip:hover { background: var(--nt-ink-2); color: #fff; }
.filter-clear { font-size: .82rem; font-weight: 700; margin-left: .3rem; }
.shop-empty { text-align: center; background: var(--nt-card); border: 1px dashed var(--nt-line-2); border-radius: var(--nt-radius); padding: 2.6rem 1.2rem; }
.shop-empty > i { font-size: 2.2rem; color: var(--nt-blue); display: block; margin-bottom: .4rem; }
.shop-empty p { color: var(--nt-muted); max-width: 46ch; margin: .3rem auto 1rem; }
.shop-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 1.6rem; }
.shop-pager .pg { min-width: 40px; height: 40px; padding: 0 .55rem; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--nt-line); background: #fff; color: var(--nt-ink-2); font-weight: 700; }
.shop-pager a.pg:hover { border-color: var(--nt-blue); color: var(--nt-blue-deep); }
.shop-pager .current { background: var(--nt-ink); border-color: var(--nt-ink); color: var(--nt-lime); }
.shop-pager .gap { border: 0; background: none; }

/* facets */
.facets { font-size: .92rem; }
.facet { border-bottom: 1px solid var(--nt-line); padding: .75rem 0; }
.facet-title { font-weight: 800; color: var(--nt-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.facet-title::-webkit-details-marker { display: none; }
details.facet > .facet-title::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .75rem; color: var(--nt-muted); transition: transform .2s; }
details.facet:not([open]) > .facet-title::after { transform: rotate(-90deg); }
.facet-title .unit { font-weight: 600; color: var(--nt-muted); }
.facet-checks, .facet-links { list-style: none; margin: .55rem 0 0; padding: 0; display: grid; gap: .3rem; }
.facet-checks li { display: flex; align-items: center; gap: .5rem; }
.facet-checks li.more { display: none; }
.facet.show-all .facet-checks li.more { display: flex; }
.facet-checks .form-check-input { margin: 0; flex: 0 0 auto; }
.facet-checks label { display: flex; align-items: center; gap: .4rem; flex: 1 1 auto; min-width: 0; cursor: pointer; color: var(--nt-ink-2); }
.facet-checks label .t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-checks label .n, .facet-links .n { color: var(--nt-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.swatch { width: 15px; height: 15px; border-radius: 50%; background: var(--sw, #ccc); border: 1px solid rgba(11, 16, 36, .18); flex: 0 0 15px; display: inline-block; }
.facet-more { border: 0; background: none; padding: .3rem 0 0; font-weight: 700; font-size: .82rem; color: var(--nt-blue-deep); }
.facet-links a { display: flex; justify-content: space-between; gap: .5rem; color: var(--nt-ink-2); padding: .1rem 0; }
.facet-links a:hover { color: var(--nt-blue-deep); }
.facet-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: .35rem; align-items: center; margin-top: .55rem; }
.facet-range .form-control { padding: .3rem .45rem; }
.facet-range span { color: var(--nt-muted); }
.facet-hint { font-size: .75rem; color: var(--nt-muted); margin-top: .3rem; }
.facet-actions { padding-top: .9rem; }
@media (min-width: 992px) { .facet-actions .btn-nt { display: none; } }
@media (max-width: 991.98px) { .shop-filters .facet-actions { position: sticky; bottom: -1rem; background: var(--nt-card); padding: .8rem 0 1rem; margin-bottom: -1rem; box-shadow: 0 -10px 16px -12px rgba(11, 16, 36, .25); } }

/* ---------- product page ---------- */
.pdp { padding: 18px 0 56px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: .8rem; }
@media (min-width: 992px) { .pdp-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 2.4rem; } .pdp-gallery { position: sticky; top: 132px; align-self: start; } }
.pdp-main { position: relative; aspect-ratio: 1 / 1; background: #F4F3EF; border-radius: 20px; overflow: hidden; border: 1px solid var(--nt-line); }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .25s ease; }
.pdp-main.zooming img { transform: scale(1.9); cursor: zoom-in; }
.pdp-main .pcard-flags { top: .9rem; left: .9rem; }
.pdp-thumbs { display: flex; gap: .55rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .2rem; }
.pdp-thumb { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 12px; border: 2px solid var(--nt-line); background: #F4F3EF; padding: 2px; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.pdp-thumb.active { border-color: var(--nt-blue); }
.pdp-brand { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pdp-title { font-size: clamp(1.4rem, 2.8vw, 2.05rem); margin: .3rem 0 .55rem; }
.pdp-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.pdp-keyspecs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.pdp-keyspecs li { background: var(--nt-card); border: 1px solid var(--nt-line); border-radius: 11px; padding: .45rem .65rem; display: flex; flex-direction: column; min-width: 0; }
.pdp-keyspecs span { font-size: .72rem; color: var(--nt-muted); font-weight: 600; }
.pdp-keyspecs b { font-size: .9rem; color: var(--nt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin: .4rem 0 .9rem; }
.pdp-price .now { font-size: clamp(1.7rem, 3.2vw, 2.15rem); font-weight: 800; color: var(--nt-ink); letter-spacing: -.02em; }
.pdp-price .was { color: var(--nt-muted); font-size: 1rem; }
.pdp-price .save { background: var(--nt-lime-soft); color: #4A5C00; font-weight: 800; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.pdp-buy { border-top: 1px solid var(--nt-line); padding-top: .9rem; }
.pdp-axis { border: 0; padding: 0; margin: 0 0 .85rem; min-width: 0; }
.pdp-axis legend { font-size: .85rem; font-weight: 700; color: var(--nt-muted); margin-bottom: .4rem; float: none; }
.pdp-axis legend b { color: var(--nt-ink); }
.pdp-opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.pdp-opt { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--nt-line-2); background: #fff; color: var(--nt-ink-2); border-radius: 11px; padding: .42rem .8rem; font-weight: 700; font-size: .88rem; transition: border-color .15s, background .15s; }
.pdp-opt:hover { border-color: var(--nt-ink); }
.pdp-opt.active { border-color: var(--nt-ink); background: var(--nt-blue-soft); color: var(--nt-ink); box-shadow: inset 0 0 0 1px var(--nt-ink); }
.pdp-opt.na { border-style: dashed; color: var(--nt-muted); opacity: .6; }
.pdp-opt .swatch { width: 18px; height: 18px; flex-basis: 18px; }
.pdp-stock { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-weight: 700; margin: .2rem 0 .9rem; }
.pdp-stock .sku { margin-left: auto; font-weight: 500; font-size: .78rem; color: var(--nt-muted); }
.pdp-actions { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.pdp-actions .btn-lg { border-radius: 14px; }
.pdp-actions .icon-only { width: 52px; padding: 0; display: grid; place-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--nt-line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.qty-btn { border: 0; background: none; width: 40px; height: 100%; min-height: 46px; color: var(--nt-ink); font-size: 1.1rem; }
.qty-btn:hover { background: var(--nt-paper); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-maxnote { font-size: .78rem; color: var(--nt-muted); margin: .5rem 0 0; }
.pdp-facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.pdp-facts li { display: flex; gap: .7rem; align-items: flex-start; background: var(--nt-card); border: 1px solid var(--nt-line); border-radius: 13px; padding: .65rem .8rem; }
.pdp-facts li > i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: var(--nt-blue-soft); color: var(--nt-blue); font-size: 1rem; }
.pdp-facts li.warn { background: #FFF8E8; border-color: #F3DDAA; }
.pdp-facts li.warn > i { background: #FFE7B8; color: #8A5300; }
.pdp-facts b { display: block; color: var(--nt-ink); font-size: .92rem; }
.pdp-facts span { color: var(--nt-muted); font-size: .84rem; }
.pdp-seller { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .8rem .9rem; border: 1px solid var(--nt-line); border-radius: 14px; background: #fff; }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--nt-ink); color: var(--nt-lime); display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pdp-seller .who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.pdp-seller .lbl { font-size: .72rem; color: var(--nt-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pdp-seller .name { font-weight: 800; color: var(--nt-ink); }
.pdp-seller .sub { font-size: .8rem; color: var(--nt-muted); }
.pdp-section { margin-top: 2.4rem; scroll-margin-top: 140px; }
.pdp-section > h2 { font-size: 1.3rem; margin-bottom: .9rem; }
.offer-list { display: grid; gap: .5rem; }
.offer-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) auto auto 16px; gap: .4rem 1rem; align-items: center; background: #fff; border: 1px solid var(--nt-line); border-radius: 14px; padding: .7rem .9rem; color: var(--nt-ink-2); }
.offer-row:hover { border-color: var(--nt-blue); color: var(--nt-ink); }
.offer-row .o-store { display: flex; flex-direction: column; min-width: 0; }
.offer-row .o-store b { color: var(--nt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-row .o-store span { font-size: .78rem; color: var(--nt-muted); }
.offer-row .o-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.offer-row .o-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: var(--nt-ink); }
.offer-row .o-price s { font-weight: 500; font-size: .76rem; color: var(--nt-muted); }
.offer-row .o-stock { font-size: .8rem; font-weight: 700; }
.offer-row .o-stock.in { color: var(--nt-ok); }
.offer-row .o-stock.out { color: var(--nt-danger); }
@media (max-width: 767.98px) {
    .offer-row { grid-template-columns: minmax(0, 1fr) auto; }
    .offer-row .o-tags { grid-column: 1 / -1; order: 3; }
    .offer-row .o-stock { order: 4; }
    .offer-row > .bi-chevron-right { display: none; }
}
.pdp-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
@media (min-width: 992px) { .pdp-details { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.cond-note { background: #FFF8E8; border: 1px solid #F3DDAA; border-radius: 12px; padding: .6rem .8rem; font-size: .92rem; }
.spec-table { display: grid; gap: 1.1rem; }
.spec-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--nt-muted); margin: 0 0 .35rem; }
.spec-group dl { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); margin: 0; background: #fff; border: 1px solid var(--nt-line); border-radius: 13px; overflow: hidden; }
.spec-group dt, .spec-group dd { padding: .55rem .85rem; margin: 0; border-top: 1px solid var(--nt-line); }
.spec-group dt:first-of-type, .spec-group dt:first-of-type + dd { border-top: 0; }
.spec-group dt { font-weight: 600; color: var(--nt-muted); background: #FBFAF7; font-size: .9rem; }
.spec-group dd { color: var(--nt-ink); font-size: .92rem; overflow-wrap: anywhere; }
.side-card { background: #fff; border: 1px solid var(--nt-line); border-radius: 16px; padding: 1rem 1.1rem; }
.side-card h2 { font-size: 1.05rem !important; }
.box-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.box-list i { color: var(--nt-ok); margin-right: .45rem; }
.seller-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .9rem; margin: 0; font-size: .9rem; }
.seller-dl dt { color: var(--nt-muted); font-weight: 600; }
.seller-dl dd { margin: 0; color: var(--nt-ink); overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .pdp-keyspecs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pdp-actions .btn-lg.flex-grow-1 { flex-basis: 100%; order: -1; } }

/* ---------- store page ---------- */
.store-head { padding-bottom: 6px; }
.store-banner { height: 170px; background: linear-gradient(120deg, #0B1024 0%, #1E2C75 55%, #2E5BFF 100%); background-size: cover; background-position: center; }
.store-id { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: -46px; }
.store-logo { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 24px; background: var(--nt-ink); color: var(--nt-lime); display: grid; place-items: center; font-size: 2rem; font-weight: 800; border: 4px solid var(--nt-paper); box-shadow: var(--nt-shadow); overflow: hidden; }
.store-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.store-name { flex: 1 1 320px; min-width: 0; padding-top: 50px; }
.store-name h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .25rem 0 .35rem; }
.store-stats { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--nt-muted); font-size: .88rem; }
.store-stats i { color: var(--nt-blue); margin-right: .3rem; }
.store-follow { padding-top: 50px; }
.store-about { color: var(--nt-ink-2); max-width: 80ch; margin: 1rem 0 .4rem; }
.store-legal { margin: .4rem 0 .6rem; font-size: .9rem; }
.store-legal summary { cursor: pointer; font-weight: 700; color: var(--nt-blue-deep); }
.store-legal .seller-dl { margin-top: .6rem; max-width: 640px; }

/* ---------- compare ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--nt-line); border-radius: 16px; background: #fff; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; table-layout: fixed; }
.compare-table .corner { width: 170px; }
.compare-table th, .compare-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--nt-line); vertical-align: top; font-size: .9rem; }
.compare-table tbody th { position: sticky; left: 0; background: #FBFAF7; font-weight: 600; color: var(--nt-muted); min-width: 150px; z-index: 1; }
.compare-table .corner { position: sticky; left: 0; background: #fff; z-index: 2; }
.compare-table tr.grp th { background: var(--nt-paper); color: var(--nt-ink); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.compare-table.only-diff tr[data-same="1"] { display: none; }
.cmp-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; min-width: 150px; }
.cmp-img { width: 120px; height: 120px; background: #F4F3EF; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cmp-title { font-weight: 700; color: var(--nt-ink); font-size: .92rem; }
.cmp-price { font-weight: 800; color: var(--nt-ink); }
.cmp-remove { position: absolute; top: 0; right: 0; border: 0; background: var(--nt-paper); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; color: var(--nt-muted); }

/* compare tray */
.compare-tray { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(680px, calc(100% - 20px)); background: var(--nt-ink); color: #fff; border-radius: 18px; padding: .55rem .7rem .55rem 1rem; display: flex; align-items: center; gap: .7rem; z-index: 1045; box-shadow: 0 18px 40px -12px rgba(11, 16, 36, .55); }
.compare-tray[hidden] { display: none; }
.ct-label { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.ct-items { display: flex; gap: .45rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.ct-item { position: relative; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--nt-muted); }
.ct-item img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; padding: 2px; }
.ct-rm { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--nt-lime); color: var(--nt-ink); display: grid; place-items: center; font-size: .8rem; padding: 0; }
.compare-tray .ct-clear { color: #C9CEDD; text-decoration: none; }
body.has-tray .fab-top { bottom: 88px; }
@media (max-width: 575.98px) { .compare-tray { padding: .5rem .55rem .5rem .75rem; gap: .45rem; } .ct-label { font-size: .78rem; } .compare-tray .ct-clear { display: none; } }

/* ---------- home ---------- */
.home-hero { padding: 40px 0 18px; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; align-items: center; }
@media (min-width: 992px) { .home-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; } }
.home-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: .8rem 0; text-wrap: balance; }
.home-hero .lead { color: var(--nt-muted); max-width: 54ch; }
.hero-search { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--nt-line-2); border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; margin: 1.3rem 0 1rem; box-shadow: var(--nt-shadow); max-width: 620px; }
.hero-search:focus-within { border-color: var(--nt-blue); box-shadow: 0 0 0 5px rgba(46, 91, 255, .12); }
.hero-search > i { color: var(--nt-muted); margin-right: .55rem; }
.hero-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; font-size: 1.02rem; background: transparent; padding: .55rem 0; }
.hero-search .btn { border-radius: 999px; padding-inline: 1.3rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.hero-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; background: #fff; border: 1px solid var(--nt-line); border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--nt-ink-2); }
.hero-chip i { color: var(--nt-blue); }
.hero-chip:hover { border-color: var(--nt-blue); color: var(--nt-ink); }
.home-hero__panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; background: var(--nt-ink); border-radius: 26px; padding: 1.1rem; box-shadow: var(--nt-shadow-lift); position: relative; overflow: hidden; }
.home-hero__panel::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 241, 53, .28), transparent 70%); }
.home-hero__panel .stat { position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .35rem; color: #C9CEDD; font-weight: 600; font-size: .88rem; }
.home-hero__panel .stat > span:first-child { color: var(--nt-lime); font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; line-height: 1; }
.recent-wrap[hidden] { display: none; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.cat-tile { display: flex; flex-direction: column; gap: .35rem; background: var(--nt-card); border: 1px solid var(--nt-line); border-radius: 16px; padding: 1rem; color: var(--nt-ink-2); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--nt-shadow-lift); border-color: var(--nt-blue); color: var(--nt-ink); }
.cat-tile .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--nt-blue-soft); color: var(--nt-blue); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .3rem; }
.cat-tile b { color: var(--nt-ink); line-height: 1.25; }
.cat-tile span:last-child { font-size: .78rem; color: var(--nt-muted); }
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 92px; background: #fff; border: 1px solid var(--nt-line); border-radius: 16px; padding: .8rem; text-align: center; color: var(--nt-ink); transition: border-color .18s, transform .18s; }
.brand-tile b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand-tile span { font-size: .75rem; color: var(--nt-muted); }
.brand-tile:hover { border-color: var(--nt-ink); transform: translateY(-2px); color: var(--nt-ink); }
.model-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .8rem; }
.model-tile { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--nt-line); border-radius: 16px; padding: .7rem .9rem .7rem .7rem; color: var(--nt-ink-2); transition: border-color .18s, box-shadow .18s; }
.model-tile:hover { border-color: var(--nt-blue); box-shadow: var(--nt-shadow); color: var(--nt-ink); }
.model-tile .img { width: 76px; height: 76px; flex: 0 0 76px; background: #F4F3EF; border-radius: 12px; overflow: hidden; }
.model-tile .img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.model-tile .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.model-tile .brand { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nt-muted); }
.model-tile b { color: var(--nt-ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-tile .from { font-size: .82rem; color: var(--nt-muted); }
.model-tile .from .money { color: var(--nt-ink); font-weight: 800; }
.model-tile .sellers { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: var(--nt-ink); color: var(--nt-lime); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.model-tile .sellers small { font-size: .55rem; color: #C9CEDD; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: .15rem; }
.store-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.store-tile { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--nt-line); border-radius: 16px; padding: .8rem .9rem; color: var(--nt-ink-2); }
.store-tile:hover { border-color: var(--nt-blue); color: var(--nt-ink); }
.store-tile .txt { display: flex; flex-direction: column; min-width: 0; }
.store-tile b { color: var(--nt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-tile .txt span { font-size: .8rem; color: var(--nt-muted); }
.guide-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.guide-tile { display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--nt-line); border-radius: 16px; overflow: hidden; color: var(--nt-ink); padding-bottom: .9rem; }
.guide-tile .img { aspect-ratio: 16 / 9; background: linear-gradient(120deg, #E8EEFF, #F4FBD9); display: grid; place-items: center; color: var(--nt-blue); font-size: 2rem; }
.guide-tile .img img { width: 100%; height: 100%; object-fit: cover; }
.guide-tile b { padding: 0 1rem; line-height: 1.35; }
.guide-tile span { padding: 0 1rem; font-size: .8rem; color: var(--nt-muted); }
.guide-tile:hover { border-color: var(--nt-blue); color: var(--nt-ink); }
.home-slides .carousel-item img { height: clamp(200px, 34vw, 400px); object-fit: cover; }
.home-slides .slide-cap { position: absolute; inset: auto 0 12%; left: 50%; transform: translateX(-50%); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.home-slides .slide-cap h2 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.6rem); max-width: 18ch; }

/* ---------- EMI estimate (P7e): the product page line and the shared modal ---------- */
.pdp-emi { margin: -.2rem 0 .7rem; font-size: .9rem; }
.pcb-emi, .pdp-emi { display: inline-flex; align-items: center; gap: .4rem; }
.emi-table th { font-size: .76rem; color: var(--nt-muted); font-weight: 700; }
.emi-note { display: flex; gap: .45rem; font-size: .8rem; color: var(--nt-muted); background: var(--nt-paper); border-radius: 10px; padding: .55rem .7rem; margin: .4rem 0 0; }
.pdp-hub { display: inline-flex; align-items: center; gap: .4rem; margin: -.2rem 1.2rem .7rem 0; font-size: .9rem; }

/* P8b: buying-guide chips on category pages, linking the indexable landing pages */
.shop-guides { padding-top: 0; }
.shop-guides .subcat { background: var(--nt-paper); border-style: dashed; }
.shop-guides .subcat i { color: var(--nt-lime-deep); }
