/* ============================================
   NEUTRON — Professional Electrical & Lighting

   Palette, type, space, radius and elevation now live in tokens.css, which
   base.html loads first. Nothing in this file should hard-code a colour: use
   a --n-* token, or one of the legacy aliases tokens.css maps for the older
   rules below.

   Navy and gold are sampled from the brand wordmark artwork, so the chrome
   and the logo cannot drift apart again.
   ============================================ */

/* General */
body {
    font-family: var(--n-font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--n-canvas);
    color: var(--n-ink-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

.site-header {
    background: var(--n-navy-deep);
    box-shadow: var(--n-shadow-header);
}

.site-topbar {
    background: var(--n-navy-deep);
}

.site-topbar-inner,
.site-menubar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.site-topbar-inner {
    padding: var(--n-space-3) 0;
    min-height: 68px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
}

.site-brand .brand-word {
    display: inline-block;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}


.site-brand {
    min-height: var(--n-tap-min);
}

.site-brand .brand-wordmark {
    display: block;
    height: 38px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.footer-brand {
    margin-bottom: var(--n-space-4);
}

.footer-brand .footer-wordmark {
    display: block;
    height: 34px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* NeutroN.bg — the trailing ".bg" carries the gold accent. */
.brand-tld {
    color: var(--yellow);
}

.site-search {
    flex: 1;
    max-width: 680px;
}

.site-search .input-group {
    border-radius: var(--n-radius-md);
    overflow: hidden;
    background: var(--n-surface);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.site-search .input-group:focus-within {
    box-shadow: 0 0 0 2px var(--n-gold-bright);
}

.site-search .form-control {
    border: 0;
    border-radius: 0;
    height: 44px;
    font-size: 0.9rem;
    padding-left: 1rem;
    box-shadow: none !important;
}

.site-search .site-search-btn {
    width: 52px;
    flex: 0 0 52px;
    border: 0;
    border-radius: 0;
    background: var(--yellow);
    color: var(--navy);
    font-size: 1.05rem;
}

.site-search .site-search-btn:hover,
.site-search .site-search-btn:focus {
    background: var(--gold-bright);
    color: var(--navy);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-action-link {
    border-radius: var(--n-radius-sm);
    transition: color var(--n-transition), background var(--n-transition);
}

.site-action-link:hover,
.site-action-link:focus {
    color: var(--n-gold-bright);
    background: rgba(255, 255, 255, 0.06);
}

.site-action-divider {
    width: 1px;
    height: 24px;
    background: var(--n-navy-line);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--n-radius-pill);
    background: var(--n-gold-bright);
    color: var(--n-navy-deep);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.cart-badge[hidden] {
    display: none;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--n-navy-line);
    border-radius: var(--n-radius-sm);
    background: rgba(255, 255, 255, 0.06);
}

.language-switcher button {
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--n-on-dark-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: var(--n-space-2);
    transition: background var(--n-transition), color var(--n-transition);
}

.language-switcher button:hover {
    color: var(--n-on-dark);
    background: rgba(255, 255, 255, 0.08);
}

.language-switcher button.is-active {
    background: var(--n-gold-bright);
    color: var(--n-navy-deep);
}

.language-switcher-mobile {
    width: 100%;
    justify-content: center;
    margin: var(--n-space-2) 0;
    border-color: var(--n-border);
    background: var(--n-surface-alt);
}

/* The drawer is a light surface, so the on-navy treatment would vanish. */
.language-switcher-mobile button {
    flex: 1;
    min-height: var(--n-tap-min);
    color: var(--n-ink-body);
}

.language-switcher-mobile button.is-active {
    background: var(--n-navy);
    color: var(--n-on-dark);
}

.site-register-btn {
    color: var(--accent);
    border-color: var(--accent);
}

.mobile-header-actions,
.mobile-cart-action,
.mobile-menu-toggle,
.mobile-menu-backdrop,
.mobile-menu-drawer {
    display: none;
}

.site-menubar {
    background: var(--n-surface);
    border-bottom: 1px solid var(--n-hairline);
}

.site-menubar-inner {
    justify-content: flex-start;
    padding: var(--n-space-2) 0;
    gap: var(--n-space-5);
}

.catalog-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--n-space-2);
    min-height: var(--n-tap-min);
    background: var(--n-navy);
    border-color: var(--n-navy);
    color: var(--n-on-dark);
    font-weight: 600;
    font-size: var(--n-text-sm);
    border-radius: var(--n-radius-md);
    padding: var(--n-space-2) var(--n-space-5);
    transition: background var(--n-transition), color var(--n-transition);
}

.catalog-trigger:hover,
.catalog-trigger:focus,
.catalog-trigger.show {
    background: var(--n-navy-deep);
    border-color: var(--n-navy-deep);
    color: var(--n-gold-bright);
}

.catalog-dropdown .dropdown-menu.mega-menu {
    width: min(1120px, calc(100vw - 2rem));
    border: 1px solid var(--n-border);
    border-radius: var(--n-radius-lg);
    box-shadow: var(--n-shadow-overlay);
    margin-top: var(--n-space-2);
    overflow: hidden;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
}

.mega-menu-main {
    padding: var(--n-space-6);
    background: var(--n-surface);
}

.mega-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

.mega-menu-all {
    color: var(--n-navy);
    font-size: var(--n-text-sm);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--n-gold);
    padding-bottom: 1px;
}

.mega-menu-all:hover {
    color: var(--n-gold-ink);
}

/* --- Catalogue groups in the mega-menu ---------------------------------
   Navigation, not merchandising: a heading and its category links, nothing
   that needs a card around it. The previous design gave every top-level
   category a bordered 170px block with hover-lift, and filled the empty ones
   with placeholder copy, which is what made the dropdown so tall. The gold
   rule under each heading carries the brand mark instead of a border box. */
.mega-menu-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--n-space-5) var(--n-space-6);
    align-items: start;
}

.mega-menu-group-title {
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--n-gold);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-links a {
    display: block;
    /* Short of a 44px block on purpose: a dense dropdown is the point, and
       the pointer is the primary input here. The drawer is the touch
       surface and keeps its own larger targets. */
    padding: 0.3rem 0;
    color: var(--n-ink-muted);
    font-size: 0.94rem;
    line-height: 1.35;
    text-decoration: none;
    border-radius: var(--n-radius-sm);
}

.mega-menu-links a:hover {
    color: var(--primary);
}

.mega-menu-links a:focus-visible {
    outline: 2px solid var(--n-gold);
    outline-offset: 2px;
    color: var(--primary);
}

.mega-menu-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--n-space-6);
    background: var(--n-navy);
    border-left: 0;
}

.mega-menu-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--n-ink-muted);
}

.mega-menu-aside h4 {
    margin-bottom: var(--n-space-3);
    color: var(--n-on-dark);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: var(--n-leading-tight);
}

.mega-menu-aside p {
    color: var(--n-on-dark-muted);
    font-size: var(--n-text-sm);
    line-height: var(--n-leading-body);
}

.mega-menu-aside .mega-menu-kicker {
    color: var(--n-gold-bright);
}

.mega-menu-aside .btn {
    align-self: flex-start;
    margin-top: var(--n-space-3);
    min-height: var(--n-tap-min);
    display: inline-flex;
    align-items: center;
}

.site-secondary-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1.5rem;
}

.site-secondary-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.site-secondary-links a:hover,
.site-secondary-links a:focus {
    color: var(--gold);
}

/* === NAVBAR === */
.navbar {
    background: linear-gradient(90deg, var(--n-border) 0%, var(--n-border) 55%, var(--n-surface-alt) 100%) !important;
    border-bottom: 2px solid var(--accent);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: uppercase;
}

.navbar-brand img {
    height: 38px;
    margin-right: 0;
}

.navbar-brand .brand-accent {
    color: var(--accent);
}

.navbar .nav-link {
    color: var(--primary) !important;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: var(--accent) !important;
}

.navbar .btn-outline-light {
    border-color: var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar .btn-outline-light:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* Search bar in navbar */
.navbar .form-control {
    background: rgba(10, 26, 58, 0.07);
    border: 1px solid rgba(10, 26, 58, 0.13);
    color: var(--primary);
    font-size: 0.85rem;
}

.navbar .form-control::placeholder {
    color: rgba(6, 18, 42, 0.55);
}

.navbar .form-control:focus {
    background: rgba(255,255,255,0.65);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem rgba(224, 169, 46, 0.22);
    color: var(--primary);
}

.navbar .btn-light {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Cart badge */
.badge.bg-danger {
    background-color: var(--n-danger) !important;
}

/* === HERO SECTION ===
   A single band: tinted behind the copy, white where the product still sits,
   so the still's own white ground blends instead of showing as a pasted box. */
.hero-section {
    position: relative;
    background:
        radial-gradient(1200px 520px at 78% 42%, var(--n-surface) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(105deg, var(--n-surface-alt) 0%, var(--n-canvas) 46%, var(--n-surface) 100%);
    border-bottom: 1px solid var(--n-hairline);
    padding: var(--n-space-8) 0;
    overflow: hidden;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: var(--n-space-3);
    color: var(--n-gold-ink);
    font-size: var(--n-text-xs);
    font-weight: 700;
    letter-spacing: var(--n-tracking-caps);
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 18ch;
    margin-bottom: var(--n-space-4);
    color: var(--n-navy);
    font-size: clamp(2rem, 4.2vw, var(--n-text-3xl));
    font-weight: 800;
    line-height: var(--n-leading-tight);
    letter-spacing: -0.02em;
}

.hero-section .lead {
    max-width: 46ch;
    margin-bottom: var(--n-space-6);
    color: var(--n-ink-body);
    font-size: 1.0625rem;
    line-height: var(--n-leading-body);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 620px;
    /* The still is a JPEG on white; a soft mask feathers its edges into the
       band so there is no visible rectangle at any viewport width. */
    -webkit-mask-image: radial-gradient(115% 108% at 50% 50%, #000 62%, transparent 97%);
            mask-image: radial-gradient(115% 108% at 50% 50%, #000 62%, transparent 97%);
    mix-blend-mode: multiply;
}

/* Hero trust line: three short promises directly under the CTAs. */
.hero-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: var(--n-space-3) var(--n-space-6);
    margin-top: var(--n-space-6);
    padding-top: var(--n-space-5);
    border-top: 1px solid var(--n-hairline);
}

.hero-assurance {
    display: inline-flex;
    align-items: center;
    gap: var(--n-space-2);
    color: var(--n-ink-body);
    font-size: var(--n-text-sm);
    font-weight: 600;
}

.hero-assurance i {
    color: var(--n-gold-ink);
    font-size: 1rem;
}

/* Price styling */
.text-primary, .text-accent {
    color: var(--accent) !important;
}

/* === CATEGORY CARDS === */
.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10, 26, 58, 0.10);
}

.category-card i {
    color: var(--accent) !important;
}

/* === BUTTONS ===
   One box model for anything that reads as a button. Variants below set
   colour only. A control that keeps display:inline-block will stretch as a
   flex item but still lay its label out from the top padding, which puts the
   text above centre - so centring belongs here, not on one variant. */
.btn,
.btn-phone,
.btn-checkout,
.site-search-btn,
.catalog-trigger,
.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--n-space-2);
    min-height: var(--n-tap-min);
    line-height: 1.2;
}

/* Inline text-style controls keep their own height. */
.btn-remove {
    min-height: 0;
}

.btn-primary {
    background: var(--n-gold);
    border-color: var(--n-gold);
    /* Navy, not white: white on this gold is 2.12:1 and fails AA for 16px
       bold. --n-on-gold is 8.09:1. */
    color: var(--n-on-gold);
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: var(--n-radius-md);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--n-gold-hover);
    border-color: var(--n-gold-hover);
    color: var(--n-on-gold);
}

/* An icon inside a button is decoration sized to the label, never to whatever
   the surrounding block sets. Guards against a container rule reaching in. */
.btn .bi,
.btn-phone .bi {
    font-size: 1em;
    line-height: 1;
}

/* Secondary "Обади се" control — outlined navy, never a payment control. */
.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    background: #fff;
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-phone:hover,
.btn-phone:focus {
    background: var(--n-surface);
    border-color: var(--n-gold-ink);
    color: var(--navy);
}

/* Matches .btn-phone: the shop had two different secondary-outline looks. */
.btn-outline-primary {
    color: var(--n-navy);
    border: 1.5px solid var(--n-navy);
    background: var(--n-surface);
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--n-navy);
    border-color: var(--n-navy);
    color: var(--n-on-dark);
}

.error-page {
    padding: 72px 0 30px;
}

.error-page-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px;
    text-align: center;
    background: linear-gradient(145deg, #fff, var(--n-canvas));
    border: 1px solid rgba(10, 26, 58, 0.14);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(10, 26, 58, 0.10);
}

.error-page-code {
    color: var(--n-navy);
    font-size: clamp(72px, 13vw, 132px);
    font-weight: 800;
    line-height: .85;
    letter-spacing: -.08em;
    opacity: .16;
}

.error-page-kicker {
    margin: 22px 0 8px;
    color: var(--n-stock-in);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.error-page-card h1 {
    margin-bottom: 14px;
    color: var(--n-ink-body);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
}

.error-page-card > p:not(.error-page-kicker) {
    max-width: 590px;
    margin: 0 auto;
    color: var(--n-ink-muted);
    line-height: 1.7;
}

.error-page-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .error-page {
        padding-top: 36px;
    }

    .error-page-card {
        padding: 38px 22px;
        border-radius: 18px;
    }
}

.btn-success {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

.btn-success:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--primary);
}

/* === CARDS === */
.card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.card-header.bg-primary,
.card-header.bg-light {
    background: var(--navy) !important;
    border-bottom: 1px solid var(--navy);
    color: #fff !important;
}

/* === SIDEBAR === */
.list-group-item.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* === BADGES === */
.badge.bg-success {
    background-color: var(--success) !important;
    color: var(--primary);
}

.badge.bg-info {
    background-color: rgba(224, 169, 46, 0.16) !important;
    color: var(--accent);
}

/* === TRUST STRIP === */
.features-bar {
    background: var(--n-surface);
    border-top: 1px solid var(--n-hairline);
    border-bottom: 1px solid var(--n-hairline);
    padding: var(--n-space-7) 0;
}

/* Hairline rules between columns, like the reference board. Drawn with a
   pseudo-element so the first item in each wrapped row never gets one. */
.features-bar .row > [class*="col-"] {
    position: relative;
}

@media (min-width: 768px) {
    .features-bar .row > [class*="col-"]::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 52px;
        background: var(--n-hairline);
    }
    .features-bar .row > [class*="col-"]:first-child::before,
    .features-bar .row > [class*="col-"]:nth-child(3)::before {
        content: none;
    }
}

@media (min-width: 992px) {
    .features-bar .row > [class*="col-"]:nth-child(3)::before {
        content: "";
    }
}

.feature-copy {
    color: var(--navy);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--n-space-3);
    height: 100%;
    padding: var(--n-space-2) 0;
    text-decoration: none;
}

/* The label/hint wrapper is a flex item: without min-width:0 it cannot shrink
   below its longest word, and long Bulgarian labels pushed the strip 21px past
   the viewport at 390px. body{overflow-x:hidden} clipped it instead of
   scrolling, so it never showed up in a screenshot. */
.trust-item > span:last-child {
    min-width: 0;
}

.trust-item:hover .trust-label {
    color: var(--n-gold-ink);
}

/* Thin gold line icon, per the approved trust strip. */
.trust-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: var(--n-surface);
    border: 1.5px solid var(--n-gold);
    border-radius: 50%;
    color: var(--n-gold-ink);
    font-size: 1.2rem;
    transition: background var(--n-transition), color var(--n-transition);
}

.trust-item:hover .trust-icon {
    background: var(--n-gold);
    color: var(--n-on-gold);
}

.trust-label {
    display: block;
    margin-bottom: var(--n-space-1);
    color: var(--n-navy);
    font-size: var(--n-text-xs);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.trust-hint {
    display: block;
    color: var(--n-ink-muted);
    font-size: var(--n-text-sm);
    line-height: 1.4;
    overflow-wrap: break-word;
}

.catalog-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.catalog-showcase-card {
    display: block;
    height: 100%;
    padding: 1.4rem;
    border-radius: 8px;
    background:
        linear-gradient(90deg, var(--n-surface-alt) 0 4px, transparent 4px),
        rgba(255,255,255,0.84);
    border: 1px solid var(--n-border);
    box-shadow: 0 12px 28px rgba(10, 26, 58, 0.05);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.catalog-showcase-card:hover {
    transform: translateY(-3px);
    border-color: var(--n-border);
    box-shadow: 0 22px 40px rgba(10, 26, 58, 0.12);
}

.catalog-showcase-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--graphite);
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.catalog-showcase-card h5 {
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.catalog-showcase-card p {
    margin-bottom: 0.9rem;
    color: var(--n-ink-muted);
    font-size: 0.95rem;
}

.catalog-showcase-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-showcase-links li + li {
    margin-top: 0.4rem;
}

.catalog-showcase-links span {
    color: var(--n-ink-muted);
    font-size: 0.93rem;
}

.catalog-showcase-links span::before {
    content: "•";
    color: var(--n-gold-ink);
    margin-right: 0.45rem;
}

/* === FOOTER === */
footer {
    background: var(--n-navy-deep) !important;
    border-top: 0;
    color: var(--n-on-dark-muted);
    padding-top: var(--n-space-8) !important;
    padding-bottom: var(--n-space-6) !important;
    margin-top: 0 !important;
}

footer h6 {
    color: var(--n-on-dark);
    text-transform: uppercase;
    letter-spacing: var(--n-tracking-caps);
    font-size: var(--n-text-xs);
    font-weight: 800;
    margin-bottom: var(--n-space-4);
}

footer p,
footer li {
    color: var(--n-on-dark-muted);
}

footer hr {
    border-color: var(--n-navy-line) !important;
    opacity: 1;
}

footer .bi {
    color: var(--n-gold-bright);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--n-space-2);
    color: var(--n-on-dark);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.footer-brand-mark {
    width: 28px;
    height: 28px;
}

.footer-brand-rest {
    color: var(--navy);
}

.footer-phone {
    color: var(--n-on-dark);
    font-weight: 600;
    text-decoration: none;
}

.footer-phone:hover {
    color: var(--n-gold-bright);
}

footer a {
    transition: color 0.2s;
}

footer a {
    color: var(--n-on-dark-muted) !important;
}

footer a:hover {
    color: var(--n-gold-bright) !important;
}

/* Bootstrap's .text-muted is near-black; on the navy footer it disappears. */
footer .text-muted {
    color: var(--n-on-dark-muted) !important;
}

.footer-policy-list li + li {
    margin-top: 0.22rem;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.15rem;
    margin-top: 0.75rem;
}

.footer-legal-links a {
    color: var(--n-on-dark-muted);
    font-size: var(--n-text-sm);
    font-weight: 600;
    text-decoration: none;
}

.footer-legal-links-bottom {
    padding-top: 0.3rem;
}

.legal-page-hero {
    padding: 4.5rem 0 3.4rem;
    background: linear-gradient(135deg, var(--n-canvas) 0%, var(--n-surface-alt) 100%);
}

.legal-page-kicker {
    margin-bottom: 0.55rem;
    color: var(--n-navy);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-page-hero h1 {
    max-width: 820px;
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
}

.legal-page-hero p {
    max-width: 720px;
    color: var(--n-ink-muted);
    font-size: 1.08rem;
}

.legal-page-content {
    padding: 2.5rem 0 1rem;
}

.legal-section-list {
    display: grid;
    gap: 1rem;
    max-width: 920px;
}

.legal-section {
    padding: 1.25rem;
    border: 1px solid var(--n-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(10, 26, 58, 0.05);
}

.legal-section h2 {
    margin-bottom: 0.55rem;
    font-size: 1.08rem;
}

.legal-section-body,
.legal-section-body p {
    margin-bottom: 0;
    color: var(--n-ink-muted);
    line-height: 1.65;
}

.legal-section-body p + p {
    margin-top: 0.7rem;
}

.legal-consent-check {
    padding: 0.85rem 0.95rem 0.85rem 2.55rem;
    border: 1px solid var(--n-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.legal-consent-check .form-check-input {
    margin-left: -1.55rem;
    margin-top: 0.25rem;
}

.legal-consent-check .form-check-label {
    color: var(--primary);
    font-size: 0.94rem;
    line-height: 1.45;
}

.legal-consent-check a {
    color: var(--action-blue-hover);
    font-weight: 800;
    text-decoration: none;
}

.legal-consent-check a:hover {
    text-decoration: underline;
}

.registration-submit-note {
    margin: 0.85rem 0 0;
    color: var(--n-ink-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
}

.registration-submit-note a {
    color: var(--action-blue-hover);
    font-weight: 700;
    text-decoration: none;
}

.registration-submit-note a:hover {
    text-decoration: underline;
}

/* === FORMS === */
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(224, 169, 46, 0.16);
}

.settlement-suggestions {
    position: absolute;
    z-index: 30;
    width: calc(100% - 1.5rem);
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0.35rem;
    border: 1px solid var(--n-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(10, 26, 58, 0.14);
}

.settlement-suggestion {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.8rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    cursor: pointer;
}

.settlement-suggestion + .settlement-suggestion {
    border-top: 1px solid var(--n-hairline);
}

.settlement-suggestion:hover,
.settlement-suggestion:focus {
    background: var(--n-surface-alt);
}

.settlement-suggestion-name {
    color: var(--primary);
    font-weight: 600;
}

.settlement-suggestion-meta {
    color: var(--n-ink-muted);
    font-size: 0.82rem;
}

/* === TABLES === */
.table th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.5px;
}

/* === ALERTS === */
.alert {
    animation: slideDown 0.3s ease;
    border-radius: 6px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === PAGE HEADINGS === */
h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

/* === ACCOUNT ENTRY === */
.account-entry-band,
.catalogues-hero {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--n-canvas) 0%, var(--n-surface-alt) 100%);
}

.account-entry-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 2rem;
    align-items: center;
}

.account-entry-copy p:first-child,
.catalogues-hero p:first-child {
    color: var(--n-navy);
    letter-spacing: 0.18em;
}

.account-entry-copy h1,
.catalogues-hero h1 {
    max-width: 720px;
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
}

.account-entry-copy p,
.catalogues-hero p {
    max-width: 640px;
    color: var(--n-ink-muted);
    font-size: 1.08rem;
}

.account-entry-form {
    padding: 1.35rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--n-border);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(10, 26, 58, 0.10);
}

.profile-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    color: var(--n-ink-muted);
    font-size: 0.92rem;
}

.profile-legal-meta strong {
    color: var(--n-navy);
}

.profile-consent-form,
.profile-privacy-request {
    padding-top: 1rem;
    border-top: 1px solid var(--n-border);
}

.profile-request-list {
    display: grid;
    gap: 0.55rem;
}

.profile-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--n-surface-alt);
}

/* === CATALOGUES === */
.catalogues-grid-section {
    padding: 3rem 0;
}

.catalogue-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.catalogue-group {
    margin: var(--n-space-6) 0 var(--n-space-4);
}

.catalogue-card-grid + .catalogue-group {
    margin-top: var(--n-space-7, 2.5rem);
}

.catalogue-group:first-child {
    margin-top: 0;
}

.catalogue-group-title {
    margin: 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--n-gold);
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalogue-card {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    background: var(--n-surface);
    border: 1px solid var(--n-border);
    border-radius: var(--n-radius-md);
    box-shadow: var(--n-shadow-card);
}

/* One accent colour. The nth-child(2n)/(3n) rules overlapped and produced an
   arbitrary gold / bright / navy / bright / gold / navy sequence across the
   grid, which read as noise rather than as a system. */
.catalogue-card-accent {
    background: var(--n-gold);
}

/* The body must fill the card so the action row can be pinned to the bottom.
   As a plain block it sat directly after the copy, so cards with fewer
   sub-category bullets floated their buttons up to 61px higher than their
   neighbours in the same row. */
.catalogue-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--n-space-5);
}

.catalogue-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.catalogue-card p,
.catalogue-card li {
    color: var(--n-ink-muted);
    font-size: 0.94rem;
}

.catalogue-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.catalogue-card ul li + li {
    margin-top: 2px;
}

/* margin-top:auto is what actually lines the buttons up across a row. */
.catalogue-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--n-space-2);
    margin-top: auto;
    padding-top: var(--n-space-5);
}

/* Equal shares, so the pair reads as one control rather than two odd widths. */
.catalogue-card-actions > .btn {
    flex: 1 1 0;
    min-width: 130px;
}

.brochure-page {
    padding: 2rem 0;
}

.brochure-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brochure-sheet {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--n-border);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(10, 26, 58, 0.09);
}

.brochure-header {
    border-bottom: 2px solid var(--accent);
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
}

.brochure-header p {
    color: var(--n-gold-ink);
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 0.2rem;
}

.brochure-header h1 {
    margin-bottom: 0.2rem;
}

.brochure-header span,
.brochure-intro {
    color: var(--n-ink-muted);
}

.brochure-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.brochure-products article {
    padding: 0.85rem;
    border: 1px solid var(--n-border);
    border-radius: 8px;
}

.brochure-products h2 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.brochure-products p {
    color: var(--n-ink-muted);
    margin-bottom: 0.35rem;
}

/* === SCROLLBAR (subtle) === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--n-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* === RESPONSIVE === */
/* ============================================================
   DESIGNER-APPROVED STOREFRONT COMPONENTS
   Implements neutron-design/comps/visual-direction-approved.md
   and cart-cod-flow-brief.md in Django + Bootstrap 5 templates.
   ============================================================ */

/* --- Section headings ------------------------------------- */
.section-pad {
    padding: 3rem 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title {
    margin: 0;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 700;
}

/* 22px tall before: under the WCAG 2.5.8 (AA) 24x24 minimum, and it is a
   standalone link rather than one inside a sentence, so the inline exception
   does not apply. */
.section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--n-space-2);
    min-height: var(--n-tap-min);
    color: var(--n-gold-ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.section-link:hover,
.section-link:focus {
    color: var(--gold-hover);
}

/* --- Category cards --------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cat-card:hover,
.cat-card:focus {
    border-color: var(--n-gold-ink);
    box-shadow: 0 6px 20px rgba(10, 26, 58, 0.09);
    transform: translateY(-2px);
}

.cat-bolt,
.prod-bolt {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: var(--yellow);
    border-radius: 50%;
    color: var(--navy);
    font-size: 0.7rem;
}

.cat-img {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 0.75;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 2rem;
    overflow: hidden;
}

.cat-img i {
    color: var(--n-gold-ink);
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.cat-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* --- Product cards (home / PLP / related) ------------------ */
.prod-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.prod-card:hover {
    border-color: var(--n-border);
    box-shadow: 0 6px 20px rgba(10, 26, 58, 0.09);
}

/* --- Product card lift, fine pointers only -------------------------------
   The border/shadow treatment above is the baseline and stays exactly as it
   was: it is what a touch device gets, and what someone who asked not to be
   moved gets. This block only adds motion on top of it.

   `hover: hover` alone would not be enough. Touch browsers report it and
   then have no way to end the hover, so the last-tapped card stays lifted
   until something else is tapped. Requiring `pointer: fine` as well means a
   mouse or trackpad, which is the only place this effect makes sense.

   `transform` does not participate in layout, so the grid keeps its
   dimensions and neighbouring cards do not move. `z-index` raises only the
   hovered card, so its deeper shadow is not clipped by the white background
   of the card after it in the DOM.

   200ms, not the 160ms of --n-transition: this moves a whole card rather
   than recolouring an edge, and at 160ms the arrival reads as a snap. Only
   `transform` takes the new timing; the shadow and border keep theirs. */
@media (hover: hover) and (pointer: fine) {
    .prod-card {
        transition: transform 200ms ease-out, box-shadow 0.2s ease,
                    border-color 0.2s ease;
    }
    .prod-card:hover {
        z-index: 1;
        transform: translateY(-4px) scale(1.015);
        box-shadow: var(--n-shadow-lift);
    }

    /* Asked not to be moved: the card still answers the pointer with colour
       and depth, it just does not travel. Nothing animates because nothing
       changes, so the transition above has nothing to carry. Keyboard focus
       styling is untouched either way. */
    @media (prefers-reduced-motion: reduce) {
        .prod-card:hover {
            transform: none;
        }
    }
}

.prod-bolt {
    top: 0.55rem;
    left: 0.55rem;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
}

.prod-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.85;
    background: var(--bg-light);
    border-bottom: 1px solid var(--line);
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.85rem;
}

.prod-img-placeholder {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, var(--n-border), var(--n-border));
    border-radius: 12px;
    color: var(--navy);
    font-size: 1.75rem;
    opacity: 0.75;
}

.prod-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem 1.15rem;
}

.prod-body h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.prod-body h3 a {
    color: var(--navy);
    text-decoration: none;
}

.prod-body h3 a:hover {
    color: var(--n-gold-ink);
}

.prod-sku {
    color: var(--muted);
    font-size: 0.75rem;
}

/* --- Dual currency: EUR is payable, лв. is reference only --- */
.price-eur {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.price-bgn {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.price-vat {
    display: block;
    margin-top: 0.1rem;
    color: var(--n-gold-ink);
    font-size: 0.7rem;
    font-weight: 600;
}

.prod-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.btn-quick-add {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border: 0;
    border-radius: 8px;
    color: var(--navy);
    font-size: 1rem;
}

.btn-quick-add:hover,
.btn-quick-add:focus {
    background: var(--gold-bright);
    color: var(--navy);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 0.55rem 0.85rem;
    background: var(--yellow);
    border: 0;
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-add:hover,
.btn-add:focus {
    background: var(--gold-bright);
    color: var(--navy);
}

.btn-add:disabled {
    background: var(--n-hairline);
    color: var(--n-ink-muted);
}

.btn-add-lg {
    width: auto;
    min-height: 52px;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
}

/* Generic in/out of stock only — never a supplier or partner name. */
.badge-stock {
    display: inline-block;
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    background: var(--n-stock-in-bg);
    border-radius: 999px;
    color: var(--n-stock-in);
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-stock.out {
    background: var(--n-hairline);
    color: var(--n-ink-muted);
}

/* The same .prod-card carries the PLP, /new/ and the related-products strip,
   all of which sit four across at most. Only the homepage „Избрани продукти“
   grid goes six across only from xxl up, so the tighter body belongs to
   that grid rather than to the card - editing .prod-card here would shrink
   every other surface to fit a section they are not in. */
@media (min-width: 1400px) {
    .homepage-featured-products .prod-body {
        padding: 0.8rem 0.85rem 0.9rem;
    }

    .homepage-featured-products .prod-body h3 {
        font-size: 0.875rem;
    }

    .homepage-featured-products .prod-price-row {
        gap: 0.35rem;
    }

    /* 40px, not smaller: WCAG 2.5.8 puts the floor at 24x24 and the verify
       skill checks it. */
    .homepage-featured-products .btn-quick-add {
        width: 40px;
        height: 40px;
    }
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--n-gold-ink);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--navy);
    font-weight: 600;
}

/* --- PLP: filters + toolbar -------------------------------- */
.plp-title {
    margin-bottom: 0.25rem;
    font-size: 1.65rem;
    font-weight: 700;
}

.plp-count {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.filter-panel {
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.filter-panel h2 {
    margin-bottom: 0.85rem;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.35rem 0;
    color: var(--navy);
    font-size: 0.875rem;
    text-decoration: none;
}

.filter-list a:hover {
    color: var(--n-gold-ink);
}

.filter-list a.is-active {
    color: var(--n-gold-ink);
    font-weight: 700;
}

.filter-list .child a {
    padding-left: 0.85rem;
    font-size: 0.83rem;
    color: var(--muted);
}

.filter-count {
    color: var(--muted);
    font-size: 0.78rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.toolbar .form-select {
    width: auto;
    min-width: 190px;
    border-color: var(--line);
    border-radius: 8px;
    font-size: 0.875rem;
}

.vat-note {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.75rem;
}

/* --- PDP --------------------------------------------------- */
.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}

.gallery-main-icon {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, var(--n-border), var(--n-border));
    border-radius: 20px;
    color: var(--navy);
    font-size: 3rem;
    opacity: 0.75;
}

.buy-kicker {
    margin-bottom: 0.35rem;
    color: var(--n-gold-ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.buy-title {
    margin-bottom: 0.5rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
}

.buy-sku {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.buy-price {
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
}

.buy-price .price-eur {
    display: block;
    font-size: 1.75rem;
}

.buy-price .price-bgn {
    font-size: 0.95rem;
}

.buy-price .price-vat {
    font-size: 0.8rem;
}

.qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.qty-wrap button {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: 0;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
}

.qty-wrap button:hover {
    background: var(--n-hairline);
}

.qty-wrap input {
    width: 56px;
    height: 44px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.qty-wrap input::-webkit-outer-spin-button,
.qty-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-wrap input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* COD callout — наложен платеж only, never card/web-payment chrome. */
.cod-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.cod-callout i {
    flex-shrink: 0;
    color: var(--n-gold-ink);
    font-size: 1.35rem;
}

.cod-callout strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cod-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.section-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.section-block h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--line);
}

.specs-table th,
.specs-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: left;
}

.specs-table th {
    width: 40%;
    background: var(--bg-light);
    color: var(--navy);
    font-weight: 600;
}

.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-list li {
    margin-bottom: 0.65rem;
}

.doc-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.doc-list a:hover {
    background: var(--n-surface);
    border-color: var(--n-gold-ink);
}

.doc-list i {
    color: var(--n-danger);
    font-size: 1.15rem;
}

/* --- Cart / COD checkout / success -------------------------- */
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.panel-head {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
}

.panel-body {
    padding: 1.15rem;
}

.cart-line {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
    border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-line-img {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.cart-line-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.cart-line-main {
    flex: 1;
    min-width: 0;
}

.cart-line-name {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.cart-line-name:hover {
    color: var(--n-gold-ink);
}

.cart-line-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--n-danger);
    font-size: 0.85rem;
}

.btn-remove:hover,
.btn-remove:focus {
    border-color: var(--n-danger);
    background: var(--n-danger-bg);
}

.cart-line-total {
    flex-shrink: 0;
    text-align: right;
}

.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.summary-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 700;
}

.summary-total .price-eur {
    font-size: 1.4rem;
}

.cod-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    background: var(--n-stock-in-bg);
    border: 1px solid var(--n-stock-in-bg);
    border-radius: 10px;
    color: var(--n-stock-in);
    font-size: 0.85rem;
    line-height: 1.45;
}

.cod-note i {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.cod-note strong {
    display: block;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 52px;
    background: var(--yellow);
    border: 0;
    border-radius: 10px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-checkout:hover,
.btn-checkout:focus {
    background: var(--gold-bright);
    color: var(--navy);
}

.btn-checkout:disabled {
    background: var(--n-hairline);
    color: var(--n-ink-muted);
}

.cart-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: var(--n-space-8) var(--n-space-6);
    background: var(--n-surface);
    border: 1px solid var(--n-border);
    border-radius: var(--n-radius-lg);
    text-align: center;
}

/* Direct child only: as a descendant selector this also hit the icons inside
   the two buttons below, inflating them to 40px and the buttons to 84px. */
.cart-empty > i {
    display: block;
    margin-bottom: var(--n-space-2);
    color: var(--n-gold-ink);
    font-size: 2.5rem;
    line-height: 1;
}

.cart-empty h2 {
    color: var(--n-navy);
}

.cart-empty .cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--n-space-3);
    margin-top: var(--n-space-5);
}

/* One considered pair rather than two unrelated shapes. */
.cart-empty .cart-empty-actions > * {
    flex: 0 1 auto;
    min-width: 190px;
}

.order-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    background: var(--n-stock-in-bg);
    border: 1px solid var(--n-stock-in-bg);
    border-radius: 12px;
}

/* Direct child only, for the same reason as .cart-empty > i: as a descendant
   selector this also sized the icon inside the button in this block. */
.order-success > i {
    flex-shrink: 0;
    color: var(--n-stock-in);
    font-size: 1.75rem;
    line-height: 1.2;
}

.order-success h2 {
    margin: 0 0 0.35rem;
    color: var(--n-stock-in);
    font-size: 1.35rem;
    font-weight: 700;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

/* --- Focus visibility (≥44px targets + visible ring) -------- */
.site-header a:focus-visible,
.site-header button:focus-visible,
.btn-add:focus-visible,
.btn-quick-add:focus-visible,
.btn-checkout:focus-visible,
.btn-phone:focus-visible,
.btn-remove:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Two explicit rows. The actions are one grid item so the cart and menu
       cannot be auto-placed onto separate rows. */
    .site-topbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--n-space-3);
        padding-right: 0;
    }
    .site-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        min-width: 0;
    }
    .mobile-header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: var(--n-space-2);
    }
    .mobile-cart-action {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--n-tap-min);
        height: var(--n-tap-min);
        flex: 0 0 var(--n-tap-min);
        border: 1px solid var(--n-navy-line);
        border-radius: var(--n-radius-sm);
        background: rgba(255, 255, 255, 0.06);
        color: var(--n-on-dark);
        text-decoration: none;
        transition: background var(--n-transition), border-color var(--n-transition);
    }
    .mobile-cart-action:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--n-gold-bright);
        color: var(--n-on-dark);
    }
    .mobile-cart-graphic {
        position: relative;
        display: block;
        width: 36px;
        height: 36px;
    }
    .mobile-cart-icon {
        display: block;
        width: 100%;
        height: 100%;
    }
    .mobile-cart-count {
        position: absolute;
        /* The cart body spans SVG x=4.4..12.6 / y=4..11. Center within it,
           above the wheels, rather than over its outside corner. */
        left: 53.125%;
        top: 25%;
        width: 19px;
        height: 16px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
        color: var(--n-gold-bright);
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        font-variant-numeric: tabular-nums;
        pointer-events: none;
    }
    .mobile-cart-count.is-double {
        font-size: 10px;
    }
    .mobile-cart-count.is-compact {
        font-size: 8px;
    }
    .mobile-cart-count[hidden] {
        display: none;
    }
    .site-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        width: 100%;
    }
    .site-brand .brand-wordmark {
        height: 32px;
    }
    /* Bulgarian placeholder is long; shrink it rather than clip it. */
    .site-search .form-control {
        font-size: var(--n-text-sm);
        text-overflow: ellipsis;
    }
    .site-actions,
    .site-menubar {
        display: none;
    }
    .mobile-menu-toggle {
        position: relative;
        z-index: 1080;
        width: var(--n-tap-min);
        height: var(--n-tap-min);
        flex-shrink: 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--n-navy-line);
        border-radius: var(--n-radius-sm);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        transition: background var(--n-transition), border-color var(--n-transition);
    }
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle.is-open {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--n-gold-bright);
    }
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--n-on-dark);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .mobile-menu-toggle.is-open span {
        background: var(--n-gold-bright);
    }
    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .mobile-menu-backdrop {
        position: fixed;
        /* Keep both header actions reachable while the drawer is open.
           Two 44px controls/rows, their gap and the topbar's two paddings. */
        inset: calc(2 * var(--n-tap-min) + 3 * var(--n-space-3)) 0 0;
        z-index: 1040;
        display: block;
        background: rgba(6, 18, 42, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .mobile-menu-drawer {
        position: fixed;
        inset: calc(2 * var(--n-tap-min) + 3 * var(--n-space-3)) auto 0 0;
        z-index: 1050;
        display: block;
        width: min(88vw, 390px);
        background: var(--n-canvas);
        box-shadow: var(--n-shadow-overlay);
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-menu-open .mobile-menu-drawer {
        transform: translateX(0);
    }
    .mobile-menu-open {
        overflow: hidden;
    }
    .mobile-menu-drawer-inner {
        padding: var(--n-space-5) var(--n-space-4) var(--n-space-6);
    }
    .mobile-menu-section {
        margin-bottom: var(--n-space-3);
        padding: var(--n-space-4);
        border: 1px solid var(--n-hairline);
        border-radius: var(--n-radius-md);
        background: var(--n-surface);
    }
    .mobile-menu-section a,
    .mobile-menu-section button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.68rem 0;
        border: 0;
        background: transparent;
        color: var(--primary);
        font-weight: 700;
        text-align: left;
        text-decoration: none;
    }
    .mobile-nav-cart {
        min-height: var(--n-tap-min);
    }
    .mobile-nav-cart .cart-badge {
        margin-left: auto;
    }
    .mobile-nav-cart:focus-visible {
        outline: 3px solid var(--n-navy);
        outline-offset: 2px;
    }
    .mobile-menu-section .language-switcher {
        display: inline-flex;
    }
    .mobile-menu-section .language-switcher button {
        width: auto;
        display: inline-block;
        text-align: center;
        padding: 0.45rem 0.65rem;
    }
    .mobile-menu-section .language-switcher button.is-active {
        background: var(--action-blue);
        color: #fff;
    }
    .mobile-menu-kicker {
        margin-bottom: 0.45rem;
        color: var(--n-ink-muted);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }
    .mobile-menu-categories {
        margin-bottom: 0.85rem;
        padding: 1rem;
        border: 1px solid var(--n-border);
        border-radius: 8px;
        background: #fff;
    }
    .mobile-menu-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.85rem;
        color: var(--primary);
        font-weight: 800;
    }
    .mobile-menu-heading a {
        display: inline-flex;
        align-items: center;
        min-height: var(--n-tap-min);
        padding: 0 var(--n-space-2);
        margin-right: calc(var(--n-space-2) * -1);
        color: var(--n-navy);
        font-size: var(--n-text-sm);
        font-weight: 700;
        text-decoration: none;
    }
    .mobile-category-group {
        padding: 0.9rem 0;
        border-top: 1px solid var(--n-hairline);
    }
    .mobile-category-group:first-of-type {
        border-top: 0;
        padding-top: 0;
    }
    .mobile-category-group-title {
        margin: 0 0 var(--n-space-1);
        color: var(--n-ink-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    /* Unlike the dropdown, the drawer keeps the full tap target: this is the
       touch surface, and the /verify recipe checks 44px here. */
    .mobile-category-group a {
        display: flex;
        align-items: center;
        min-height: var(--n-tap-min);
        padding-left: var(--n-space-3);
        border-left: 2px solid var(--n-hairline);
        color: var(--n-ink-body);
        font-size: var(--n-text-sm);
        text-decoration: none;
    }
    .mobile-category-group a:active {
        border-left-color: var(--n-gold);
        background: var(--n-surface-alt);
    }
    .catalog-showcase,
    .catalogue-card-grid,
    .account-entry-shell {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section-pad {
        padding: 2rem 0;
    }
    .hero-section {
        padding: 2.5rem 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .lead {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .hero-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    .hero-section .col-lg-7,
    .hero-section .col-lg-5 {
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .navbar-brand {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    .brand-mark {
        width: 34px;
        height: 34px;
    }
    .product-filter-sidebar {
        margin-bottom: 1rem;
    }
    .product-filter-card,
    .product-sort-card {
        border-radius: 8px;
        box-shadow: none !important;
    }
    .product-filter-card .list-group,
    .product-sort-card .list-group {
        max-height: 260px;
        overflow-y: auto;
    }
    .product-grid-header {
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    .product-grid-header h4 {
        font-size: 1.15rem;
    }
    .product-grid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    .product-list-card .card-body {
        padding: 0.75rem;
    }
    .product-list-card .card-title {
        font-size: 0.9rem;
        line-height: 1.25;
    }
    .product-list-card .fs-5 {
        font-size: 1rem !important;
    }
    .product-list-card .btn-sm {
        padding: 0.45rem 0.5rem;
    }
    .catalogues-hero,
    .account-entry-band {
        padding: 3rem 0;
    }
    .brochure-toolbar,
    .catalogue-card-actions {
        flex-direction: column;
    }
    .brochure-sheet {
        padding: 1rem;
    }
    .brochure-products {
        grid-template-columns: 1fr;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar .form-select {
        width: 100%;
    }
    .cart-line {
        flex-wrap: wrap;
        padding: 1rem 0.85rem;
    }
    .cart-line-img {
        width: 64px;
        height: 64px;
    }
    .cart-line-actions form {
        flex-wrap: wrap;
    }
    .cart-line-total {
        width: 100%;
        text-align: left;
    }
    .buy-title {
        font-size: 1.35rem;
    }
    .footer-legal-links {
        align-items: center;
        flex-direction: column;
        gap: 0.4rem;
    }
    .legal-page-hero {
        padding: 3rem 0 2.4rem;
    }
}

@media print {
    .site-header,
    .mobile-menu-backdrop,
    .mobile-menu-drawer,
    footer,
    .brochure-toolbar {
        display: none !important;
    }
    body {
        background: #fff;
    }
    .brochure-sheet {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}

/* Between the mobile breakpoint (768px) and lg (992px) the top bar tried to fit
   brand + search + actions on one row. The actions block alone is ~360px, which
   squeezed the search input down to ~114px - too narrow to read a query in.
   Give the search its own full-width row instead. */
@media (min-width: 769px) and (max-width: 991.98px) {
    .site-topbar-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: var(--n-space-3) var(--n-space-4);
    }
    .site-brand {
        grid-column: 1;
        grid-row: 1;
    }
    .site-actions {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }
    .site-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
    }
}

/* The hero still is desktop-only, so below lg only the copy is left to size. */
@media (max-width: 991.98px) {
    .hero-section h1 {
        max-width: 24ch;
    }
}

/* --- Mobile hero density ---------------------------------------
   The hero is the only thing between a phone user and the catalogue, so it
   pays for its height: trimmed padding, and no decorative still at all. */
@media (max-width: 767.98px) {
    .hero-section {
        padding: var(--n-space-6) 0;
    }
    .hero-section h1 {
        max-width: 100%;
    }
    .hero-assurances {
        gap: var(--n-space-2) var(--n-space-5);
        margin-top: var(--n-space-5);
        padding-top: var(--n-space-4);
    }
    /* equal-width CTAs read as one considered pair, not two odd shapes */
    .hero-section .btn-primary,
    .hero-section .btn-phone {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* --- Footer link targets -------------------------------------------------
   The link lists measured 21px. Padding rather than min-height keeps the
   footer compact while clearing the 24px minimum. */
footer ul.list-unstyled a,
.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

/* --- "НОВО" landing page ------------------------------------------------ */
/* One word, so the band is sized to a label rather than to a paragraph that
   is no longer there. */
.promo-hero {
    padding: var(--n-space-6) 0 var(--n-space-5);
    background: linear-gradient(105deg, var(--n-surface-alt) 0%, var(--n-canvas) 60%, var(--n-surface) 100%);
    border-bottom: 1px solid var(--n-hairline);
}

.promo-hero-title {
    margin: 0;
    color: var(--n-gold-ink);        /* 6.24:1 on this band; gold fill is 2.29:1 */
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
    font-weight: 800;
    line-height: var(--n-leading-tight);
    letter-spacing: var(--n-tracking-caps);
    text-transform: uppercase;
}

/* Band shift rather than a floating card, per spec §5.1 #2. */
.section-pad-alt {
    background: var(--n-surface);
    border-top: 1px solid var(--n-hairline);
    border-bottom: 1px solid var(--n-hairline);
}

.section-note {
    margin: calc(var(--n-space-3) * -1) 0 var(--n-space-5);
    color: var(--n-ink-muted);
    font-size: var(--n-text-sm);
}

/* Flag over the product image. Gold fill with navy ink: gold as text on white
   is 2.1:1, so the label is a fill, never coloured type. */
.prod-flag {
    position: absolute;
    top: var(--n-space-2);
    left: var(--n-space-2);
    z-index: 2;
    padding: 3px var(--n-space-2);
    border-radius: var(--n-radius-sm);
    background: var(--n-gold);
    color: var(--n-on-gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Icon-only variant: the mark alone says "ours", so it is squared up on the
   icon rather than left as a word-shaped pill with one glyph in it. */
.prod-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1;
}

.prod-card .prod-img {
    position: relative;
}
