/* ASKO Moldova storefront theme — header + homepage (2026-08-03 redesign).
   Loaded ALONGSIDE public-site.css (Dune London theme): category/PLP/PDP/
   cart pages still use the old dl-* classes until their own redesign pass.
   Namespaced ak-* so nothing here collides with dl-*. */

:root {
    --ak-red: #C8102E;
    --ak-red-dark: #b30e29;
    --ak-ink: #111111;
    --ak-body: #3C3C3C;
    --ak-muted: #6B6B6B;
    --ak-border: #D8D8D8;
    --ak-bg-light: #F3F3F1;
    --ak-bg-warm: #E9E6DF;
    --ak-bg-dark: #242424;
    --ak-font: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
}

.ak-root {
    font-family: var(--ak-font);
    color: var(--ak-ink);
    font-size: 16px;
    line-height: 1.55;
    background: #fff;
}

.ak-root a {
    color: var(--ak-ink);
    text-decoration: none;
}

.ak-root a:hover {
    color: var(--ak-red);
}

.ak-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.ak-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 2px;
    font: 600 13px/1 var(--ak-font);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    border: 0;
    text-decoration: none;
}

/* .ak-btn.ak-btn-* (not bare .ak-btn-*) so these always out-specificity
   `.ak-root a { color: var(--ak-ink) }` (0,1,1) — a bare single-class
   modifier selector is only (0,1,0) and silently loses even though the
   element itself carries both classes; specificity is about the
   selector, not the element's class list. Same root cause as the
   `.ak-footer-link` fix above — check any future .ak-btn-* variant
   against this. */
.ak-btn.ak-btn-primary { background: var(--ak-red); color: #fff; }
.ak-btn.ak-btn-primary:hover { background: var(--ak-red-dark); color: #fff; }
.ak-btn.ak-btn-dark { background: var(--ak-ink); color: #fff; }
.ak-btn.ak-btn-dark:hover { color: #fff; opacity: .9; }
.ak-btn.ak-btn-outline { background: transparent; color: var(--ak-ink); border: 1px solid var(--ak-ink); }
.ak-btn.ak-btn-outline:hover { color: var(--ak-ink); background: var(--ak-bg-light); }
.ak-btn.ak-btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.ak-btn.ak-btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Utility bar */
.ak-utility {
    background: var(--ak-bg-light);
    border-bottom: 1px solid var(--ak-border);
}
.ak-utility-row {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ak-muted);
    letter-spacing: .02em;
}
.ak-utility-left { display: flex; align-items: center; gap: 16px; }
.ak-utility-sep { width: 1px; height: 12px; background: var(--ak-border); }
.ak-lang-switch { display: flex; align-items: center; gap: 8px; }
a.ak-lang-link { border: 0; background: none; padding: 0; font: 600 12px var(--ak-font); letter-spacing: .04em; cursor: pointer; color: var(--ak-muted); }
a.ak-lang-link.is-active { color: var(--ak-ink); }
.ak-lang-sep { color: var(--ak-border); }
.ak-utility-dealers { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ak-ink); }
.ak-utility-dealers:hover { color: var(--ak-red); }

/* Header */
.ak-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
}
.ak-header-row {
    border-bottom: 1px solid var(--ak-border);
    height: 80px;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
}
.ak-logo { flex: 0 0 auto; width: 120px; height: 40px; display: flex; align-items: center; }
.ak-logo img { display: block; width: 120px; height: auto; }

.ak-nav { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; }
/* Deliberately NOT `position: relative` — .ak-mega's `left:0; right:0`
   needs to size against the whole header (`.ak-header`, `position: sticky`
   — already a positioning context), not against this single nav item's
   own narrow width. Giving .ak-nav-item its own positioning context would
   make .ak-mega resolve left/right against just the link's text width
   instead, collapsing the dropdown into a squeezed single column. */
.ak-nav-item { position: static; }
.ak-nav-link {
    display: inline-block;
    border: 0;
    background: none;
    padding: 7px 0;
    font: 600 13px var(--ak-font);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ak-ink);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.ak-nav-item:hover .ak-nav-link,
.ak-nav-item:focus-within .ak-nav-link,
.ak-nav-item.js-is-open .ak-nav-link { border-bottom-color: var(--ak-red); color: var(--ak-ink); }

/* Page-driven mega menu (2026-08-04 — "как у дюн": top nav = pages,
   columns/promos attached via each hub page's own editor,
   BaseController::buildHeaderMenu()/page_menu_categories). Full-width
   dropdown panel, not a narrow box under the link — matches the mockup's
   own mega menu shape. */
.ak-mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--ak-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    z-index: 61;
}
.ak-nav-item:hover .ak-mega,
.ak-nav-item:focus-within .ak-mega,
.ak-nav-item.js-is-open .ak-mega { display: block; }
.ak-mega-inner { max-width: 1320px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 60px); max-height: calc(100vh - 140px); overflow-y: auto; }
.ak-mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.ak-mega-col { display: flex; flex-direction: column; gap: 12px; }
a.ak-mega-col-title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); }
a.ak-mega-col-title:hover { color: var(--ak-red); }
/* Multi-column flow (not a single flex stack) — a column with many linked
   subcategories (Kitchen has 9) used to render as one tall list, pushing
   the promo tiles (and the page behind the menu) out of view with no way
   to scroll past it. */
.ak-mega-col-links { columns: 2; column-gap: 20px; }
a.ak-mega-link { display: block; font-size: 16px; color: var(--ak-ink); white-space: nowrap; width: fit-content; padding-bottom: 8px; break-inside: avoid; }
a.ak-mega-link:hover { color: var(--ak-red); }
/* `minmax(110px, 140px)` — not `1fr` — so 4 promo tiles in a wide panel
   stay a compact thumbnail size instead of stretching to fill the row. */
.ak-mega-promos { border-top: 1px solid var(--ak-border); margin-top: 24px; padding-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 140px)); gap: 16px; }
.ak-mega-promo { display: flex; flex-direction: column; gap: 8px; }
.ak-mega-promo-img { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--ak-bg-light); overflow: hidden; }
.ak-mega-promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.ak-mega-promo-title { font-size: 13px; color: var(--ak-ink); width: fit-content; }
a.ak-mega-promo-title:hover { color: var(--ak-red); }

.ak-header-icons { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ak-icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ak-ink);
    position: relative;
}
.ak-icon-btn:hover { background: var(--ak-bg-light); }
.ak-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--ak-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search overlay */
.ak-search-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--ak-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    z-index: 59;
}
.ak-search-panel.is-open { display: block; }
.ak-search-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--ak-ink);
    padding: 32px 0 12px;
}
.ak-search-input {
    flex: 1 1 auto;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 22px;
    color: var(--ak-ink);
    background: none;
}

/* Mobile drawer (simple slide-down list, no nested mega-menu on mobile) */
.ak-drawer-toggle { display: none; }
.ak-drawer {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--ak-border);
}
.ak-drawer.is-open { display: flex; }
.ak-drawer-link {
    padding: 16px clamp(20px, 4vw, 60px);
    border-bottom: 1px solid var(--ak-border);
    font-size: 16px;
    color: var(--ak-ink);
}
.ak-drawer-item { border-bottom: 1px solid var(--ak-border); }
.ak-drawer-item .ak-drawer-link { border-bottom: 0; }
button.ak-drawer-toggle-sub { width: 100%; border: 0; background: none; padding: 16px clamp(20px, 4vw, 60px); font: inherit; font-size: 16px; color: var(--ak-ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.ak-drawer-chevron { flex: 0 0 auto; transition: transform 150ms ease; }
.ak-drawer-item.is-open .ak-drawer-chevron { transform: rotate(90deg); }
.ak-drawer-sub { display: none; flex-direction: column; background: var(--ak-bg-light); }
.ak-drawer-item.is-open .ak-drawer-sub { display: flex; }
.ak-drawer-sub-link { padding: 14px clamp(20px, 4vw, 60px) 14px calc(clamp(20px, 4vw, 60px) + 16px); font-size: 15px; color: var(--ak-body); border-top: 1px solid var(--ak-border); }
.ak-drawer-sub-all { font-weight: 600; color: var(--ak-ink); }
@media (max-width: 900px) {
    .ak-nav { display: none; }
    .ak-drawer-toggle { display: flex; }
}

/* Hero video */
.ak-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920/1060;
    max-height: 76vh;
    background: var(--ak-bg-dark);
    overflow: hidden;
}
.ak-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ak-hero-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 2px;
    background: rgba(17,17,17,.45);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* Home sections */
.ak-section { padding: clamp(56px, 7vw, 96px) 0; }
.ak-section-light { background: var(--ak-bg-light); }
.ak-section-dark { background: var(--ak-bg-dark); color: #fff; }
.ak-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); }
.ak-h1 { margin: 0; font-size: clamp(26px, 2.4vw, 30px); line-height: 1.2; font-weight: 400; }
.ak-h2 { margin: 0; font-size: clamp(26px, 2.6vw, 30px); line-height: 1.2; font-weight: 400; }
.ak-lead { margin: 0; font-size: 18px; color: var(--ak-muted); }

.ak-universes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.ak-universes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ak-universe-card { display: flex; flex-direction: column; gap: 16px; }
.ak-universe-img { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--ak-bg-light); overflow: hidden; }
.ak-universe-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-universe-title { font-size: 22px; font-weight: 500; color: var(--ak-ink); }
.ak-universe-sub { font-size: 14px; color: var(--ak-muted); }

.ak-proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.ak-proof-tile { background: var(--ak-bg-light); outline: 1px solid var(--ak-border); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ak-proof-num { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; font-weight: 300; }
.ak-proof-label { font-size: 14px; color: var(--ak-muted); }

.ak-story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ak-story-img { position: relative; width: 100%; aspect-ratio: 3/2; background: var(--ak-bg-light); overflow: hidden; }
.ak-story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-story-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ak-border); padding-top: 20px; }
.ak-story-facts li { display: flex; gap: 12px; font-size: 16px; color: var(--ak-ink); }
.ak-story-facts li span:first-child { color: var(--ak-red); }

.ak-service-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }

/* Footer */
.ak-footer { background: var(--ak-bg-dark); color: #fff; }
.ak-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; }
.ak-footer-col { display: flex; flex-direction: column; gap: 14px; }
.ak-footer-heading { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ak-footer-links { display: flex; flex-direction: column; gap: 10px; }
a.ak-footer-link { color: rgba(255,255,255,.85); font-size: 15px; }
a.ak-footer-link:hover { color: #fff; }
.ak-footer-contact { display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,.85); font-size: 15px; }
.ak-footer-contact a { color: #fff; text-decoration: underline; }
.ak-footer-bottom { border-top: 1px solid rgba(255,255,255,.24); }
.ak-footer-bottom-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: rgba(255,255,255,.6); }
.ak-footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.ak-footer-legal a { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
    .ak-header-row { height: 64px; }
    .ak-hero { aspect-ratio: 4/5; max-height: 70vh; }
}

/* Generic CMS text page (public/pages/page.php) — used for draft/simple
   pages (support, dealers, about, design, etc.) that don't have a
   dedicated template. */
.ak-page-hero { padding: clamp(40px, 6vw, 64px) 0; }
.ak-page-content { max-width: 760px; }
.ak-page-content p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--ak-body); }
.ak-page-content p:last-child { margin-bottom: 0; }
.ak-page-content h2 { margin: 40px 0 16px; font-size: 22px; font-weight: 500; color: var(--ak-ink); }
.ak-page-content h2:first-child { margin-top: 0; }
.ak-page-content ul, .ak-page-content ol { margin: 0 0 20px; padding-left: 20px; color: var(--ak-body); line-height: 1.7; }
.ak-page-content a { color: var(--ak-ink); text-decoration: underline; }
.ak-page-content a:hover { color: var(--ak-red); }

/* ============================================================
   Category / PLP (public/pages/category.php + catalog_body.php +
   catalog_results.php) — one universal template for every real
   category (54 of them), not the mockup's two hardcoded "cat"/"catk"
   editorial landings. Reuses the existing flat-catalog filter/pager
   backend (Pages::category(), CatalogModel) — only the markup here is
   new; the AJAX filter/pagination JS (category.php's own <script>)
   keeps the same id/class hooks (#catalogFilterDrawer, .js-catalog-
   filter-link, .dl-pagination-item, etc.) so it works unchanged
   underneath the new visual layer.
   ============================================================ */

.ak-root .breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ak-muted); margin: 24px 0 0; }
.ak-root .breadcrumbs a { color: var(--ak-muted); }
.ak-root .breadcrumbs a:hover { color: var(--ak-red); }
.ak-root .breadcrumbs .divider { color: var(--ak-border); }
.ak-root .breadcrumbs .textbc { color: var(--ak-ink); }

.ak-plp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin: 24px 0 32px; }
.ak-plp-count { font-size: 14px; color: var(--ak-muted); }
.ak-plp-desc { margin: -20px 0 32px; max-width: 720px; color: var(--ak-muted); font-size: 16px; }

.ak-plp-tabs { display: flex; gap: 10px; overflow-x: auto; border-bottom: 1px solid var(--ak-border); margin-bottom: 32px; flex-wrap: wrap; }
.ak-plp-tab { flex: 0 0 auto; border: 0; background: none; padding: 0 4px 7px; cursor: pointer; font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--ak-muted); border-bottom: 2px solid transparent; }
a.ak-plp-tab.is-current { color: var(--ak-ink); border-bottom-color: var(--ak-red); }
a.ak-plp-tab:hover { color: var(--ak-ink); }

.ak-plp-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 3vw, 40px); align-items: start; }
.ak-plp-main { grid-column: span 3; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.ak-plp-sidebar { max-width: 280px; display: flex; flex-direction: column; gap: 24px; }
.ak-plp-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ak-ink); font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; }
a.ak-plp-reset { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--ak-muted); text-decoration: underline; }
.ak-plp-filter-group { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--ak-border); }
.ak-plp-filter-title { font-size: 14px; font-weight: 600; }
.ak-plp-price-row { display: flex; align-items: center; gap: 12px; }
.ak-plp-price-row input { width: 100%; height: 48px; border: 1px solid var(--ak-border); border-radius: 2px; padding: 0 12px; font-family: inherit; font-size: 15px; color: var(--ak-ink); }
.ak-plp-price-row span { color: var(--ak-muted); }
.ak-plp-price-unit { font-size: 13px; color: var(--ak-muted); }
/* Real attribute-value facet checkboxes (2026-08-04) */
.ak-plp-checklist { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
a.ak-plp-checkbox-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 28px; }
.ak-plp-checkbox { flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid var(--ak-border); border-radius: 2px; position: relative; }
.ak-plp-checkbox.is-checked { background: var(--ak-ink); border-color: var(--ak-ink); }
.ak-plp-checkbox.is-checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ak-plp-checkbox-label { flex: 1 1 auto; font-size: 15px; color: var(--ak-ink); }
.ak-plp-checkbox-count { font-size: 13px; color: var(--ak-muted); }
.ak-plp-price-apply { margin-top: 4px; }

/* mobile-only toolbar (filter button + sort select) — desktop hides via
   the same 900px breakpoint as everything else in this theme */
.ak-plp-mobile-toolbar { display: none; grid-template-columns: 1fr 1fr; gap: 12px; }
.ak-plp-mobile-toolbar select, .ak-plp-mobile-toolbar button { height: 48px; border: 1px solid var(--ak-ink); border-radius: 2px; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: var(--ak-ink); cursor: pointer; }

.ak-plp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ak-plp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
a.ak-plp-chip { height: 32px; padding: 0 12px; border: 1px solid var(--ak-border); background: #fff; border-radius: 2px; font-family: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.ak-plp-chip-x { color: var(--ak-muted); }
.ak-plp-sort { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ak-muted); }
.ak-plp-sort select { height: 48px; border: 1px solid var(--ak-border); border-radius: 2px; padding: 0 12px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ak-ink); }

/* "Filtru"/"Sortare" small dropdowns (native details/summary — same
   interaction convention as the old dl- filter bar, restyled) */
.ak-filter-dropdown { position: relative; }
.ak-filter-dropdown summary { list-style: none; cursor: pointer; }
.ak-filter-dropdown summary::-webkit-details-marker { display: none; }
.ak-filter-btn { height: 44px; padding: 0 16px; border: 1px solid var(--ak-ink); border-radius: 2px; background: #fff; font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; color: var(--ak-ink); cursor: pointer; display: inline-flex; align-items: center; }
.ak-filter-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--ak-border); box-shadow: 0 8px 24px rgba(0,0,0,.10); z-index: 20; padding: 8px 0; }
.ak-filter-option, .ak-filter-option-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 15px; color: var(--ak-ink); white-space: nowrap; }
a.ak-filter-option:hover, a.ak-filter-option-check:hover { background: var(--ak-bg-light); }
a.ak-filter-option.is-selected { color: var(--ak-red); }
.ak-filter-check-mark { color: var(--ak-red); }

.ak-plp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ak-plp-card { background: #fff; border: 1px solid var(--ak-border); display: flex; flex-direction: column; }
.ak-plp-card-media { position: relative; background: #F7F7F5; padding: 24px; }
/* No real product image — no grey placeholder box, no border, just empty
   space (the aspect-ratio inner box stays for grid-row alignment, it's
   just visually blank instead of a "broken placeholder" grey square). */
.ak-plp-card-media.is-empty { background: none; border: 0; padding: 24px; }
.ak-plp-card-media-inner { position: relative; width: 100%; aspect-ratio: 1/1; }
.ak-plp-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* z-index needed: .ak-plp-card-media-inner (the image wrapper right after
   this badge in the DOM) is also `position: relative`, so without an
   explicit stacking order it paints over the badge instead of under it —
   later-in-DOM positioned siblings win ties on stacking order. */
.ak-plp-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ak-red); color: #fff; font: 700 11px var(--ak-font); letter-spacing: .03em; padding: 4px 8px; border-radius: 2px; }
.ak-plp-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.ak-plp-card-cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); }
a.ak-plp-card-title, a.ak-plp-card-title:link, a.ak-plp-card-title:visited { color: var(--ak-ink); }
a.ak-plp-card-title { font-size: 18px; line-height: 1.3; font-weight: 500; }
a.ak-plp-card-title:hover { color: var(--ak-red); }
.ak-plp-card-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ak-body); }
.ak-plp-card-facts li { padding-left: 14px; position: relative; }
.ak-plp-card-facts li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--ak-muted); }
.ak-plp-card-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ak-plp-card-price { font-size: 19px; font-weight: 500; color: var(--ak-ink); }
.ak-plp-card-price.has-discount { color: var(--ak-red); }
.ak-plp-card-price-old { font-size: 14px; color: var(--ak-muted); text-decoration: line-through; }
.ak-plp-card-actions { margin-top: auto; padding-top: 4px; }
button.ak-plp-add { width: 100%; height: 48px; padding: 0 16px; background: var(--ak-red); color: #fff; border: 0; border-radius: 2px; font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
button.ak-plp-add:hover { background: var(--ak-red-dark); }
button.ak-plp-add:disabled { background: var(--ak-border); color: var(--ak-muted); cursor: not-allowed; }

.ak-plp-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 16px; }
/* Whole PLP page had zero bottom spacing before the footer — grid/
   pagination ran flush into it. */
.ak-plp-shell { padding-bottom: clamp(48px, 6vw, 80px); }
a.ak-plp-page { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ak-border); border-radius: 2px; font-size: 14px; color: var(--ak-ink); }
a.ak-plp-page.is-current { border-color: var(--ak-ink); background: var(--ak-ink); color: #fff; }
a.ak-plp-page-next { height: 40px; padding: 0 20px; display: inline-flex; align-items: center; border: 1px solid var(--ak-ink); border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ak-ink); }

.ak-plp-empty { border: 1px solid var(--ak-border); padding: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ak-plp-empty-title { font-size: 22px; font-weight: 500; }
.ak-plp-empty-text { margin: 0; color: var(--ak-muted); }

/* mobile filter drawer (right-side panel, matches mockup's) */
.ak-filter-drawer-backdrop { position: fixed; inset: 0; background: rgba(17,17,17,.4); z-index: 94; opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
.ak-filter-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.ak-filter-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 100vw); background: #fff; z-index: 95; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 200ms cubic-bezier(.2,.7,.2,1); }
.ak-filter-drawer.is-open { transform: translateX(0); }
.ak-filter-drawer-header { height: 64px; border-bottom: 1px solid var(--ak-border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex: 0 0 auto; }
.ak-filter-drawer-header h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ak-filter-drawer-close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--ak-ink); }
.ak-filter-drawer-body { flex: 1 1 auto; overflow: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 24px; }
.ak-filter-drawer-footer { flex: 0 0 auto; border-top: 1px solid var(--ak-border); padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 900px) {
    .ak-plp-main { grid-column: 1; }
    .ak-plp-sidebar { display: none; }
    .ak-plp-mobile-toolbar { display: grid; }
    .ak-plp-sort { display: none; }
}

/* ============================================================
   PDP (public/pages/product_flat.php + product_detail_flat.php) —
   2026-08-04, flat catalog only (one row = one sellable item, no color/
   size options — that's a grouped-mode-only concept, doesn't apply here).
   ============================================================ */

.ak-pdp-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; padding: 32px 0 clamp(48px, 6vw, 80px); }

.ak-pdp-gallery { display: flex; flex-direction: column; gap: 16px; }
.ak-pdp-main-image { position: relative; width: 100%; aspect-ratio: 1/1; background: #F7F7F5; }
.ak-pdp-main-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ak-pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ak-pdp-thumb { aspect-ratio: 1/1; background: #F7F7F5; border: 1px solid var(--ak-border); border-radius: 2px; cursor: pointer; padding: 4px; }
.ak-pdp-thumb.is-active { border-color: var(--ak-ink); }
.ak-pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.ak-pdp-info { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.ak-pdp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); }
.ak-pdp-title { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 400; }
.ak-pdp-lead { margin: 0; color: var(--ak-body); font-size: 17px; }

.ak-pdp-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--ak-border); }
.ak-pdp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ak-pdp-price { font-size: 32px; font-weight: 400; }
.ak-pdp-price.has-discount { color: var(--ak-red); }
.ak-pdp-price-old { font-size: 16px; color: var(--ak-muted); text-decoration: line-through; }
.ak-pdp-vat { font-size: 13px; color: var(--ak-muted); }
.ak-pdp-stock { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ak-body); }
.ak-pdp-stock-dot { width: 8px; height: 8px; border-radius: 50%; background: #4D6256; flex: 0 0 auto; }
.ak-pdp-stock.is-out .ak-pdp-stock-dot { background: var(--ak-red); }
.ak-pdp-actions { display: flex; flex-direction: column; gap: 12px; }
.ak-pdp-notes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ak-muted); border-top: 1px solid var(--ak-border); padding-top: 16px; }

.ak-pdp-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ak-pdp-facts li { display: flex; gap: 12px; font-size: 16px; border-bottom: 1px solid var(--ak-border); padding-bottom: 12px; }
.ak-pdp-facts li span.dash { color: var(--ak-red); flex: 0 0 auto; }

.ak-pdp-benefits { background: var(--ak-bg-light); padding: clamp(48px, 6vw, 80px) 0; }
.ak-pdp-benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ak-pdp-benefit-card { display: flex; flex-direction: column; gap: 10px; background: #fff; padding: 24px; border: 1px solid var(--ak-border); }
.ak-pdp-benefit-title { font-size: 19px; font-weight: 500; }
.ak-pdp-benefit-text { font-size: 15px; color: var(--ak-muted); }

.ak-pdp-specs-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; padding: clamp(48px, 6vw, 80px) 0; }
.ak-pdp-specs { border-top: 1px solid var(--ak-ink); }
.ak-pdp-spec-group { border-bottom: 1px solid var(--ak-border); }
button.ak-pdp-spec-toggle { width: 100%; min-height: 64px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font: inherit; font-size: 19px; font-weight: 500; text-align: left; color: var(--ak-ink); }
.ak-pdp-spec-sign { font-size: 24px; font-weight: 300; color: var(--ak-muted); }
.ak-pdp-spec-rows { display: none; flex-direction: column; padding-bottom: 24px; }
.ak-pdp-spec-group.is-open .ak-pdp-spec-rows { display: flex; }
.ak-pdp-spec-group.is-open .ak-pdp-spec-sign { transform: rotate(45deg); display: inline-block; }
.ak-pdp-spec-row { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--ak-bg-light); font-size: 15px; }
.ak-pdp-spec-row .k { color: var(--ak-muted); }
.ak-pdp-spec-row .v { text-align: right; }

.ak-pdp-downloads-list { display: flex; flex-direction: column; border-top: 1px solid var(--ak-ink); }
a.ak-pdp-download { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ak-border); font-size: 16px; color: var(--ak-ink); }
a.ak-pdp-download:hover { color: var(--ak-red); }
.ak-pdp-download-title { display: flex; align-items: center; gap: 12px; }
.ak-pdp-download-icon { font-size: 18px; flex: 0 0 auto; }
.ak-pdp-download-meta { flex: 0 0 auto; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ak-muted); border: 1px solid var(--ak-border); border-radius: 2px; padding: 2px 8px; }

.ak-pdp-related { padding: 0 0 clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 900px) {
    .ak-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ak-pdp-section,
    .ak-pdp-specs-downloads {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ak-pdp-gallery,
    .ak-pdp-info,
    .ak-pdp-specs-downloads > div,
    .ak-pdp-related,
    .ak-pdp-benefits-grid,
    .ak-pdp-spec-row,
    .ak-pdp-download {
        min-width: 0;
    }

    .ak-pdp-section {
        padding-top: 24px;
    }

    .ak-pdp-main-image,
    .ak-pdp-thumbs,
    .ak-pdp-facts,
    .ak-page-content,
    .ak-pdp-specs,
    .ak-pdp-downloads-list {
        box-sizing: border-box;
    }

    .ak-pdp-box,
    .ak-pdp-benefit-card {
        padding: 20px;
    }

    .ak-pdp-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .ak-pdp-price-row,
    .ak-pdp-stock,
    .ak-pdp-download,
    .ak-pdp-spec-row {
        gap: 10px;
    }

    .ak-pdp-spec-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ak-pdp-spec-row .v {
        text-align: left;
    }
}

/* ---------- Cart page ---------- */
.ak-cart-shell { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 96px); }

.ak-cart-notice { padding: 14px 18px; margin-bottom: 24px; font-size: 14px; line-height: 1.5; }
.ak-cart-notice-static { background: var(--ak-bg-light); color: var(--ak-body); }
.ak-cart-notice-warn { background: #FBEEEE; color: var(--ak-red-dark); }
.ak-cart-notice-warn ul { margin: 6px 0 0; padding-left: 18px; }

.ak-cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(32px, 5vw, 56px) 0; }
.ak-cart-empty-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ak-body); }

.ak-cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
@media (max-width: 900px) { .ak-cart-grid { grid-template-columns: 1fr; gap: 40px; } }

.ak-cart-items { display: flex; flex-direction: column; }
.ak-cart-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--ak-border); }
.ak-cart-item-media { flex: 0 0 120px; width: 120px; height: 120px; background: #F7F7F5 no-repeat center/contain; }
.ak-cart-item-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.ak-cart-item-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ak-cart-item-name { font-size: 17px; font-weight: 500; }
.ak-cart-item-name a, .ak-cart-item-name a:link, .ak-cart-item-name a:visited { color: var(--ak-ink); }
.ak-cart-item-name a:hover { color: var(--ak-red); }
.ak-cart-item-price { font-size: 17px; font-weight: 500; white-space: nowrap; }
.ak-cart-item-line { font-size: 14px; color: var(--ak-muted); }
.ak-cart-item-actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ak-cart-qty-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ak-muted); }
.ak-cart-qty-select { height: 36px; padding: 0 10px; border: 1px solid var(--ak-border); background: #fff; font: inherit; font-size: 14px; color: var(--ak-ink); }
button.ak-cart-item-remove { border: 0; background: none; padding: 0; font: 600 12px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; color: var(--ak-muted); cursor: pointer; }
button.ak-cart-item-remove:hover { color: var(--ak-red); }

.ak-cart-aside { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--ak-border); }
.ak-cart-aside-title { margin: 0 0 4px; font-size: 20px; font-weight: 500; }
.ak-cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ak-body); }
.ak-cart-summary-row span { flex: 1 1 auto; max-width: 70%; }
.ak-cart-summary-row strong { flex: 0 0 auto; white-space: nowrap; }
.ak-cart-delivery-free { color: #4D6256; }
.ak-cart-summary-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--ak-border); font-size: 20px; font-weight: 500; }

.ak-cart-coupon-label { font-size: 13px; color: var(--ak-muted); }
.ak-cart-coupon { display: flex; flex-direction: column; gap: 8px; }
.ak-cart-coupon-form { display: flex; gap: 8px; }
.ak-cart-coupon-form input { flex: 1 1 auto; height: 44px; padding: 0 12px; border: 1px solid var(--ak-border); font: inherit; font-size: 14px; }
button.ak-cart-coupon-apply-btn { height: 44px; padding: 0 16px; border: 1px solid var(--ak-ink); background: #fff; font: 600 12px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; color: var(--ak-ink); cursor: pointer; }
button.ak-cart-coupon-apply-btn:hover { background: var(--ak-bg-light); }
.ak-cart-coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ak-body); }
button.ak-cart-coupon-remove { border: 0; background: none; padding: 0; font: 600 12px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; color: var(--ak-muted); cursor: pointer; }
button.ak-cart-coupon-remove:hover { color: var(--ak-red); }
.ak-cart-coupon-error { font-size: 13px; color: var(--ak-red); }

a.ak-cart-checkout.ak-btn { width: 100%; height: 52px; justify-content: center; }

.ak-cart-payment-badges { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ak-cart-payment-badge { padding: 6px 10px; border: 1px solid var(--ak-border); font-size: 12px; color: var(--ak-muted); }

/* ---------- Checkout page (reuses .ak-cart-shell/.ak-cart-grid/.ak-cart-aside
   from the cart page above — this only adds the form-side pieces) ---------- */
.ak-checkout-form { display: flex; flex-direction: column; gap: 32px; }
.ak-checkout-block { border-bottom: 1px solid var(--ak-border); padding-bottom: 24px; }
.ak-checkout-block:last-of-type { border-bottom: 0; padding-bottom: 0; }

.ak-checkout-field { margin-bottom: 16px; }
.ak-checkout-field label { display: block; font: 600 12px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; color: var(--ak-ink); margin-bottom: 8px; }
.ak-checkout-field input, .ak-checkout-field textarea { box-sizing: border-box; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--ak-border); border-radius: 2px; font: 14px var(--ak-font); line-height: 1.2; color: var(--ak-ink); }
.ak-checkout-field textarea { height: auto; padding: 12px 14px; resize: vertical; }

.ak-checkout-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ak-border); border-radius: 2px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.ak-checkout-option input { margin: 0 12px 0 0; }
.ak-checkout-option-title { flex: 1; font-size: 15px; }
.ak-checkout-option-price { font-weight: 600; font-size: 14px; color: var(--ak-ink); }

.ak-checkout-error { color: var(--ak-red); font-size: 13px; margin-top: 6px; min-height: 16px; }

a.ak-checkout-back { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--ak-muted); text-decoration: underline; cursor: pointer; }
a.ak-checkout-back:hover { color: var(--ak-red); }

.ak-checkout-redirect { position: fixed; inset: 0; z-index: 200; background: rgba(17,17,17,.65); align-items: center; justify-content: center; }
.ak-checkout-redirect-box { position: relative; background: #fff; border-radius: 2px; padding: 32px 36px; text-align: center; color: var(--ak-ink); max-width: 400px; width: 90vw; max-height: 90vh; overflow-y: auto; }
button.ak-checkout-redirect-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--ak-muted); font-size: 22px; line-height: 1; cursor: pointer; }
button.ak-checkout-redirect-close:hover { color: var(--ak-ink); }
.ak-checkout-redirect-title { font: 600 18px var(--ak-font); letter-spacing: .04em; color: var(--ak-muted); text-transform: uppercase; margin-bottom: 20px; }
.ak-checkout-order-label { display: inline-block; background: var(--ak-ink); color: #fff; border-radius: 100px; padding: 10px 20px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.ak-checkout-timer { display: inline-flex; align-items: center; gap: 6px; background: var(--ak-red); color: #fff; border-radius: 100px; padding: 8px 18px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.ak-checkout-qr { margin: 8px 0 16px; font-size: 13px; word-break: break-all; }
.ak-checkout-qr img { max-width: 240px; width: 100%; }
a.ak-checkout-scan-btn.ak-btn { width: 100%; margin-bottom: 14px; }
.ak-checkout-qr-hint { font-size: 12px; color: var(--ak-muted); line-height: 1.5; margin-bottom: 0; }
.ak-checkout-or { font-size: 13px; font-weight: 600; color: var(--ak-muted); margin-bottom: 14px; }
.ak-checkout-applinks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
a.ak-checkout-applink { display: flex; align-items: center; gap: 12px; background: var(--ak-bg-light); border-radius: 2px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--ak-ink); text-decoration: none; }
.ak-checkout-applink-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 auto; }
.ak-checkout-applink-icon img { max-width: 100%; max-height: 100%; }
.ak-checkout-applink-name { flex: 1; text-align: left; }
.ak-checkout-applink-chevron { color: var(--ak-muted); font-size: 18px; }
.ak-checkout-qr-status { font-size: 13px; color: var(--ak-body); margin-top: 14px; min-height: 16px; }

/* ---------- Mini-cart drawer (matches the mockup's slide-out cart panel;
   the full /cart page above stays as a real landable URL, but the header
   cart icon opens this instead of navigating away) ---------- */
.ak-cart-drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.ak-cart-drawer.is-open { display: flex; justify-content: flex-end; }
.ak-cart-drawer-overlay { position: absolute; inset: 0; background: rgba(17,17,17,.55); }
.ak-cart-drawer-panel { position: relative; background: #fff; width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.ak-cart-drawer-head { height: 64px; flex: 0 0 auto; border-bottom: 1px solid var(--ak-border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; }
.ak-cart-drawer-body { flex: 1 1 auto; overflow: auto; padding: 8px 20px; }
.ak-cart-drawer-empty { margin: 20px 0; color: var(--ak-muted); font-size: 16px; }
.ak-cart-drawer-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ak-border); align-items: flex-start; }
.ak-cart-drawer-item-media { width: 72px; height: 72px; flex: 0 0 auto; background: #F7F7F5 no-repeat center/contain; }
.ak-cart-drawer-item-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
a.ak-cart-drawer-item-name, a.ak-cart-drawer-item-name:link, a.ak-cart-drawer-item-name:visited { font-size: 17px; font-weight: 500; color: var(--ak-ink); }
a.ak-cart-drawer-item-name:hover { color: var(--ak-red); }
.ak-cart-drawer-item-price { font-size: 16px; }
.ak-cart-drawer-item-qty { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
button.ak-cart-drawer-qty-btn { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--ak-border); background: #fff; font-size: 16px; line-height: 1; color: var(--ak-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
button.ak-cart-drawer-qty-btn:hover { border-color: var(--ak-ink); }
button.ak-cart-drawer-qty-btn:disabled { color: var(--ak-border); cursor: not-allowed; }
.ak-cart-drawer-item-qty .js-cart-item-qty { min-width: 16px; text-align: center; font-size: 14px; }
button.ak-cart-drawer-item-remove { width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: none; cursor: pointer; color: var(--ak-muted); }
button.ak-cart-drawer-item-remove:hover { color: var(--ak-red); }
.ak-cart-drawer-foot { flex: 0 0 auto; border-top: 1px solid var(--ak-border); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ak-cart-drawer-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ak-muted); }
.ak-cart-drawer-total-row .js-cart-total { font-size: 24px; color: var(--ak-ink); }

/* ---------- Compare (PLP card + PDP checkbox, sticky bar, modal table) ---------- */
.ak-plp-compare { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ak-muted); cursor: pointer; min-height: 24px; margin-top: 4px; }
.ak-plp-compare input { width: 18px; height: 18px; accent-color: var(--ak-ink); margin: 0; cursor: pointer; }

.ak-compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ak-ink); color: #fff; }
.ak-compare-bar-inner { max-width: 1320px; margin: 0 auto; padding: 16px clamp(20px, 4vw, 60px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ak-compare-bar-label { font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; }
.ak-compare-bar-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
button.ak-compare-chip { height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.24); background: none; color: #fff; border-radius: 2px; font: 13px var(--ak-font); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ak-compare-bar-actions { display: flex; gap: 8px; }
button.ak-compare-bar-clear { height: 40px; padding: 0 16px; background: none; border: 0; color: rgba(255,255,255,.7); font: 13px var(--ak-font); cursor: pointer; text-decoration: underline; }

.ak-compare-modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: flex-end; justify-content: center; }
.ak-compare-modal.is-open { display: flex; }
.ak-compare-modal-overlay { position: absolute; inset: 0; background: rgba(17,17,17,.55); }
.ak-compare-modal-panel { position: relative; background: #fff; width: 100%; max-height: 86vh; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.ak-compare-modal-head { max-width: 1320px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 60px) 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ak-compare-modal-head h2 { margin: 0; font-size: clamp(26px, 2.4vw, 30px); font-weight: 400; }
.ak-compare-modal-body { max-width: 1320px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 60px) 48px; }
.ak-compare-empty { margin: 0; color: var(--ak-muted); }

.ak-compare-table { display: flex; flex-direction: column; border: 1px solid var(--ak-border); overflow-x: auto; }
.ak-compare-row { display: grid; grid-template-columns: 180px repeat(auto-fit, minmax(160px, 1fr)); border-bottom: 1px solid var(--ak-border); }
.ak-compare-row:last-child { border-bottom: 0; }
.ak-compare-row:nth-child(odd) { background: var(--ak-bg-light); }
.ak-compare-cell { padding: 14px 16px; font-size: 15px; border-left: 1px solid var(--ak-border); }
.ak-compare-cell:first-child { border-left: 0; }
.ak-compare-cell-label { font-size: 13px; color: var(--ak-muted); border-left: 0; }
.ak-compare-cell-product { display: flex; flex-direction: column; gap: 8px; position: relative; }
.ak-compare-cell-product img { width: 100%; max-width: 120px; aspect-ratio: 1/1; object-fit: contain; background: #F7F7F5; }
a.ak-compare-cell-title, a.ak-compare-cell-title:link, a.ak-compare-cell-title:visited { font-size: 15px; font-weight: 500; color: var(--ak-ink); }
a.ak-compare-cell-title:hover { color: var(--ak-red); }
button.ak-compare-cell-remove { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border: 0; background: none; color: var(--ak-muted); font-size: 18px; line-height: 1; cursor: pointer; }
button.ak-compare-cell-remove:hover { color: var(--ak-red); }
.ak-compare-price-current { font-weight: 500; }
.ak-compare-price-old { margin-left: 6px; font-size: 13px; color: var(--ak-muted); text-decoration: line-through; }

/* ---------- Blog ("Идеи и проекты" — list + detail) ---------- */
.ak-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
a.ak-blog-card, a.ak-blog-card:link, a.ak-blog-card:visited { display: flex; flex-direction: column; gap: 16px; max-width: 420px; color: var(--ak-ink); }
.ak-blog-card-media { position: relative; width: 100%; aspect-ratio: 3/2; background: var(--ak-bg-warm); overflow: hidden; }
.ak-blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-blog-card-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ak-blog-card-kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); }
.ak-blog-card-title { font-size: 20px; line-height: 1.25; color: var(--ak-ink); }
a.ak-blog-card:hover .ak-blog-card-title { color: var(--ak-red); }
.ak-blog-card-excerpt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ak-body); }

.ak-blog-post { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Dealers ("Где купить") ---------- */
.ak-dealers-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.ak-dealers-count { font-size: 14px; color: var(--ak-muted); }
.ak-dealers-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
a.ak-dealers-tab, a.ak-dealers-tab:link, a.ak-dealers-tab:visited { height: 40px; padding: 0 16px; border: 1px solid var(--ak-border); border-radius: 2px; font: 600 13px var(--ak-font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; background: #fff; color: var(--ak-ink); }
a.ak-dealers-tab.is-active { background: var(--ak-ink); color: #fff; border-color: var(--ak-ink); }

.ak-dealers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 3vw, 40px); align-items: start; }
.ak-dealers-list { display: flex; flex-direction: column; border-top: 1px solid var(--ak-ink); }
.ak-dealers-item { border-bottom: 1px solid var(--ak-border); border-left: 2px solid transparent; display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; }
.ak-dealers-item[role="button"] { cursor: pointer; }
.ak-dealers-item.is-selected { background: var(--ak-bg-light); border-left-color: var(--ak-red); }
.ak-dealers-item-kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-muted); }
.ak-dealers-item-name { font-size: 19px; font-weight: 500; color: var(--ak-ink); }
.ak-dealers-item-addr { font-size: 15px; color: var(--ak-body); }
a.ak-dealers-item-phone, a.ak-dealers-item-phone:link, a.ak-dealers-item-phone:visited { font-size: 15px; color: var(--ak-muted); }
a.ak-dealers-item-phone:hover { color: var(--ak-red); }

.ak-dealers-map { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--ak-bg-light); border: 1px solid var(--ak-border); }
.ak-dealers-map-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ak-muted); font-size: 14px; }

/* Google's own InfoWindow chrome reserves a header row for its close (×)
   button above the content regardless of how short the content is — the
   documented override for this (Google gives no InfoWindow option for it)
   is collapsing .gm-style-iw-chr's own height and floating the button over
   the content instead of stacking above it. */
.gm-style-iw-chr { height: 0 !important; overflow: visible !important; }
.gm-style-iw-chr .gm-ui-hover-effect { top: -23px !important; right: -14px !important; }
.gm-style-iw-d { overflow: visible !important; }
.gm-style .gm-style-iw-c { padding-top: 20px !important; }

/* ---------- Support ---------- */
.ak-support-page { padding: 24px clamp(20px, 4vw, 60px) clamp(56px, 7vw, 96px); }

.ak-support-intro { display: flex; flex-direction: column; gap: 24px; max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.ak-support-title { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; font-weight: 300; color: var(--ak-ink); }
.ak-support-lead { margin: 0; font-size: 18px; color: var(--ak-body); }

.ak-support-search { display: flex; align-items: center; gap: 12px; max-width: 520px; height: 56px; padding: 0 16px; border: 1px solid #B8B8B8; border-radius: 2px; color: var(--ak-muted); cursor: text; }
.ak-support-search input { flex: 1 1 auto; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ak-ink); }
.ak-support-search-results { max-width: 520px; margin-top: 4px; border: 1px solid var(--ak-border); background: #fff; }
.ak-support-search-empty { margin: 0; padding: 16px 20px; color: var(--ak-muted); font-size: 14px; }
.ak-support-result { padding: 16px 20px; border-bottom: 1px solid var(--ak-border); }
.ak-support-result:last-child { border-bottom: 0; }
a.ak-support-result-title, a.ak-support-result-title:link, a.ak-support-result-title:visited { font-size: 16px; font-weight: 500; color: var(--ak-ink); }
a.ak-support-result-title:hover { color: var(--ak-red); }
.ak-support-doc-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
a.ak-support-doc-link, a.ak-support-doc-link:link, a.ak-support-doc-link:visited { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ak-muted); text-decoration: underline; }
a.ak-support-doc-link:hover { color: var(--ak-red); }
.ak-support-doc-icon { flex: 0 0 auto; font-size: 16px; }

.ak-support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }

.ak-support-faq { display: flex; flex-direction: column; gap: 20px; }
.ak-faq-list { border-top: 1px solid var(--ak-ink); }
.ak-faq-item { border-bottom: 1px solid var(--ak-border); }
.ak-faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: 18px; color: var(--ak-ink); list-style: none; }
.ak-faq-question::-webkit-details-marker { display: none; }
.ak-faq-sign { font-size: 24px; font-weight: 300; color: var(--ak-muted); flex: 0 0 auto; }
.ak-faq-answer { margin: 0; padding: 0 0 24px; max-width: 620px; color: var(--ak-body); font-size: 16px; }

.ak-support-form-box { border: 1px solid var(--ak-border); padding: clamp(24px, 3vw, 40px); }
.js-ak-support-form { display: flex; flex-direction: column; gap: 20px; }
.ak-support-form-title { margin: 0; font-size: 22px; font-weight: 500; color: var(--ak-ink); }
.ak-support-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ak-ink); }
.ak-support-field input, .ak-support-field textarea { box-sizing: border-box; height: 56px; border: 1px solid #B8B8B8; border-radius: 2px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ak-ink); }
.ak-support-field textarea { height: auto; padding: 12px; resize: vertical; }
.ak-support-field-error { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--ak-red); }
.ak-support-field-error.is-visible { display: flex; }
.ak-support-field-error svg { flex: 0 0 auto; }

.ak-support-form-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ak-support-form-sent-icon { width: 40px; height: 40px; border: 1.5px solid #4D6256; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #4D6256; font-size: 20px; }
