/* ==========================================================================
   Storefront. Colours/sizes come from tokens.css.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.8; color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.ltr { direction: ltr; unicode-bidi: plaintext; }
.muted { color: var(--c-text-2); }
.small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 18px; font-weight: 600; font-size: 14px; background: var(--c-surface); transition: .15s; white-space: nowrap; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline { border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--c-bg); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--c-surface); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--c-border); }
.header-top { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--c-primary); flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
@media (max-width: 991px) { .logo img { height: 38px; } }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--c-offer-bg); color: #fff; display: grid; place-items: center; font-size: 18px; }
.search { flex: 1; max-width: 640px; position: relative; }
.search input { width: 100%; height: 46px; border: 0; border-radius: var(--radius); background: var(--c-bg); padding: 0 48px 0 16px; font-size: 14px; outline: none; transition: .15s; }
.search input:focus { background: var(--c-surface); box-shadow: 0 0 0 2px var(--c-primary-soft), 0 0 0 1px var(--c-primary) inset; }
.search button { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--c-text-2); padding: 8px; display: grid; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding: 9px 14px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; inset-inline-start: 2px; background: var(--c-danger); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }

/* mega menu */
.nav-bar { border-top: 1px solid var(--c-border-2); }
.nav-bar > .container { display: flex; align-items: center; gap: 4px; height: 46px; }
.nav-item { position: static; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 46px; font-size: 13.5px; color: var(--c-text-2); font-weight: 500; position: relative; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--c-primary); }
.nav-link::after { content: ""; position: absolute; bottom: 0; inset-inline: 12px; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform .2s; }
.nav-item:hover > .nav-link::after { transform: scaleX(1); }
.nav-all { color: var(--c-text); font-weight: 700; }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--c-surface); box-shadow: var(--shadow-lg); border-top: 1px solid var(--c-border); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; transition-delay: .1s; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega { opacity: 1; visibility: visible; }
.mega-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 24px; padding: 24px 16px 28px; max-height: 70vh; overflow-y: auto; }
.mega-col h4 { font-size: 14px; margin-bottom: 6px; padding-inline-start: 10px; border-inline-start: 2px solid var(--c-primary); }
.mega-col h4 a:hover { color: var(--c-primary); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; font-size: 13px; color: var(--c-text-2); padding: 3px 12px; }
.mega-col li a:hover { color: var(--c-primary); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 30, .45); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); background: var(--c-surface); overflow-y: auto; padding: 16px; box-shadow: var(--shadow-lg); }
.drawer-panel details { border-bottom: 1px solid var(--c-border-2); }
.drawer-panel summary, .drawer-panel .d-link { display: flex; justify-content: space-between; padding: 12px 4px; font-weight: 500; cursor: pointer; list-style: none; }
.drawer-panel summary::-webkit-details-marker { display: none; }
.drawer-panel details details { padding-inline-start: 12px; }
.drawer-panel ul { list-style: none; margin: 0; padding: 0 12px 8px; }
.drawer-panel ul a { display: block; padding: 6px 0; color: var(--c-text-2); font-size: 13px; }

@media (max-width: 991px) {
  .nav-bar { display: none; }
  .menu-toggle { display: grid; }
  .header-top { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions .btn-text { display: none; }
}

/* ---------------------------------------------------------------- sections & cards */
main { min-height: 60vh; }
.section { margin-block: 24px; }
.panel { background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--c-border-2); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 8px; }
.section-head h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--c-primary); }
.section-head a { color: var(--c-primary); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 8px 16px; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.carousel-btn.prev { inset-inline-start: -10px; }
.carousel-btn.next { inset-inline-end: -10px; }
@media (max-width: 700px) { .carousel-btn { display: none; } .carousel-track { grid-auto-columns: 158px; } }

.p-card { display: flex; flex-direction: column; background: var(--c-surface); padding: 14px; height: 100%; position: relative; border-inline-start: 1px solid var(--c-border-2); transition: box-shadow .15s; }
.p-card:hover { box-shadow: var(--shadow); z-index: 1; }
.p-card-img { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.p-card-img img { width: 100%; height: 100%; object-fit: contain; }
.p-card-img .no-img { color: var(--c-border); width: 56px; height: 56px; }
.p-card-badges { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; line-height: 1.7; }
.badge-stock { background: #f1ecff; color: #6741d9; }
.badge-used { background: #fff4e5; color: #d9480f; }
.p-card-title { font-size: 13px; line-height: 1.85; color: var(--c-text); height: 3.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.p-card-meta { font-size: 11px; color: var(--c-text-3); margin-bottom: auto; }
.price-box { margin-top: 10px; min-height: 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.price small { font-size: 11px; font-weight: 500; color: var(--c-text-2); }
.discount { background: var(--c-danger); color: #fff; font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 16px; line-height: 1.9; }
.old-price { text-decoration: line-through; color: var(--c-text-3); font-size: 12px; text-align: end; }
.state-call { color: var(--c-primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.state-out { color: var(--c-text-3); font-weight: 600; font-size: 13px; text-align: end; }

/* grids */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-grid > * { border-bottom: 1px solid var(--c-border-2); }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .p-card { padding: 10px; } .price { font-size: 13.5px; } }

/* ---------------------------------------------------------------- home */
.hero { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.hero.with-side { grid-template-columns: 2.2fr 1fr; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 1; background: var(--c-offer-bg); }
.hero.with-side .slider { aspect-ratio: 2.6 / 1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slider-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255,255,255,.55); padding: 0; transition: .2s; }
.slider-dots button.active { width: 22px; background: #fff; }
.hero-side { display: grid; gap: 16px; }
.hero-side a { border-radius: var(--radius-lg); overflow: hidden; }
.hero-side img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { color: #fff; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 8px; position: relative; overflow: hidden; }
.hero-fallback h1 { font-size: clamp(20px, 3vw, 34px); font-weight: 900; }
.hero-fallback p { opacity: .85; max-width: 44ch; margin: 0; }
.hero-fallback .btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--c-primary); }
.hero-fallback::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .hero.with-side { grid-template-columns: 1fr; } .hero-side { grid-template-columns: 1fr 1fr; } .slider, .hero.with-side .slider { aspect-ratio: 16 / 9; } }

.cat-circles { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 8px; overflow-x: auto; padding: 8px 20px 20px; scrollbar-width: none; justify-content: start; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--c-text-2); }
.cat-circle .ring { width: 88px; height: 88px; border-radius: 50%; background: var(--c-bg); display: grid; place-items: center; overflow: hidden; transition: .15s; }
.cat-circle .ring img { width: 64px; height: 64px; object-fit: contain; }
.cat-circle .ring span { font-size: 26px; font-weight: 800; color: var(--c-primary); }
.cat-circle:hover .ring { box-shadow: 0 0 0 2px var(--c-primary); }
.cat-circle:hover { color: var(--c-primary); }
@media (min-width: 992px) {
  /* desktop: no sideways scrolling with a mouse, so wrap into rows instead */
  .cat-circles { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); grid-auto-columns: auto; overflow: visible; row-gap: 18px; }
}

.offer-strip { background: var(--c-offer-bg); border-radius: var(--radius-lg); padding: 16px 0 16px 16px; display: grid; grid-template-columns: 170px 1fr; gap: 8px; align-items: stretch; }
.offer-intro { color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 8px 16px; }
.offer-intro strong { font-size: 22px; font-weight: 900; line-height: 1.4; }
.offer-intro .btn { background: rgba(255,255,255,.15); color: #fff; font-size: 12px; padding: 6px 14px; }
.offer-strip .carousel-track { padding: 0; gap: 2px; grid-auto-columns: 190px; }
.offer-strip .p-card { border-radius: 6px; border: 0; }
.offer-strip .carousel-track > :first-child .p-card { border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
@media (max-width: 700px) { .offer-strip { grid-template-columns: 1fr; padding: 12px; } .offer-intro { flex-direction: row; justify-content: space-between; padding: 0 4px 6px; } .offer-intro strong { font-size: 17px; } }

.brand-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; overflow-x: auto; padding: 4px 16px 18px; gap: 8px; scrollbar-width: none; }
.brand-tile { height: 80px; border: 1px solid var(--c-border-2); border-radius: var(--radius); display: grid; place-items: center; padding: 10px; font-weight: 700; color: var(--c-text-2); text-align: center; font-size: 13px; }
.brand-tile img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.brand-tile:hover img { filter: none; opacity: 1; }
.brand-tile:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--c-text-3); padding-block: 14px 10px; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs span.sep { opacity: .6; }

/* ---------------------------------------------------------------- listing */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; margin-bottom: 32px; }
.filters { position: sticky; top: calc(var(--header-h) + 58px); max-height: calc(100vh - var(--header-h) - 74px); overflow-y: auto; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.filters-head h2 { font-size: 15px; font-weight: 800; }
.filters-head a { color: var(--c-danger); font-size: 12px; font-weight: 600; }
.f-group { border-top: 1px solid var(--c-border-2); }
.f-group > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; }
.f-group > summary::-webkit-details-marker { display: none; }
.f-group > summary .chev { transition: transform .2s; color: var(--c-text-3); }
.f-group[open] > summary .chev { transform: rotate(180deg); }
.f-group > summary .count { background: var(--c-primary); color: #fff; font-size: 10px; border-radius: 10px; padding: 0 7px; margin-inline-start: 6px; }
.f-body { padding: 0 18px 16px; }
.f-search { width: 100%; height: 36px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 0 10px; margin-bottom: 8px; font-size: 13px; background: var(--c-surface-2); }
.f-options { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.f-check { display: flex; align-items: center; gap: 10px; padding: 5px 2px; cursor: pointer; font-size: 13px; }
.f-check input { width: 18px; height: 18px; accent-color: var(--c-primary); flex-shrink: 0; margin: 0; }
.f-check .n { margin-inline-start: auto; color: var(--c-text-3); font-size: 11px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--c-border-2); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d5d9e2; border-radius: 22px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--c-primary); }
.switch input:checked + span::before { transform: translateX(-18px); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs label { font-size: 11px; color: var(--c-text-3); display: block; margin-bottom: 2px; }
.price-inputs input { width: 100%; height: 38px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 0 10px; font-size: 13px; text-align: left; direction: ltr; background: var(--c-surface-2); }
.range { position: relative; height: 28px; margin-top: 10px; }
.range input[type=range] { position: absolute; inset: 0; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; margin: 0; }
.range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--c-primary); cursor: pointer; position: relative; z-index: 2; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--c-primary); cursor: pointer; }
.range .track { position: absolute; top: 50%; inset-inline: 0; height: 4px; transform: translateY(-50%); border-radius: 4px; background: var(--c-border); }
.range .fill { position: absolute; top: 0; bottom: 0; background: var(--c-primary); border-radius: 4px; }
.f-apply { margin-top: 12px; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 12px 16px; border-bottom: 1px solid var(--c-border-2); }
.results-bar .label { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; margin-inline-end: 8px; }
.sort-link { padding: 4px 10px; font-size: 13px; color: var(--c-text-2); border-radius: 6px; }
.sort-link.active { color: var(--c-primary); font-weight: 700; background: var(--c-primary-soft); }
.results-count { margin-inline-start: auto; color: var(--c-text-3); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; background: var(--c-primary-soft); color: var(--c-primary); font-size: 12px; font-weight: 600; }
.chip:hover { background: var(--c-primary); color: #fff; }
.sub-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.sub-cats a { flex-shrink: 0; padding: 7px 14px; border-radius: 20px; background: var(--c-surface); border: 1px solid var(--c-border); font-size: 13px; }
.sub-cats a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-title { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; }
.page-title h1 { font-size: 20px; font-weight: 800; }
.mobile-filter-btn { display: none; }
.empty { text-align: center; padding: 60px 16px; color: var(--c-text-2); }
.empty .icon { width: 56px; height: 56px; color: var(--c-border); margin: 0 auto 12px; }
.pager { display: flex; justify-content: center; gap: 6px; padding: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; padding: 0 8px; }
.pager a:hover { background: var(--c-bg); }
.pager .current { background: var(--c-primary); color: #fff; }
.htmx-request .results-wrap { opacity: .5; transition: opacity .15s; pointer-events: none; }

@media (max-width: 991px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 120; max-height: none; border-radius: 0; transform: translateX(-100%); transition: transform .25s; }
  .filters.open { transform: none; }
  .mobile-filter-btn { display: inline-flex; }
  .filters-close { display: grid !important; }
}
.filters-close { display: none; border: 0; background: none; padding: 4px; }
.filters-footer { display: none; }
@media (max-width: 991px) { .filters-footer { display: block; position: sticky; bottom: 0; background: var(--c-surface); padding: 12px 18px; border-top: 1px solid var(--c-border); } }

/* ---------------------------------------------------------------- product page */
.product-top { display: grid; grid-template-columns: minmax(300px, 420px) 1fr 320px; gap: 24px; padding: 24px; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; background: #fff; overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { flex-shrink: 0; width: 68px; height: 68px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: #fff; padding: 4px; }
.gallery-thumbs button.active { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: 19px; font-weight: 800; line-height: 1.8; }
.product-info .en { color: var(--c-text-3); font-size: 12.5px; margin-top: 4px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--c-text-2); padding-block: 12px; border-bottom: 1px solid var(--c-border-2); }
.product-meta a { color: var(--c-primary); }
.option-group { margin-top: 18px; }
.option-group h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.option-group h3 span { font-weight: 500; color: var(--c-text-2); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 22px; padding: 6px 16px; font-size: 13px; transition: .12s; display: inline-flex; align-items: center; gap: 6px; }
.opt:hover { border-color: var(--c-text-3); }
.opt.selected { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary) inset; font-weight: 600; }
.opt.unavailable { color: var(--c-text-3); border-style: dashed; }
.opt .swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.summary { margin-top: 18px; }
.summary h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.summary li { font-size: 13px; color: var(--c-text-2); display: flex; gap: 6px; }
.summary li::before { content: "•"; color: var(--c-text-3); }
.summary li strong { color: var(--c-text); font-weight: 600; }
.condition-note { margin-top: 16px; background: #f6f2ff; border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: #4c2e9f; }
.buy-box { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 18px; align-self: start; position: sticky; top: calc(var(--header-h) + 64px); }
.buy-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding-block: 10px; border-bottom: 1px solid var(--c-border-2); color: var(--c-text-2); }
.buy-row .icon { color: var(--c-text-3); }
.buy-price { padding-block: 16px 12px; text-align: end; }
.buy-price .old-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 2px; }
.buy-price .final { font-size: 22px; font-weight: 900; }
.buy-price .final small { font-size: 12px; font-weight: 500; color: var(--c-text-2); }
.stock-hint { color: var(--c-danger); font-size: 12.5px; font-weight: 600; text-align: end; margin-bottom: 8px; }
.call-box { text-align: center; padding-block: 12px; }
.call-box strong { display: block; font-size: 16px; color: var(--c-primary); margin-bottom: 4px; }
.timer { display: flex; justify-content: flex-end; gap: 4px; direction: ltr; font-weight: 700; color: var(--c-accent); font-size: 13px; margin-bottom: 6px; }
@media (max-width: 1100px) { .product-top { grid-template-columns: minmax(260px, 360px) 1fr; } .buy-box { grid-column: 1 / -1; position: static; } }
@media (max-width: 700px) {
  .product-top { grid-template-columns: 1fr; padding: 16px; }
  .buy-box { position: fixed; top: auto; bottom: 0; inset-inline: 0; z-index: 40; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 12px 16px; box-shadow: 0 -6px 24px rgba(0,0,0,.08); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .buy-box .buy-row { display: none; }
  .buy-box .buy-price { padding: 0; order: 2; flex: 1; }
  .buy-box .buy-cta { order: 1; flex: 1; }
  .buy-price .final { font-size: 17px; }
  body.has-buybar { padding-bottom: 96px; }
}

.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); padding-inline: 20px; position: sticky; top: var(--header-h); background: var(--c-surface); z-index: 5; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.tabs-nav a { padding: 14px 12px; font-weight: 600; font-size: 13.5px; color: var(--c-text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-nav a:hover, .tabs-nav a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.content-section { padding: 24px 20px; border-bottom: 1px solid var(--c-border-2); scroll-margin-top: calc(var(--header-h) + 60px); }
.content-section h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.richtext { color: var(--c-text-2); line-height: 2.1; font-size: 14px; max-width: 900px; }
.richtext h2, .richtext h3, .richtext h4 { color: var(--c-text); font-size: 15px; margin-block: 16px 6px; }
.richtext img { border-radius: var(--radius); margin-block: 12px; }
.richtext.collapsed { max-height: 260px; overflow: hidden; position: relative; }
.richtext.collapsed::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--c-surface)); }
.more-btn { border: 0; background: none; color: var(--c-primary); font-weight: 700; padding: 6px 0; display: inline-flex; gap: 4px; align-items: center; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 980px; }
.spec-table caption { text-align: start; font-weight: 700; padding-block: 16px 6px; font-size: 14px; }
.spec-table th, .spec-table td { text-align: start; padding: 12px 14px; vertical-align: top; font-size: 13px; border-bottom: 1px solid var(--c-border-2); }
.spec-table th { width: 30%; color: var(--c-text-3); font-weight: 500; }
@media (max-width: 600px) { .spec-table th, .spec-table td { display: block; width: 100%; padding-block: 4px; } .spec-table th { padding-top: 12px; border: 0; } }

/* compare */
.compare-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare th, .compare td { border: 1px solid var(--c-border-2); padding: 12px; vertical-align: top; font-size: 13px; text-align: start; }
.compare thead td { width: 22%; }
.compare th { background: var(--c-surface-2); color: var(--c-text-2); font-weight: 600; width: 160px; }
.compare tr.differs td { background: #fffbea; }
.compare-bar { position: fixed; bottom: 16px; inset-inline-start: 50%; transform: translateX(50%); z-index: 60; background: var(--c-text); color: #fff; border-radius: 40px; padding: 8px 8px 8px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); font-size: 13px; }
.compare-bar .btn { padding: 6px 16px; }
.compare-toggle { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-border); background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--c-text-3); opacity: 0; transition: .15s; }
.p-card:hover .compare-toggle, .compare-toggle.on { opacity: 1; }
.compare-toggle.on { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
@media (hover: none) { .compare-toggle { opacity: 1; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); margin-top: 40px; padding-bottom: 20px; }
.footer-highlights-wrap { border-bottom: 1px solid var(--c-border-2); background: var(--c-surface-2); }
.footer-highlights { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-block: 22px; }
.fh-item { display: flex; align-items: center; gap: 12px; }
.fh-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; }
.fh-icon .icon { width: 26px; height: 26px; }
.fh-item strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--c-text); }
.fh-item small { display: block; font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; line-height: 1.7; }

.footer-grid { display: grid; grid-template-columns: 1.45fr 1.35fr .85fr 1.15fr; gap: 32px; padding-top: 34px; }
.footer-grid h3 { font-size: 14.5px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; position: relative; color: var(--c-text); }
.footer-grid h3::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--c-primary); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--c-text-2); font-size: 13px; }
.footer-grid a:hover { color: var(--c-primary); }
.footer-about .logo img { height: 44px; width: auto; }
.footer-about p { font-size: 13px; line-height: 2.15; color: var(--c-text-2); margin: 14px 0 18px; text-align: justify; }
.footer-services li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.9; color: var(--c-text-2); }
.footer-services li .icon { width: 16px; height: 16px; margin-top: 5px; color: var(--c-success); }
.footer-contact { display: grid; gap: 12px; font-size: 13px; color: var(--c-text-2); line-height: 1.9; }
.footer-contact > div { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--c-primary); }
.footer-contact a.ltr { direction: ltr; unicode-bidi: isolate; font-weight: 700; color: var(--c-text); font-size: 14px; }
.socials-title { font-size: 12.5px; font-weight: 700; color: var(--c-text); margin-bottom: 10px; }
.socials { display: flex; gap: 10px; }
.socials a, .socials .social-off { width: 42px; height: 42px; border-radius: 12px; background: var(--c-bg); display: grid; place-items: center; color: var(--c-text-2); transition: .15s; }
.socials .icon { width: 22px; height: 22px; }
.socials a:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.socials .social-off { cursor: default; }
.trust-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.trust-badge { width: 108px; min-height: 120px; border: 1px solid var(--c-border); border-radius: 12px; display: grid; place-items: center; padding: 8px; background: var(--c-surface); }
.trust-badge img { max-width: 100%; height: auto; }
.trust-soon { border-style: dashed; text-align: center; gap: 4px; align-content: center; color: var(--c-text-3); font-size: 11.5px; line-height: 1.6; }
.trust-soon .icon { width: 32px; height: 32px; color: var(--c-border); }
.trust-soon small { font-size: 10.5px; background: var(--c-bg); border-radius: 999px; padding: 0 8px; }

.footer-brands { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--c-border-2); }
.footer-brands h3 { font-size: 13.5px; font-weight: 800; margin: 0 0 14px; color: var(--c-text); }
.fb-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-item { min-width: 104px; height: 52px; padding: 0 16px; border: 1px solid var(--c-border); border-radius: 12px; display: grid; place-items: center; background: var(--c-surface); color: var(--c-text-3); font: 800 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .3px; transition: .15s; }
.fb-item img { max-height: 32px; max-width: 96px; filter: grayscale(1); opacity: .7; transition: .15s; }
.fb-item:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.fb-item:hover img { filter: none; opacity: 1; }

.footer-bottom { border-top: 1px solid var(--c-border-2); margin-top: 24px; padding-top: 16px; text-align: center; font-size: 12px; line-height: 2; color: var(--c-text-3); }
.footer-bottom p { margin: 0; }
@media (max-width: 1100px) { .footer-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer-highlights { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding-block: 16px; }
  .fh-icon { width: 40px; height: 40px; border-radius: 12px; } .fh-icon .icon { width: 22px; height: 22px; }
  .fh-item small { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 26px; }
  .fb-item { min-width: 0; flex: 1 1 calc(33% - 10px); height: 46px; font-size: 12.5px; line-height: 1.25; padding: 0 6px; text-align: center; }
}

/* ---------------------------------------------------------------- forms (account, checkout) */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.field label .req { color: var(--c-primary); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--c-surface); font-size: 14px; outline: none; transition: .15s; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.input.invalid { border-color: var(--c-danger); }
.field .help { font-size: 11.5px; color: var(--c-text-3); margin-top: 4px; }
.field .err { font-size: 12px; color: var(--c-danger); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-primary); margin-top: 4px; flex-shrink: 0; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 14px; }
.alert-error { background: #fdecef; color: #a50b30; }
.alert-success { background: #e8f7ee; color: #116b37; }
.alert-info, .alert-warning { background: #fff6e5; color: #8a5300; }
.form-section-title { font-size: 15px; font-weight: 800; margin: 18px 0 12px; display: flex; align-items: center; gap: 8px; }
.form-section-title::before { content: ""; width: 4px; height: 18px; background: var(--c-primary); border-radius: 4px; }

.auth-wrap { max-width: 720px; margin: 32px auto; }
.auth-wrap.narrow { max-width: 420px; }
.auth-card { padding: 28px clamp(18px, 4vw, 36px); }
.auth-card .logo-center { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-card .logo-center img { height: 56px; width: auto; }
.auth-card h1 { font-size: 19px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--c-text-2); font-size: 13px; margin-bottom: 22px; }
.auth-foot { text-align: center; font-size: 13px; margin-top: 16px; color: var(--c-text-2); }
.auth-foot a { color: var(--c-primary); font-weight: 700; }

/* account area */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; margin-block: 20px 32px; }
.account-nav { padding: 12px; position: sticky; top: calc(var(--header-h) + 60px); }
.account-user { padding: 10px 10px 16px; border-bottom: 1px solid var(--c-border-2); margin-bottom: 8px; }
.account-user strong { display: block; font-size: 15px; }
.account-user span { color: var(--c-text-3); font-size: 12px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 8px; font-size: 13.5px; color: var(--c-text-2); width: 100%; border: 0; background: none; text-align: start; }
.account-nav a:hover, .account-nav a.active { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.account-main { padding: 20px clamp(16px, 3vw, 28px); min-width: 0; }
.account-main h1 { font-size: 18px; font-weight: 800; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } .account-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .account-user { width: 100%; } .account-nav a, .account-nav button { width: auto; } }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-tile { border: 1px solid var(--c-border-2); border-radius: var(--radius); padding: 14px; }
.stat-tile b { display: block; font-size: 20px; }
.stat-tile span { color: var(--c-text-2); font-size: 12.5px; }
.addr-card { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.addr-card .meta { color: var(--c-text-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--c-border-2); text-align: start; vertical-align: middle; }
.table th { color: var(--c-text-3); font-weight: 500; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 14px; background: var(--c-bg); white-space: nowrap; }
.status.s-paid, .status.s-processing { background: #e8f1ff; color: #1e5bd6; }
.status.s-shipped { background: #f1ecff; color: #6741d9; }
.status.s-delivered { background: #e8f7ee; color: #12813f; }
.status.s-awaiting_payment { background: #fff4e0; color: #a35b00; }
.status.s-canceled, .status.s-returned { background: #fdecef; color: #a50b30; }

/* ---------------------------------------------------------------- cart & checkout */
.steps { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 20px 0 6px; font-size: 13px; color: var(--c-text-3); }
.steps .step { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.steps .step i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.steps .step.done, .steps .step.current { color: var(--c-primary); }
.steps .step.done i { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.steps .line { width: clamp(24px, 8vw, 90px); height: 2px; background: var(--c-border); }
.steps .line.done { background: var(--c-primary); }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; margin-block: 16px 32px; }
.checkout-side { position: sticky; top: calc(var(--header-h) + 60px); padding: 18px; }
@media (max-width: 980px) { .checkout { grid-template-columns: 1fr; } .checkout-side { position: static; } }
.cart-head { padding: 16px 20px; border-bottom: 1px solid var(--c-border-2); display: flex; justify-content: space-between; align-items: center; }
.cart-head h1 { font-size: 17px; font-weight: 800; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--c-border-2); align-items: start; }
.cart-line img { width: 110px; height: 110px; object-fit: contain; }
.cart-line h3 { font-size: 14px; font-weight: 600; line-height: 1.9; }
.cart-line .attrs { color: var(--c-text-2); font-size: 12.5px; display: grid; gap: 2px; margin-top: 6px; }
.cart-line .warn { color: var(--c-danger); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.cart-line .line-price { text-align: end; min-width: 140px; }
.cart-line .line-price .old { color: var(--c-text-3); text-decoration: line-through; font-size: 12px; }
.cart-line .line-price .disc { color: var(--c-primary); font-size: 12px; font-weight: 700; }
.cart-line .line-price b { font-size: 16px; display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 10px; height: 42px; margin-top: 12px; box-shadow: var(--shadow-sm); }
.qty button { width: 40px; height: 100%; border: 0; background: none; color: var(--c-primary); font-size: 20px; display: grid; place-items: center; }
.qty button:disabled { color: var(--c-border); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; color: var(--c-primary); }
@media (max-width: 560px) { .cart-line { grid-template-columns: 80px 1fr; } .cart-line img { width: 80px; height: 80px; } .cart-line .line-price { grid-column: 1 / -1; text-align: start; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--c-text-2); }
.sum-row b { color: var(--c-text); }
.sum-row.discount b { color: var(--c-primary); }
.sum-row.total { border-top: 1px solid var(--c-border-2); margin-top: 6px; padding-top: 14px; font-size: 15px; color: var(--c-text); font-weight: 700; }
.sum-row.total b { font-size: 17px; }
.sum-note { font-size: 11.5px; color: var(--c-text-3); line-height: 2; margin: 8px 0 14px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: .15s; }
.choice:has(input:checked) { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary) inset; background: #fffafb; }
.choice input { accent-color: var(--c-primary); width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.choice .c-title { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.choice .c-desc { color: var(--c-text-2); font-size: 12.5px; margin-top: 4px; line-height: 2; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.day { flex-shrink: 0; width: 86px; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 10px 6px; text-align: center; cursor: pointer; background: var(--c-surface); transition: .12s; }
.day input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.day .w { font-size: 12px; color: var(--c-text-2); display: block; }
.day .d { font-size: 20px; font-weight: 900; display: block; line-height: 1.5; }
.day .m { font-size: 12px; color: var(--c-text-2); }
.day:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.day:has(input:checked) .w, .day:has(input:checked) .m { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { position: relative; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 12px; text-align: center; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.slot:has(input:checked) { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary) inset; background: #fffafb; }
.mini-items { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mini-items img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--c-border-2); border-radius: 8px; background: #fff; }
.result { text-align: center; padding: 48px 20px; }
.result .big-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.result.ok .big-icon { background: #e8f7ee; color: var(--c-success); }
.result.fail .big-icon { background: #fdecef; color: var(--c-danger); }
.result h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.result .info { display: inline-grid; grid-template-columns: auto auto; gap: 6px 24px; text-align: start; margin: 16px auto; font-size: 13.5px; }
.added { background: #e8f7ee !important; color: #116b37 !important; }

/* ---------------------------------------------------------------- nav overflow + all-categories mega */
.nav-bar > .container { overflow: hidden; white-space: nowrap; }
.nav-sep { width: 1px; height: 18px; background: var(--c-border); margin-inline: 6px; flex-shrink: 0; }
.nav-item { flex-shrink: 0; }
.mega-split { display: grid; grid-template-columns: 230px 1fr; padding: 0 16px; }
.mega-roots { list-style: none; margin: 0; padding: 12px 0; border-inline-end: 1px solid var(--c-border-2); max-height: 70vh; overflow-y: auto; white-space: normal; }
.mega-roots a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; color: var(--c-text-2); border-radius: 8px 0 0 8px; }
.mega-roots a.active, .mega-roots a:hover { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.mega-panes { white-space: normal; min-height: 320px; }
.mega-pane-all { display: inline-flex; align-items: center; gap: 4px; color: var(--c-primary); font-size: 13px; font-weight: 600; padding: 18px 16px 0; }
.mega-split .mega-inner { padding: 12px 16px 24px; max-height: calc(70vh - 50px); }

/* ---------------------------------------------------------------- animated (designed) hero banners */
.dbanner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 16px; padding: 0 clamp(20px, 5vw, 64px); overflow: hidden; color: #fff; }
.dbanner.d-offer { background: linear-gradient(120deg, #ff2d5a 0%, #e41042 45%, #9d062c 100%); }
.dbanner.d-minipc { background: radial-gradient(circle at 80% 20%, #4a1325 0%, transparent 55%), linear-gradient(135deg, #17171b 0%, #2a2a31 100%); }
.dbanner.d-infra { background: radial-gradient(circle at 20% 80%, rgba(228,16,66,.55) 0%, transparent 60%), linear-gradient(135deg, #1b1c22 0%, #3b0c1b 100%); }
.dbanner.d-pc_office { background: linear-gradient(135deg, #fff5f7 0%, #ffe3ea 100%); color: var(--c-text); }
.db-text { position: relative; z-index: 2; max-width: 560px; }
.db-text h2 { font-size: clamp(19px, 2.6vw, 34px); font-weight: 900; line-height: 1.45; margin-bottom: 8px; animation: db-up .7s ease both; }
.db-text p { font-size: clamp(12px, 1.2vw, 15px); opacity: .88; margin: 0 0 16px; line-height: 2; animation: db-up .7s .12s ease both; }
.db-ctas { display: flex; flex-wrap: wrap; gap: 8px; animation: db-up .7s .24s ease both; }
.db-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--c-primary); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: transform .15s; }
.db-btn:hover { transform: translateY(-2px); }
.db-btn.ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.35); }
.d-pc_office .db-btn { background: var(--c-primary); color: #fff; }
.d-pc_office .db-btn.ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.db-art { height: 100%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.db-art .art { width: 100%; max-height: 84%; overflow: visible; }
.svg-num { font-family: var(--font); font-weight: 900; }
.db-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.db-orb.o1 { width: 360px; height: 360px; inset-inline-end: -120px; top: -140px; border: 46px solid rgba(255,255,255,.06); }
.db-orb.o2 { width: 180px; height: 180px; inset-inline-start: 30%; bottom: -110px; background: rgba(255,255,255,.05); }
.d-pc_office .db-orb.o1 { border-color: rgba(228,16,66,.07); }
.d-pc_office .db-orb.o2 { background: rgba(228,16,66,.05); }

/* motion */
.art .bob { animation: db-bob 3.2s ease-in-out infinite; }
.art .swing { transform-box: fill-box; transform-origin: 50% 0; animation: db-swing 2.6s ease-in-out infinite; }
.art .tw { transform-box: fill-box; transform-origin: center; animation: db-twinkle 2.2s ease-in-out infinite; }
.art .t2 { animation-delay: .7s; } .art .t3 { animation-delay: 1.3s; }
.art .rise { animation: db-rise 5s linear infinite; } .art .r2 { animation-delay: 1.6s; } .art .r3 { animation-delay: 3.1s; }
.art .blink { animation: db-blink 1.4s steps(2, jump-none) infinite; }
.art .b2 { animation-delay: .35s; } .art .b3 { animation-delay: .7s; } .art .b4 { animation-delay: 1.05s; }
.art .flow { animation: db-flow 1.2s linear infinite; } .art .f2 { animation-duration: 1.6s; }
.art .chase circle { animation: db-blink 1.6s infinite; }
.art .chase circle:nth-child(2) { animation-delay: .2s; } .art .chase circle:nth-child(3) { animation-delay: .4s; }
.art .chase circle:nth-child(4) { animation-delay: .6s; } .art .chase circle:nth-child(5) { animation-delay: .8s; }
.art .chase circle:nth-child(6) { animation-delay: 1s; } .art .chase circle:nth-child(7) { animation-delay: 1.2s; }
.art .chase circle:nth-child(8) { animation-delay: 1.4s; }
.art .spin { animation: db-spin 1.6s linear infinite; } .art .s2 { animation-duration: 2.1s; }
.art .paper { animation: db-paper 3.4s ease-in-out infinite; }
.art .scan { animation: db-scan 3s linear infinite; }
.art .slide-in { animation: db-slide 4.5s ease-in-out infinite; }
@keyframes db-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes db-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes db-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes db-twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes db-rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .5; } to { transform: translateY(-240px); opacity: 0; } }
@keyframes db-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes db-flow { to { stroke-dashoffset: -40; } }
@keyframes db-spin { to { transform: rotate(360deg); } }
@keyframes db-paper { 0%, 15% { transform: translateY(40px); } 55%, 80% { transform: translateY(0); } 100% { transform: translateY(40px); } }
@keyframes db-scan { from { transform: translateY(0); } to { transform: translateY(118px); } }
@keyframes db-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }
/* re-run the text entrance when a slide becomes active; pause hidden slides */
.slide:not(.active) .db-text > * { animation: none; }
.slide:not(.active) .art * { animation-play-state: paused; }

@media (max-width: 860px) {
  .slider:has(.dbanner) { aspect-ratio: auto; height: 240px; }
  .dbanner { grid-template-columns: 1.25fr 1fr; padding: 0 18px; gap: 8px; }
  .db-btn { padding: 8px 12px; font-size: 13px; }
  .db-orb.o1 { width: 220px; height: 220px; border-width: 28px; }
}
@media (max-width: 560px) {
  .db-text p { display: none; }
  .db-btn.ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: reduce) { .art *, .db-text > * { animation: none !important; } }

/* features shown but switched off for now (e.g. company buying on the sign-up form) */
.is-disabled { opacity: .45; pointer-events: none; user-select: none; }
.badge-soon { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--c-bg); color: var(--c-text-3); font-size: 11px; font-weight: 500; vertical-align: 2px; }

/* category line icons (catalog/category_icons.py) */
.cat-circle .ring .cat-icon { width: 46px; height: 46px; color: var(--c-primary); transition: transform .2s; }
.cat-circle:hover .ring .cat-icon { transform: scale(1.08); }

/* ---------------------------------------------------------------- live chat widget (static/js/chat.js) */
.kchat { position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.has-buybar .kchat { bottom: 104px; }
.kchat-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--c-offer-bg); box-shadow: 0 8px 24px rgba(228, 16, 66, .38); display: grid; place-items: center; transition: transform .2s, box-shadow .2s; }
.kchat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(228, 16, 66, .45); }
.kchat-fab:focus-visible { outline: 3px solid var(--c-primary-soft); outline-offset: 3px; }
.kchat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-primary); animation: kchat-pulse 2.6s ease-out infinite; }
.kchat.is-open .kchat-fab::before { animation: none; opacity: 0; }
.kchat-fab svg { transition: transform .25s, opacity .2s; }
.kchat-ico-open { width: 32px; height: 32px; }
.kchat-ico-close { position: absolute; width: 26px; height: 26px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.kchat.is-open .kchat-ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.kchat.is-open .kchat-ico-close { opacity: 1; transform: none; }
.kchat-badge { position: absolute; top: -3px; inset-inline-start: -3px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #fff; color: var(--c-primary); font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); border: 2px solid var(--c-primary); }
@keyframes kchat-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.kchat-teaser { position: relative; max-width: 250px; background: var(--c-surface); border-radius: 16px 16px 16px 4px; padding: 12px 16px 12px 34px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.9; color: var(--c-text-2); cursor: pointer; animation: kchat-in .35s ease-out; }
.kchat-teaser strong { display: block; color: var(--c-text); font-size: 14px; }
.kchat-teaser-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--c-bg); color: var(--c-text-3); display: grid; place-items: center; cursor: pointer; }
.kchat-teaser-x .icon { width: 14px; height: 14px; }

.kchat-panel { width: 370px; height: min(560px, calc(100vh - 120px)); background: var(--c-surface); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom left; transition: opacity .2s, transform .2s; }
.kchat.is-open .kchat-panel { opacity: 1; transform: none; }
.kchat-panel[hidden] { display: none; }
.kchat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 18px; color: #fff; background: var(--c-offer-bg); }
.kchat-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--c-primary); }
.kchat-avatar img { width: 30px; height: 30px; object-fit: contain; }
.kchat-avatar .icon { width: 26px; height: 26px; }
.kchat-dot { position: absolute; bottom: -3px; inset-inline-start: -3px; width: 13px; height: 13px; border-radius: 50%; background: #b8bcc6; border: 2.5px solid #fff; }
.kchat.is-online .kchat-dot { background: #22c55e; }
.kchat-head-text { flex: 1; min-width: 0; line-height: 1.6; }
.kchat-head-text strong { display: block; font-size: 15px; }
.kchat-head-text small { display: block; font-size: 11.5px; opacity: .9; }
.kchat-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.kchat-close:hover { background: rgba(255,255,255,.28); }
.kchat-body { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--c-bg); display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.kchat-msg { max-width: 82%; padding: 9px 13px 6px; border-radius: 16px; font-size: 13.5px; line-height: 1.95; animation: kchat-in .2s ease-out; }
.kchat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.kchat-msg time { display: block; font-size: 10.5px; opacity: .65; margin-top: 1px; text-align: end; }
.kchat-who { display: block; font-size: 11px; font-weight: 800; color: var(--c-primary); margin-bottom: 1px; }
.kchat-me { align-self: flex-start; background: var(--c-primary); color: #fff; border-start-start-radius: 4px; }
.kchat-staff { align-self: flex-end; background: var(--c-surface); color: var(--c-text); border-start-end-radius: 4px; box-shadow: var(--shadow-sm); }
.kchat-system { align-self: center; max-width: 92%; background: var(--c-primary-soft); color: var(--c-primary-dark); font-size: 12px; text-align: center; border-radius: 12px; }
.kchat-form { padding: 10px 12px 12px; border-top: 1px solid var(--c-border-2); background: var(--c-surface); }
.kchat-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.kchat-contact[hidden] { display: none; }
.kchat-contact input { min-width: 0; height: 38px; border: 1px solid var(--c-border); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--c-surface-2); }
.kchat-contact input:focus { outline: none; border-color: var(--c-primary); background: var(--c-surface); }
.kchat-contact small { grid-column: 1 / -1; font-size: 11px; color: var(--c-text-3); }
.kchat-error { font-size: 12px; color: var(--c-danger); margin-bottom: 6px; }
.kchat-input { display: flex; align-items: flex-end; gap: 8px; background: var(--c-bg); border-radius: 14px; padding: 6px 6px 6px 6px; }
.kchat-input:focus-within { box-shadow: 0 0 0 2px var(--c-primary-soft); }
.kchat-input textarea { flex: 1; border: 0; background: transparent; resize: none; font: inherit; font-size: 14px; line-height: 1.8; padding: 4px 8px; max-height: 120px; outline: none; color: var(--c-text); }
.kchat-send { width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 11px; background: var(--c-primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.kchat-send .icon { width: 19px; height: 19px; transform: scaleX(-1); }
.kchat-send:disabled { opacity: .5; cursor: wait; }
@keyframes kchat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .kchat { bottom: 14px; inset-inline-end: 14px; }
  .kchat-fab { width: 54px; height: 54px; }
  .kchat.is-open { inset: 0; bottom: 0; inset-inline-end: 0; gap: 0; }
  .kchat.is-open .kchat-fab, .kchat.is-open .kchat-teaser { display: none; }
  .kchat-panel { width: 100%; height: 100%; border-radius: 0; }
  html.kchat-lock, html.kchat-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .kchat-fab::before, .kchat-msg, .kchat-teaser { animation: none; } .kchat-panel, .kchat-fab svg { transition: none; } }
