/* Newton — Walton Plaza shop (internal e-commerce interface, Walton Plaza-inspired) */
:root {
  --p-navy: #0c1f4f;
  --p-blue: #1e3c96;
  --p-blue-2: #2950c4;
  --p-red: #e31e24;
  --p-orange: #ff6a00;
  --p-green: #12a150;
  --p-bg: #f2f4f8;
  --p-card: #fff;
  --p-ink: #1b1f2a;
  --p-muted: #6b7385;
  --p-line: #e4e8f0;
  --p-radius: 12px;
  --p-shadow: 0 2px 10px rgba(16,30,70,.07);
  --p-shadow-hover: 0 10px 28px rgba(16,30,70,.14);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 1.55; color: var(--p-ink); background: var(--p-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }
.p-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--p-blue-2); outline-offset: 2px; }

/* ---------- top bar ---------- */
.p-topbar { background: var(--p-navy); color: #c9d4f2; font-size: 12.5px; }
.p-topbar .p-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.p-topbar a { color: #fff; font-weight: 500; }
.p-topbar a:hover { color: #ffd2b0; }
.p-topbar .tb-left { display: flex; align-items: center; gap: 8px; }
.p-topbar .tb-right { display: flex; gap: 18px; }
.back-main { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); padding: 3px 10px; border-radius: 14px; }

/* ---------- header ---------- */
.p-header { background: #fff; position: sticky; top: 0; z-index: 900; box-shadow: 0 1px 0 var(--p-line); }
.p-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 14px 16px; max-width: 1280px; margin: 0 auto; }
.p-logo { display: flex; align-items: center; gap: 10px; }
.p-logo img { height: 44px; width: auto; }
.p-logo .p-logo-tag { display: flex; flex-direction: column; line-height: 1.05; border-left: 2px solid var(--p-line); padding-left: 10px; }
.p-logo .p-logo-tag b { color: var(--p-blue); font-size: 17px; letter-spacing: .01em; }
.p-logo .p-logo-tag small { color: var(--p-red); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.p-search { position: relative; display: flex; height: 46px; border: 2px solid var(--p-blue); border-radius: 10px; overflow: visible; background: #fff; }
.p-search select { border: 0; border-right: 1px solid var(--p-line); background: #f6f8fc; padding: 0 10px; font: inherit; font-size: 13px; color: var(--p-ink); max-width: 170px; border-radius: 8px 0 0 8px; }
.p-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 14.5px; outline: 0; }
.p-search button[type=submit] { border: 0; background: var(--p-blue); color: #fff; padding: 0 22px; font-weight: 600; display: flex; align-items: center; gap: 6px; border-radius: 0 7px 7px 0; }
.p-search button[type=submit]:hover { background: var(--p-blue-2); }
.p-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--p-line); border-radius: 10px; box-shadow: var(--p-shadow-hover); z-index: 50; overflow: hidden; }
.p-suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #f0f2f6; }
.p-suggest a:hover, .p-suggest a.on { background: #f3f6ff; }
.p-suggest img { width: 42px; height: 42px; object-fit: contain; }
.p-suggest .ps-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.p-suggest .ps-cat { font-size: 12px; color: var(--p-muted); }
.p-suggest .ps-price { margin-left: auto; font-weight: 700; color: var(--p-red); white-space: nowrap; font-size: 13px; }
.p-suggest .ps-all { justify-content: center; font-weight: 600; color: var(--p-blue); background: #f7f9fd; }
.p-suggest .ps-empty { padding: 14px; color: var(--p-muted); }
.p-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.p-act { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; position: relative; color: var(--p-ink); background: none; border: 0; }
.p-act:hover { background: #f2f5fb; }
.p-act .ico { width: 26px; height: 26px; color: var(--p-blue); }
.p-act span.lbl { display: flex; flex-direction: column; line-height: 1.15; font-size: 12px; color: var(--p-muted); text-align: left; }
.p-act span.lbl b { font-size: 13.5px; color: var(--p-ink); }
.p-badge { position: absolute; top: 0; left: 26px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--p-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; padding: 0 5px; border: 2px solid #fff; box-sizing: content-box; }
.p-badge[data-n="0"] { display: none; }
.p-burger { display: none; }

/* ---------- category bar ---------- */
.p-catbar { background: var(--p-blue); color: #fff; }
.p-catbar .p-wrap { display: flex; align-items: stretch; gap: 0; height: 44px; }
.p-allcats { position: relative; }
.p-allcats > button { height: 100%; display: flex; align-items: center; gap: 8px; background: var(--p-navy); color: #fff; border: 0; padding: 0 18px; font-weight: 600; min-width: 240px; }
.p-catmenu { position: absolute; top: 100%; left: 0; width: 260px; background: #fff; color: var(--p-ink); border-radius: 0 0 10px 10px; box-shadow: var(--p-shadow-hover); padding: 6px 0; max-height: 70vh; overflow-y: auto; display: none; z-index: 60; }
.p-allcats:hover .p-catmenu, .p-allcats.open .p-catmenu { display: block; }
.p-catmenu a { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 13.5px; }
.p-catmenu a:hover { background: #f2f5fb; color: var(--p-blue); }
.p-catmenu small { color: var(--p-muted); }
.p-quick { display: flex; overflow-x: auto; scrollbar-width: none; }
.p-quick::-webkit-scrollbar { display: none; }
.p-quick a { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: #e6ecff; }
.p-quick a:hover, .p-quick a.on { color: #fff; background: rgba(255,255,255,.12); }

/* ---------- demo banner ---------- */
.p-demo { background: #fff4e5; color: #7a4a00; border-bottom: 1px solid #ffd9a6; font-size: 13px; }
.p-demo .p-wrap { display: flex; gap: 8px; align-items: center; padding-top: 7px; padding-bottom: 7px; }

/* ---------- home ---------- */
.p-hero { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-top: 16px; }
.p-slider { position: relative; overflow: hidden; border-radius: var(--p-radius); background: #dfe5f0; }
.p-slider .slides { display: flex; transition: transform .6s cubic-bezier(.4,.1,.2,1); }
.p-slider .slide { flex: 0 0 100%; }
.p-slider .slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1040 / 520; }
.p-slider .prev, .p-slider .next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.p-slider .prev { left: 12px; } .p-slider .next { right: 12px; }
.p-slider .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.p-slider .dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; background: rgba(255,255,255,.6); padding: 0; transition: width .3s; }
.p-slider .dots button.on { width: 26px; background: #fff; }
.p-side-promos { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.p-promo { border-radius: var(--p-radius); overflow: hidden; position: relative; color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.p-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s; }
.p-promo:hover img { transform: scale(1.05); }
.p-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,20,60,.85)); z-index: 1; }
.p-promo > div { position: relative; z-index: 2; }
.p-promo b { font-size: 18px; display: block; }
.p-promo span { font-size: 12.5px; opacity: .9; }

.p-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.p-trust div { background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--p-shadow); font-size: 13px; }
.p-trust .ico { width: 30px; height: 30px; color: var(--p-blue); }
.p-trust b { display: block; font-size: 13.5px; }
.p-trust span { color: var(--p-muted); font-size: 12px; }

.p-section { margin-top: 26px; background: #fff; border-radius: var(--p-radius); padding: 18px; box-shadow: var(--p-shadow); }
.p-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.p-sec-head h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
.p-sec-head h2::before { content: ''; width: 5px; height: 22px; background: var(--p-red); border-radius: 3px; }
.p-sec-head a { color: var(--p-blue); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.p-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.p-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px 6px; border-radius: 10px; transition: .2s; }
.p-cat:hover { background: #f3f6ff; color: var(--p-blue); }
.p-cat .p-cat-img { width: 82px; height: 82px; border-radius: 50%; background: #f1f4fa; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--p-line); }
.p-cat img { width: 70%; height: 70%; object-fit: contain; }
.p-cat span { font-size: 12.5px; font-weight: 500; line-height: 1.25; }

/* rail */
.p-rail { position: relative; }
.p-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.p-rail-track::-webkit-scrollbar { display: none; }
.p-rail-track > * { scroll-snap-align: start; }
.p-rail .rail-prev, .p-rail .rail-next { position: absolute; top: 38%; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.18); display: grid; place-items: center; z-index: 3; }
.p-rail .rail-prev { left: -8px; } .p-rail .rail-next { right: -8px; }

/* ---------- product card ---------- */
.p-card { background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: var(--p-shadow-hover); transform: translateY(-2px); }
.p-card-img { display: block; aspect-ratio: 1 / 1; padding: 14px; background: #fff; }
.p-card-img img { width: 100%; height: 100%; object-fit: contain; }
.p-card-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card-cat { font-size: 11.5px; color: var(--p-muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.p-card-name:hover { color: var(--p-blue); }
.p-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.p-price { color: var(--p-red); font-weight: 700; font-size: 16.5px; }
.p-mrp { color: #9aa1af; text-decoration: line-through; font-size: 12.5px; }
.p-na { color: var(--p-muted); font-size: 13px; font-weight: 500; }
.p-card-btn { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 8px; border: 1px solid var(--p-blue); background: #fff; color: var(--p-blue); font-weight: 600; font-size: 13px; transition: .2s; width: 100%; }
.p-card-btn:hover { background: var(--p-blue); color: #fff; }
.p-card-btn.added { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.p-card-btn.call { border-color: #cfd6e4; color: var(--p-ink); }
.p-off { position: absolute; top: 10px; left: 10px; background: var(--p-red); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; z-index: 1; }
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.p-grid.list { grid-template-columns: 1fr; }
.p-grid.list .p-card { flex-direction: row; align-items: center; }
.p-grid.list .p-card-img { width: 170px; flex: none; }
.p-grid.list .p-card-body { padding: 14px; }
.p-grid.list .p-card-btn { width: auto; padding: 0 22px; align-self: flex-start; }

/* ---------- shop listing ---------- */
.p-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; padding: 0; font-size: 13px; color: var(--p-muted); }
.p-crumbs li + li::before { content: '/'; margin-right: 4px; color: #b8bfcc; }
.p-crumbs a:hover { color: var(--p-blue); }
.p-shop { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.p-filters { background: #fff; border-radius: var(--p-radius); box-shadow: var(--p-shadow); position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; }
.p-filters .pf-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--p-line); font-weight: 700; font-size: 15px; }
.p-filters .pf-head button { background: none; border: 0; color: var(--p-blue); font-size: 13px; font-weight: 600; }
.pf-group { padding: 14px 16px; border-bottom: 1px solid var(--p-line); }
.pf-group:last-child { border-bottom: 0; }
.pf-title { font-weight: 600; margin-bottom: 8px; font-size: 13.5px; }
.pf-cat-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.pf-cat-list a { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: #333; }
.pf-cat-list a.on { color: var(--p-blue); font-weight: 700; }
.pf-cat-list a:hover { color: var(--p-blue); }
.pf-cat-list small { color: var(--p-muted); }
.pf-sub { padding-left: 12px; border-left: 2px solid var(--p-line); margin: 2px 0 6px 2px; }
.pf-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; cursor: pointer; }
.pf-check input { width: 16px; height: 16px; accent-color: var(--p-blue); }
.pf-check small { margin-left: auto; color: var(--p-muted); }
.pf-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-price input, .p-input, .p-select { height: 38px; border: 1px solid #d5dbe6; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13.5px; background: #fff; width: 100%; min-width: 0; }
.pf-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-ranges button { border: 1px solid #d5dbe6; background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; }
.pf-ranges button:hover, .pf-ranges button.on { border-color: var(--p-blue); color: var(--p-blue); background: #f3f6ff; }
.p-toolbar { background: #fff; border-radius: var(--p-radius); box-shadow: var(--p-shadow); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.p-toolbar h1 { font-size: 18px; margin: 0; }
.p-toolbar .pt-count { color: var(--p-muted); font-size: 13px; }
.p-toolbar .pt-right { display: flex; gap: 8px; align-items: center; }
.p-toolbar .p-select { width: auto; }
.p-view { display: flex; border: 1px solid #d5dbe6; border-radius: 8px; overflow: hidden; }
.p-view button { border: 0; background: #fff; padding: 0 10px; height: 36px; color: var(--p-muted); }
.p-view button.on { background: var(--p-blue); color: #fff; }
.p-filter-btn { display: none; }
.p-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.p-chips button { background: #e8eefc; color: var(--p-blue); border: 0; border-radius: 14px; padding: 3px 10px; font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; }
.p-pages { display: flex; justify-content: center; gap: 6px; padding: 20px 0 4px; flex-wrap: wrap; }
.p-pages button { min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid #d5dbe6; background: #fff; font-weight: 600; }
.p-pages button.on { background: var(--p-blue); border-color: var(--p-blue); color: #fff; }
.p-pages button:disabled { opacity: .4; cursor: default; }
.p-empty { background: #fff; border-radius: var(--p-radius); padding: 50px 20px; text-align: center; color: var(--p-muted); box-shadow: var(--p-shadow); }
.p-empty h3 { color: var(--p-ink); }

/* ---------- buttons ---------- */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; transition: .2s; white-space: nowrap; }
.p-btn-primary { background: var(--p-blue); color: #fff; } .p-btn-primary:hover { background: var(--p-blue-2); }
.p-btn-orange { background: var(--p-orange); color: #fff; } .p-btn-orange:hover { background: #e45f00; }
.p-btn-ghost { background: #fff; border-color: #d5dbe6; color: var(--p-ink); } .p-btn-ghost:hover { border-color: var(--p-blue); color: var(--p-blue); }
.p-btn:disabled { opacity: .5; cursor: not-allowed; }
.p-btn-block { width: 100%; }

/* ---------- product page ---------- */
.p-pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; background: #fff; border-radius: var(--p-radius); padding: 22px; box-shadow: var(--p-shadow); }
.p-pd .gallery { display: grid; grid-template-columns: 74px 1fr; gap: 10px; }
.p-pd .gal-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.p-pd .gal-thumbs button { border: 1px solid var(--p-line); border-radius: 8px; background: #fff; padding: 3px; aspect-ratio: 1 / 1; flex: none; }
.p-pd .gal-thumbs button.on { border-color: var(--p-blue); box-shadow: 0 0 0 1px var(--p-blue); }
.p-pd .gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-pd .gal-main { grid-column: 2; position: relative; border: 1px solid var(--p-line); border-radius: 10px; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; }
.p-pd .gallery > .gal-main:only-child { grid-column: 1 / -1; }
.p-pd .gal-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.p-pd .gal-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 1px 5px rgba(0,0,0,.2); display: grid; place-items: center; }
.pd-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--p-muted); }
.pd-brand b { color: var(--p-blue); }
.p-pd h1 { font-size: 24px; margin: 6px 0 10px; word-break: break-word; }
.pd-pricebox { background: #f7f9fd; border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.pd-pricebox .p-price { font-size: 28px; }
.pd-pricebox small { display: block; color: var(--p-muted); font-size: 12px; margin-top: 4px; }
.pd-hl { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.pd-hl li { display: flex; gap: 8px; font-size: 13.5px; }
.pd-hl .ico { color: var(--p-green); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d5dbe6; border-radius: 10px; overflow: hidden; height: 46px; background: #fff; }
.qty button { width: 42px; height: 100%; border: 0; background: #f6f8fc; display: grid; place-items: center; }
.qty button:hover { background: #e8eefc; }
.qty input { width: 52px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 34px; } .qty.sm button { width: 32px; } .qty.sm input { width: 40px; font-size: 13px; }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.pd-buy .p-btn { flex: 1; min-width: 150px; }
.pd-meta { border-top: 1px solid var(--p-line); padding-top: 12px; display: grid; gap: 8px; font-size: 13px; color: var(--p-muted); }
.pd-meta div { display: flex; gap: 8px; align-items: center; }
.pd-meta .ico { color: var(--p-blue); }
.pd-meta a { color: var(--p-blue); font-weight: 600; }
.p-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--p-line); overflow-x: auto; scrollbar-width: none; }
.p-tabs button { border: 0; background: none; padding: 12px 18px; font-weight: 600; color: var(--p-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.p-tabs button.on { color: var(--p-blue); border-bottom-color: var(--p-blue); }
.p-tabpanel { display: none; padding-top: 16px; }
.p-tabpanel.on { display: block; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13.5px; }
.spec-table th { text-align: left; background: #eef2fb; color: var(--p-blue); padding: 9px 12px; font-size: 14px; }
.spec-table td { padding: 8px 12px; border-bottom: 1px solid #eef0f5; vertical-align: top; }
.spec-table td:first-child { width: 40%; color: var(--p-muted); }
.feature-imgs { display: grid; gap: 8px; }
.missing-note { color: var(--p-muted); text-align: center; padding: 24px 8px; }

/* ---------- cart / checkout ---------- */
.p-cartgrid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.p-box { background: #fff; border-radius: var(--p-radius); box-shadow: var(--p-shadow); padding: 18px; }
.p-box h2 { font-size: 18px; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto 36px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--p-line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--p-line); border-radius: 8px; padding: 4px; background: #fff; }
.cart-line .cl-name { font-weight: 600; line-height: 1.3; word-break: break-word; }
.cart-line .cl-name:hover { color: var(--p-blue); }
.cart-line .cl-cat { font-size: 12px; color: var(--p-muted); }
.cart-line .cl-unit { font-size: 12.5px; color: var(--p-muted); }
.cart-line .cl-total { font-weight: 700; min-width: 100px; text-align: right; }
.cl-remove { width: 36px; height: 36px; border-radius: 8px; border: 0; background: #fff1f1; color: var(--p-red); display: grid; place-items: center; }
.cl-remove:hover { background: var(--p-red); color: #fff; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum-row.total { border-top: 1px dashed #cfd6e4; margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 700; }
.sum-row.total span:last-child { color: var(--p-red); }
.p-note { display: flex; gap: 8px; align-items: flex-start; background: #fff4e5; border: 1px solid #ffd9a6; color: #7a4a00; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.p-note.info { background: #eef4ff; border-color: #c8d7fb; color: #213f8f; }
.p-note.ok { background: #e9f8ef; border-color: #b4e3c6; color: #145c33; }
.co-steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.co-steps span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--p-muted); }
.co-steps b { width: 24px; height: 24px; border-radius: 50%; background: #dfe5f2; display: grid; place-items: center; font-size: 12px; color: var(--p-ink); }
.co-steps .on b { background: var(--p-blue); color: #fff; }
.co-steps .on { color: var(--p-ink); font-weight: 600; }
.p-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-form .full { grid-column: 1 / -1; }
.p-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.p-field input, .p-field select, .p-field textarea { width: 100%; border: 1px solid #d5dbe6; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
.p-field textarea { min-height: 80px; resize: vertical; }
.p-field .err { display: none; color: #c0392b; font-size: 12px; margin-top: 3px; }
.p-field.invalid input, .p-field.invalid select, .p-field.invalid textarea { border-color: #c0392b; }
.p-field.invalid .err { display: block; }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: center; border: 1px solid #d5dbe6; border-radius: 10px; padding: 12px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--p-blue); background: #f3f6ff; }
.pay-opt input { accent-color: var(--p-blue); width: 18px; height: 18px; }
.pay-opt b { display: block; font-size: 14px; }
.pay-opt small { color: var(--p-muted); }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f2f6; font-size: 13px; }
.mini-line img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--p-line); border-radius: 6px; }
.mini-line b { display: block; font-size: 13px; line-height: 1.3; word-break: break-word; }

/* ---------- footer ---------- */
.p-footer { background: var(--p-navy); color: #b8c3e0; margin-top: 40px; font-size: 13.5px; }
.p-footer .pf-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; padding: 36px 16px 26px; max-width: 1280px; margin: 0 auto; }
.p-footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.p-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-footer a:hover { color: #fff; }
.p-footer .pf-logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 12px; }
.p-footer .pf-logo img { height: 40px; width: auto; }
.p-footer .pf-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 16px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }

/* mobile bottom nav */
.p-bottomnav { display: none; }

/* drawer */
.p-backdrop { position: fixed; inset: 0; background: rgba(5,15,40,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 1100; }
.p-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; z-index: 1101; transform: translateX(-100%); transition: transform .3s; display: flex; flex-direction: column; }
.p-drawer .pd-head { background: var(--p-blue); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.p-drawer .pd-head button { background: none; border: 0; color: #fff; }
.p-drawer .pd-body { overflow-y: auto; flex: 1; }
.p-drawer a { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.p-drawer a small { color: var(--p-muted); }
.p-drawer .pd-sec { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; background: #f7f9fd; }
body.p-drawer-open { overflow: hidden; }
body.p-drawer-open .p-drawer { transform: none; }
body.p-drawer-open .p-backdrop, body.p-filters-open .p-backdrop { opacity: 1; visibility: visible; }

/* toasts & lightbox (shared with core) */
#nw-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.nw-toast { background: #12204a; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 13.5px; animation: tIn .3s ease; max-width: 380px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nw-toast a { color: #ffb27a; font-weight: 700; text-decoration: underline; }
.nw-toast.out { opacity: 0; transform: translateY(10px); transition: .4s; }
@keyframes tIn { from { opacity: 0; transform: translateY(10px); } }
.nw-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 4000; display: grid; place-items: center; }
.nw-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 8px; }
.nw-lightbox button { position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.nw-lightbox button .ico { width: 26px; height: 26px; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; overflow: hidden; border-radius: 10px; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 42px; border-radius: 12px; background: rgba(227,30,36,.92); color: #fff; display: grid; place-items: center; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.p-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .p-rail-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-act span.lbl { display: none; }
}
@media (max-width: 991px) {
  .p-head { grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 12px; }
  .p-burger { display: inline-flex; }
  .p-logo img { height: 34px; }
  .p-logo .p-logo-tag b { font-size: 14px; } .p-logo .p-logo-tag small { font-size: 9.5px; }
  .p-search { grid-column: 1 / -1; order: 3; height: 42px; }
  .p-search select { display: none; }
  .p-search button[type=submit] { padding: 0 14px; }
  .p-search button[type=submit] span { display: none; }
  .p-actions .p-act.hide-sm { display: none; }
  .p-allcats > button { min-width: 0; }
  .p-hero { grid-template-columns: 1fr; }
  .p-side-promos { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .p-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-shop { grid-template-columns: 1fr; }
  .p-filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); max-height: none; border-radius: 0; z-index: 1200; transform: translateX(-105%); transition: transform .3s; }
  body.p-filters-open .p-filters { transform: none; }
  .p-filter-btn { display: inline-flex; }
  .p-pd { grid-template-columns: 1fr; padding: 14px; }
  .p-cartgrid { grid-template-columns: 1fr; }
  .p-footer .pf-top { grid-template-columns: 1fr 1fr; }
  .p-topbar .tb-right { display: none; }
}
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .p-catbar { display: none; }
  .p-rail-track { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .p-rail .rail-prev, .p-rail .rail-next { display: none; }
  .p-slider .prev, .p-slider .next { display: none; }
  .p-promo { min-height: 104px; padding: 12px; }
  .p-promo b { font-size: 14px; }
  .p-promo span { display: none; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-grid.list .p-card-img { width: 110px; }
  .p-section { padding: 14px 12px; margin-top: 16px; }
  .p-sec-head h2 { font-size: 17px; }
  .p-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .p-cat .p-cat-img { width: 60px; height: 60px; }
  .p-cat span { font-size: 11px; }
  .p-card-body { padding: 0 10px 10px; }
  .p-card-img { padding: 10px; }
  .p-price { font-size: 15px; }
  .p-pd .gallery { grid-template-columns: 1fr; }
  .p-pd .gal-main { grid-column: 1; }
  .p-pd .gal-thumbs { flex-direction: row; order: 2; overflow-x: auto; max-height: none; }
  .p-pd .gal-thumbs button { width: 60px; }
  .p-pd h1 { font-size: 20px; }
  .p-toolbar h1 { font-size: 16px; width: 100%; }
  .p-view { display: none; }
  .cart-line { grid-template-columns: 72px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 8px 12px; }
  .cart-line img { width: 72px; height: 72px; grid-area: img; }
  .cart-line .cl-info { grid-area: info; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line .cl-total { grid-area: total; min-width: 0; }
  .cart-line .cl-remove { grid-area: rm; }
  .p-form { grid-template-columns: 1fr; }
  .p-videos { grid-template-columns: 1fr; }
  .p-footer .pf-top { grid-template-columns: 1fr; padding-top: 26px; }
  .p-topbar .tb-left .tb-hide { display: none; }
  .p-bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 60px; background: #fff; border-top: 1px solid var(--p-line); box-shadow: 0 -4px 16px rgba(10,20,50,.08); z-index: 950; }
  .p-bottomnav a, .p-bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--p-muted); background: none; border: 0; position: relative; }
  .p-bottomnav .ico { width: 22px; height: 22px; }
  .p-bottomnav .on { color: var(--p-blue); font-weight: 600; }
  .p-bottomnav .p-badge { left: 50%; margin-left: 2px; top: 4px; }
  #nw-toasts { bottom: 76px; }
  .pd-buy .p-btn { min-width: 0; }
}
@media (max-width: 400px) {
  .p-logo .p-logo-tag { display: none; }
  .p-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-trust { grid-template-columns: 1fr; }
  .p-grid { gap: 8px; }
  .p-card-name { font-size: 12.5px; }
  .p-card-btn { font-size: 12px; }
}
.p-field label.pay-opt { display: flex; margin-bottom: 0; font-weight: 400; }
.p-act .p-badge { left: 20px; top: -2px; }
@media (max-width: 767px) { .p-bottomnav .p-badge { left: 50%; top: 4px; } }
.p-act .p-badge { left: 18px; top: -4px; }
.p-act span.lbl { margin-left: 8px; }
