/* ==========================================================================
   ShopNova storefront — pages: listing & filters, product page, cart, checkout,
   order complete, account, auth, tracking, content, blog, compare, errors
   ========================================================================== */

/* ---------------------------------------------------------------- page head */
.page-head { padding: 4px 0 22px; }
.page-head h1 { margin: 6px 0 6px; letter-spacing: -.03em; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }
.page-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 200px; display: flex; align-items: center; padding: 36px 44px; background: var(--surface); margin: 8px 0 26px; isolation: isolate; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -1; }
.page-banner h1 { margin: 0 0 6px; }
.subcat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin-bottom: 18px; }
.subcat-chips::-webkit-scrollbar { display: none; }
.subcat-chip { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 48px; padding: 0 16px 0 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); font-weight: 600; font-size: 14px; transition: all .2s; }
.subcat-chip img { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); object-fit: contain; }
.subcat-chip:hover { border-color: var(--text); }
.subcat-chip small { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- listing layout */
.listing { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters-head h3 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 8px; }
.filters-head a { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fgroup { border-bottom: 1px solid var(--border); padding: 14px 0; }
.fgroup > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 700; font-size: 14.5px; padding: 4px 0; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.fgroup[open] > summary .icon { transform: rotate(180deg); }
.fgroup-body { padding-top: 12px; display: grid; gap: 10px; }
.fgroup-body.is-scroll { max-height: 250px; overflow-y: auto; padding-right: 4px; }
.fopt { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.fopt .check { flex: 1; min-width: 0; align-items: center; }
.fopt .count { font-size: 12px; color: var(--muted); background: var(--surface); padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.fopt a { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.fopt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fsearch { height: 38px; font-size: 13.5px; border-radius: 10px; margin-bottom: 4px; }
.fswatches { display: flex; flex-wrap: wrap; gap: 10px; }
.fswatch { position: relative; cursor: pointer; }
.fswatch input { position: absolute; opacity: 0; }
.fswatch span { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .2s; }
.fswatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.fswatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.fpills { display: flex; flex-wrap: wrap; gap: 8px; }
.fpill { position: relative; cursor: pointer; }
.fpill input { position: absolute; opacity: 0; }
.fpill span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--border); font-weight: 600; font-size: 13.5px; transition: all .15s; }
.fpill input:checked + span { border-color: var(--text); background: var(--primary); color: var(--primary-contrast); }
.fpill:hover span { border-color: var(--border-strong); }
.price-range { display: grid; gap: 12px; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.price-inputs .input { height: 40px; font-size: 14px; padding: 0 10px; }
.range-slider { position: relative; height: 22px; }
.range-slider .rs-track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 99px; background: var(--border); }
.range-slider .rs-fill { position: absolute; top: 9px; height: 4px; border-radius: 99px; background: var(--text); }
.range-slider input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range-slider input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); box-shadow: var(--shadow-sm); cursor: grab; }
.range-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); cursor: grab; }
.rating-opts a { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; }
.rating-opts a.is-active { font-weight: 700; }
.filters-apply { display: none; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count b { color: var(--text); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.toolbar .select { height: 42px; width: auto; font-size: 14px; font-weight: 600; padding-left: 14px; border-radius: 12px; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.view-toggle button { width: 40px; height: 39px; border: 0; background: none; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.is-active { background: var(--surface); color: var(--text); }
.view-toggle .icon { width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 600; }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { background: var(--surface-2); }
.chip-clear { background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); padding: 0 6px; }
.filter-toggle { display: none; }
.no-results { padding: 30px 0 10px; }

@media (max-width: 1000px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 950; width: min(360px, 88vw); max-height: none; background: var(--bg); padding: 18px 20px 90px; transform: translateX(-102%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-apply { display: flex; position: fixed; left: 0; bottom: 0; width: min(360px, 88vw); padding: 14px 20px; background: var(--bg); border-top: 1px solid var(--border); gap: 10px; z-index: 951; transform: translateX(-102%); transition: transform .35s var(--ease); }
  .filters.is-open ~ .filters-apply, .filters-apply.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .view-toggle { display: none; }
}

/* ---------------------------------------------------------------- product page */
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 6px; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--header-h) + 18px); }
.gallery.no-thumbs { grid-template-columns: minmax(0, 1fr); }
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); padding: 0; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--text); }
.stage { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.stage-track { display: flex; height: 100%; transition: transform .45s var(--ease); }
.stage-slide { flex: 0 0 100%; height: 100%; overflow: hidden; position: relative; }
.stage-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; transform-origin: center; }
.stage.is-zooming .stage-slide.is-active img { transform: scale(2); }
.stage-badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 6px; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; opacity: 0; transition: opacity .2s; }
.stage:hover .stage-nav { opacity: 1; }
.stage-nav.prev { left: 14px; } .stage-nav.next { right: 14px; }
.stage-nav .round-btn { border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.stage-expand { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.stage-dots { display: none; position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; justify-content: center; gap: 6px; }
.stage-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 26, 36, .22); transition: all .2s; }
.stage-dots span.is-active { width: 20px; border-radius: 99px; background: var(--text); }

.pinfo { min-width: 0; }
.pinfo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pinfo-brand { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pinfo h1 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.18; letter-spacing: -.03em; margin: 0 0 12px; }
.pinfo-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.pinfo-meta a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pinfo-meta .stars { --size: 16px; }
.pprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pprice .price { font-size: 32px; letter-spacing: -.035em; }
.pprice .compare { font-size: 17px; }
.pprice .pill { height: 28px; }
.pprice-note { width: 100%; font-size: 13px; color: var(--muted); }
.flash-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), #FFF7E6); }
.flash-box b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.flash-box b .icon { width: 18px; height: 18px; color: var(--accent); fill: currentColor; stroke: none; }
.flash-box .claim { width: 100%; margin-top: 2px; }
.pshort { color: var(--muted); margin: 18px 0 0; line-height: 1.7; }
.poption { margin-top: 22px; }
.poption-label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.poption-label b { font-weight: 700; }
.poption-label span { color: var(--muted); }
.poption-label a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.optset { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-swatch { display: block; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: box-shadow .2s var(--ease), transform .2s; position: relative; }
.opt-swatch:hover { transform: scale(1.06); }
.opt input:checked + .opt-swatch { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.opt-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; background: var(--bg); }
.opt-btn:hover { border-color: var(--border-strong); }
.opt input:checked + .opt-btn { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opt.is-unavailable .opt-btn { color: var(--muted); background: linear-gradient(to top left, transparent calc(50% - 1px), var(--border-strong) 50%, transparent calc(50% + 1px)); }
.opt.is-unavailable .opt-swatch::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); transform: rotate(45deg); }
.opt input:focus-visible + * { outline: 2px solid var(--accent); outline-offset: 3px; }
.pstock { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.pstock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.pstock.is-low .dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.pstock.is-low { color: var(--warning); }
.pstock.is-out .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.pstock.is-out { color: var(--danger); }
.pbuy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; }
.pbuy .btn { height: 52px; }
.pbuy .btn-icon { width: 52px; }
.pbuy .qty-lg { height: 52px; }
.pbuy-now { margin-top: 10px; }
.wish-big.is-on { color: var(--accent); border-color: var(--accent); }
.wish-big.is-on .icon { fill: currentColor; }
.pbuy-now .btn { height: 52px; }
.pnotes { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.pnote { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; font-size: 14px; }
.pnote + .pnote { border-top: 1px solid var(--border); }
.pnote .icon { width: 22px; height: 22px; color: var(--text); margin-top: 1px; }
.pnote b { display: block; font-size: 14px; }
.pnote span { color: var(--muted); font-size: 13.5px; }
.pmeta { margin-top: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.pmeta b { color: var(--text); font-weight: 600; }
.pmeta a:hover { color: var(--text); text-decoration: underline; }
.share { display: flex; align-items: center; gap: 8px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; transition: all .2s; }
.share a:hover, .share button:hover { border-color: var(--text); }
.share .icon { width: 16px; height: 16px; }

.pdetails { margin-top: 64px; }
.dtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.dtabs button { height: 52px; padding: 0 20px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dtabs button.is-active { color: var(--text); border-color: var(--text); }
.dpane { display: none; padding: 32px 0 8px; }
.dpane.is-active { display: block; animation: fadeIn .3s var(--ease); }
.spec-table { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 600; color: var(--muted); background: var(--surface); }
.spec-table tr:first-child th { border-top-left-radius: 10px; }

.reviews { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
.rsummary { position: sticky; top: calc(var(--header-h) + 18px); padding: 26px; border-radius: var(--radius-lg); background: var(--surface); }
.rscore { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rscore big { font-family: var(--font-heading); font-size: 56px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.rscore .stars { --size: 19px; }
.rbars { display: grid; gap: 8px; margin-bottom: 20px; }
.rbar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rbar-track { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.rbar-fill { height: 100%; background: #FFB020; border-radius: 99px; }
.rlist { display: grid; }
.ritem { padding: 22px 0; border-bottom: 1px solid var(--border); }
.ritem:first-child { padding-top: 4px; }
.ritem-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ritem-head .stars { --size: 15px; }
.ritem h4 { font-size: 15.5px; margin: 0 0 6px; }
.ritem p { margin: 0; color: #3A4150; line-height: 1.7; }
.ritem-by { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ritem-by b { color: var(--text); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-weight: 700; font-size: 12.5px; }
.verified .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.reply { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface); font-size: 14px; border-left: 3px solid var(--accent); }
.reply b { display: block; font-size: 13px; margin-bottom: 4px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: #D9D6CF; transition: color .15s, transform .15s; }
.star-input label .icon { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #FFB020; }
.star-input label:hover { transform: scale(1.1); }

.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 68; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(16, 24, 40, .3); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-atc.is-visible { transform: none; }
.sticky-atc .container { display: flex; align-items: center; gap: 14px; height: 76px; }
.sticky-atc img { width: 52px; height: 52px; border-radius: 10px; background: var(--surface); object-fit: cover; }
.sticky-atc .name { font-weight: 700; font-size: 14.5px; }
.sticky-atc .btn { height: 48px; }
@media (max-width: 860px) { .sticky-atc { bottom: 64px; } .sticky-atc .container { height: 64px; } .sticky-atc img, .sticky-atc .name-wrap { display: none; } .sticky-atc .btn { flex: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(12, 16, 23, .94); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; animation: fadeIn .25s var(--ease); }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; border-radius: 12px; object-fit: contain; background: #fff; }
.lightbox .close-btn { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.prev { left: 20px; } .lightbox .lb-nav.next { right: 20px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; }

.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qv-media { background: var(--surface); position: relative; aspect-ratio: 1; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 36px 34px; max-height: calc(100vh - 40px); overflow-y: auto; }
.qv-body h2 { font-size: 24px; margin: 4px 0 10px; }

@media (max-width: 980px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .thumbs { display: none; }
  .stage { cursor: default; border-radius: var(--radius); }
  .stage-dots { display: flex; }
  .stage-nav { display: none; }
  .reviews { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .rsummary { position: static; }
  .pdetails { margin-top: 40px; }
  .qv { grid-template-columns: minmax(0, 1fr); }
  .qv-body { padding: 22px; }
}
@media (max-width: 640px) {
  .pprice .price { font-size: 27px; }
  .pbuy { grid-template-columns: auto minmax(0, 1fr); }
  .pbuy .wish-big { display: none; }
  .dtabs button { padding: 0 14px; font-size: 14px; }
}

/* ---------------------------------------------------------------- cart page */
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table .c-product { display: flex; align-items: center; gap: 16px; }
.cart-table .c-product img { width: 96px; height: 96px; border-radius: 14px; background: var(--surface); object-fit: cover; flex: none; }
.cart-table .c-total { text-align: right; font-weight: 800; font-size: 15.5px; }
.summary { position: sticky; top: calc(var(--header-h) + 18px); padding: 26px; border-radius: var(--radius-lg); background: var(--surface); }
.summary h3 { font-size: 19px; margin: 0 0 18px; }
.summary-rows { display: grid; gap: 12px; font-size: 14.5px; }
.summary-rows .row-between span:first-child { color: var(--muted); }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; margin-top: 16px; border-top: 1px dashed var(--border-strong); }
.summary-total span { font-weight: 700; }
.summary-total b { font-size: 24px; letter-spacing: -.03em; }
.coupon-form { display: flex; gap: 8px; margin: 18px 0; }
.coupon-form .input { height: 46px; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; background: var(--bg); }
.coupon-form .input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--success-soft); color: #0E6B37; font-size: 13.5px; font-weight: 600; margin: 18px 0; }
.coupon-applied button { border: 0; background: none; color: inherit; text-decoration: underline; font-size: 13px; }
.summary-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.summary-trust .icon { width: 15px; height: 15px; }
@media (max-width: 980px) {
  .cart-page { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td.c-first { grid-column: 1 / -1; }
  .cart-table td.c-price { display: none; }
  .cart-table .c-product img { width: 76px; height: 76px; }
}

/* ---------------------------------------------------------------- checkout */
.checkout-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.checkout-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.secure-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.secure-tag .icon { width: 17px; height: 17px; color: var(--success); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; align-items: start; padding: 32px 0 60px; }
.cstep { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; background: var(--bg); }
.cstep + .cstep { margin-top: 18px; }
.cstep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cstep-head .num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.cstep-head h3 { margin: 0; font-size: 18px; }
.cstep-head .aside { margin-left: auto; font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cstep-head .aside a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); font-weight: 600; }
.choice-list { display: grid; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--border); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: var(--border-strong); }
.choice input { position: absolute; opacity: 0; }
.choice .radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; transition: all .15s; }
.choice .radio-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .15s var(--ease); }
.choice.is-selected, .choice:has(input:checked) { border-color: var(--text); background: var(--bg); box-shadow: inset 0 0 0 .5px var(--text); }
.choice.is-selected .radio-dot, .choice:has(input:checked) .radio-dot { border-color: var(--primary); }
.choice.is-selected .radio-dot::after, .choice:has(input:checked) .radio-dot::after { transform: scale(1); }
.choice-body { flex: 1; min-width: 0; }
.choice-body b { display: block; font-size: 14.5px; }
.choice-body small { color: var(--muted); font-size: 13px; }
.choice-end { font-weight: 800; font-size: 15px; white-space: nowrap; }
.pm-logo { width: 52px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; overflow: hidden; }
.pm-logo img { max-width: 44px; max-height: 26px; }
.pm-panel { display: none; margin: -4px 0 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.pm-panel.is-open { display: block; animation: fadeIn .25s var(--ease); }
.pm-panel ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 4px; }
.pm-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--border-strong); margin-bottom: 14px; }
.pm-account b { font-size: 18px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.co-summary { position: sticky; top: 24px; border-radius: var(--radius-lg); background: var(--surface); padding: 26px; }
.co-items { display: grid; gap: 14px; max-height: 330px; overflow-y: auto; padding: 4px 4px 4px 0; margin-bottom: 4px; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; font-size: 14px; }
.co-item-img { position: relative; width: 64px; height: 64px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.co-item-img .q { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--muted); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.co-item b { display: block; font-weight: 600; line-height: 1.3; }
.co-item small { color: var(--muted); }
.place-order { margin-top: 20px; }
.place-order .btn { height: 56px; font-size: 16px; }
.terms-line { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 1000px) {
  .checkout { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 640px) { .cstep { padding: 20px 16px; border-radius: var(--radius); } .co-summary { padding: 18px; } }

/* ---------------------------------------------------------------- order complete & tracking */
.done { max-width: 880px; margin: 0 auto; padding: 36px 0 20px; }
.done-hero { text-align: center; margin-bottom: 34px; }
.done-hero svg { width: 220px; margin: 0 auto 10px; }
.done-hero h1 { margin: 8px 0 10px; }
.done-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.info-list { display: grid; gap: 14px; font-size: 14.5px; }
.info-list dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-list dd { margin: 0; font-weight: 600; }
.progress-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin: 10px 0 4px; }
.progress-track::before { content: ''; position: absolute; left: 10%; right: 10%; top: 17px; height: 3px; background: var(--border); border-radius: 99px; }
.progress-track .fill { position: absolute; left: 10%; top: 17px; height: 3px; background: var(--success); border-radius: 99px; transition: width .6s var(--ease); }
.pstep { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pstep .bullet { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 3px solid var(--border); display: grid; place-items: center; z-index: 1; }
.pstep .bullet .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.pstep.is-done { color: var(--text); }
.pstep.is-done .bullet { background: var(--success); border-color: var(--success); color: #fff; }
.pstep.is-current .bullet { border-color: var(--success); color: var(--success); box-shadow: 0 0 0 5px var(--success-soft); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--border-strong); }
.timeline li:first-child::after { border-color: var(--success); background: var(--success); }
.timeline b { display: block; font-size: 14.5px; }
.timeline span { font-size: 13px; color: var(--muted); }
.timeline p { margin: 4px 0 0; font-size: 13.5px; color: #3A4150; }
.track-box { max-width: 560px; margin: 10px auto 0; }
@media (max-width: 760px) { .done-grid { grid-template-columns: minmax(0, 1fr); } .pstep { font-size: 11px; } .pstep .bullet { width: 30px; height: 30px; } .progress-track::before, .progress-track .fill { top: 14px; } }

/* ---------------------------------------------------------------- account */
.account { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding: 10px 0 30px; }
.acc-nav { position: sticky; top: calc(var(--header-h) + 18px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--surface); }
.acc-user .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); display: grid; place-items: center; font-weight: 800; flex: none; }
.acc-user b { display: block; font-size: 15px; }
.acc-user small { color: var(--muted); font-size: 12.5px; }
.acc-links { list-style: none; margin: 0; padding: 8px; }
.acc-links a, .acc-links button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; border: 0; background: none; font-weight: 600; font-size: 14.5px; text-align: left; transition: background .15s; }
.acc-links a:hover, .acc-links button:hover { background: var(--surface); }
.acc-links a.is-active { background: var(--primary); color: var(--primary-contrast); }
.acc-links .icon { width: 19px; height: 19px; }
.acc-links .count { margin-left: auto; font-size: 12px; background: var(--surface-2); padding: 1px 8px; border-radius: 99px; }
.acc-links a.is-active .count { background: rgba(255, 255, 255, .18); }
.acc-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.acc-title h1 { font-size: 26px; margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; border-radius: var(--radius); background: var(--surface); }
.stat-card small { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-card b { display: block; font-size: 26px; letter-spacing: -.03em; margin-top: 4px; }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--surface); }
.otable th:first-child { border-radius: 10px 0 0 10px; } .otable th:last-child { border-radius: 0 10px 10px 0; }
.otable td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.otable tr:last-child td { border-bottom: 0; }
.order-thumbs { display: flex; }
.order-thumbs img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); background: var(--surface); object-fit: cover; margin-left: -8px; }
.order-thumbs img:first-child { margin-left: 0; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.address-card { padding: 20px; border: 1.5px solid var(--border); border-radius: var(--radius); position: relative; font-size: 14px; line-height: 1.6; }
.address-card.is-default { border-color: var(--text); }
.address-card .pill { position: absolute; top: 16px; right: 16px; height: 24px; font-size: 12px; }
.address-card h4 { margin: 0 0 6px; font-size: 15px; }
.address-actions { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.address-actions button, .address-actions a { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.address-actions button:hover { color: var(--text); }
@media (max-width: 900px) {
  .account { grid-template-columns: minmax(0, 1fr); }
  .acc-nav { position: static; }
  .acc-links { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .acc-links li { flex: none; }
  .acc-user { display: none; }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .address-grid { grid-template-columns: minmax(0, 1fr); }
  .otable thead { display: none; }
  .otable tr { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .otable td { padding: 0; border: 0; }
}

/* ---------------------------------------------------------------- auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.auth-art { position: relative; background: var(--primary); color: var(--primary-contrast); padding: 52px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-art::before { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; top: -160px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 68%); opacity: .5; z-index: -1; }
.auth-art h2 { color: inherit; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 14px; }
.auth-art p { opacity: .75; max-width: 400px; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.auth-perks .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.auth-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.auth-collage img { aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, .06); }
.auth-form { padding: 52px 64px; display: flex; flex-direction: column; justify-content: center; background: var(--bg); }
.auth-form h1 { font-size: 30px; margin: 0 0 6px; }
.auth-form > p { color: var(--muted); margin: 0 0 26px; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--surface); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; min-height: 0; } .auth-art { display: none; } .auth-form { padding: 32px 22px; } }

/* ---------------------------------------------------------------- content pages */
.prose { max-width: 780px; font-size: 16px; line-height: 1.8; color: #2E3441; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 18px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); }
.prose > *:first-child { margin-top: 0; }
.content-hero { padding: 26px 0 34px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.content-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; margin: 8px 0 10px; }
.content-hero p { color: var(--muted); font-size: 17px; max-width: 700px; margin: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; flex: none; }
.contact-card b { display: block; margin-bottom: 2px; }
.contact-card span, .contact-card a { color: var(--muted); font-size: 14.5px; white-space: pre-line; }
.map-embed { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-top: 14px; }
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-topics { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 4px; }
.faq-topics a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.faq-topics a:hover { background: var(--surface); color: var(--text); }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { font-size: 21px; margin-bottom: 12px; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .icon { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); color: var(--muted); }
.acc-item[open] summary .icon { transform: rotate(45deg); }
.acc-item .acc-body { padding: 0 0 18px; color: #3A4150; line-height: 1.7; white-space: pre-line; }
@media (max-width: 860px) { .contact-grid, .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-topics { position: static; display: flex; overflow-x: auto; } .faq-topics a { flex: none; } }

.post-hero { max-width: 860px; margin: 0 auto; text-align: center; padding: 20px 0 28px; }
.post-hero h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; margin: 12px 0 14px; }
.post-cover { max-width: 1080px; margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; background: var(--surface); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 760px; margin: 0 auto; }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.blog-cats a { height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.blog-cats a.is-active { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.blog-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center; margin-bottom: 44px; }
.blog-featured .bcard-img { aspect-ratio: 16/10; }
.blog-featured h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 12px 0; }
@media (max-width: 860px) { .blog-featured { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------------------------------------------------------- compare */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table { border-collapse: collapse; min-width: 720px; width: 100%; font-size: 14px; }
.compare-table th, .compare-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table th { width: 170px; background: var(--surface); font-weight: 600; color: var(--muted); position: sticky; left: 0; }
.compare-table td { min-width: 220px; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-prod img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface); margin-bottom: 10px; }

/* ---------------------------------------------------------------- errors & maintenance */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.error-page svg { width: min(360px, 80vw); margin: 0 auto 10px; }
.error-page .code { font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: .14em; color: var(--accent); }
.error-page h1 { margin: 8px 0 10px; }
.error-page p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
