/* ============================================================
   Barry Trade — New Design System
   ============================================================ */

.btn-group {
    margin-right: 10px !important;
}

a:focus, a:active,
button:focus, button:active {
    outline: none !important;
    box-shadow: none !important;
}

:root {
    --bd-navy:   #1C3775;
    --bd-red:    #E53935;
    --bd-teal:   #58BEC3;
    --bd-white:  #FFFFFF;
    --bd-gray-bg:#F5F7FA;
    --bd-gray-lt:#F0F0F0;
    --bd-border: #E0E0E0;
    --bd-text:   #1A1A1A;
    --bd-muted:  #6B7280;
    --bd-radius: 4px;
}

/* ============================================================
   RESET OVERRIDES
   ============================================================ */
body { color: var(--bd-text); background: #fff; }

main.py-4 { padding-top: 0 !important; margin-bottom: 0 !important; }

/* ============================================================
   STICKY HEADER — appears on scroll (JS adds .fixed to #head)
   ============================================================ */
@media (min-width: 768px) {
    #head.fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        animation: slide-down 0.3s ease;
    }
    /* Hide the nav bar when sticky — keep topbar + logo/search/actions.
       The topbar (.bd-topbar, already hidden below 768px via .hidden-xs)
       stays visible so both rows stay pinned at the top on desktop. */
    #head.fixed .bd-header-nav {
        display: none !important;
    }
    /* main.js moves the #logo catalog button into this slot while sticky,
       between the logo and the search bar — Group 404.
       .bd-middle-center (catalog slot + search bar) keeps its default
       flex:1 here, same as the search bar alone used to before the catalog
       slot existed — it fills the row so the search bar stays wide and
       .bd-header-actions (margin-right:30px away, via .bd-search-form)
       lands flush against the row's right edge. */
    /* #categories-nav is a plain block <div> (not a flex item anywhere
       upstream of the button), so a bare align-items:stretch chain leaves
       the button's height:100% resolving against an auto-height ancestor
       (i.e. it doesn't stretch) — make every level down to the button an
       explicit stretch-flex container. Because catalog-slot only shares a
       row with the search bar (not the taller logo/actions), stretching it
       here matches the search bar's own height exactly. */
    #head.fixed .bd-catalog-slot {
        display: flex;
        margin-right: 30px;
    }
    #head.fixed .bd-catalog-slot #logo,
    #head.fixed .bd-catalog-slot #categories-nav {
        display: flex;
        align-items: stretch;
    }
    #head.fixed .bd-catalog-slot #categories-nav > button {
        height: auto;
        min-width: 180px;
    }
    /* #categories-nav #nav-one is `position:absolute; left:0` relative to
       #categories-nav itself — fine in the nav row, where that div sits
       flush against the row's left edge, but here #categories-nav is
       shifted right (after the logo). Drop its own positioning context so
       #nav-one's absolute positioning escapes it and lands on
       .bd-header-middle .container (now position:relative) instead,
       lining the dropdown back up under .bd-logo-wrap/the container edge. */
    #head.fixed .bd-catalog-slot #categories-nav {
        position: static;
    }
}
/* Bootstrap's default .modal/.modal-backdrop z-index (1050/1040) sits below
   the sticky header's 9999 above, so any modal opened while #head.fixed is
   active rendered underneath the header instead of over it. */
.modal { z-index: 10050; }
.modal-backdrop { z-index: 10040; }

/* ============================================================
   HEADER — TOPBAR
   ============================================================ */
.bd-topbar {
    background: #F5F5F5;
    font-size: 13px;
    color: #000;
}
.bd-topbar .container {
    display: flex !important;
    align-items: center;
    padding: 1px 0;
    justify-content: flex-start;
    height: 36px;
}
.bd-topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0 0 0 5px !important;
    padding: 0 !important;
    margin-right: auto !important;
}
.bd-topbar-links a {
    color: #000;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: color .2s;
}
.bd-topbar-links a:hover { color: var(--bd-navy); }
.bd-topbar-phone {
    color: #000;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.bd-topbar-phone span {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}
.bd-topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bd-topbar-recall {
    font-size: 11px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bd-topbar-recall:hover { color: var(--bd-navy); text-decoration: none; }
.bd-topbar-lang {
    padding: 0 6px;
    color: #000;
    display: flex;
    align-items: center;
    line-height: 1;
}
.bd-topbar-lang:hover { color: var(--bd-navy); }
#recallBut {
    border-radius: 9px !important;
    }
/* At the narrow end of the desktop tier (just above 768px) the topbar's
   nav links + phone + "order call" + language switcher — none of which
   wrap — need more width than the row actually has, causing horizontal
   page overflow (still true even with a "normal" ~750-768px container;
   this isn't the legacy .container width bug seen elsewhere in this
   file, the content itself is just too wide here). Tighten the gaps
   just in this range; back to normal once there's enough room. */
@media (min-width: 768px) and (max-width: 899px) {
    .bd-topbar-links { gap: 10px; }
    .bd-topbar-contact { gap: 10px; }
}
.language-menu {
    min-width: 0;
    padding: 4px 0;
    right: -4px !important;
}
/* Reused in .bd-header-actions (mobile-only guest language switcher,
   replacing the login icon there below 768px) — that button sits flush
   against the header's own right edge, so the topbar's -75px correction
   above doesn't apply. */
.bd-action-lang .language-menu {
    right: 0 !important;
}
.language-menu li {
    display: block;
}
.language-menu .language-select {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    white-space: nowrap;
}

/* ============================================================
   DROPDOWN MENU — Frame 971 styles
   ============================================================ */
#categories-nav #nav-one.dropdown-menu {
    padding: 0 !important;
    top: 97% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    background-color: #F5F5F5 !important;
}
#categories-nav ul.categories-menu {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border-right: none !important;
}
#categories-nav li.top_level {
    padding: 0 !important;
    display: block !important;
    border-bottom: 1px solid #E8E8E8;
    border-left: 4px solid transparent;
    border-right: 1px solid #E8E8E8;
    background: #fff;
    transition: background .15s, border-left-color .15s, border-right-color .15s;
}
#categories-nav li.top_level:has(a[aria-expanded="true"]) {
    border-right-color: transparent;
}
#categories-nav li.top_level:first-child {
    border-right-color: transparent;
    background: #F5F5F5 !important;
    border-left-color: #07356D !important;
}
#categories-nav li.top_level:first-child:has(a[aria-expanded="false"]) {
    border-right-color: #E8E8E8;
    background: #fff !important;
    border-left-color: transparent !important;
}
#categories-nav li.top_level:hover,
#categories-nav li.top_level.active,
#categories-nav li.top_level:has(a[aria-expanded="true"]) {
    background: #F5F5F5 !important;
    border-left-color: #07356D !important;
}
#categories-nav li.top_level a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.2;
    position: relative;
}
#categories-nav li.top_level a:hover {
    color: #07356D !important;
    text-decoration: none !important;
}
#categories-nav li.top_level a.top_level_link:after {
    content: '' !important;
    display: inline-block;
    width: 7px;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg width='7' height='11' viewBox='0 0 7 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 5.5L1 10' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    top: auto !important;
    right: auto !important;
    position: static !important;
}
#categories-nav .accordion-collection .panel-collapse > li:first-child { display: none !important; }
#categories-nav .accordion-items {
    padding: 0 !important;
    width: 27% !important;
}
#categories-nav .accordion-collection {
    padding: 0 !important;
    width: 73% !important;
}
#categories-nav .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================================
   CATALOG BUTTON — fix ::before icon shift on expand
   ============================================================ */
#logo button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#logo button:before {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 17px;
    vertical-align: middle;
    flex-shrink: 0;
    padding-right: 0 !important;
}
#logo button[aria-expanded="true"]:before {
    content: url("../images/icons/close.svg");
    width: 18px;
    height: 18px;
    line-height: 18px;
    vertical-align: middle;
    padding-right: 0 !important;
}

/* ============================================================
   HEADER — MIDDLE (Logo + Search + Icons)
   ============================================================ */
.cart-but:after {
    position: absolute !important;
    left: 42px !important;
    top: 26% !important;
    content: attr(data-count) !important;
    font-size: 10px !important;
    padding: 2px 0px !important;
    border-radius: 999px !important;
    line-height: 11.72px !important;
    color: black !important;
    background: none !important;
    text-align: center !important;
    min-width: 16px !important;
    font-weight: 600 !important;
    font-family: "Mardoto", sans-serif !important;
}

.bd-header-middle {
    background: #fff;
    padding: 0;
}
.bd-header-middle .container {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    padding: 10px 0;
    margin-right: auto;
    margin-left: auto;
}
.bd-logo-wrap { flex-shrink: 0; margin-left: 30px; margin-right: 30px; }
.bd-logo-wrap img { height: 58px; width: auto; }
.bd-header-middle .bd-search-form { margin-right: 30px; }

/* Wraps the catalog slot + search bar in their own stretch-flex row so the
   catalog button's height (once populated while sticky) derives from the
   search bar's own height, not the taller logo image — the logo/actions
   sit outside this wrapper and never enter the height calculation. Fills
   the row by default (like the search bar alone used to); capped to its
   content's width while sticky so leftover space pushes the actions group
   flush right instead of collecting after the search bar (see below). */
.bd-middle-center {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

/* Empty outside the sticky state — main.js only populates it once #head
   gets .fixed (see the (min-width: 768px) block above). */
.bd-catalog-slot { display: none; flex-shrink: 0; }

.bd-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--bd-red);
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s;
}
.bd-search-form:focus-within { border-color: var(--bd-red); }
.bd-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--bd-text);
    font-family: inherit;
    background: transparent;
}
.bd-search-form input::placeholder { color: #aaa; }
.bd-search-form button {
    background: transparent;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    color: var(--bd-text);
    display: flex;
    align-items: center;
    align-self: stretch;
    transition: color .2s;
}
.bd-search-form button:hover { background: transparent; color: var(--bd-red); }

.bd-header-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
    align-self: stretch;
    /* .bd-search-form already carries margin-right:30px, which is what
       actually sets the gap before this group — don't also auto-margin it
       here, or the gap grows to whatever slack is left in the row instead
       of staying a fixed 30px. */
    margin: -13px 0;
}
.bd-header-actions .bd-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    color: var(--bd-text);
    text-decoration: none;
    transition: color .2s;
    position: relative;
    background: none;
    border: none;
    border-left: 1px solid #E0E0E0;
    cursor: pointer;
    flex-shrink: 0;
}
.bd-header-actions .bd-action-btn:hover { background: none; color: var(--bd-red); }
.bd-header-actions .cart-but:hover { color: var(--bd-red) !important; }
.bd-action-btn svg { width: 24px; height: 24px; }

/* Override Livewire cart button to match new design */
.bd-header-actions #cart {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    position: relative;
}
.bd-header-actions #cart .cart-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0 !important;
}
.bd-header-actions .cart-but {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 75px !important;
    height: auto !important;
    color: var(--bd-text) !important;
    text-decoration: none !important;
    transition: background .2s !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    border-left: 1px solid #E0E0E0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   HEADER — NAV BAR
   ============================================================ */
.bd-header-nav {
    background: #fff;
    position: relative;
}
#categories-nav {
    position: relative;
}
#categories-nav #nav-one {
    position: absolute !important;
    left: 0;
    z-index: 1050;
    width: auto !important;
}
/* #nav-one's shrink-to-fit width (above) is driven by this inner .container's
   own width — but style.css's legacy .container rules make it `auto` at
   >=992px and `100%` at <=991px, both indeterminate against an auto-width
   absolutely-positioned ancestor, so the whole dropdown collapses to ~200px
   between 768–1199px (only the >=1200px tier gives .container a real fixed
   px width, which is why it looked fine there). Give it a real width here
   across the whole range this dropdown is ever shown (>=768px, since its
   parent .bd-header-nav is hidden-xs). */
#categories-nav #nav-one div.container {
    width: calc(100vw - 32px) !important;
    max-width: 1200px !important;
}
.bd-header-nav .container {
    display: flex;
    align-items: stretch;
    padding: 0;
    border: 1px solid #E0E0E0;
}
.bd-nav-links {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
    margin: 0; padding: 0;
    flex: 1;
    overflow: hidden;
}
.bd-nav-links li a {
    display: block;
    color: var(--bd-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 14px 16px;
    white-space: nowrap;
    transition: color .2s;
}
.bd-nav-links li a:hover { background: none; color: var(--bd-red); }

/* Account dropdown */
.bd-account-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
}
.bd-account-dropdown .bd-action-btn.dropdown-toggle::after,
.bd-account-dropdown .bd-action-btn.dropdown-toggle .caret { display: none; }
.bd-account-dropdown .dropdown-menu {
    min-width: 180px;
    border-radius: var(--bd-radius);
    border: 1px solid var(--bd-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 6px 0;
}
.bd-account-dropdown .dropdown-menu li a {
    padding: 8px 16px;
    color: var(--bd-text);
    font-size: 13px;
    display: block;
    text-decoration: none;
}
.bd-account-dropdown .dropdown-menu li a:hover {
    background: var(--bd-gray-bg);
    color: var(--bd-navy);
}

/* ============================================================
   HEADER — BOTTOM TAB BAR (mobile only, < 768px)
   Matches Barry_design "Group 1148" (768) / "Group 1149" (320).
   Fixed to the bottom of the viewport; .hidden-sm/.hidden-md/.hidden-lg
   (Bootstrap 3 utilities already used elsewhere in the header)
   keep it out of the DOM flow's visual box on desktop/tablet.
   ============================================================ */
.bd-bottom-nav {
    display: none;
}
@media (max-width: 767px) {
    .bd-bottom-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        background: var(--bd-gray-bg);
        border-top: 1px solid var(--bd-border);
        z-index: 9999;
    }
    /* Keep fixed-bar content from covering the last bit of every page */
    body { padding-bottom: 60px; }
    .scrollup-btn { bottom: calc(70px + 60px); }
}
.bd-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    color: var(--bd-muted);
    text-decoration: none;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.bd-bottom-nav-item:hover,
.bd-bottom-nav-item:focus {
    color: var(--bd-muted);
    text-decoration: none;
}
.bd-bottom-nav-item svg { flex-shrink: 0; }
.bd-bottom-nav-item.active,
.bd-bottom-nav-item.active svg { color: var(--bd-navy); }

/* Cart tab reuses the shared <livewire:cart /> component — restyle its
   button/badge/dropdown to fit the icon-over-label tab layout. */
.bd-bottom-nav-cart #cart { display: contents; }
.bd-bottom-nav-cart .cart-but {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    padding: 0 !important;
    margin: 0 auto;
    border: none !important;
    background: none !important;
    color: var(--bd-muted) !important;
}
.bd-bottom-nav-cart .cart-but svg { width: 21px; height: 22px; }
.bd-bottom-nav-cart .cart-but:after {
    left: auto !important;
    right: -6px !important;
    top: -4px !important;
    background: var(--bd-navy);
}
.bd-bottom-nav-cart .cart-menu {
    position: absolute !important;
    bottom: 100% !important;
    top: auto !important;
    right: 8px !important;
    left: auto !important;
    margin-bottom: 8px !important;
}

/* "Меню" tab overlay (#bd-mnav, livewire/categories.blade.php mobile branch).
   Full-height panel above the fixed bottom bar; shown while <body> has
   .bd-mnav-open (toggled in partials/header/bottom-nav.blade.php). No
   320/768 mockup — styled after the desktop "Выпадающее меню" dropdown. */
.bd-mnav { display: none; }
@media (max-width: 767px) {
    .bd-mnav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px;
        z-index: 9998;
        background: var(--bd-white);
        visibility: hidden;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    body.bd-mnav-open { overflow: hidden; }
    /* Only the "Меню" tab reads as active while the overlay is up */
    body.bd-mnav-open .bd-bottom-nav-item.active:not(#bd-bottom-menu-btn),
    body.bd-mnav-open .bd-bottom-nav-item.active:not(#bd-bottom-menu-btn) svg { color: var(--bd-muted); }
    body.bd-mnav-open .bd-mnav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .2s ease, transform .2s ease;
    }
}

.bd-mnav-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 8px 0 16px;
    background: var(--bd-navy);
    color: var(--bd-white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.bd-mnav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    color: var(--bd-white);
    cursor: pointer;
}

.bd-mnav-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.bd-mnav-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--bd-navy);
}

/* Category tree */
.bd-mnav-list,
.bd-mnav-sub,
.bd-mnav-pages {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bd-mnav-item {
    border-bottom: 1px solid #E8E8E8;
}
.bd-mnav-row {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    border-left: 4px solid transparent;
    transition: background .15s, border-left-color .15s;
}
.bd-mnav-row a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 12px 12px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--bd-text);
    text-decoration: none;
}
.bd-mnav-row a:hover,
.bd-mnav-row a:focus {
    color: var(--bd-navy);
    text-decoration: none;
}
.bd-mnav-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 0;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
}
.bd-mnav-toggle svg { transition: transform .2s ease; }
.bd-mnav-item.open > .bd-mnav-row {
    background: #F5F5F5;
    border-left-color: var(--bd-navy);
}
.bd-mnav-item.open > .bd-mnav-row > a { color: var(--bd-navy); }
.bd-mnav-item.open > .bd-mnav-row .bd-mnav-toggle svg { transform: rotate(90deg); }

.bd-mnav-sub {
    display: none;
    background: #F5F5F5;
    border-top: 1px solid #E8E8E8;
}
.bd-mnav-item.open > .bd-mnav-sub { display: block; }
/* Nested levels: sentence case, indented, lighter weight; dividers inset
   like the desktop dropdown's second/third columns. */
.bd-mnav-sub .bd-mnav-item { border-bottom: none; }
.bd-mnav-sub .bd-mnav-item + .bd-mnav-item > .bd-mnav-row { box-shadow: inset 0 1px 0 #E8E8E8; }
.bd-mnav-sub .bd-mnav-row { min-height: 46px; }
.bd-mnav-sub .bd-mnav-row a {
    padding-left: 28px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}
.bd-mnav-sub .bd-mnav-sub { background: #EBEBEB; }
.bd-mnav-sub .bd-mnav-sub .bd-mnav-row a { padding-left: 44px; }
.bd-mnav-sub .bd-mnav-item.open > .bd-mnav-row { background: #E0E0E0; }

/* Info pages (header_menu) */
.bd-mnav-pages {
    padding: 8px 0;
    background: var(--bd-gray-bg);
    border-bottom: 1px solid #E8E8E8;
}
.bd-mnav-pages a {
    display: block;
    padding: 11px 16px 11px 20px;
    font-size: 14px;
    color: var(--bd-text);
    text-decoration: none;
}
.bd-mnav-pages a:hover,
.bd-mnav-pages a:focus { color: var(--bd-navy); text-decoration: none; }

/* Footer: order-call + language switcher (the topbar holding both is
   hidden below 768px, and logged-in users get no header language button) */
.bd-mnav-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}
.bd-mnav-recall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bd-navy);
    text-decoration: none;
}
.bd-mnav-recall:hover,
.bd-mnav-recall:focus { color: var(--bd-navy); text-decoration: underline; }
.bd-mnav-langs {
    display: flex;
    gap: 6px;
}
.bd-mnav-langs a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 30px;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    opacity: .6;
}
.bd-mnav-langs a.active {
    border-color: var(--bd-navy);
    opacity: 1;
}
.bd-mnav-langs img { height: 16px; }

/* ============================================================
   HOMEPAGE — HERO SLIDER
   ============================================================ */
.bd-hero-outer {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
}
.bd-hero {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* Left: main slider column — fills all available space */
.bd-hero-main {
    flex: 1;
    min-width: 0;
    position: relative;
    min-height: 280px;
}
.bd-hero-swiper,
.bd-hero-main .swiper-container { height: 100%; }
.bd-hero-main .swiper-slide { height: 100%; }
.bd-hero-main .swiper-slide a { display: block; height: 100%; }
.bd-hero-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Slider nav buttons — exact SVG from btn prev.svg / btn next.svg */
.bd-hero .swiper-button-prev,
.bd-hero .swiper-button-next {
    width: 45px;
    height: 45px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 0;
    box-shadow: none;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    transition: background-image .15s;
}
.bd-hero .swiper-button-prev::after,
.bd-hero .swiper-button-next::after {
    display: none;
}

/* prev — default: gray bg, black chevron */
.bd-hero .swiper-button-prev {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%23F5F5F5'/%3E%3Cpath d='M25.8378 17.2495C26.1686 17.5803 26.1686 18.0828 25.8379 18.42L21.0032 23.2546L25.8379 28.0892C26.1686 28.42 26.1686 28.9226 25.8379 29.2597C25.5071 29.5905 25.0045 29.5905 24.6674 29.2597L19.2474 23.8398C19.082 23.6744 18.9993 23.509 18.9993 23.2545C18.9993 23 19.082 22.8347 19.1647 22.752L24.6673 17.2494C24.998 16.9187 25.5006 16.9187 25.8378 17.2495Z' fill='black'/%3E%3C/svg%3E") !important;
}
/* prev — hover: dark navy bg, white chevron */
.bd-hero .swiper-button-prev:hover {
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%2331336C'/%3E%3Cpath d='M25.8378 17.2495C26.1686 17.5803 26.1686 18.0828 25.8379 18.42L21.0032 23.2546L25.8379 28.0892C26.1686 28.42 26.1686 28.9226 25.8379 29.2597C25.5071 29.5905 25.0045 29.5905 24.6674 29.2597L19.2474 23.8398C19.082 23.6744 18.9993 23.509 18.9993 23.2545C18.9993 23 19.082 22.8347 19.1647 22.752L24.6673 17.2494C24.998 16.9187 25.5006 16.9187 25.8378 17.2495Z' fill='white'/%3E%3C/svg%3E") !important;
}

/* next — default: gray bg, black chevron */
.bd-hero .swiper-button-next {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%23F5F5F5'/%3E%3Cpath d='M21.2482 17.2495C20.9173 17.5803 20.9173 18.0828 21.2481 18.42L26.0827 23.2546L21.2481 28.0892C20.9173 28.42 20.9173 28.9226 21.2481 29.2597C21.5789 29.5905 22.0814 29.5905 22.4186 29.2597L27.8385 23.8398C28.0039 23.6744 28.0866 23.509 28.0866 23.2545C28.0866 23 28.0039 22.8347 27.9212 22.752L22.4186 17.2494C22.0879 16.9187 21.5854 16.9187 21.2482 17.2495Z' fill='black'/%3E%3C/svg%3E") !important;
}
/* next — hover: dark navy bg, white chevron (exact btn next.svg) */
.bd-hero .swiper-button-next:hover {
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%2331336C'/%3E%3Cpath d='M21.2482 17.2495C20.9173 17.5803 20.9173 18.0828 21.2481 18.42L26.0827 23.2546L21.2481 28.0892C20.9173 28.42 20.9173 28.9226 21.2481 29.2597C21.5789 29.5905 22.0814 29.5905 22.4186 29.2597L27.8385 23.8398C28.0039 23.6744 28.0866 23.509 28.0866 23.2545C28.0866 23 28.0039 22.8347 27.9212 22.752L22.4186 17.2494C22.0879 16.9187 21.5854 16.9187 21.2482 17.2495Z' fill='white'/%3E%3C/svg%3E") !important;
}
.bd-hero .swiper-pagination { bottom: 12px; }
.bd-hero .swiper-pagination-bullet-active { background: var(--bd-navy); }

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .bd-hero { flex-direction: column; }
    .bd-hero-main { flex: none; max-width: 100%; min-height: 220px; }
}

/* ============================================================
   HOMEPAGE — CATEGORY GRID
   ============================================================ */
.bd-section { padding: 40px 0; }
.bd-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 24px 0;
}
.bd-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.bd-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bd-navy);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--bd-navy);
    padding: 5px 14px;
    border-radius: var(--bd-radius);
    transition: background .2s, color .2s;
}
.bd-view-all:hover { background: var(--bd-navy); color: #fff; }

.bd-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.bd-cat-card {
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--bd-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid transparent;
}
.bd-cat-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: var(--bd-border);
    transform: translateY(-2px);
    color: var(--bd-navy);
    text-decoration: none;
}
.bd-cat-card-icon {
    width: 56px; height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: var(--bd-navy);
}
.bd-cat-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}
.bd-cat-card-link {
    font-size: 12px;
    color: var(--bd-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Featured cat card (photo background) */
.bd-cat-card-featured {
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    border: none;
    overflow: hidden;
    min-height: 200px;
    justify-content: flex-end;
    padding: 16px;
}
.bd-cat-card-featured::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.bd-cat-card-featured * { position: relative; z-index: 1; }

/* All categories button */
.bd-all-cats {
    text-align: center;
    margin-top: 20px;
}
.bd-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--bd-red);
    color: var(--bd-red);
    background: none;
    padding: 9px 28px;
    border-radius: var(--bd-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background .2s, color .2s;
    cursor: pointer;
}
.bd-btn-outline:hover { background: var(--bd-red); color: #fff; }

/* ============================================================
   HOMEPAGE — PROMO BANNER
   ============================================================ */
.bd-promo-banner {
    color: #fff;
    overflow: hidden;
}
.bd-promo-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #58bec3;
}
.bd-promo-label {
    display: inline-block;
    background: #fff;
    border: none;
    color: var(--bd-teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: var(--bd-radius);
    margin-bottom: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}
.bd-promo-label:hover {
    opacity: 0.88;
    color: var(--bd-teal);
    text-decoration: none;
}
.bd-promo-title {
    font-size: 42px !important;
    font-weight: 900  !important;
    line-height: 1.15 !important;
    margin: 0 0 12px 0 !important;
    text-transform: uppercase !important;
    color: #fff !important;
}
.bd-promo-sub {
    font-size: 16px;
    font-weight: 500;
    opacity: 1;
    margin: 0;
}
.bd-promo-img {
    max-width: 46%;
    flex-shrink: 0;
}
.bd-promo-img img { max-width: 100%; display: block; }

@media (max-width: 767px) {
    .bd-promo-banner { padding: 20px 0; }
    .bd-promo-label { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
    .bd-promo-title { font-size: 20px; margin-bottom: 6px; }
    .bd-promo-sub { font-size: 12px; }
    .bd-promo-img { max-width: 40%; }
}
@media (max-width: 479px) {
    .bd-promo-title { font-size: 17px; }
    .bd-promo-sub { font-size: 11px; }
}
.bd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bd-red);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--bd-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: 20px;
}
.bd-btn-primary:hover { opacity: 0.88; color: #fff; text-decoration: none; }

/* ============================================================
   HOMEPAGE — USP STRIP
   ============================================================ */
.bd-usp-strip { padding: 40px 0; background: #fff; }
.bd-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.bd-usp-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    border-right: 1px solid var(--bd-border);
}
.bd-usp-item:last-child {
    border-right: none;
}
.bd-usp-icon {
    width: 70px; height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bd-navy);
}
.bd-usp-icon svg { width: 36px; height: 36px; }
.bd-usp-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bd-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bd-usp-desc { font-size: 12px; color: var(--bd-muted); }

/* ============================================================
   ADVANTAGES — "Преимущества" 6-card grid (About page)
   ============================================================ */
.bd-advantages { padding: 48px 0; background: var(--bd-gray-bg); }
.bd-advantages-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 24px 0;
}
.bd-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bd-advantage-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 24px;
    transition: background-color .2s, border-color .2s;
}
.bd-advantage-card:hover {
    background: var(--bd-navy);
    border-color: var(--bd-navy);
}
.bd-advantage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.bd-advantage-icon { color: var(--bd-navy); flex-shrink: 0; transition: color .2s; }
.bd-advantage-card:hover .bd-advantage-icon { color: #fff; }
.bd-advantage-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--bd-gray-lt);
    line-height: 1;
    transition: color .2s;
}
.bd-advantage-card:hover .bd-advantage-num { color: rgba(255,255,255,0.15); }
.bd-advantage-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--bd-text);
    margin-bottom: 10px;
    transition: color .2s;
}
.bd-advantage-card:hover .bd-advantage-title { color: #fff; }
.bd-advantage-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--bd-muted);
    margin: 0;
    transition: color .2s;
}
.bd-advantage-card:hover .bd-advantage-desc { color: rgba(255,255,255,0.85); }
@media (max-width: 767px) {
    .bd-advantages-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT CATEGORIES SHOWCASE (About page) — masonry-style grid
   ============================================================ */
.bd-pcat-showcase { padding: 48px 0; background: #fff; }
.bd-pcat-showcase-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 24px 0;
}
.bd-pcat-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.bd-pcat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bd-gray-bg);
    padding: 28px 24px;
    min-height: 220px;
    text-decoration: none;
    transition: background-color .2s;
}
.bd-pcat-card:hover { background: var(--bd-gray-lt); text-decoration: none; }
.bd-pcat-card svg { color: var(--bd-text); margin-bottom: 16px; flex-shrink: 0; }
.bd-pcat-eyebrow {
    font-size: 11px;
    color: var(--bd-muted);
    margin-bottom: 6px;
}
.bd-pcat-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-text);
    line-height: 1.35;
    text-transform: uppercase;
    padding-bottom: 20px;
}
.bd-pcat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 180px;
    margin-top: auto;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--bd-text);
}
/* Card + product photo combined into a single block (e.g. card 01) —
   spans 2 grid rows so it keeps the same footprint the separate card +
   photo cells used to occupy, instead of collapsing to 1 row's height
   and shifting every card after it into the wrong column. */
.bd-pcat-card--photo {
    grid-row: span 2;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.bd-pcat-card--photo .bd-pcat-card-body {
    height: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 28px 24px; /* match .bd-pcat-card's padding exactly so the
                            button lines up with the other row1 cards' */
}
.bd-pcat-card--photo .bd-pcat-btn { margin-top: auto; }
.bd-pcat-card-img {
    height: 50%;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--bd-gray-bg);
}
.bd-pcat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bd-pcat-photo {
    display: block;
    min-height: 220px;
    overflow: hidden;
}
.bd-pcat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .bd-pcat-showcase-grid { grid-template-columns: 1fr; }
    .bd-pcat-photo { min-height: 260px; }
}

/* ============================================================
   HOMEPAGE — REVIEWS SLIDER (Barry_design/5 block reviews.jpg)
   name + stars | circle with speech-bubble icon | text; the arrow box
   sits under the name column.
   ============================================================ */
.bd-reviews-section {
    background: #F4F4F4;
    padding: 77px 0;
}
.bd-reviews-wrap {
    position: relative;
}

/* Owl overrides — hide cloned slide artifacts */
.bd-reviews-owl.owl-carousel { display: block; }

.bd-review-card {
    display: grid;
    grid-template-columns: 270px 182px minmax(0, 1fr);
    column-gap: 60px;
    align-items: center;
    min-height: 182px;
}

/* Left column: name + stars */
.bd-review-meta {
    align-self: start;
    padding-top: 18px;
}
.bd-review-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--bd-text);
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}
.bd-review-stars {
    display: flex;
    gap: 6px;
}

/* Centre: icon on a circle */
.bd-review-icon {
    width: 182px;
    height: 182px;
    border-radius: 50%;
    background: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E3270;
}

/* Right column: text */
.bd-review-text {
    font-size: 15px;
    line-height: 24px;
    color: var(--bd-text);
}
.bd-review-text p { margin: 0 0 20px; }
.bd-review-text p:last-child { margin-bottom: 0; }

/* Navigation: one white box with two chevrons, under the name column */
.bd-reviews-arrows {
    position: absolute;
    left: 0;
    top: 136px;
    z-index: 2;
    display: flex;
    background: #fff;
}
.bd-rev-prev,
.bd-rev-next {
    width: 45px;
    height: 45px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bd-text);
    transition: color .2s, background .2s;
    padding: 0;
}
.bd-rev-prev:hover,
.bd-rev-next:hover {
    background: var(--bd-navy);
    color: #fff;
}

@media (max-width: 991px) {
    .bd-review-card { grid-template-columns: 200px 120px minmax(0, 1fr); column-gap: 30px; min-height: 120px; }
    .bd-review-icon { width: 120px; height: 120px; }
    .bd-review-icon svg { width: 64px; height: auto; }
    .bd-reviews-arrows { top: 110px; }
}
@media (max-width: 767px) {
    .bd-reviews-section { padding: 40px 0; }
    .bd-review-card {
        grid-template-columns: 1fr;
        row-gap: 18px;
        min-height: 0;
    }
    .bd-review-meta { padding-top: 0; }
    .bd-review-icon { display: none; }
    .bd-reviews-arrows {
        position: static;
        display: inline-flex;
        margin-top: 24px;
    }
}

/* ============================================================
   HOMEPAGE — BRANDS/PARTNERS
   ============================================================ */
.bd-brands-section {
    padding: 40px 0;
    background: #fff;
}
.bd-brands-nav {
    display: flex;
    gap: 6px;
}
.bd-brands-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--bd-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bd-text);
    transition: border-color .2s, color .2s;
    padding: 0;
}
.bd-brands-arrow:hover {
    border-color: var(--bd-navy);
    color: var(--bd-navy);
}
.bd-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background: #fff;
    height: 90px;
    margin: 4px;
}
.bd-brand-item img {
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter .2s;
}
.bd-brand-item:hover img { filter: none; }

/* ============================================================
   HOMEPAGE — NEWS / BLOG
   ============================================================ */
.bd-news-section { padding: 40px 0; background: #f5f5f5; }
.bd-news-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    overflow: hidden;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bd-news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.bd-news-card-img {
    position: relative;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}
.bd-news-card-img img { width: 100%; height: 100%; object-fit: cover; }
/* Promotion card tag "до 31 декабря" — top-right, angled left edge (Barry_design/cards.jpg). */
.bd-promo-until {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    padding: 6px 14px 6px 24px;
    background: var(--bd-navy);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}
.bd-news-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.bd-news-card-date { font-size: 12px; color: var(--bd-muted); margin-bottom: 8px; }
.bd-news-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bd-text);
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bd-news-card-title a { color: inherit; text-decoration: none; }
.bd-news-card-title a:hover { color: var(--bd-navy); }
.bd-news-card-summary { font-size: 13px; color: var(--bd-muted); line-height: 1.5; }
.bd-news-card-body .bd-readmore { margin-top: auto; align-self: flex-start; }
.bd-news-owl {
    margin-top: 10px;
}
.bd-news-owl .owl-stage { display: flex; }
.bd-news-owl .owl-item { height: auto; display: flex; }
.bd-news-owl .bd-news-card { width: 100%; }
.bd-news-carousel-wrap { position: relative; }
.bd-news-carousel-wrap .customNavigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
.bd-news-carousel-wrap .customNavigation .prev,
.bd-news-carousel-wrap .customNavigation .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
}
.bd-news-carousel-wrap .customNavigation .prev { left: 0; right: auto; }
.bd-news-carousel-wrap .customNavigation .next { right: 0; left: auto; }
.bd-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid var(--bd-navy);
    padding: 5px 14px;
    border-radius: var(--bd-radius);
    transition: background .2s, color .2s;
}
.bd-readmore:hover { background: var(--bd-navy); color: #fff; }

/* ============================================================
   NEWS LISTING PAGE
   ============================================================ */
.bd-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.bd-news-head .page-title { margin: 0; }
.bd-news-head-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bd-news-head-toggle-label {
    font-size: 12px;
    color: #333333;
    white-space: nowrap;
}

/* Default (list) layout: full-width row cards */
.bd-news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
.bd-news-grid .bd-news-card { flex-direction: row; }
.bd-news-grid .bd-news-card-img { width: 320px; height: auto; min-height: 220px; }
.bd-news-grid .bd-news-card-title {
    font-size: 16px;
    -webkit-line-clamp: 2;
}
.bd-news-grid .bd-news-card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Grid mode (view-toggle) */
.bd-news-grid.is-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.bd-news-grid.is-grid .bd-news-card { flex-direction: column; }
.bd-news-grid.is-grid .bd-news-card-img { width: 100%; height: 220px; min-height: 0; }
.bd-news-grid.is-grid .bd-news-card-summary { display: none; }

@media (max-width: 767px) {
    .bd-news-grid,
    .bd-news-grid.is-grid {
        display: flex;
        flex-direction: column;
    }
    .bd-news-grid .bd-news-card,
    .bd-news-grid.is-grid .bd-news-card { flex-direction: column; }
    .bd-news-grid .bd-news-card-img,
    .bd-news-grid.is-grid .bd-news-card-img { width: 100%; height: 200px; min-height: 0; }
    .bd-news-grid.is-grid .bd-news-card-summary {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 12px;
    }
}

/* ============================================================
   NEWS DETAIL PAGE
   ============================================================ */
.bd-news-article-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--bd-radius);
    margin-bottom: 20px;
}
.bd-news-article-date {
    font-size: 13px;
    color: var(--bd-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.bd-news-article-body { font-size: 14px; line-height: 1.8; color: var(--bd-text); }
.bd-news-article-body p { margin-bottom: 14px; }
.bd-news-tags-share {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 24px 0;
}
.bd-news-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bd-news-tags-label { font-size: 12px; font-weight: 700; color: var(--bd-text); text-transform: uppercase; margin-right: 4px; }
.bd-news-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.bd-news-share-label { font-size: 12px; font-weight: 700; color: var(--bd-text); text-transform: uppercase; }
.bd-news-share-links { display: flex; align-items: center; gap: 14px; }
.bd-news-share-links a {
    display: flex; align-items: center; justify-content: center;
    color: #333333;
    transition: color .15s;
}
.bd-news-share-links a svg { width: 20px; height: 20px; }
.bd-news-share-links a:hover { color: var(--bd-red); }
.bd-news-nav {
    display: flex;
    border-top: 1px solid var(--bd-border);
    border-bottom: 1px solid var(--bd-border);
    margin: 24px 0;
}
.bd-news-nav-item {
    flex: 1;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
}
.bd-news-nav-item:hover { text-decoration: none; color: inherit; background: var(--bd-gray-bg); }
.bd-news-nav-item + .bd-news-nav-item { border-left: 1px solid var(--bd-border); }
.bd-news-nav-item.text-right { text-align: right; }
.bd-news-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--bd-muted);
    margin-bottom: 8px;
}
.bd-news-nav-title { font-size: 14px; font-weight: 600; color: var(--bd-text); }
@media (max-width: 575px) {
    .bd-news-nav { flex-direction: column; }
    .bd-news-nav-item + .bd-news-nav-item { border-left: none; border-top: 1px solid var(--bd-border); }
    .bd-news-nav-item.text-right { text-align: left; }
}
.bd-news-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 9px 18px;
    text-decoration: none;
    transition: all .15s;
}
.bd-news-back:hover { border-color: var(--bd-navy); color: var(--bd-navy); text-decoration: none; }

/* ============================================================
   HOMEPAGE — NEWSLETTER
   ============================================================ */
.bd-newsletter { padding: 48px 0; background: var(--bd-white); border: 1px solid var(--bd-border); }
.bd-newsletter .container { display: block; }
.bd-newsletter-top {
    width: 100%;
    border-bottom: 1px solid var(--bd-border);
    padding: 24px;
    margin-bottom: 24px;
}
.bd-newsletter-sub-row {
    display: flex;
    align-items: center;
    gap: 100px;
}
.bd-newsletter-sub-row .bd-newsletter-sub { margin-bottom: 0; }
.bd-newsletter-sub-row .subscribe-wrap { margin-left: 100px; }
.bd-newsletter-sub-row .subscribe-wrap .subscribe { font-weight: 700; font-size: 16px; }
.bd-newsletter-bottom { display: flex; align-items: center; gap: 16px; }
.bd-newsletter-title { font-size: 18px; font-weight: 700; margin-bottom: 30px; color: var(--bd-text); }
.bd-newsletter-sub { font-size: 13px; color: var(--bd-muted); margin-bottom: 0; }
.bd-social-text { font-size: 13px; color: var(--bd-muted); margin: 0; flex: 1; padding-left: 24px; }
.bd-social-links { display: flex; align-items: center; gap: 16px; }
.bd-social-links a {
    display: flex; align-items: center; justify-content: center;
    color: var(--bd-navy);
    text-decoration: none;
    transition: color .2s;
}
.bd-social-links a svg { height: 20px; width: auto; }
.bd-social-links a:hover { color: var(--bd-red); }

/* ============================================================
   FOOTER
   ============================================================ */
.bd-footer {
    background: #f5f5f5;
    color: var(--bd-text);
}
.bd-footer > .container {
    padding-top: 60px;
    border-left: 1px solid var(--bd-border);
    border-right: 1px solid var(--bd-border);
}
.bd-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.bd-footer-logo img { height: 48px; margin-bottom: 16px; }
.bd-footer-desc { font-size: 13px; color: #000; line-height: 1.6; margin-bottom: 16px; }
.bd-footer-contact { list-style: none; margin: 0; padding: 0; }
.bd-footer-contact li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: #000; margin-bottom: 8px;
}
.bd-footer-contact li svg { flex-shrink: 0; margin-top: 2px; }
.bd-footer-contact li a { color: #000; text-decoration: none; }
.bd-footer-contact li a:hover { color: var(--bd-navy); }
.bd-footer-links { list-style: none; margin: 0; padding: 0; }
.bd-footer-links li { margin-bottom: 8px; }
.bd-footer-links li a {
    font-size: 13px;
    color: #000;
    text-decoration: none;
    transition: color .2s;
}
.bd-footer-links li a:hover { color: var(--bd-navy); }

.bd-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--bd-border);
}
.bd-footer-copy { font-size: 12px; color: var(--bd-muted); }
.bd-footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bd-footer-accept {
    font-size: 12px;
    color: var(--bd-muted);
    white-space: nowrap;
    margin-right: 4px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .bd-category-grid { grid-template-columns: repeat(3, 1fr); }
    .bd-usp-grid { grid-template-columns: repeat(2, 1fr); }
    .bd-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .bd-promo-title { font-size: 28px; }
    .bd-nav-links li a { padding: 14px 10px; font-size: 11px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
    .bd-topbar { display: none; }
    .bd-header-middle .container { flex-wrap: wrap; gap: 10px; }
    .bd-search-form { order: 3; width: 100%; }
    .bd-header-nav { display: none; }
    .bd-category-grid { grid-template-columns: repeat(2, 1fr); }
    .bd-usp-grid { grid-template-columns: repeat(2, 1fr); }
    .bd-footer-grid { grid-template-columns: 1fr; }
    .bd-newsletter .container { flex-direction: column; gap: 24px; }
    /* .bd-newsletter-sub-row keeps its desktop flex row (gap:100px) plus a
       redundant 100px margin-left on .subscribe-wrap — combined that pushes
       the subscribe button off the right edge of the viewport below 767px,
       causing page-wide horizontal scroll. Stack it instead. */
    .bd-newsletter-sub-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .bd-newsletter-sub-row .subscribe-wrap { margin-left: 0; }
    .bd-promo-banner .container { flex-direction: column; text-align: center; }
    .bd-promo-img { display: none; }
    .bd-promo-title { font-size: 26px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.bd-text-red { color: var(--bd-red) !important; }
.bd-bg-gray { background: var(--bd-gray-bg); }

/* ============================================================
   MANUFACTURERS PAGE
   ============================================================ */
.bd-manufacturer-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 28px;
}
.bd-manufacturer-logo {
    width: 140px;
    flex-shrink: 0;
    object-fit: contain;
}
.bd-manufacturer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--bd-text);
    flex: 1;
}
.bd-manufacturer-category { margin-bottom: 24px; }
.bd-manufacturer-category-label {
    display: block;
    font-size: 13px;
    color: var(--bd-muted);
    margin-bottom: 8px;
}
.bd-manufacturer-category .bd-filter-select {
    width: 100%;
    max-width: 370px;
    background-color: var(--bd-gray-bg);
    padding: 10px 36px 10px 14px;
}
/* style.css puts asymmetric margins + clear/overflow on these (legacy
   float-grid spacing) that fight the flex grid below and throw off the
   equal-width/equal-height math. Spacing between cards is already handled by
   .product-layout's own margin-bottom and Bootstrap's column gutters. */
.product-thumb {
    margin-bottom: 0;
    overflow: visible;
}
.product-block {
    clear: none;
    overflow: visible;
    margin: 5px;
}
.product-grid .product-block {
    margin: 0;
}
.product-grid .product-thumb {
    margin-bottom: 0;
}

.bd-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-top: 50px;
    font-size: 12px;
    color: var(--bd-muted);
    flex-wrap: wrap;
    gap: 8px;
}
/* Manufacturers index only shows the page links, no item-count text alongside -
   center it instead of the default space-between (which left-aligns a lone child). */
#manufacturers .bd-pagination-bar { justify-content: center; }

/* Manufacturers index card grid */
.bd-manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.bd-manufacturer-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: var(--bd-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bd-gray-lt);
    transition: background .2s, box-shadow .2s;
    text-decoration: none;
    overflow: hidden;
    color: var(--bd-text);
    font-size: 20px;
    font-weight: 600;
}
.bd-manufacturer-card img {
    max-width: 70%;
    max-height: 70px;
    object-fit: contain;
}
.bd-manufacturer-card:hover {
    background: var(--bd-white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-decoration: none;
}
@media (max-width: 767px) {
    .bd-manufacturers-grid { grid-template-columns: repeat(2, 1fr); }
    .bd-manufacturer-header { flex-direction: column; }
    .bd-manufacturer-logo { width: 100%; max-width: 200px; }
}

/* ============================================================
   VIEWED PRODUCTS PAGE
   ============================================================ */
.bd-viewed-page-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.bd-viewed-page-head .page-title { margin: 0; }
.bd-viewed-page-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-muted);
    text-transform: uppercase;
}

/* ============================================================
   SUPPORT PAGE — ACCORDION
   ============================================================ */
.bd-support-group { margin-bottom: 28px; }
.bd-support-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bd-navy);
    display: inline-block;
}
.bd-accordion { display: flex; flex-direction: column; gap: 6px; }
.bd-accordion-item {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    overflow: hidden;
    background: #fff;
}
.bd-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.bd-accordion-toggle:hover { background: var(--bd-gray-bg); }
.bd-accordion-toggle[aria-expanded="true"] { color: var(--bd-navy); background: var(--bd-gray-bg); }
.bd-accordion-toggle .bd-accordion-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--bd-border);
    border-radius: 50%;
    font-size: 12px;
    color: var(--bd-muted);
    transition: transform .2s, background .2s, color .2s;
}
.bd-accordion-toggle[aria-expanded="true"] .bd-accordion-icon {
    background: var(--bd-navy);
    border-color: var(--bd-navy);
    color: #fff;
    transform: rotate(45deg);
}
.bd-accordion-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--bd-text);
    border-top: 1px solid var(--bd-border);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
#product-category-search {
    padding-top: 24px;
    padding-bottom: 48px;
}
.bd-search-bar {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background: #fff;
    overflow: hidden;
    margin-bottom: 20px;
    transition: border-color .2s;
}
.bd-search-bar:focus-within { border-color: var(--bd-navy); }
.bd-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--bd-text);
    background: transparent;
}
.bd-search-bar input::placeholder { color: #aaa; }
.bd-search-bar-icon { flex-shrink: 0; margin-left: 14px; color: var(--bd-muted); }
.bd-search-bar button {
    background: var(--bd-navy);
    border: none;
    color: #fff;
    padding: 0 18px;
    height: 42px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .2s;
    flex-shrink: 0;
}
.bd-search-bar button:hover { opacity: 0.88; }
.bd-manufacturers-search button {
    background: var(--bd-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 28px;
}
#searchHelper {
    position: absolute;
    width: 100%;
    z-index: 999;
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: 0 0 var(--bd-radius) var(--bd-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 2px;
    padding: 4px 0;
    left: 0;
}
#searchHelper li { list-style: none; }
#searchHelper li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--bd-text);
    text-decoration: none;
    transition: background .15s;
}
#searchHelper li a:hover { background: var(--bd-gray-bg); color: var(--bd-navy); }

/* ============================================================
   INFO / STATIC PAGES — LAYOUT
   ============================================================ */
.bd-info-page {
    padding-top: 24px;
    padding-bottom: 48px;
}
.bd-info-page h1 {
    text-transform: none !important;
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 20px;
}
.bd-info-page .description_menu {
    font-size: 14px;
    line-height: 1.8;
    color: var(--bd-text);
}

/* ============================================================
   SHOP PAGE — LAYOUT
   ============================================================ */
#product-category {
    padding-top: 24px;
    padding-bottom: 48px;
}

/* ============================================================
   SHOP PAGE — BREADCRUMBS & TITLE
   ============================================================ */
.breadcrumb {
    display: block;
    background: transparent;
    padding: 8px 0;
    margin: 0 0 12px;
    font-size: 13px;
    border-radius: 0;
    border: none;
    box-shadow: none;
}
.breadcrumb > li + li::before { color: var(--bd-muted); }
.breadcrumb a { color: var(--bd-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--bd-navy); }
.breadcrumb > .active { color: var(--bd-text); }

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 16px;
}

/* Category description + image */
.category_thumb { margin-bottom: 16px; }
.category_img img { border-radius: var(--bd-radius); border: 1px solid var(--bd-border); }
.category_description { font-size: 13px; color: var(--bd-muted); line-height: 1.7; }

/* Category children as pills */
.bd-cat-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.bd-cat-children a {
    display: inline-block;
    padding: 5px 14px;
    border: 1.5px solid var(--bd-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bd-text);
    text-decoration: none;
    transition: all .2s;
    max-width: 100%; /* long names wrap instead of overflowing on mobile */
}
.bd-cat-children a:hover {
    background: var(--bd-navy);
    border-color: var(--bd-navy);
    color: #fff;
}

/* ============================================================
   SHOP PAGE — SIDEBAR
   ============================================================ */
#left-block {
    margin-left: -15px;
    width: 23%;
}
#content {
    width: 77%;
}
/* If partials.left_side rendered nothing (no deals/tags/latest-news/info
   links to show), the <aside> itself isn't emitted at all - let #content
   take the full row instead of leaving a blank 23% gap. */
.row:not(:has(#left-block)) > #content {
    width: 100%;
}
/* Below 768px the sidebar is .hidden-xs — still in the DOM (so the :has()
   rule above doesn't fire) but not shown; give #content the full row. */
@media (max-width: 767px) {
    #content { width: 100%; }
}
.bd-sidebar-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.bd-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bd-navy);
    padding: 12px 16px;
    border-bottom: 1px solid var(--bd-border);
    background: var(--bd-gray-bg);
}
.bd-sidebar-body { padding: 14px 16px; }
.bd-checkbox-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 3px 0;
    padding-left: 0 !important;
    font-size: 13px;
    color: var(--bd-text);
    cursor: pointer;
    position: static !important;
}
.bd-checkbox-item input[type="checkbox"] {
    display: inline-block !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 15px !important; height: 15px !important;
    accent-color: var(--bd-navy);
    cursor: pointer;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.bd-filter-apply {
    width: 100%;
    background: var(--bd-navy);
    color: #fff;
    border: none;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--bd-radius);
    cursor: pointer;
    margin-top: 12px;
    transition: opacity .2s;
    letter-spacing: 0.3px;
}
.bd-filter-apply:hover { opacity: 0.88; }

/* Sidebar nav links */
.bd-sidebar-nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--bd-text);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all .15s;
}
.bd-sidebar-nav-link:hover { background: var(--bd-gray-bg); color: var(--bd-navy); text-decoration: none; }
.bd-sidebar-nav-link.active { border-left-color: var(--bd-navy); color: var(--bd-navy); font-weight: 600; background: var(--bd-gray-bg); }

/* Sidebar / page tag cloud */
.bd-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}
.bd-tag {
    display: inline-block;
    background: var(--bd-gray-bg);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--bd-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
.bd-tag:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; text-decoration: none; }
.bd-tag.active { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; }

/* "Flat" sidebar card variant — matches Barry_design/tags.jpg: the card sits
   directly on the page's gray background (no white card box / header bar) and
   its title is plain bold black text. Used by the tag cloud (Тэги) and the
   latest-news list (Последние новости). Tag chips specifically render as
   white rounded boxes sized to their own text. */
.bd-flat-card {
    background: #F5F5F5;
    border: none;
}
.bd-flat-card .bd-sidebar-title {
    background: transparent;
    border-bottom: none;
    color: #000;
    padding: 16px 16px 12px;
}
.bd-flat-card .bd-tag-cloud {
    padding: 0 10px 10px;
}
.bd-flat-card .bd-tag {
    background: #fff;
    border: none;
    border-radius: 3px;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
}
.bd-flat-card .bd-tag:hover,
.bd-flat-card .bd-tag.active { background: var(--bd-navy); color: #fff; }

/* Per-card / article tag badge */
.bd-tag-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bd-gray-bg);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--bd-muted);
}
.bd-news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bd-news-card-meta .bd-news-card-date { margin-bottom: 0; }

/* Sidebar latest-news widget */
.bd-sidebar-news-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; }
.bd-sidebar-news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.bd-sidebar-news-item:hover { text-decoration: none; color: inherit; }
.bd-sidebar-news-item:hover .bd-sidebar-news-title { color: var(--bd-navy); }
.bd-sidebar-news-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--bd-radius);
}
.bd-sidebar-news-body { display: flex; flex-direction: column; min-width: 0; }
.bd-sidebar-news-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bd-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.bd-sidebar-news-date { font-size: 11px; color: var(--bd-muted); margin-top: 4px; }

/* Sidebar deals box */
.bd-sidebar-card .box-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bd-navy);
    padding: 12px 16px;
    border-bottom: 1px solid var(--bd-border);
    background: var(--bd-gray-bg);
}

/* ============================================================
   SHOP PAGE — FILTER BAR
   ============================================================ */
.bd-shop-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bd-gray-bg);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bd-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bd-filter-divider {
    width: 1px;
    height: 20px;
    background: var(--bd-border);
    flex-shrink: 0;
}
.bd-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--bd-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.bd-filter-select {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 5px 36px 5px 10px;
    font-size: 13px;
    color: var(--bd-text) !important;
    background: #fff;
    background-image: url("../images/icons/icon_arrow.svg") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 10px) center !important;
    background-size: 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: auto !important;
    max-width: 200px !important;
    height: auto !important;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.bd-filter-select:focus { border-color: var(--bd-navy); }
.bd-view-toggle {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.bd-view-btn {
    width: 20px; height: 20px;
    display: flex; justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #333333;
    transition: color .2s;
    padding: 0;
}
.bd-view-btn svg { width: 17px; height: 20px; }
.bd-view-btn.active,
.bd-view-btn:hover {
    background: transparent;
    color: var(--bd-red);
}

/* ============================================================
   SHOP PAGE — PRODUCT CARD
   ============================================================ */
.product-layout { margin: 5px; }
/* List-view-only elements (product code, brand logo, "has video" link, the
   add-to-cart button's text label) — hidden here, shown under
   #products-layout.product-list in the SHOP — PRODUCT GRID section below. */
.product-layout .bd-list-code,
.product-layout .bd-list-brand,
.product-layout .bd-list-video,
.product-layout .bd-list-btn-text {
    display: none;
}
/* style.css puts a border + padding:0 directly on this grid-cell wrapper
   (legacy, pre-redesign); .product-block-inner below already has its own
   proper card border, so the border here just doubles it up, and zeroing
   the padding collapses Bootstrap's own column gutter (15px each side),
   which is what actually keeps adjacent cards apart. */
.product-grid .product-layout,
.product-list .product-layout,
.product-list .product-layout:first-child {
    /* :first-child also beats compiled-app.min.css's leftover
       ".product-list .product-layout:first-child { border }" rule. */
    border: none;
}

/* Flexbox row so every card in a row stretches to match its tallest
   row-mate — plain floats (what Bootstrap's col-* classes use on their own)
   don't do this. flex-wrap also replaces the old float+nth-child(3n+1)/(2n+1)
   clearfix (style.css) for row-wrapping, so this works regardless of how
   many columns a given page uses (3-per-row on /shop, /rental,
   /manufacturers/{partner}'s col-sm-9 content area; 4-per-row on the
   sidebar-less /shop/viewed-products — see canonical-product-card memory).
   Scoped to .product-grid only — #products-layout.product-list (the list
   view toggle) keeps its own full-width-row float layout untouched. */
.product-grid .cat_prod {
    display: flex;
    flex-wrap: wrap;
}
/* jscroll (js/jquery.jscroll.min.js, driving /shop and /rental's
   "infinite-scroll" pagination — see js/listGrid.js) wraps .cat_prod's
   actual content in an extra <div class="jscroll-inner"> right after init,
   so .product-layout stops being a direct child of .cat_prod — meaning
   .cat_prod's display:flex above only turns .jscroll-inner itself into a
   (single-item) flex box, and every .product-layout inside it falls back to
   plain floats, losing the equal-height stretch. Give .jscroll-inner the
   same flex treatment so it doesn't matter which element ends up being the
   direct parent. Harmless where jscroll never runs (e.g. no .infinite-scroll
   class present, like /shop/viewed-products) since this selector simply
   never matches there. */
.product-grid .cat_prod .jscroll-inner {
    display: flex;
    flex-wrap: wrap;
    /* Without an explicit width, a flex item shrinks-to-fit its own content
       instead of filling .cat_prod. With many cards, the content's max-content
       width exceeds .cat_prod's available width, so the shrink-to-fit result
       gets clamped at 100% anyway (looks correct by accident). With just one
       card (e.g. a deal filter with a single match), the max-content width is
       just that one small card — .jscroll-inner shrinks down to it, and every
       .product-layout's percentage width then resolves against that shrunken
       box instead of the real row width, producing a tiny, mis-sized card. */
    width: 100%;
}
.product-grid .cat_prod .product-layout {
    display: flex;
    flex-shrink: 0; /* don't let flex squeeze cards narrower than their column width */
}
/* .product-layout has a 5px margin on every side (see above) — that's on
   top of Bootstrap's own col-* width, so N cards per row would sum to
   N × (column-width + 10px) and overflow past 100%, wrapping a card early.
   Subtract that 10px back out of the width so N-per-row still sums to
   exactly 100%, matching whichever col-* class each page uses (col-*-4 =
   3-per-row on /shop, /rental, /manufacturers/{partner}; col-*-3 = 4-per-row
   on /shop/viewed-products — see canonical-product-card memory). Bootstrap's
   own col-xs-6 (2-per-row on every page below 768px) needs the same
   treatment, just once since it's shared by both column counts. */
@media (min-width: 768px) {
    .product-grid .cat_prod .product-layout.col-sm-4,
    .product-grid .cat_prod .product-layout.col-md-4,
    .product-grid .cat_prod .product-layout.col-lg-4 {
        width: calc(33.3333% - 10px);
    }
    .product-grid .cat_prod .product-layout.col-sm-3,
    .product-grid .cat_prod .product-layout.col-md-3,
    .product-grid .cat_prod .product-layout.col-lg-3 {
        width: calc(25% - 10px);
    }
}
@media (max-width: 767px) {
    .product-grid .cat_prod .product-layout.col-xs-6 {
        width: calc(50% - 10px);
    }
}
.product-grid .cat_prod .product-layout .product-block {
    width: 100%;
}

.product-layout .product-block { height: 100%; }

.product-layout .product-block-inner {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: none;
    position: relative;
}
.product-layout .product-block-inner:hover {
    border: 1px solid var(--bd-border);
    box-shadow: 0 3px 12px rgba(0,0,0,0.09);
    border-color: transparent;
}

/* Image area */
.product-layout .image-content { flex-shrink: 0; }
.product-layout .image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-layout .image a.quick_view_hov {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(28, 55, 117, 0.88);
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    padding: 9px;
    transform: translateY(100%);
    transition: transform .22s ease;
    z-index: 3;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
}
.product-layout .product-block-inner:hover .image a.quick_view_hov {
    transform: translateY(0);
}
.product-layout .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
    padding: 10px;
}
.product-layout .image .hover-image {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity .35s ease;
}
.product-layout .product-block-inner:hover .image .hover-image { opacity: 1; }

/* Badges — .bd-card-badges holds the "Новинка"/"Хит" deal tags (see
   Product::deals / Deal::SLUG_NEW / Deal::SLUG_HIT) plus the sale ribbon,
   stacked top-left so any combination wraps instead of overlapping. */
.product-layout .bd-card-badges {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    /* Wider than a typical gap: each tag's arrow point (see .bd-deal-tag
       below) is an absolutely-positioned pseudo-element that pokes ~6.5px
       past its own box's layout edge without that box's flex.gap noticing —
       too small a gap here lets the next tag's box visually overlap the
       previous tag's point. */
    gap: 15px;
    max-width: calc(100% - 16px);
}
/* Per Barry_design/Каталог - товара подраздела разворот 1366.jpg: the tag's
   right edge comes to a single point (arrow/ribbon shape) instead of a
   square corner. A first attempt used clip-path to cut the box into a
   pentagon — that only MASKS what's already painted; border is only ever
   actually drawn along the box's 4 original straight edges, so the
   "diagonal" edges clip-path exposes have no border color on them at all
   (visible as missing/blank side borders on the point in real Chrome, not
   just a headless-screenshot artifact). A second attempt used a 45°-rotated
   square (its own top+right border kept) — real bordered lines, but a
   rotated rectangle's corner is always exactly 90° no matter the rotation
   angle, so the tip angle wasn't adjustable. Two independent line segments
   (this version) can meet at any angle: each pivots around the SAME point
   (the tip, offset past the box's edge) via transform-origin at its own
   right end, so rotating them ±60° from horizontal gives a 120° tip
   (interior angle = 2x the rotation) instead of the previous 90°. */
/* Unscoped (not ".product-layout .bd-deal-tag") on purpose: this "arrow tag"
   is now also used standalone on the product detail page's .bd-pd-badges
   (Barry_design/карточка и каталог/карточка новая с параметрами), which
   isn't a .product-layout card — scoping it there would have silently
   dropped all of this styling in that context, the same trap noted
   elsewhere in this file for .bd-list-brand/.bd-cart-slot. */
.bd-deal-tag {
    position: relative;
    display: inline-block;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 12px 2px 8px;
    letter-spacing: 0.3px;
    line-height: 1.6;
    border: 1px solid;
    border-right: none;
    white-space: nowrap;
}
.bd-deal-tag::before,
.bd-deal-tag::after {
    content: "";
    position: absolute;
    top: 48%;
    right: -6.5px;
    width: 12px;
    height: 0;
    border-top: 1px solid;
    border-color: inherit;
    transform-origin: 100% 50%;
}
.bd-deal-tag::before { transform: rotate(-60deg); }
.bd-deal-tag::after { transform: rotate(60deg); }
.bd-deal-tag--new { color: var(--bd-navy); border-color: var(--bd-navy); }
.bd-deal-tag--hit { color: var(--bd-red); border-color: var(--bd-red); }
/* Hide the "Новинка"/"Хит" deal tags in carousels (recently-viewed strip,
   homepage deal carousels, product-page related-products carousel) — grid
   pages keep them. The old .saleicon "sale" text ribbon was dropped from the
   card entirely; .percentsaving is the only sale indicator now. */
.product-carousel .bd-deal-tag { display: none; }
/* Discount % — a small bordered badge, same slot/width as the add-to-cart
   button in .button-group below. Base (mobile/touch, no hover) layout: sits
   in normal flow, stacked above .addtocart. On a real desktop pointer the
   @media (hover:hover) block below repositions it to exactly overlap the
   button and swaps their visibility on hover instead. */
.product-layout .percentsaving {
    /* style.css's .product-thumb .percentsaving (still matches — .product-thumb
       is still the card's outer class) sets its own position/background/etc.;
       CSS cascades per-property, not per-rule, so anything not reset here
       falls through to that old rule even though this one is more recent. */
    position: static;
    float: none;
    text-transform: none;
    letter-spacing: normal;
    opacity: 1;

    box-sizing: border-box; /* so padding/border don't add to width/height beyond the desktop @media (hover:hover) block's inset:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; /* matches .addtocart's width below it */
    padding: 3px 0 !important;
    border: 1px solid var(--bd-red);
    border-radius: var(--bd-radius);
    background: #fff;
    color: var(--bd-red);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}
.product-layout .percentsaving:before {
    content: none; /* cancel style.css's little triangle pointer */
}

/* Product details */
.product-layout .product-details {
    padding: 12px 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-layout .caption { flex: 1; }
.product-layout .caption h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.product-layout .caption h4 a {
    color: var(--bd-text);
    text-decoration: none;
    transition: color .2s;
}
.product-layout .caption h4 a:hover { color: var(--bd-navy); }

.product-layout .desc-di { margin-top: 6px; }
.product-layout .characteristic {
    list-style: none;
    margin: 0; padding: 0;
    font-size: 11px;
    color: var(--bd-muted);
    line-height: 1.7;
}
.product-layout .characteristic li { background: #ffffff !important;}
.product-layout .characteristic li b { color: var(--bd-text); font-weight: 600; }

/* Actions */
.product-layout .product-actions {
    padding: 8px 12px 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-layout .price {
    margin: 0;
    font-size: 25px !important;
    font-weight: 700;
    color: var(--bd-text);
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    flex-shrink: 0;
}
.product-layout .price .price-new {
    font-size: 25px;
    font-weight: 700;
    color: var(--bd-red);
}
.product-layout .price .price-old {
    font-size: 15px;
    color: var(--bd-muted);
    text-decoration: line-through;
    font-weight: 400;
}
.product-layout .price .from {
    font-size: 11px;
    color: var(--bd-muted);
    font-weight: 600;
}
.product-layout .button-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 0 !important;
}
/* .wishlist/.compare (below) are position:absolute, positioned relative to
   .product-block-inner (the whole card) — NOT to .button-group or this slot.
   Keep it that way: giving .button-group itself position:relative once made
   it the new containing block for those two, so they landed at their
   top:37px/70px offset from this tiny slot instead of the card, ending up
   nowhere near the image where they belong. .bd-cart-slot exists so the
   percentsaving/addtocart positioning context below is scoped to just this
   inner wrapper. */
.product-layout .bd-cart-slot {
    display: flex;
    /* Touch/no-hover default: stack .percentsaving above .addtocart (both
       always visible, nothing to swap on). A real desktop pointer overrides
       this to position:relative + absolute-overlaps them instead — see the
       @media (hover:hover) block below .addtocart. */
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.product-layout .addtocart.btn.btn-primary {
    flex: none;
    transition: opacity .2s;
    background: #E53945 !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--bd-radius) !important;
    padding: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0.3px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px; /* explicit so .percentsaving (below) can match it exactly on desktop hover-swap — was an emergent/implicit value before */
}
/* Hide-until-hover only where hover is a real, mouse-driven affordance
   (desktop). Per Barry_design/Виды карточек товара.jpg, tablet/mobile (no
   real hover) always show the button — and :hover-gated pointer-events:none
   would otherwise make it untappable on touch devices, not just invisible.
   Desktop: .percentsaving and .addtocart swap in the exact same slot —
   the discount badge shows by default and hides on hover, the cart button
   is the reverse, so hovering the card reveals "add to cart" where the sale
   badge was (matches Barry_design's Desktop Normal/Hover states). Touch has
   no hover to swap on, so there .percentsaving stays in normal flow, stacked
   above the always-visible .addtocart (see .button-group below) instead of
   overlapping it. */
@media (hover: hover) and (pointer: fine) {
    .product-layout .bd-cart-slot { position: relative; }
    .product-layout .percentsaving {
        position: absolute;
        top: 0;
        left: 0;
        height: 40px; /* matches .addtocart's explicit height above — inset:0
                          measured 3px taller than .addtocart's own height here
                          (an unexplained .button-group auto-height quirk under
                          flex-direction:column), so pin both explicitly instead
                          of trusting stretch-to-container sizing */
        margin: 0;
        opacity: 1;
        pointer-events: none; /* never blocks the .addtocart click target beneath it */
    }
    .product-layout .addtocart.btn.btn-primary {
        opacity: 0;
        pointer-events: none;
    }
    .product-layout .product-block-inner:hover .percentsaving {
        opacity: 0 !important;
    }
    .product-layout .product-block-inner:hover .addtocart.btn.btn-primary {
        opacity: 1 !important;
        pointer-events: all !important;
    }
}
.product-layout .addtocart.btn.btn-primary:hover { opacity: 0.88; }
/* Grey/disabled ("not available") state — just recolors the button; it
   should reveal on hover exactly like the red enabled one (that's the
   @media (hover:hover) block above), not stay permanently visible. A
   native disabled <button> already ignores clicks/taps regardless of CSS,
   so it's safe to let it follow the same opacity/pointer-events cycle. */
.product-layout .addtocart.btn.btn-primary[disabled] {
    background: var(--bd-gray-lt) !important;
    color: var(--bd-muted) !important;
    cursor: not-allowed;
}
.product-layout .addtocart .shopping-cart {
    display: inline-block;
    width: 15px; height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 001.99 1.61h9.72a2 2 0 001.99-1.61L23 6H6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* Wishlist & compare — float to top-right of card */
.product-layout .button-group .wishlist,
.product-layout .button-group .compare {
    position: absolute !important;
    right: 8px;
    width: 26px !important; height: 26px !important;
    border: none !important;
    background-color: transparent !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: background .2s, border-color .2s;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: 4;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
}
.product-layout .button-group .wishlist {
    top: 37px;
    margin-right: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E") !important;
}
.product-layout .button-group .compare {
    top: 70px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") !important;
}
.product-layout .button-group .wishlist:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23E53945' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E") !important;
}
.product-layout .button-group .compare:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23E53945' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") !important;
}

/* Compare total bar */
.compare-total { font-size: 12px; color: var(--bd-muted); }

/* Compact grid card, per the "Mobile" variant in the mockup — smaller type
   and controls so a 2-per-row (col-xs-6) card doesn't feel cramped. */
@media (max-width: 767px) {
    .product-layout .product-details { padding: 8px 8px 0; }
    .product-layout .caption h4 { font-size: 12px; }
    .product-layout .characteristic { font-size: 10px; }
    .product-layout .product-actions { padding: 6px 8px 8px; }
    .product-layout .price,
    .product-layout .price .price-new { font-size: 18px !important; }
    .product-layout .price .price-old { font-size: 11px; }
    .product-layout .price .from { font-size: 10px; }
    .product-layout .addtocart.btn.btn-primary { width: 34px; padding: 6px !important; }
    .product-layout .addtocart .shopping-cart { width: 12px; height: 12px; }
    .product-layout .button-group .wishlist,
    .product-layout .button-group .compare {
        width: 22px !important; height: 22px !important;
        background-size: 16px !important;
    }
    .product-layout .button-group .wishlist { top: 30px; }
    .product-layout .button-group .compare { top: 56px; }
    .bd-deal-tag { font-size: 9px; padding: 1px 11px 1px 6px; }
    .product-layout .percentsaving { width: 34px; font-size: 10px; padding: 2px 0 !important; }
}

/* style.css has two pre-redesign rules that were blanket-hiding parts of
   this card inside the /shop left sidebar:
     #left-block .wishlist, .compare, .percentsaving, .sale, .price-tax,
       .quickview-button, .rating, div.image .button-group { display:none!important }
     #left-block .box .product-thumb .product-actions .button-group { display:none }
   — the second one is the one that actually mattered: it hides the whole
   .button-group (so .wishlist/.compare still "have" display:flex per their
   own rule, but their zero-size *parent* means getBoundingClientRect comes
   back all-zero regardless — computed style alone doesn't catch this, has
   to be checked against actual layout). Now that the sidebar "deals" widget
   (partials/left/deals.blade.php) uses this same .product-layout card, undo
   both — matching ID + more classes beats the old rules' specificity. */
#left-block .product-layout .button-group {
    display: flex !important;
}
#left-block .product-layout .wishlist,
#left-block .product-layout .compare,
#left-block .product-layout .percentsaving {
    display: flex !important;
}
/* The reverse problem, found while adding the list-view add-to-cart text
   label: style.css's `#left-block .product-thumb .button-group button span
   { display: block !important; }` forces .bd-list-btn-text visible here
   even though it's meant to stay hidden outside list view (see the base
   .product-layout .bd-list-btn-text rule). Both rules are !important, so it
   comes down to raw specificity — that old rule counts 2 *type* selectors
   (button, span) that a plain "#left-block .product-layout .bd-list-btn-text"
   doesn't, putting it ahead despite fewer classes; matching its own
   button/span types here (redundantly, since .bd-list-btn-text is already
   only ever a span inside .addtocart) pushes this rule's specificity clearly
   past it instead of relying on source order to break a tie. This sidebar
   widget never participates in the grid/list toggle, so it should always
   look like the icon-only grid button. */
#left-block .product-layout button.addtocart span.bd-list-btn-text {
    display: none !important;
}

/* ============================================================
   SHOP — PRODUCT GRID
   ============================================================ */
#products-layout.product-list .product-layout {
    width: 100% !important;
    float: none !important;
}
/* Per Barry_design/Каталог - товара подраздела разворот 1366.jpg: content
   (code/brand, title, specs, price+actions) in a left column, image in a
   fixed-width right column spanning/centered across that column's full
   height — the opposite of grid's image-on-top stack. CSS Grid (not flex)
   because .product-details and .product-actions are separate DOM siblings
   that both need to land in the SAME left column while .image-content spans
   both their rows in the right column; a single flex row can't do that
   without wrapping them in an element that doesn't exist in the shared
   partial. Extra top padding clears .bd-card-badges/.bd-list-video, which
   are direct children of this element (position:absolute, so they sit
   outside the grid instead of consuming a cell) spanning the full card
   width above everything else. */
#products-layout.product-list .product-layout .product-block-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-areas:
        "details image"
        "actions image";
    column-gap: 24px;
    row-gap: 16px;
    align-items: start;
    padding: 40px 24px 24px;
}
#products-layout.product-list .product-layout .bd-card-badges {
    top: 16px;
    left: 20px;
}
/* "Товар с видео" — list view only (hidden in grid below), top-right of the
   whole card, mirroring .bd-card-badges top-left. */
#products-layout.product-list .product-layout .bd-list-video {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 12px;
    color: var(--bd-muted);
    text-decoration: none;
}
#products-layout.product-list .product-layout .bd-list-video:hover { color: var(--bd-navy); }

#products-layout.product-list .product-layout .image-content {
    grid-area: image;
    align-self: center;
    width: 100%;
}
#products-layout.product-list .product-layout .image {
    aspect-ratio: auto;
    height: 220px;
    /* style.css floats .image (its own pre-redesign grid layout); with no
       explicit height/clearfix that leaves for .image-content, a float
       doesn't count toward its parent's own auto-height. */
    float: none;
}

/* Left column, row 1: product code + brand logo on one line (grid so the
   logo can sit top-right without depending on DOM order — it comes after
   the title in markup), title full-width below, then a 2-column spec list
   with a divider rule between columns (single column, no rule, in grid). */
#products-layout.product-list .product-layout .product-details {
    grid-area: details;
    /* style.css's old pre-redesign list-view rule (#content .product-list
       .product-block-inner .product-details { width:50%; float:left; })
       still matches this element. float is inert on a grid item, but the
       explicit width:50% isn't — it resolves against this grid area's own
       width (50% of the 530px-ish "details" column here), and since this
       rule never declared its own width, nothing overrode it. Explicit
       100% beats it outright rather than relying on grid's implicit stretch,
       which only kicks in when width stays auto. */
    width: 100%;
    float: none;
    padding: 0;
}
#products-layout.product-list .product-layout .caption {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
}
#products-layout.product-list .product-layout .bd-list-code {
    display: block;
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
    color: var(--bd-muted);
    margin: 0 0 6px;
}
#products-layout.product-list .product-layout .bd-list-brand {
    /* Base (grid-mode) rule is display:none (list-view-only element) —
       same trap as .bd-cart-slot's flex-direction above: overriding layout
       properties here without re-declaring display left it hidden. */
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-navy);
    text-decoration: none;
    white-space: nowrap;
}
#products-layout.product-list .product-layout .bd-list-brand:hover {
    text-decoration: underline;
}
#products-layout.product-list .product-layout .caption h4 {
    grid-column: 1 / -1;
    grid-row: 2;
}
#products-layout.product-list .product-layout .desc-di {
    grid-column: 1 / -1;
    grid-row: 3;
}
#products-layout.product-list .product-layout .characteristic {
    column-count: 2;
    column-gap: 24px;
    column-rule: 1px solid var(--bd-border);
}

/* Left column, row 2: price (+ discount badge) then add-to-cart / wishlist /
   compare, all in one row — no more separate right-hand column. */
#products-layout.product-list .product-layout .product-actions {
    grid-area: actions;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin-top: 0;
    position: static;
    gap: 20px;
}
#products-layout.product-list .product-layout .price {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
}
/* .percentsaving is normally a flex child of .bd-cart-slot that overlaps
   .addtocart on desktop hover (see the SHOP PAGE — PRODUCT CARD section) —
   that swap is a grid-only affordance. In list view it's its own
   always-visible bordered badge sitting inline between the price and the
   add-to-cart button, and .bd-cart-slot/.addtocart go back to being plain,
   always-on, in-flow elements. */
#products-layout.product-list .product-layout .bd-cart-slot {
    position: static !important;
    display: flex;
    /* Base (grid-mode) rule sets flex-direction:column for the touch/no-hover
       stacked badge-above-button state — this cascades through untouched
       unless re-declared here, which was stacking the badge above the
       button in list view instead of beside it. */
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
#products-layout.product-list .product-layout .percentsaving {
    position: static !important;
    width: auto !important;
    height: 40px !important; /* match .addtocart's height in this row (also 40px, via 10px/18px padding) */
    padding: 0 10px !important;
    opacity: 1 !important;
}
#products-layout.product-list .product-layout .button-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    justify-content: flex-start;
    padding: 0 !important;
}
#products-layout.product-list .product-layout .addtocart.btn.btn-primary {
    opacity: 1 !important;
    pointer-events: all !important;
    display: flex !important;
    width: auto !important;
    min-width: 150px;
    padding: 10px 18px !important;
    gap: 8px;
    margin-bottom: 0 !important;
}
#products-layout.product-list .product-layout .addtocart .shopping-cart {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 001.99 1.61h9.72a2 2 0 001.99-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: contain !important;
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}
#products-layout.product-list .product-layout .bd-list-btn-text {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
/* Wishlist/compare are inline icon buttons at the end of the action row now
   (mockup), not absolutely positioned in a corner like the grid card. The
   base ".product-layout .button-group .wishlist/.compare" rule marks
   position/background-color/etc "!important" (it's fighting style.css
   there) — matching !important here is required, higher specificity alone
   doesn't win against that. */
#products-layout.product-list .product-layout .button-group .wishlist,
#products-layout.product-list .product-layout .button-group .compare {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 22px !important;
    height: 22px !important;
    background-size: 20px !important;
    flex-shrink: 0;
}

/* List view on mobile: the desktop grid above is a fixed 2-column layout
   (flexible left column + a 280px image column) — on a narrow phone screen
   that arithmetic goes negative (found as a real bug on the previous
   flex-based layout: product names rendering one character per line).
   Below 768px, stack everything vertically instead — effectively the same
   shape as the grid card. */
@media (max-width: 767px) {
    #products-layout.product-list .product-layout .product-block-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 36px 12px 12px;
        row-gap: 0;
    }
    #products-layout.product-list .product-layout .bd-card-badges {
        left: 12px;
    }
    #products-layout.product-list .product-layout .bd-list-video {
        right: 12px;
    }
    #products-layout.product-list .product-layout .image-content {
        width: 100%;
    }
    #products-layout.product-list .product-layout .image {
        aspect-ratio: 1 / 1;
        height: auto;
    }
    #products-layout.product-list .product-layout .product-details {
        padding: 12px 0 0;
    }
    #products-layout.product-list .product-layout .product-actions {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 12px;
        gap: 10px;
    }
    #products-layout.product-list .product-layout .button-group {
        width: 100%;
    }
    #products-layout.product-list .product-layout .addtocart.btn.btn-primary {
        width: 100%;
    }
}

/* ============================================================
   PRODUCT DETAIL PAGE — LAYOUT
   ============================================================ */
#product-category-show {
    padding-top: 24px;
    padding-bottom: 48px;
}
.bd-product-detail-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}
@media (max-width: 767px) {
    .bd-product-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.bd-contact-intro { color: var(--bd-muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.bd-contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.bd-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 40px;
}
.bd-contact-info-item:first-child { padding-left: 0; }
.bd-contact-info-item + .bd-contact-info-item { border-left: 1px solid var(--bd-border); }
.bd-contact-info-item svg { color: var(--bd-navy); flex-shrink: 0; margin-top: 2px; }
.bd-contact-info-label { font-size: 12px; color: var(--bd-muted); margin-bottom: 4px; }
.bd-contact-info-item a { font-size: 15px; font-weight: 700; color: var(--bd-text); text-decoration: none; }
.bd-contact-info-item a:hover { color: var(--bd-navy); }

@media (max-width: 767px) {
    .bd-contact-info-row { flex-direction: column; gap: 16px; }
    .bd-contact-info-item { padding: 0; border-left: none !important; }
}
.productpage { padding: 0; }

h1.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 10px;
    line-height: 1.3;
}

/* ============================================================
   PRODUCT DETAIL PAGE — IMAGE GALLERY
   ============================================================ */
.product-image.thumbnails {
    padding: 12px;
    background: #fff;
}
.item-block.item-image-pic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    margin: 0 auto 10px;
    width: 85%;
    border: 1px solid #eeeeee;
}
.item-block.item-image-pic img.xzoom {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--bd-radius);
}
/* .xzoom-thumbs itself is wider than a single 74px thumbnail (style.css
   sizes it to 15% of the gallery row), so without centering, the ul's
   thumbnail grid and the prev/next buttons below/above it were flush to
   the container's left edge instead of centered within it. */
.xzoom-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* style.css's own max-height:360px caps the whole column (both buttons
       + the 328px-tall thumbnail list below), so as a flex container it was
       shrinking the list back down below its own max-height to fit — 328px
       list + 40px per button (32px content incl. padding + 8px margin)
       needs 408px; measured buttons at 32px tall, not the 24px assumed on
       a first pass, so bumped past that too. */
    max-height: 410px;
}
.xzoom-thumbs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0; padding: 0;
    /* style.css's max-height:320px fits only ~3.9 thumbnails (each 74px +
       8px margin-bottom = 82px), so a 4th/5th image peeked in half-cut
       before the scrollbar kicked in. 4 full rows = 4*82 = 328px. */
    max-height: 328px;
}
.xzoom-thumbs ul li a {
    display: block;
    border-radius: var(--bd-radius);
    overflow: hidden;
    transition: border-color .2s;
}
.xzoom-thumbs ul li a:hover,
.xzoom-thumbs ul li a.xactive { border-color: var(--bd-navy); }
/* plugins/easyzoom/xzoom.min.css (the xzoom plugin's own default CSS,
   loaded after our stylesheets via @section('page_styles')) ships
   ".xzoom-gallery{margin-left:5px}" — that lone left margin, with no
   matching right margin, is exactly what was throwing off centering here.
   style.css already tries to cancel it (margin-left:initial on the same
   .xzoom-gallery class) but loses the tie since the plugin CSS loads
   later; this selector is more specific so it wins regardless of order. */
.xzoom-thumbs ul li img { display: block; width: 74px; height: 74px; object-fit: cover; margin-left: 0; margin-bottom: 8px !important;}

/* Sized to match the 74px thumbnail column (.xzoom-thumbs ul li img) instead
   of shrink-wrapping to the chevron icon's own content width, which made
   .next-btn render narrower than the thumbnails above it. */
.xzoom-thumbs .next-btn,
.xzoom-thumbs .prev-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    background: var(--bd-navy);
    border: none;
    color: #fff;
    padding: 10px 0;
    border-radius: var(--bd-radius);
    font-size: 12px;
    cursor: pointer;
    transition: opacity .2s;
}
.xzoom-thumbs .prev-btn { margin-bottom: 8px; }
.xzoom-thumbs .next-btn { margin-top: 8px; }
.xzoom-thumbs .next-btn:hover,
.xzoom-thumbs .prev-btn:hover { opacity: 0.88; }
/* style.css already hides both buttons below 768px (the thumbnail row goes
   horizontal there — .xzoom-thumbs ul{display:flex} in its own mobile
   block — so up/down chevrons make no sense), but this file's unconditional
   display:flex above is equal specificity and loads later, so it won the
   cascade and un-hid them on mobile. Restore the hide explicitly here
   rather than relying on style.css's copy. */
@media (max-width: 767px) {
    .xzoom-thumbs .next-btn,
    .xzoom-thumbs .prev-btn {
        display: none;
    }
}

/* ============================================================
   PRODUCT DETAIL PAGE — RIGHT PANEL
   ============================================================ */
.product-right {
    padding-left: 28px;
}

/* Brand link */
.bd-pd-brand {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--bd-navy);
    text-decoration: none;
    margin-bottom: 16px;
}
.bd-pd-brand:hover { text-decoration: underline; }

/* Spec preview — per Barry_design/Group 1323.jpg "характеристики товара":
   a single-column list with a dotted leader line filling the gap between
   label and value (not the previous 2-column plain-pairs layout), plus a
   "больше характеристик" link down to the full spec tab. */
.bd-pd-specs {
    margin-left: 110px;
    padding-bottom: 20px;
    padding-right: 20px;
    border-right: 1px solid var(--bd-border);
    width: 82%;
}
@media (max-width: 767px) {
    /* The 110px indent aligns this block beside the desktop thumbnail
       column — on mobile the thumbnails are a horizontal row above this
       block instead, and with no override here the fixed indent pushed
       the block's content past the right edge of the screen (cut-off
       values, e.g. "220" reading as "22"). Full width, no indent. */
    .bd-pd-specs {
        margin-left: 0;
        padding-right: 0;
        border-right: none;
        width: 100%;
    }
}
.bd-pd-specs-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--bd-text);
}
.bd-pd-specs ul {
    list-style: none;
    margin: 0; padding: 0;
}
.bd-pd-specs li {
    display: flex;
    align-items: flex-end;
    font-size: 13px;
    color: var(--bd-muted);
    margin-bottom: 10px;
}
.bd-pd-specs li:last-child { margin-bottom: 0; }
.bd-pd-spec-label { white-space: nowrap; }
.bd-pd-spec-fill {
    flex: 1;
    min-width: 12px;
    margin: 0 6px 4px;
    border-bottom: 1px dotted var(--bd-border);
}
.bd-pd-spec-value {
    flex-shrink: 0;
    max-width: 55%;
    text-align: right;
    color: var(--bd-text);
    font-weight: 600;
}
.bd-pd-specs-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--bd-navy);
    text-decoration: none;
}
.bd-pd-specs-more:hover { text-decoration: underline; }

/* Deal badges — same .bd-deal-tag arrow-tag component as the product card
   (see canonical-product-card memory), plus a sale-percent variant for the
   "-25%" tag shown alongside Новинка/Хит here. */
.bd-pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}
/* Straight-edged rectangles here (no arrow point) — unlike the card grid/
   list view, where .bd-deal-tag's arrow point stays as explicitly built
   earlier this session. Scoped to .bd-pd-badges specifically, not a change
   to the base .bd-deal-tag rule. border shorthand resets the base rule's
   border-right:none back to all 4 sides. */
.bd-pd-badges .bd-deal-tag {
    position: static;
    margin-bottom: 0;
    border-right: 1px solid;
    border-radius: 2px;
}
.bd-pd-badges .bd-deal-tag::before,
.bd-pd-badges .bd-deal-tag::after {
    display: none;
}
/* Per the mockup crop: unlike Новинка/Хит (white fill, colored outline),
   the sale tag is a SOLID red fill with white text. */
.bd-deal-tag--sale {
    background: var(--bd-red);
    color: #fff;
    border-color: var(--bd-red);
}

/* Top row (moved above .bd-product-detail-grid in show.blade.php, full page
   width, under the title): rating on the left, wishlist/compare/share
   icon+label links in the middle, product code pushed to the far right —
   per Barry_design/карточка и каталог/карточка новая с параметрами
   (характеристики) 1925.png. Was icon-only circular buttons before; the
   mockup shows a small icon directly followed by its own text label. */
.bd-pd-top-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}
.bd-pd-code {
    margin-left: auto;
    font-size: 13px;
    color: var(--bd-muted);
    white-space: nowrap;
}
.bd-pd-rating {
    display: flex;
    gap: 2px;
    font-size: 14px;
    color: var(--bd-gray-lt, #e0e0e0);
}
.bd-pd-rating .fa-star { color: #F5A623; }
.bd-pd-icon-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bd-pd-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: var(--bd-text);
    cursor: pointer;
    transition: opacity .2s;
}
.bd-pd-icon-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.bd-pd-icon-btn:hover { opacity: 0.7; }
/* Wishlist is red (icon + label) per the mockup; compare/share stay the
   page's default text color. */
.bd-pd-icon-btn.wishlist { color: var(--bd-red); }
@media (max-width: 767px) {
    .bd-pd-top-row { flex-wrap: wrap; gap: 12px 20px; }
    .bd-pd-code { margin-left: 0; }
}

/* Price */
.bd-pd-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.price-cartbox ul.price {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}
.price-cartbox ul.price li { display: flex; }
.price-cartbox ul.price h3.special-price.prod-show {
    font-size: 28px;
    font-weight: 800;
    color: var(--bd-red);
    margin: 0;
}
.price-cartbox ul.price .old-price {
    font-size: 15px;
    color: var(--bd-muted);
    text-decoration: line-through;
    font-weight: 600;
}
.bd-pd-discount-badge {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--bd-red);
    background: #fff;
    border: 1.5px solid var(--bd-red);
    border-radius: var(--bd-radius);
    padding: 4px 10px;
}

/* Options (color swatches / selects) */
.prod-opt { margin-bottom: 12px; }
.prod-opt .form-check { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-opt .form-check-label { cursor: pointer; }
.prod-opt .form-check-label img {
    border: 2px solid var(--bd-border);
    border-radius: var(--bd-radius);
    transition: border-color .2s;
    display: block;
}
.prod-opt .form-check-label input:checked + img { border-color: var(--bd-navy); }
.prod-opt .form-check-label:hover img { border-color: var(--bd-navy); }
.prod-opt select.form-control {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--bd-text);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 16px;
    font-family: inherit;
    transition: border-color .2s;
}
.prod-opt select.form-control:focus { border-color: var(--bd-navy); outline: none; box-shadow: none; }

/* Add to cart + wishlist/compare */
.qty .flex { display: flex; flex-direction: column; gap: 10px; }

#button-cart.btn.btn-primary {
    background: #E53945 !important;
    border-color: var(--bd-navy) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: var(--bd-radius) !important;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: opacity .2s !important;
}
#button-cart.btn.btn-primary:hover { opacity: 0.88; }

#button-cart-no-left.btn.btn-primary {
    background: var(--bd-gray-lt) !important;
    border-color: var(--bd-border) !important;
    color: var(--bd-muted) !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    border-radius: var(--bd-radius) !important;
    width: 100%;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Trust-info row (Гарантия/Наличие в магазинах/Доставка) */
.bd-pd-trust-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--bd-border);
    border-bottom: 1px solid var(--bd-border);
}
.bd-pd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bd-text);
}
.bd-pd-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fixed icon column so labels start at the same x on every row
       regardless of each icon's own native width (pin.svg is narrower
       than warranty/courier). */
    width: 24px;
    flex-shrink: 0;
    color: var(--bd-navy);
}
/* Barry_design/icons/*.svg files have their own native aspect ratio
   (warranty/courier are square, pin is taller than wide) — fix the height
   and let width follow naturally instead of forcing a square that would
   stretch the pin icon. */
.bd-pd-trust-icon img { height: 22px; width: auto; }
.bd-pd-trust-label { font-weight: 600; }
.bd-pd-trust-info {
    flex-shrink: 0;
    width: 16px; height: 16px;
    line-height: 14px;
    border-radius: 50%;
    border: 1px solid var(--bd-muted);
    background: none;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--bd-muted);
    cursor: help;
}
.bd-pd-trust-info:hover { border-color: var(--bd-navy); color: var(--bd-navy); }
/* Lets multi-paragraph tooltip copy (\n\n in lang strings, e.g.
   front.product.delivery_free_desc) break into paragraphs. */
.tooltip-inner { white-space: pre-line; }

/* Video-consultation CTA */
.bd-pd-video-consult {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
}
.bd-pd-video-consult-icon {
    display: flex;
    flex-shrink: 0;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--bd-navy);
}
.bd-pd-video-consult-copy { flex: 1; min-width: 0; }
.bd-pd-video-consult-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bd-text);
}
.bd-pd-video-consult-desc {
    margin: 0;
    font-size: 12px;
    color: var(--bd-muted);
}
.bd-pd-video-consult-btn {
    flex-shrink: 0;
    background: var(--bd-navy);
    color: #fff;
    border: none;
    border-radius: var(--bd-radius);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity .2s;
}
.bd-pd-video-consult-btn:hover { opacity: 0.88; }
@media (max-width: 767px) {
    .bd-pd-video-consult { flex-wrap: wrap; }
    .bd-pd-video-consult-btn { width: 100%; }
}

/* Availability notification card */
#inform-availability .card {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 16px;
    background: var(--bd-gray-bg);
    margin-bottom: 16px;
    position: relative;
}
#inform-availability .card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bd-text);
    /* Clears .close-bar regardless of how many lines the title wraps to —
       it's position:absolute so it doesn't reserve its own space, and a
       long translation (e.g. Armenian) wrapping to 2 lines let it sit on
       top of the title's second line / the paragraph below. */
    padding-right: 28px;
}
/* style.css's "#inform-availability .card span.close-bar" (background:
   delete.png icon, top:17px, right:0) beats this file's plain ".close-bar"
   rule (1 class) on specificity, so the "×" from .close-bar::after was
   rendering on top of / doubled with that background icon, at a position
   that overlapped the title. Matching the same selector here (equal
   specificity, this file loads later) to fully replace it with a small
   centered "×" instead. */
#inform-availability .card span.close-bar {
    background: none;
    padding: 0;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: var(--bd-muted);
}
#inform-availability .card span.close-bar:hover { color: var(--bd-navy); }
#inform-availability .card p {
    font-size: 13px;
    color: var(--bd-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
#inform-availability .card p img { width: 20px; flex-shrink: 0; }
#inform-availability .form-control {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 9px 12px;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
    transition: border-color .2s;
}
#inform-availability .form-control:focus { border-color: var(--bd-navy); outline: none; box-shadow: none; }
#inform-availability .btn.btn-primary {
    background: var(--bd-navy) !important;
    border-color: var(--bd-navy) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: var(--bd-radius) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    margin-top: 8px;
}
.close-bar {
    position: absolute;
    top: 12px; right: 12px;
    cursor: pointer;
    color: var(--bd-muted);
    font-size: 18px;
}
.close-bar::after { content: '×'; }

/* Sub-banner */
#product-options > div > img,
#product-options > div > a > img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bd-radius);
    margin-top: 16px;
    display: block;
}

/* ============================================================
   PRODUCT DETAIL PAGE — TABS
   ============================================================ */
/* public/css/style.css and its compiled-app.min.css duplicate still carry a
   whole legacy #tabs_info/.nav-tabs rule set (base rules plus four separate,
   inconsistent breakpoints down at ~7150-7550 — one of them puts li at
   `display:grid`, which we never set a `display` for, so it was winning the
   cascade and breaking the mobile tab row). None of it uses !important, so
   every property we care about below is pinned with !important to make this
   block — not the legacy theme — the sole source of truth for #tabs_info,
   regardless of which legacy breakpoint happens to also match. */
#tabs_info {
    float: none !important;
    margin: 10px 0 24px !important;
    text-align: left !important;
}

/* Tab bar — per Barry_design/карточка и каталог/карточка новая с параметрами
   (характеристики) 1924.jpg: one bordered box around nav+content, equal-width
   cells divided by hairlines (not separate pill buttons), active/hover cells
   get a flat gray fill, and the active cell gets a red underline bar instead
   of "floating above" the content like a classic browser tab. */
#tabs_info .nav-tabs {
    display: flex !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
    border: 1px solid var(--bd-border) !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
}
#tabs_info .nav-tabs > li {
    position: relative;
    float: none !important;
    display: block !important;
    flex: 1 !important;
    min-width: 0;
    margin: 0 !important;
    border-right: 1px solid var(--bd-border) !important;
}
#tabs_info .nav-tabs > li:last-child { border-right: none !important; }
#tabs_info .nav-tabs > li > a {
    display: block !important;
    float: none !important;
    width: auto !important;
    padding: 16px 10px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: normal !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    color: var(--bd-text) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--bd-border) !important;
    border-radius: 0 !important;
    transition: background .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#tabs_info .nav-tabs > li > a:hover { background: var(--bd-gray-lt) !important; }
#tabs_info .nav-tabs > li.active > a,
#tabs_info .nav-tabs > li.active > a:focus,
#tabs_info .nav-tabs > li.active > a:hover {
    background: var(--bd-gray-lt) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--bd-border) !important;
    border-radius: 0 !important;
}
#tabs_info .nav-tabs > li.active::after {
    content: '';
    position: absolute;
    left: 8px; right: 8px; bottom: -1px;
    height: 3px;
    background: var(--bd-red);
}
#tabs_info .tab-content {
    border-top: 0 !important;
    padding: 24px !important;
    text-align: left !important;
    background: #fff !important;
}
#tabs_info .tab-pane { font-size: 14px; color: var(--bd-text); line-height: 1.7; overflow: hidden; }

/* Product descriptions are rich-text pasted from external editors (Word/Google Docs)
   and sometimes carry a broken, un-initialized Yandex share widget with float:right,
   which also wraps real description text pasted alongside it. Containing floats on
   .tab-pane (above) stops it corrupting layout further down the page; this strips the
   float itself since the widget's init script isn't loaded (can't display:none — it
   wraps real description text in some products). */
.yashare-auto-init.b-share_theme_counter { float: none !important; margin-bottom: 0 !important; }

/* Description — per .../карточка новая (описание) 1920.jpg. Content is
   admin-pasted rich text (often Word HTML) carrying its own inline
   font-family/font-size on every <span>; those inline styles win over any
   plain selector here, so the reset below is !important on purpose — it's
   normalizing pasted formatting noise, not overriding an intentional design
   choice made in the editor. Structural rules (lists, bold run-in headings,
   images) don't need !important since inline styles don't touch them. */
#tab-description, #tab-description * {
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
#tab-description p { margin: 0 0 14px; }
#tab-description p:last-child { margin-bottom: 0; }
#tab-description b, #tab-description strong {
    display: block;
    margin: 20px 0 10px;
    font-size: 15px !important;
    color: var(--bd-text);
}
#tab-description ul, #tab-description ol { margin: 0 0 14px; padding: 0; list-style: none; }
#tab-description ul li, #tab-description ol li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}
#tab-description ul li::before {
    content: '';
    position: absolute;
    left: 2px; top: .65em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bd-red);
}
#tab-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bd-radius);
    margin: 4px 0 16px;
    display: block;
}

/* Specs — per Barry_design/карточка и каталог/карточка новая с параметрами
   (характеристики) 1924.jpg "tab-specification": a plain label/value list,
   no outer box or zebra striping, rows separated by a hairline. */
.bd-pd-spec-table { border-top: 1px solid var(--bd-border); }
.bd-pd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--bd-border);
    font-size: 13px;
}
.bd-pd-spec-row-label { color: var(--bd-muted); }
.bd-pd-spec-row-value { color: var(--bd-text); font-weight: 600; text-align: right; }

/* Column titles above the rental tab's period/price rows — the plain
   spec-table has no header row elsewhere, so this is scoped to a
   modifier rather than changed on .bd-pd-spec-row itself. */
.bd-pd-spec-row--head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.bd-pd-spec-row--head .bd-pd-spec-row-label,
.bd-pd-spec-row--head .bd-pd-spec-row-value { color: var(--bd-muted); font-weight: 700; }

/* Rental picker (tab-rental) — Barry_design/Screenshot 2026-09-21 234339.png:
   a radio-selectable list of periods, the selected row tinted, a running
   total and a checkout CTA. */
.bd-rental-intro { font-size: 13px; color: var(--bd-muted); margin: 0 0 16px; }
.bd-rental-table { border-top: 1px solid var(--bd-border); margin-bottom: 20px; }
.bd-rental-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 8px;
    margin: 0;
    border-bottom: 1px solid var(--bd-border);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s;
}
.bd-rental-row:hover { background: var(--bd-gray-bg); }
.bd-rental-row--active { background: var(--bd-gray-bg); }
.bd-rental-row--head { cursor: default; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--bd-muted); }
.bd-rental-row--head:hover { background: none; }
.bd-rental-row-choice { display: flex; align-items: center; gap: 12px; }
/* style.css has a global, unscoped "[type=radio]:not(:checked) { opacity:0;
   position:absolute; pointer-events:none }" (meant for #checkout's custom
   radio skin) that otherwise blanks out every *unselected* row here,
   leaving only the pre-checked one visible. */
.bd-rental-row-choice input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bd-red);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    position: static;
    opacity: 1;
    pointer-events: auto;
}
.bd-rental-row-label { color: var(--bd-text); }
.bd-rental-row--active .bd-rental-row-label { font-weight: 600; }
.bd-rental-row-value { color: var(--bd-text); font-weight: 600; }
.bd-rental-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.bd-rental-total-label { display: block; font-size: 13px; color: var(--bd-muted); margin-bottom: 4px; }
.bd-rental-total-value { display: block; font-size: 22px; font-weight: 700; color: var(--bd-text); }
.bd-rental-footer .bd-btn-primary { margin-top: 0; }
@media (max-width: 479px) {
    .bd-rental-footer { flex-direction: column; align-items: stretch; }
    .bd-rental-footer .bd-btn-primary { width: 100%; justify-content: center; }
}

/* Files/documentation — per .../карточка новая (документация) 1920.jpg: a
   grid of file cards, file-type glyph + name + size, not a link table. */
.bd-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 24px;
}
.bd-doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
/* The legacy theme (public/css/style.css) injects a 32x32 Adobe icon and
   " (PDF)" text after any a[href$=".pdf"] — this card already carries its
   own type badge, so drop the legacy pseudo-elements here. */
.bd-doc-card:before, .bd-doc-card:after { content: none !important; }
/* Icon is ~60x64 in the 1920 mockup against its 1440px content column;
   scaled to this site's 1200px container that's 50x54 (60*1200/1440). Image
   is the traced doc/pdf/xls glyph from Barry_design/.../"карточка новая
   (документация)" (public/images/icons/doc-*.svg), not a colored badge. */
.bd-doc-icon {
    flex-shrink: 0;
    width: 50px;
    height: 54px;
}
.bd-doc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-doc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bd-doc-card:hover .bd-doc-name { color: var(--bd-navy); text-decoration: underline; }
.bd-doc-size { font-size: 12px; color: var(--bd-muted); }

/* Empty state shared by the specs/files/reviews tabs */
.bd-pd-tab-empty { color: var(--bd-muted); font-size: 13px; margin: 0; }
.bd-pd-rental-desc { font-size: 14px; line-height: 1.5; margin: 0 0 16px; }

/* Reviews — per .../карточка новая (отзывы 1) 1920.jpg: a 2-up carousel
   with prev/next + dots instead of a grid, kept to the fields we
   actually collect (name, rating, date, comment). */
#tab-review { font-size: 13px; }
.bd-pd-review-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.bd-pd-review-carousel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0;
}
.bd-pd-review-carousel-head .customNavigation {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* style.css's legacy ".customNavigation div { position:absolute; top:40% }"
   (meant for carousel-overlay arrows, see .box-content .customNavigation
   above) otherwise yanks these two buttons out of this flex row and floats
   them against the nearest positioned ancestor — same issue .bd-brands-nav
   works around below. */
.bd-pd-review-carousel-head .customNavigation div {
    position: static !important;
    top: auto !important;
}
/* Owl core: this is the first owl-carousel on the site to use dots/
   items-per-view instead of a bespoke prev/next-only scroller, so the
   clipping + dot styles it needs don't exist yet anywhere else. Scoped
   to #reviewCarousel rather than added globally to avoid touching the
   other (nav-only) owl-carousels' already-working layout. */
#reviewCarousel.owl-carousel { display: block; }
#reviewCarousel .owl-stage-outer { overflow: hidden; }
#reviewCarousel .owl-stage { display: flex; }
#reviewCarousel .owl-item { height: auto; display: flex; }
#reviewCarousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
#reviewCarousel .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bd-border);
    transition: background .2s;
}
#reviewCarousel .owl-dot.active span { background: var(--bd-navy); }
.bd-pd-review-card {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 16px;
    width: 100%;
}
.bd-pd-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bd-pd-review-name { font-size: 14px; color: var(--bd-text); }
.bd-pd-review-stars { color: #F5A623; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.bd-pd-review-stars .fa-star-o { color: var(--bd-border); }
.bd-pd-review-date { display: block; font-size: 12px; color: var(--bd-muted); margin-top: 2px; }
.bd-pd-review-text { margin: 10px 0 0; color: var(--bd-text); line-height: 1.6; }

/* Feedback card — same mockup, "Обратная связь" panel */
.bd-pd-review-form {
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
    padding: 24px;
    margin-top: 24px;
}
#tab-review h3#wrightReview {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--bd-text);
}
.bd-pd-review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}
.bd-pd-review-form-row .form-group { margin-bottom: 16px; }
@media (max-width: 767px) {
    .bd-pd-review-form-row { grid-template-columns: 1fr; }
}
#tab-review .form-control {
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background: #fff;
    font-size: 13px;
    padding: 8px 12px;
    font-family: inherit;
    transition: border-color .2s;
}
#tab-review .form-control:focus { border-color: var(--bd-navy); outline: none; box-shadow: none; }
#tab-review .control-label { font-size: 13px; font-weight: 600; color: var(--bd-text); }
#tab-review #button-review.btn.btn-primary {
    background: var(--bd-navy) !important;
    border-color: var(--bd-navy) !important;
    color: #fff !important;
    padding: 9px 24px !important;
    border-radius: var(--bd-radius) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
/* Footer per the mockup: photo attach on the left, a divider, submit on the right. */
.bd-pd-review-form-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 8px;
}
.bd-pd-review-attach {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding-right: 24px;
    border-right: 1px solid var(--bd-border);
    min-height: 48px;
}
.bd-pd-review-attach-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: var(--bd-muted);
    line-height: 1.4;
}
.bd-pd-review-attach-label:hover { color: var(--bd-navy); }
.bd-pd-review-attach-label .fa { font-size: 20px; color: var(--bd-muted); }
.bd-pd-review-attach-label small { display: block; font-size: 12px; }
/* Visually hidden but still focusable/clickable through its label. */
.bd-pd-review-attach-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.bd-pd-review-attach-input:focus-visible + .bd-pd-review-attach-thumbs,
.bd-pd-review-attach-label:focus-within { outline: 2px solid var(--bd-navy); outline-offset: 2px; }
.bd-pd-review-attach-thumbs { display: flex; align-items: center; gap: 8px; }
.bd-pd-review-thumb {
    position: relative;
    width: 28px;
    height: 28px;
}
.bd-pd-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}
.bd-pd-review-thumb-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bd-navy);
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
}
.bd-pd-review-thumb-more { font-size: 12px; color: var(--bd-muted); white-space: nowrap; }
.bd-pd-review-attach-error { flex-basis: 100%; display: block; }
.bd-pd-review-attach-error[hidden] { display: none; }
.bd-pd-review-submit { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 767px) {
    .bd-pd-review-form-footer { grid-template-columns: 1fr; }
    .bd-pd-review-attach { border-right: 0; padding-right: 0; }
    .bd-pd-review-submit { align-items: stretch; }
}
/* Customer photos under a published review (beats owl's ".owl-item img { width: 100% }"). */
.bd-pd-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bd-pd-review-carousel .owl-item .bd-pd-review-photos img,
.bd-pd-review-photos img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--bd-radius);
}
/* Clickable star input (radios reversed in the DOM + row-reverse so
   hovering/checking star N lights up N and everything before it). */
.bd-pd-review-rating-group { display: flex; flex-direction: column; gap: 6px; }
.bd-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.bd-star-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.bd-star-rating label {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--bd-border);
    transition: color .15s;
}
/* style.css's legacy "input[type=radio] + label:before { content:
   url(checkbox.svg) }" (its generic checkbox/radio skin) otherwise draws a
   checkbox icon over every star label, since these radios sit right before
   a <label> too. */
.bd-star-rating input + label:before,
.bd-star-rating input:checked + label:before {
    content: none !important;
}
.bd-star-rating input:checked ~ label,
.bd-star-rating label:hover,
.bd-star-rating label:hover ~ label {
    color: #F5A623;
}

/* Expand description */
.read_more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-navy);
    text-decoration: none;
    border: 1.5px solid var(--bd-navy);
    padding: 5px 14px;
    border-radius: var(--bd-radius);
    margin-top: 12px;
    transition: background .2s, color .2s;
}
.read_more:hover { background: var(--bd-navy); color: #fff; }

/* ============================================================
   BOX FEATURED — PRODUCT CAROUSELS (homepage deals + product detail related)
   ============================================================ */
.box.featured {
    padding: 20px 0;
    margin-top: 0px !important;
    clear: both;
}
.box-heading {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--bd-navy) !important;
    font-family: var(--bd-font) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    background: var(--bd-gray-bg) !important;
    border-top: 1px solid var(--bd-border) !important;
    border-left: 1px solid var(--bd-border) !important;
    border-right: 1px solid var(--bd-border) !important;
    padding: 12px 16px !important;
}
.box-heading a.view_more_heading {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--bd-navy) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1.5px solid var(--bd-navy);
    border-radius: 4px;
    transition: background .2s, color .2s;
    align-self: center;
    white-space: nowrap;
    letter-spacing: 0 !important;
}
.box-heading a.view_more_heading:hover {
    background: var(--bd-navy);
    color: #fff !important;
}
.box-head {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8 !important;
    justify-content: space-between;
    margin-bottom: 20px;
}
.box-head .box-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--bd-text);
    margin-bottom: 0;
}
/* customNavigation in box-head: inline flex row */
.box-head .customNavigation {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static !important;
    width: auto !important;
    top: auto !important;
    right: auto !important;
}

/* customNavigation in box-content: overlay on carousel */
.box .box-content {
    position: relative !important;
    margin: 0 0 3px 0 !important;
}
.box-content .customNavigation {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 10;
}
.box-content .customNavigation .prev,
.box-content .customNavigation .next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    pointer-events: all;
}
.box-content .customNavigation .prev {
    left: 0 !important;
    right: auto !important;
}
.box-content .customNavigation .next {
    right: 0 !important;
    left: auto !important;
}

/* shared button styles for all customNavigation buttons */
.customNavigation .prev,
.customNavigation .next {
    width: 45px !important;
    height: 45px !important;
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: opacity .2s;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    padding: 0 !important;
    font-size: 0 !important;
}
.customNavigation .prev::before,
.customNavigation .next::before { display: none !important; }
.customNavigation .prev {
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%23F5F5F5'/%3E%3Cpath d='M25.8378 17.2495C26.1686 17.5803 26.1686 18.0828 25.8379 18.42L21.0032 23.2546L25.8379 28.0892C26.1686 28.42 26.1686 28.9226 25.8379 29.2597C25.5071 29.5905 25.0045 29.5905 24.6674 29.2597L19.2474 23.8398C19.082 23.6744 18.9993 23.509 18.9993 23.2545C18.9993 23 19.082 22.8347 19.1647 22.752L24.6673 17.2494C24.998 16.9187 25.5006 16.9187 25.8378 17.2495Z' fill='black'/%3E%3C/svg%3E") !important;
}
.customNavigation .next {
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%23F5F5F5'/%3E%3Cpath d='M21.2482 17.2495C20.9173 17.5803 20.9173 18.0828 21.2481 18.42L26.0827 23.2546L21.2481 28.0892C20.9173 28.42 20.9173 28.9226 21.2481 29.2597C21.5789 29.5905 22.0814 29.5905 22.4186 29.2597L27.8385 23.8398C28.0039 23.6744 28.0866 23.509 28.0866 23.2545C28.0866 23 28.0039 22.8347 27.9212 22.752L22.4186 17.2494C22.0879 16.9187 21.5854 16.9187 21.2482 17.2495Z' fill='black'/%3E%3C/svg%3E") !important;
}
.customNavigation .prev:hover {
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%2331336C'/%3E%3Cpath d='M25.8378 17.2495C26.1686 17.5803 26.1686 18.0828 25.8379 18.42L21.0032 23.2546L25.8379 28.0892C26.1686 28.42 26.1686 28.9226 25.8379 29.2597C25.5071 29.5905 25.0045 29.5905 24.6674 29.2597L19.2474 23.8398C19.082 23.6744 18.9993 23.509 18.9993 23.2545C18.9993 23 19.082 22.8347 19.1647 22.752L24.6673 17.2494C24.998 16.9187 25.5006 16.9187 25.8378 17.2495Z' fill='white'/%3E%3C/svg%3E") !important;
}
.customNavigation .next:hover {
    background-image: url("data:image/svg+xml,%3Csvg width='45' height='45' viewBox='0 0 45 45' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='45' height='45' fill='%2331336C'/%3E%3Cpath d='M21.2482 17.2495C20.9173 17.5803 20.9173 18.0828 21.2481 18.42L26.0827 23.2546L21.2481 28.0892C20.9173 28.42 20.9173 28.9226 21.2481 29.2597C21.5789 29.5905 22.0814 29.5905 22.4186 29.2597L27.8385 23.8398C28.0039 23.6744 28.0866 23.509 28.0866 23.2545C28.0866 23 28.0039 22.8347 27.9212 22.752L22.4186 17.2494C22.0879 16.9187 21.5854 16.9187 21.2482 17.2495Z' fill='white'/%3E%3C/svg%3E") !important;
}

/* .bd-brands-nav (Brands/Clients section-head arrows) reuses
   .customNavigation only for the shared 45px SVG arrow-button look
   above — it is NOT a .box-content overlay, so it must not inherit
   style.css's legacy ".customNavigation div { position:absolute;
   top:40% }" rule (meant for carousel-overlay arrows). That rule
   would otherwise yank these two buttons out of the flex row and
   float them at the page's nearest positioned ancestor. */
.bd-brands-nav.customNavigation div {
    position: static !important;
    top: auto !important;
}

/* ============================================================
   PRODUCT DETAIL PAGE — QUICK VIEW MODAL
   ============================================================ */
.quickview { padding: 0; }
.quickview .product-right { border-left: 1px solid var(--bd-border); padding-left: 20px; }
.quickview .product-brand {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-navy);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.quickview h3.product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 6px 0 10px;
    line-height: 1.4;
}
#product-code { font-size: 11px; color: var(--bd-muted); display: block; margin-bottom: 8px; }
.quickview ul.price {
    list-style: none;
    margin: 0 0 12px; padding: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.quickview ul.price h3.special-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--bd-text);
    margin: 0;
}
.quickview ul.price .old-price {
    font-size: 14px;
    color: var(--bd-muted);
    text-decoration: line-through;
}
.quickview #button-cart.btn.btn-primary {
    background: var(--bd-navy) !important;
    border-color: var(--bd-navy) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: var(--bd-radius) !important;
    width: 100%;
    box-shadow: none !important;
    text-shadow: none !important;
}
.quickview #button-cart-no-left.btn.btn-primary {
    background: var(--bd-gray-lt) !important;
    border-color: var(--bd-border) !important;
    color: var(--bd-muted) !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    border-radius: var(--bd-radius) !important;
    width: 100%;
    box-shadow: none !important;
    text-shadow: none !important;
}
.quickview .btn.wishlist,
.quickview .btn.compare {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px !important;
    border: 1.5px solid var(--bd-border) !important;
    background: #fff !important;
    color: var(--bd-text) !important;
    border-radius: var(--bd-radius) !important;
    font-size: 12px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all .2s !important;
}
.quickview .btn.wishlist:hover,
.quickview .btn.compare:hover {
    background: var(--bd-navy) !important;
    border-color: var(--bd-navy) !important;
    color: #fff !important;
}
.product-quickview-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bd-border);
    font-size: 13px;
    color: var(--bd-text);
    line-height: 1.7;
}
.text-in_stock {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ============================================================
   PERSONAL / ACCOUNT AREA
   ============================================================ */
.bd-account-page { padding-top: 24px; padding-bottom: 60px; }
/* .bd-account-page prefix: beats the sitewide .bd-page-title (border,
   22px) and style.css's `.container h1, .container h2` (uppercase). */
.bd-account-page .bd-account-title,
.bd-account-page .bd-acc-heading {
    font: 700 32px/1.2 'Mardoto', sans-serif;
    text-transform: none;
    color: var(--bd-text);
    padding: 0;
    border: none;
}
.bd-account-page .bd-account-title { margin: 24px 0 44px; }

/* Barry_design/личный кабинет — sidebar + content */
.bd-account-layout {
    display: grid;
    grid-template-columns: 318px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.bd-account-content { min-width: 0; }

/* Sidebar */
.bd-account-nav-list,
.bd-account-nav-extra {
    display: flex;
    flex-direction: column;
    border: 1px solid #E0E0E0;
}
.bd-account-nav-extra { margin-top: 42px; background: #F4F4F4; }
.bd-account-nav-link,
.bd-account-nav-current {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 0 32px;
    border-left: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--bd-text);
    text-decoration: none;
    background: none;
    transition: background .15s, color .15s;
}
.bd-account-nav-link + .bd-account-nav-link,
.bd-account-nav-list form + .bd-account-nav-link { border-top: 1px solid #E0E0E0; }
.bd-account-nav-link:hover,
.bd-account-nav-link:focus { color: var(--bd-navy); text-decoration: none; background: #F7F7F7; }
.bd-account-nav-extra .bd-account-nav-link:hover { background: #EDEDED; }
.bd-account-nav-link.active {
    background: #F4F4F4;
    border-left-color: var(--bd-red);
    color: var(--bd-text);
}
.bd-account-nav-icon { display: flex; flex-shrink: 0; width: 24px; justify-content: center; color: var(--bd-text); }
.bd-account-nav-link.active .bd-account-nav-icon,
.bd-account-nav-current .bd-account-nav-icon { color: var(--bd-red); }
.bd-account-nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; }
.bd-account-nav-burger i { display: block; width: 20px; height: 2px; background: var(--bd-text); transition: transform .2s, opacity .2s; }
.bd-account-nav.open .bd-account-nav-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bd-account-nav.open .bd-account-nav-burger i:nth-child(2) { opacity: 0; }
.bd-account-nav.open .bd-account-nav-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) {
    .bd-account-nav .bd-account-nav-current { display: none; }
}
/* Below 992px (768/320 mockups): current-page bar with ☰ + icon row */
@media (max-width: 991px) {
    .bd-account-layout { grid-template-columns: 1fr; gap: 30px; }
    .bd-account-page .bd-account-title { margin: 12px 0 24px; font-size: 26px; }
    .bd-account-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 182px;
        gap: 20px;
    }
    .bd-account-nav-current {
        display: flex;
        width: 100%;
        min-height: 70px;
        border: none;
        border-left: 3px solid var(--bd-red);
        background: #F4F4F4;
        cursor: pointer;
        text-align: left;
    }
    .bd-account-nav-list {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: -20px;
        border-top: none;
    }
    .bd-account-nav.open .bd-account-nav-list { display: flex; }
    .bd-account-nav-list .bd-account-nav-link { min-height: 54px; padding: 0 24px; }
    .bd-account-nav-extra { flex-direction: row; margin-top: 0; border: none; }
    .bd-account-nav-extra .bd-account-nav-link {
        flex: 1;
        justify-content: center;
        min-height: 70px;
        padding: 0;
        border-left: none;
    }
    .bd-account-nav-extra .bd-account-nav-link + .bd-account-nav-link { border-top: none; border-left: 1px solid #DADADA; }
    .bd-account-nav-extra .bd-account-nav-label { display: none; }
    .bd-account-nav-extra .bd-account-nav-link.active .bd-account-nav-icon { color: var(--bd-red); }
}
@media (max-width: 767px) {
    .bd-account-page .bd-account-title { font-size: 22px; margin: 4px 0 18px; }
    .bd-account-nav { grid-template-columns: 1fr; gap: 12px; }
    .bd-account-nav-current { min-height: 38px; padding: 0 16px; gap: 14px; }
    .bd-account-nav-list { grid-row: 2; margin-top: -12px; }
    .bd-account-nav-extra .bd-account-nav-link { min-height: 36px; }
}

/* Content: headings, text, form */
.bd-account-page .bd-acc-heading { font-size: 28px; margin: 56px 0 30px; }
.bd-account-page .bd-acc-form > .bd-acc-heading:first-of-type,
.bd-account-page .bd-acc-heading--first { margin-top: 0; }
.bd-account-page .bd-acc-heading + .bd-acc-hint { margin: -20px 0 22px; }
.bd-acc-text { font-size: 15px; line-height: 1.6; color: var(--bd-text); margin: -12px 0 36px; max-width: 760px; }
.bd-acc-hint { font-size: 13px; color: var(--bd-muted); }
.bd-acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Gray field with the label sitting inside it (floats up once filled) */
.bd-acc-field { position: relative; margin-bottom: 22px; }
.bd-acc-field input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 16px 20px 0;
    border: none;
    border-radius: 0;
    background: #F4F4F4;
    font-size: 14px;
    color: var(--bd-text);
    box-shadow: none;
    outline: none;
    transition: box-shadow .15s;
}
.bd-acc-field input:focus { box-shadow: inset 0 0 0 1px var(--bd-navy); }
.bd-acc-field input.is-invalid { box-shadow: inset 0 0 0 1px var(--bd-red); }
.bd-acc-field input:disabled { color: var(--bd-muted); cursor: not-allowed; }
.bd-acc-field label {
    position: absolute;
    left: 20px;
    top: 25px;
    transform: translateY(-50%);
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #A0A0A0;
    pointer-events: none;
    transition: top .15s, font-size .15s;
}
.bd-acc-field input:focus + label,
.bd-acc-field input:not(:placeholder-shown) + label { top: 12px; font-size: 10px; }
.bd-acc-field--icon input { padding-left: 62px; }
.bd-acc-field--icon label { left: 62px; }
.bd-acc-field--icon svg { position: absolute; left: 22px; top: 25px; transform: translateY(-50%); color: var(--bd-text); z-index: 1; }
.bd-acc-req { color: var(--bd-red); }
.bd-acc-error { font-size: 12px; color: var(--bd-red); margin-top: 5px; }
.bd-acc-error--light { color: #FFB4B4; }

.bd-acc-btn,
a.bd-acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 40px;
    padding: 0 42px;
    border: none;
    border-radius: 0;
    background: var(--bd-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
}
.bd-acc-btn:hover,
.bd-acc-btn:focus { opacity: .88; color: #fff; text-decoration: none; }
.bd-acc-empty { padding: 40px 0; color: var(--bd-muted); }
.bd-acc-empty .bd-acc-btn { margin-top: 12px; }
.bd-acc-pagination { display: flex; justify-content: flex-end; }
.bd-acc-pagination .pagination { margin: 0; }

@media (max-width: 767px) {
    .bd-account-page .bd-acc-heading { font-size: 22px; margin: 36px 0 18px; }
    .bd-acc-row { grid-template-columns: 1fr; gap: 0; }
    .bd-acc-field { margin-bottom: 10px; }
    .bd-acc-form .bd-acc-btn { display: flex; width: 100%; margin-top: 30px; }
}

/* Orders — tabs + table (мои заказы 1920.jpg) */
.bd-acc-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.bd-acc-tabs::-webkit-scrollbar { display: none; }
.bd-acc-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 226px;
    height: 56px;
    padding: 0 28px;
    border: 1px solid #E0E0E0;
    border-bottom-width: 3px;
    border-bottom-color: transparent;
    margin-left: -1px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bd-text);
    text-decoration: none;
    background: #fff;
}
.bd-acc-tab:first-child { min-width: 0; margin-left: 0; }
.bd-acc-tab:hover,
.bd-acc-tab:focus { color: var(--bd-navy); text-decoration: none; }
.bd-acc-tab.active { background: #F4F4F4; border-bottom-color: var(--bd-red); }

.bd-orders { margin-top: 50px; }
.bd-orders-head,
.bd-orders-row {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 1.2fr 0.9fr;
    align-items: center;
    column-gap: 16px;
    padding: 0 50px;
}
.bd-orders-head {
    min-height: 60px;
    background: #F4F4F4;
    font-size: 14px;
    font-weight: 600;
}
.bd-orders-head span:nth-child(2),
.bd-orders-head span:nth-child(3) { text-align: center; }
.bd-orders-row { padding-top: 36px; padding-bottom: 32px; border-bottom: 1px solid #E0E0E0; }
.bd-orders-id { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #555; }
.bd-orders-id strong { font-weight: 600; }
.bd-orders-products { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bd-orders-thumbs { display: flex; align-items: center; gap: 14px; }
.bd-orders-track {
    display: flex;
    gap: 12px;
    max-width: 144px; /* 3 thumbs */
    overflow-x: auto;
    scrollbar-width: none;
}
.bd-orders-track::-webkit-scrollbar { display: none; }
.bd-orders-track > * { flex: 0 0 40px; }
.bd-orders-track img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 1px solid #E0E0E0;
    background: #fff;
}
.bd-orders-arrow {
    display: flex;
    padding: 4px;
    border: none;
    background: none;
    color: var(--bd-text);
    cursor: pointer;
    visibility: hidden;
}
.bd-orders-thumbs.has-arrows .bd-orders-arrow { visibility: visible; }
.bd-orders-more {
    padding: 0 0 2px;
    border: none;
    border-bottom: 1px solid var(--bd-navy);
    background: none;
    font-size: 12px;
    color: var(--bd-navy);
    cursor: pointer;
}
.bd-orders-total { text-align: center; font-size: 16px; font-weight: 700; white-space: nowrap; }
.bd-orders-status { font-size: 14px; font-weight: 700; text-align: right; }
.bd-orders-status--active { color: #1BA11B; }
.bd-orders-status--done { color: var(--bd-navy); }
.bd-orders-status--canceled { color: var(--bd-red); }

.bd-orders-details {
    grid-column: 1 / -1;
    margin-top: 26px;
    padding: 22px 24px;
    background: #FAFAFA;
    border: 1px solid #EDEDED;
}
.bd-orders-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-orders-items thead td {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-muted);
    border-bottom: 1px solid #E0E0E0;
}
.bd-orders-items tbody td { padding: 10px; border-bottom: 1px solid #EDEDED; vertical-align: middle; }
.bd-orders-items-img { width: 60px; }
.bd-orders-items-img img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid #E0E0E0; }
.bd-orders-items a { color: var(--bd-text); text-decoration: none; }
.bd-orders-items a:hover { color: var(--bd-navy); }
.bd-orders-info {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 24px;
    margin: 20px 0 0;
    font-size: 13px;
}
.bd-orders-info dt { font-weight: 600; color: var(--bd-muted); }
.bd-orders-info dd { margin: 0; }
.bd-orders-details .bd-acc-btn { margin-top: 20px; }
.bd-account-content .bd-acc-pagination { margin-top: 30px; }

@media (max-width: 1199px) {
    .bd-orders-head, .bd-orders-row { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 767px) {
    .bd-acc-tab { min-width: 50%; height: 46px; }
    .bd-acc-tab:first-child { min-width: 90px; }
    .bd-orders { margin-top: 24px; }
    .bd-orders-head { grid-template-columns: 1fr; justify-items: center; min-height: 46px; }
    .bd-orders-head span:not(:first-child) { display: none; }
    .bd-orders-row {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 12px;
        padding: 22px 0;
        text-align: center;
    }
    .bd-orders-status { text-align: center; }
    .bd-orders-details { padding: 14px; text-align: left; justify-self: stretch; }
    .bd-orders-items thead { display: none; }
    .bd-orders-items, .bd-orders-items tbody, .bd-orders-items tr, .bd-orders-items td { display: block; }
    .bd-orders-items tr { display: grid; grid-template-columns: 56px 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid #EDEDED; }
    .bd-orders-items tbody td { padding: 0; border: none; }
    .bd-orders-items-img { grid-row: span 5; }
    .bd-orders-items td[data-label]::before { content: attr(data-label) ": "; color: var(--bd-muted); }
    .bd-orders-info { grid-template-columns: 1fr; }
    .bd-orders-info dd { margin-bottom: 6px; }
}

/* Subscription (подписка 1920.jpg) */
.bd-acc-subscribe {
    max-width: 786px;
    padding: 62px;
    background-color: var(--bd-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='6'%3E%3Crect x='5' y='5' width='140' height='110' rx='8'/%3E%3Cpath d='M5 12l70 55 70-55'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 40px bottom -30px;
    color: #fff;
}
.bd-acc-subscribe-row { display: flex; }
.bd-acc-subscribe-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 50px;
    margin: 0;
    padding: 0 22px;
    background: #F4F4F4;
    color: var(--bd-text);
    font-weight: 400;
}
.bd-acc-subscribe-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--bd-text);
    outline: none;
}
.bd-acc-subscribe-btn {
    height: 50px;
    padding: 0 32px;
    border: none;
    background: var(--bd-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .15s;
}
.bd-acc-subscribe-btn:hover { opacity: .9; }
.bd-acc-subscribe-btn--ghost { background: none; border: 1px solid rgba(255,255,255,.7); }
.bd-acc-subscribe-state { font-size: 15px; margin: 0 0 22px; }
.bd-acc-subscribe-state strong { color: #fff; }
.bd-acc-consent {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.85);
    cursor: pointer;
}
/* style.css hides every checkbox sitewide (input[type=checkbox]{display:none}) */
.bd-acc-consent input[type="checkbox"] {
    display: inline-block !important;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,.8);
    background: transparent center / 12px no-repeat;
    cursor: pointer;
}
.bd-acc-consent input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
}
.bd-acc-consent a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.bd-acc-consent a:hover { color: #fff; }
@media (max-width: 767px) {
    .bd-acc-text { margin: -6px 0 24px; }
    .bd-acc-subscribe { margin: 0 -15px; padding: 40px 20px; }
    .bd-acc-subscribe-row { flex-direction: column; }
    .bd-acc-subscribe-input { flex: none; }
    .bd-acc-subscribe-btn { width: 100%; }
}

/* Wishlist + compare: shared list page chrome */
.bd-acc-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.bd-account-page .bd-acc-list-head .bd-account-title { margin-bottom: 36px; }
.bd-acc-list-head form { margin: 0 0 12px; }
.bd-acc-btn-outline,
.bd-acc-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--bd-text);
    background: #fff;
    color: var(--bd-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.bd-acc-btn-outline:hover,
.bd-acc-btn-back:hover,
.bd-acc-btn-back:focus { background: var(--bd-text); color: #fff; text-decoration: none; }
.bd-acc-list-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
}

/* Card grid — the shared singleProduct card (.product-layout) */
.bd-acc-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 16px;
}
.bd-acc-card-grid > .product-layout { width: auto; float: none; padding: 0; margin: 0; }
.bd-acc-card-grid--wishlist .product-layout .wishlist,
.bd-cmp-card.product-layout .wishlist { display: none !important; }
@media (max-width: 1199px) { .bd-acc-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .bd-acc-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  {
    .bd-acc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bd-acc-list-head { flex-direction: column; align-items: stretch; gap: 0; }
    .bd-account-page .bd-acc-list-head .bd-account-title { margin-bottom: 16px; }
    .bd-acc-list-head form { margin-bottom: 20px; text-align: center; }
    .bd-acc-list-foot { flex-direction: column-reverse; margin-top: 36px; }
    .bd-acc-btn-back { width: 100%; justify-content: center; }
}

/* × on a card (wishlist / compare remove) */
.bd-card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: rgba(255,255,255,.85);
    color: #555;
    cursor: pointer;
    transition: color .15s;
}
.bd-card-remove:hover { color: var(--bd-red); }

/* Compare (список сравнения 1920/1921.jpg) */
.bd-cmp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 40px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.bd-cmp-modes, .bd-cmp-actions { display: flex; align-items: center; gap: 16px 36px; flex-wrap: wrap; }
.bd-cmp-actions form { margin: 0; }
.bd-cmp-radio { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 400; cursor: pointer; }
/* style.css: [type=radio]:not(:checked){position:absolute;opacity:0;pointer-events:none} */
.bd-cmp-radio input[type="radio"] {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #8A8A8A;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.bd-cmp-radio input[type="radio"]:checked { border-color: var(--bd-red); box-shadow: inset 0 0 0 4px #fff; background: var(--bd-red); }
.bd-cmp-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--bd-text);
    cursor: pointer;
}
.bd-cmp-action:hover { color: var(--bd-navy); }

.bd-cmp-tabs-wrap { display: flex; align-items: center; gap: 24px; }
.bd-cmp-tabs {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.bd-cmp-tabs::-webkit-scrollbar { display: none; }
.bd-cmp-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    max-width: 340px;
    padding: 0 20px;
    border: 1px solid #BDBDBD;
    background: #fff;
    font-size: 14px;
    color: #666;
    text-align: left;
    cursor: pointer;
}
.bd-cmp-tab span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-cmp-tab.active { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; }
.bd-cmp-tab-add {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid #555;
    color: var(--bd-text);
}
.bd-cmp-tab-add:hover { background: var(--bd-text); color: #fff; }

.bd-cmp-group { position: relative; margin-top: 40px; }
.bd-cmp-scroll { overflow-x: auto; scrollbar-width: none; }
.bd-cmp-scroll::-webkit-scrollbar { display: none; }
.bd-cmp-grid {
    display: grid;
    grid-template-columns: 220px repeat(var(--bd-cmp-cols), 250px);
    width: max-content;
    min-width: 100%;
}
.bd-cmp-row { display: contents; }
.bd-cmp-only-diff .bd-cmp-row[data-same] { display: none; }
/* Sticky first column: fully white (incl. the gap next to the tile) and
   above the cards, so cards scrolling underneath — and their ×/compare
   icons — stay hidden behind it. */
.bd-cmp-label {
    position: sticky;
    left: 0;
    z-index: 20;
    background: #fff;
}
.bd-cmp-add-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 20px 44px 64px 20px; /* content centred inside the ::before box */
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--bd-text);
    text-decoration: none;
}
.bd-cmp-add-tile:hover, .bd-cmp-add-tile:focus { color: var(--bd-navy); text-decoration: none; }
/* Tile border drawn to the same box as the product cards next to it:
   cards sit flush with the row top and leave 44px below (.bd-cmp-card). */
.bd-cmp-add-tile::before {
    content: '';
    position: absolute;
    top: 0;
    right: 24px;
    bottom: 44px;
    left: 0;
    border: 1px solid #E0E0E0;
    pointer-events: none;
}
.bd-cmp-add-icon { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; border: 1px solid #333; }
/* isolation: the card's own z-indexed bits (×, compare, badges) stay inside
   the card's stacking context instead of rising above the sticky column. */
.bd-cmp-card.product-layout { margin: 0; padding: 0 8px 44px; isolation: isolate; }
.bd-cmp-card .product-block { height: 100%; margin: 0; }
.bd-cmp-section { display: none; }
.bd-cmp-row > * { border-left: 1px solid #E0E0E0; }
.bd-cmp-row > .bd-cmp-cell:last-child { border-right: 1px solid #E0E0E0; }
.bd-cmp-section + .bd-cmp-row > * { border-top: 1px solid #E0E0E0; padding-top: 34px; }
.bd-cmp-row:last-child > * { border-bottom: 1px solid #E0E0E0; padding-bottom: 34px; }
.bd-cmp-label:not(.bd-cmp-add-tile) { padding: 0 20px 0 34px; }
.bd-cmp-section-label { display: block; padding-top: 24px; font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1.4; }
.bd-cmp-cell { padding: 10px 20px; font-size: 13px; line-height: 1.4; }
.bd-cmp-cell b { font-weight: 700; }
.bd-cmp-none { display: block; text-align: center; color: var(--bd-muted); }
.bd-cmp-cell--empty { grid-column: 2 / -1; color: var(--bd-muted); }

.bd-cmp-arrow {
    position: absolute;
    top: 170px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: #F4F4F4;
    color: var(--bd-text);
    cursor: pointer;
}
.bd-cmp-arrow.prev { left: 226px; }
.bd-cmp-arrow.next { right: -19px; background: var(--bd-navy); color: #fff; }
.bd-cmp-group.can-prev .bd-cmp-arrow.prev,
.bd-cmp-group.can-next .bd-cmp-arrow.next { display: flex; }

@media (max-width: 767px) {
    .bd-cmp-toolbar { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
    .bd-cmp-modes, .bd-cmp-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
    .bd-cmp-tabs-wrap { gap: 10px; }
    .bd-cmp-tabs { gap: 10px; }
    .bd-cmp-tab-add { flex-basis: 44px; width: 44px; height: 44px; }
    .bd-cmp-tab { max-width: 220px; min-height: 44px; }
    .bd-cmp-group { margin-top: 22px; }
    .bd-cmp-grid { grid-template-columns: repeat(var(--bd-cmp-cols), 150px); }
    .bd-cmp-label { display: none; }
    .bd-cmp-card { padding: 0 5px 24px; }
    .bd-cmp-section {
        display: block;
        grid-column: 1 / -1;
        padding: 18px 20px;
        background: #F4F4F4;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
    }
    .bd-cmp-row > .bd-cmp-cell:first-of-type { border-left: 1px solid #E0E0E0; }
    .bd-cmp-section + .bd-cmp-row > * { padding-top: 16px; }
    .bd-cmp-row:last-child > * { padding-bottom: 16px; }
    .bd-cmp-cell { padding: 6px 12px; font-size: 12px; }
    .bd-cmp-arrow.prev { left: -6px; }
    .bd-cmp-arrow.next { right: -6px; }
    .bd-cmp-arrow { top: 110px; }
}

@media print {
    #head, .bd-footer, .bd-bottom-nav, .bd-mnav, .breadcrumb, .phpdebugbar,
    .bd-cmp-toolbar, .bd-cmp-tabs, .bd-cmp-arrow, .bd-acc-list-foot,
    .bd-cmp-page .bd-card-remove, .bd-cmp-page .button-group, .bd-cmp-page .quick_view_hov,
    .newsletter, .grecaptcha-badge, .scrollup-btn, .bd-tg-float { display: none !important; }
    .bd-cmp-add-tile { visibility: hidden; }
    .bd-cmp-scroll { overflow: visible; }
    .bd-cmp-grid { grid-template-columns: 120px repeat(var(--bd-cmp-cols), 1fr); width: 100%; }
    body { padding-bottom: 0 !important; }
}

/* Account card (form wrapper) */
.bd-account-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.bd-account-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bd-navy);
    padding: 12px 20px;
    background: var(--bd-gray-bg);
    border-bottom: 1px solid var(--bd-border);
}
.bd-account-card-body { padding: 20px; }

/* Form fields inside account */
.bd-account-card-body .form-group { margin-bottom: 14px; }
.bd-account-card-body label.control-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-muted);
    display: block;
    margin-bottom: 5px;
}
.bd-account-card-body .form-control {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    width: 100%;
    color: var(--bd-text) !important;
    font-family: inherit;
    transition: border-color .2s;
    box-shadow: none !important;
    height: auto !important;
}
.bd-account-card-body .form-control:focus {
    border-color: var(--bd-navy) !important;
    outline: none;
    box-shadow: none !important;
}
.bd-account-card-body .form-control:disabled {
    background: var(--bd-gray-bg) !important;
    color: var(--bd-muted) !important;
}
.bd-account-card-body .invalid-feedback {
    font-size: 11px;
    color: var(--bd-red);
    margin-top: 3px;
    display: block;
}
.bd-account-submit {
    background: var(--bd-navy) !important;
    border-color: var(--bd-navy) !important;
    color: #fff !important;
    padding: 9px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: var(--bd-radius) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: opacity .2s !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.bd-account-submit:hover { opacity: 0.88 !important; }

/* Order login page — two-column grid */
/* Guest checkout entry (auth/orderLogin): auth-page login card + a
   "buy without registration" card in the same style. */
.bd-order-login .bd-order-login-title {
    font: 800 36px/1.2 'Mardoto', sans-serif;
    text-transform: none;
    color: var(--bd-text);
    margin: 20px 0 36px;
}
.bd-order-login-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bd-order-login-select {
    height: auto;
    padding-right: 40px !important;
    background: #fff url("../images/icons/icon_arrow.svg") no-repeat calc(100% - 14px) center / 16px !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.bd-order-login-select:invalid,
.bd-order-login-select option[value=""] { color: #aaa; }
.bd-order-login-delivery { margin: -4px 0 14px; font-size: 13px; color: var(--bd-muted); }
/* order_login_text highlights "без регистрации" with .invalid-feedback
   (a block-level error style) — keep it red but inline here. */
.bd-order-login .bd-auth-sub .invalid-feedback { display: inline; margin: 0; font-size: inherit; color: var(--bd-red); }
.bd-order-login-delivery strong { color: var(--bd-text); }
/* Match the borderless white icon fields of the auth cards */
.bd-order-login .bd-auth-panel .form-control { border: none !important; background-color: #fff; }
.bd-order-login .iti { display: block; width: 100%; }
.bd-order-login .iti input.form-control { padding-left: 54px !important; }
.bd-order-login textarea.form-control { resize: vertical; min-height: 80px; }
.bd-auth-register-link {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bd-navy);
}
.bd-auth-register-link:hover { color: var(--bd-red); }
.bd-account-card-title { font-size: 16px; font-weight: 700; color: var(--bd-text); margin: 0 0 8px; }
@media (max-width: 767px) {
    .bd-order-login .bd-order-login-title { font-size: 24px; margin: 12px 0 20px; }
    .bd-order-login-row { grid-template-columns: 1fr; }
}

/* Address table */
.bd-address-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 0;
}
.bd-address-table thead td {
    padding: 9px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--bd-muted);
    background: var(--bd-gray-bg);
    border-bottom: 1px solid var(--bd-border);
}
.bd-address-table tbody tr { border-bottom: 1px solid var(--bd-border); }
.bd-address-table tbody tr:last-child { border-bottom: none; }
.bd-address-table td { padding: 10px 14px; vertical-align: middle; }


/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
#checkout, #checkout-guest-store { padding-top: 24px; padding-bottom: 48px; }

.bd-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* Section cards */
.bd-checkout-card {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.bd-checkout-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bd-navy);
    padding: 12px 20px;
    background: var(--bd-gray-bg);
    border-bottom: 1px solid var(--bd-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bd-checkout-card-title .bd-step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bd-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bd-checkout-card-body { padding: 20px; }

/* Form fields inside checkout */
.bd-checkout-card-body .form-group { margin-bottom: 14px; }
.bd-checkout-card-body label.control-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-muted);
    display: block;
    margin-bottom: 5px;
}
.bd-checkout-card-body .form-control,
.bd-checkout-card-body input[type="text"],
.bd-checkout-card-body input[type="email"],
.bd-checkout-card-body input[type="tel"],
.bd-checkout-card-body textarea {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    width: 100%;
    color: var(--bd-text) !important;
    font-family: inherit;
    transition: border-color .2s;
    box-shadow: none !important;
    height: auto !important;
}
.bd-checkout-card-body .form-control:focus,
.bd-checkout-card-body input:focus,
.bd-checkout-card-body textarea:focus {
    border-color: var(--bd-navy) !important;
    outline: none;
    box-shadow: none !important;
}
.bd-checkout-card-body textarea { resize: vertical; min-height: 64px; }
.bd-checkout-card-body .invalid-feedback,
.bd-checkout-card-body .error {
    font-size: 11px;
    color: var(--bd-red);
    margin-top: 3px;
    display: block;
}

/* Radio options (delivery / payment) */
.bd-radio-group { display: flex; flex-direction: column; gap: 8px; }
.bd-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: 13px;
    color: var(--bd-text);
}
.bd-radio-option:has(input:checked) {
    border-color: var(--bd-navy);
    background: #f0f4ff;
}
.bd-radio-option input[type="radio"] {
    accent-color: var(--bd-navy);
    width: 16px; height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Bank transfer info block */
#bank_transfer {
    font-size: 12px;
    color: var(--bd-muted);
    background: var(--bd-gray-bg);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 10px 14px;
    margin-top: 8px;
}

/* Payment discount note */
.bd-payment-note {
    font-size: 12px;
    color: var(--bd-red);
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fee2e2;
    border-radius: var(--bd-radius);
    border: 1px solid #fca5a5;
}

/* Terms checkbox */
.bd-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--bd-text);
    margin-top: 4px;
}
.bd-terms-row input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--bd-navy);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.bd-terms-row a { color: var(--bd-navy); }

/* Delivery method dynamic area */
#deliveryMethod { margin-top: 12px; }
.types-delivery .form-group { margin-bottom: 12px; }
.types-delivery .form-control {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    height: auto !important;
    box-shadow: none !important;
}
.types-delivery .form-control:focus { border-color: var(--bd-navy) !important; box-shadow: none !important; }
.types-delivery .invalid-feedback,
.types-delivery .error { font-size: 11px; color: var(--bd-red); margin-top: 3px; display: block; }
#delivery_price {
    font-size: 12px;
    color: var(--bd-muted);
    margin-top: 6px;
    display: block;
}
#delivery_price.hidden { display: none; }

/* Intl Tel Input override */
.iti { width: 100%; }
.iti__flag-container + input { padding-left: 52px !important; }
.iti input { width: 100%; }

/* Select2 override */
.select2-container .select2-selection--single {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    height: 38px !important;
    display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px !important;
    font-size: 13px !important;
    color: var(--bd-text) !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px !important; }
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--bd-navy) !important; }

/* Checkout order summary */
.bd-checkout-summary {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    position: sticky;
    top: 16px;
    overflow: hidden;
}
.bd-checkout-summary-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bd-navy);
    padding: 12px 20px;
    background: var(--bd-gray-bg);
    border-bottom: 1px solid var(--bd-border);
}
.bd-checkout-items { padding: 16px 20px; border-bottom: 1px solid var(--bd-border); }
.bd-checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bd-gray-lt);
    font-size: 12px;
}
.bd-checkout-item:last-child { border-bottom: none; }
.bd-checkout-item img {
    width: 44px; height: 44px;
    object-fit: contain;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 2px;
    flex-shrink: 0;
}
.bd-checkout-item-name {
    flex: 1;
    font-weight: 600;
    color: var(--bd-text);
    line-height: 1.4;
}
.bd-checkout-item-qty { color: var(--bd-muted); font-size: 11px; }
.bd-checkout-item-price { font-weight: 700; white-space: nowrap; }
.bd-checkout-totals { padding: 16px 20px; }

/* Alert styles */
.bd-alert-warning {
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 14px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    margin-bottom: 16px;
}
.bd-alert-warning a { color: #92400e; font-weight: 600; }

/* Livewire wizard styling */
#checkout .wizard { border: none; }
#checkout .wizard > .steps { margin-bottom: 20px; }
#checkout .wizard > .steps ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
    border-bottom: 2px solid var(--bd-border);
}
#checkout .wizard > .steps ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-muted);
    text-decoration: none;
    border-radius: var(--bd-radius) var(--bd-radius) 0 0;
    transition: color .2s, background .2s;
}
#checkout .wizard > .steps ul li.current a,
#checkout .wizard > .steps ul li.done a { color: var(--bd-navy); }
#checkout .wizard > .steps ul li.current { border-bottom: 2px solid var(--bd-navy); }
#checkout .wizard > .content { border: 1px solid var(--bd-border); border-radius: var(--bd-radius); padding: 24px; background: #fff; }
#checkout .wizard > .actions ul { display: flex; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; justify-content: flex-end; }
#checkout .wizard > .actions ul li a {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
    background: var(--bd-navy);
    color: #fff;
    border: none;
}
#checkout .wizard > .actions ul li a:hover { opacity: 0.88; }
#checkout .wizard > .actions ul li.disabled a { background: var(--bd-gray-lt); color: var(--bd-muted); }

/* Checkout responsive */
@media (max-width: 767px) {
    .bd-checkout-layout { grid-template-columns: 1fr; }
    .bd-checkout-summary { position: static; }
}

/* ============================================================
   CHECKOUT — NUMBERED ACCORDION (authenticated flow)
   Barry_design/личный кабинет/*Оформление заказа*: a single-column,
   4-step accordion (01 Данные пользователя / 02 Способ доставки /
   03 Способ оплаты / 04 Итого). Only one step is "active" (full white
   form + red left-border accent) at a time; earlier steps collapse to a
   light-gray read-only summary with an "Изменить ..." link, later steps
   sit pending (faint, unopened). Reuses .bd-radio-group/.bd-terms-row/
   .bd-checkout-card-body's input styling and front.checkout.shop /
   front.checkout.shipment as-is (both already bd-* styled) for step 2's
   form content — this only adds the accordion shell + payment cards +
   the item-review table for step 4. The interactive pickup-point map
   from the mockup is deferred; step 2's "Самовывoz" still uses the
   existing shop_address <select>. */
.bd-co-accordion { max-width: 100%; }

/* Barry_design/Frame 534.jpg — current-step breadcrumb next to the H1,
   kept in sync with the accordion by goToStep() in page_script. */
.bd-co-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.bd-co-page-head .bd-page-title { margin-bottom: 0; }
.bd-co-progress-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}
.bd-co-progress-step { color: var(--bd-muted); transition: color .2s; }
.bd-co-progress-step--active { color: var(--bd-red); }
.bd-co-progress-sep { color: var(--bd-border); font-size: 13px; }
@media (max-width: 767px) {
    .bd-co-progress-bar { display: none; }
}

.bd-co-step { margin-bottom: 16px; border-radius: var(--bd-radius); overflow: hidden; }

.bd-co-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bd-gray-bg);
    flex-wrap: wrap;
}
.bd-co-step-head--pending { opacity: .55; }
.bd-co-step-head--active {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-left: 4px solid var(--bd-red);
    border-radius: var(--bd-radius);
}
.bd-co-step-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--bd-text);
    margin: 0;
}
.bd-co-step-num { color: var(--bd-muted); }
.bd-co-step-head--active .bd-co-step-num { color: var(--bd-red); }
.bd-co-step-title .bd-co-step-slash { color: var(--bd-muted); font-weight: 400; }
.bd-co-step-head--active .bd-co-step-title .bd-co-step-slash { color: var(--bd-red); }

.bd-co-step-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
}
.bd-co-step-edit {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-navy);
    text-decoration: none;
    white-space: nowrap;
}
.bd-co-step-edit:hover { text-decoration: underline; color: var(--bd-navy); }

/* Collapsed ("done") body — light-gray read-only summary boxes */
.bd-co-step-summary {
    background: var(--bd-gray-bg);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.bd-co-summary-box {
    background: #fff;
    border-radius: var(--bd-radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--bd-text);
}
.bd-co-summary-box strong { display: block; margin-bottom: 4px; font-size: 13px; }
.bd-co-summary-box .bd-co-summary-muted { color: var(--bd-muted); }

/* Active/expanded body — plain form area */
.bd-co-step-body {
    background: #fff;
    border: 1px solid var(--bd-border);
    border-top: none;
    padding: 24px;
}
.bd-co-step-body .form-group { margin-bottom: 14px; }
.bd-co-step-body label.control-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-muted);
    display: block;
    margin-bottom: 5px;
}
.bd-co-step-body .form-control,
.bd-co-step-body input[type="text"],
.bd-co-step-body input[type="email"],
.bd-co-step-body input[type="tel"],
.bd-co-step-body textarea {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    width: 100%;
    color: var(--bd-text) !important;
    font-family: inherit;
    box-shadow: none !important;
    height: auto !important;
}
.bd-co-step-body .form-control:focus,
.bd-co-step-body input:focus,
.bd-co-step-body textarea:focus { border-color: var(--bd-navy) !important; outline: none; box-shadow: none !important; }
/* The shorthand `padding` !important above (needed to override Bootstrap's
   .form-control) also resets padding-left on #telphone, fighting
   .iti__flag-container + input's own 52px !important (public/css/barry-
   new.css's earlier "Intl Tel Input override" block) at equal !important
   weight — .bd-co-step-body's extra class here wins the specificity tie,
   putting the flag dropdown back on top of the typed number. Reassert it
   with one more class of specificity so the flag has room again. */
.bd-co-step-body .iti__flag-container + input[type="tel"] { padding-left: 52px !important; }
/* style.css's "input.form-control, textarea.form-control, select.form-
   control, .select2-container { box-shadow:...; border-radius:4px;
   padding:5px 20px }" also matches the bare .select2-container wrapper
   select2 builds for the shop/region <select>s — nothing before this
   targeted that outer wrapper (only .select2-selection--single, its
   child, via the general "Select2 override" block above), so it was
   still carrying the old diffuse shadow/padding/radius double-boxing the
   inner element this new accordion already styles correctly. */
.bd-co-step-body .select2-container {
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}
.bd-co-step-body .invalid-feedback,
.bd-co-step-body .error { font-size: 11px; color: var(--bd-red); margin-top: 3px; display: block; }
.bd-co-fields-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* front/checkout/address_fields.blade.php — street full width, the four
   short fields (house/apartment/entrance/floor) in a row. */
.bd-address-fields { display: grid; grid-template-columns: 1fr; gap: 0; }
.bd-address-fields-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 575px) {
    .bd-address-fields-row { grid-template-columns: 1fr 1fr; }
}
.bd-co-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bd-text); margin: 10px 0; }
/* display: style.css hides every bare checkbox (display:none) */
.bd-co-checkbox-row input[type="checkbox"] { display: inline-block !important; flex-shrink: 0; margin: 0; width: 15px; height: 15px; accent-color: var(--bd-navy); cursor: pointer; }

/* Step 2 "Самовывоз" pickup-point picker (front/checkout/shop_picker.blade.php)
   — Barry_design/личный кабинет/1920  Оформление заказа-1.jpg (map view) and
   -4.jpg (list view). */
.bd-pickup { margin-top: 8px; }
.bd-pickup-title { font-size: 16px; font-weight: 700; color: var(--bd-text); margin: 8px 0 22px; }
.bd-pickup-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin-bottom: 20px;}
.bd-pickup-label { display: block; font-size: 12px; font-weight: 600; color: var(--bd-text); margin-bottom: 10px; }
.bd-pickup-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 24px; }
.bd-pickup-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--bd-text);
    cursor: pointer;
}
/* style.css hides every bare checkbox (display:none, paired with a
   label:before icon these never had) and every #checkout radio
   (opacity:0; position:absolute; pointer-events:none) — bring these back
   as real, clickable inputs. */
.bd-pickup-check input[type="checkbox"],
.bd-pickup-check input[type="radio"] {
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--bd-red);
}
.bd-pickup-check input[type="checkbox"] { accent-color: var(--bd-navy); }
.bd-pickup-pin { flex-shrink: 0; }
.bd-pickup-pin--shop { color: #8A8D93; }
.bd-pickup-pin--point { color: var(--bd-navy); }
.bd-pickup-hint { font-size: 13px; line-height: 1.6; color: var(--bd-text); margin: 30px 0 24px; }

.bd-pickup-mapwrap { position: relative; margin: 0 -24px 24px; }
.bd-pickup[data-view="list"] .bd-pickup-mapwrap { display: none; }
.bd-pickup-map { height: 440px; background: var(--bd-gray-lt); }
.bd-pickup-item-hours { white-space: pre-line; }
.bd-pickup-item-cost strong { color: var(--bd-red); font-weight: 600; }

/* Pin card — Barry_design/map info more.jpg: photo column + labelled
   details, a tail on the left that checkout-pickup.js pans the pin onto. */
.bd-pickup-popup {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 5;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    grid-template-areas: "side info" "actions info";
    grid-template-rows: auto 1fr;
    column-gap: 60px;
    width: 674px;
    max-width: calc(100% - 100px);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
    padding: 34px 40px 32px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bd-text);
}
.bd-pickup-popup[hidden] { display: none; }
.bd-pickup-popup-tail {
    position: absolute;
    left: -14px;
    bottom: 62px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 14px solid #fff;
}
.bd-pickup-popup-close {
    position: absolute; top: 12px; right: 14px;
    border: none; background: none; padding: 4px;
    font-size: 30px; font-weight: 300; line-height: 1; color: #8A8A8A; cursor: pointer;
}
.bd-pickup-popup-close:hover { color: var(--bd-text); }
.bd-pickup-popup-side { grid-area: side; min-width: 0; }
.bd-pickup-popup-type { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.bd-pickup-popup-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 153px;
    background: var(--bd-gray-lt);
    color: #B8BCC4;
    font-size: 48px;
    overflow: hidden;
}
.bd-pickup-popup-photo { display: block; width: 100%; height: 100%; object-fit: cover; font-size: 12px; }
.bd-pickup-popup-photo[hidden],
.bd-pickup-popup-noimg[hidden] { display: none; }
.bd-pickup-popup-route {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-weight: 600;
}
.bd-pickup-popup-route[hidden] { display: none; }
.bd-pickup-popup-route a {
    font-weight: 400;
    color: #8A8A8A;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.bd-pickup-popup-route a:hover { color: var(--bd-navy); }
.bd-pickup-popup-info { grid-area: info; margin: 0; padding-right: 24px; min-width: 0; }
.bd-pickup-popup-info dt { font-weight: 400; color: #8A8A8A; margin: 0 0 2px; }
.bd-pickup-popup-info dd { margin: 0 0 20px; overflow-wrap: anywhere; }
.bd-pickup-popup-info dd:last-child { margin-bottom: 0; }
.bd-pickup-popup-info [hidden] { display: none; }
.bd-pickup-popup-info a { color: var(--bd-text); }
.bd-pickup-popup-info a:hover { color: var(--bd-navy); }
.bd-pickup-popup-hours { white-space: pre-line; }
.bd-pickup-popup-free { color: var(--bd-red); font-weight: 600; }
.bd-pickup-popup-actions { grid-area: actions; align-self: end; margin-top: 20px; }
.bd-pickup-popup-actions .bd-pickup-choose { width: 100%; }

.bd-pickup-list-head {
    background: var(--bd-gray-lt);
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bd-text);
}
.bd-pickup[data-view="map"] .bd-pickup-list-head { display: none; }
.bd-pickup-list { border: 1px solid var(--bd-border); }
.bd-pickup[data-view="list"] .bd-pickup-list { max-height: 720px; overflow-y: auto; border-top: none; }
.bd-pickup[data-view="map"] .bd-pickup-list:not(:has(.bd-pickup-item:not(.is-hidden))) { display: none; }
.bd-pickup-empty { padding: 24px 20px; font-size: 13px; color: var(--bd-muted); }
.bd-pickup-empty[hidden] { display: none; }

.bd-pickup-item {
    display: grid;
    grid-template-columns: 130px 1fr 210px;
    border-bottom: 1px solid var(--bd-border);
    background: #fff;
}
.bd-pickup-item:last-of-type { border-bottom: none; }
.bd-pickup-item.is-hidden { display: none; }
.bd-pickup[data-view="list"] .bd-pickup-item.is-selected { background: var(--bd-gray-lt); }
.bd-pickup-item-media { padding: 24px 0 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bd-pickup-item-photo {
    width: 106px; height: 88px;
    background: var(--bd-gray-lt);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.bd-pickup-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.bd-pickup-item-photo .fa { font-size: 30px; color: var(--bd-navy); opacity: .5; }
.bd-pickup-onmap { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; font-weight: 600; color: var(--bd-navy); line-height: 1.35; }
.bd-pickup-onmap .fa { font-size: 15px; color: var(--bd-text); }
.bd-pickup-onmap:hover { color: var(--bd-red); }
.bd-pickup-item-body { padding: 24px; min-width: 0; font-size: 12px; line-height: 1.5; color: var(--bd-text); }
.bd-pickup-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px; }
.bd-pickup-item-type { display: inline-flex; align-items: center; gap: 8px; padding-right: 14px; border-right: 1px solid var(--bd-border); }
.bd-pickup-item-cost { font-weight: 600; }
.bd-pickup-item-address { font-weight: 600; margin-bottom: 10px; }
.bd-pickup-item-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.bd-pickup-item-contacts a { color: var(--bd-text); }
.bd-pickup-item-directions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bd-border); }
.bd-pickup-directions-toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    border: none; background: none; padding: 0;
    font-size: 12px; font-weight: 700; color: var(--bd-text); cursor: pointer; text-align: left;
}
.bd-pickup-directions-toggle .fa { font-size: 16px; color: var(--bd-muted); transition: transform .2s; }
.bd-pickup-item.is-open .bd-pickup-directions-toggle .fa { transform: rotate(180deg); }
.bd-pickup-directions-text {
    margin-top: 4px;
    color: var(--bd-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bd-pickup-directions-text p { margin: 0 0 6px; }
.bd-pickup-directions-text img { max-width: 100%; height: auto; }
.bd-pickup-item.is-open .bd-pickup-directions-text { display: block; -webkit-line-clamp: unset; }
.bd-pickup-item-aside {
    border-left: 1px solid var(--bd-border);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-pickup-choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 11px 18px;
    border: 1.5px solid var(--bd-red);
    background: var(--bd-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.bd-pickup-choose:hover { background: #c62828; border-color: #c62828; }
.bd-pickup-choose-done { display: none; }
.bd-pickup-item.is-selected .bd-pickup-choose,
.bd-pickup-popup .bd-pickup-choose.is-chosen { background: #fff; color: var(--bd-red); }
.bd-pickup-item.is-selected .bd-pickup-choose-idle,
.bd-pickup-popup .bd-pickup-choose.is-chosen .bd-pickup-choose-idle { display: none; }
.bd-pickup-item.is-selected .bd-pickup-choose-done,
.bd-pickup-popup .bd-pickup-choose.is-chosen .bd-pickup-choose-done { display: inline; }
.bd-pickup-error { margin-top: 10px; }
.bd-pickup-error[hidden] { display: none !important; }

@media (max-width: 767px) {
    .bd-pickup-filters { grid-template-columns: 1fr; gap: 18px; }
    .bd-pickup-filters .bd-pickup-filter:empty { display: none; }
    .bd-pickup-mapwrap { margin: 0 -16px 20px; }
    .bd-pickup-map { height: 360px; }
    .bd-pickup-popup {
        top: auto; bottom: 12px; right: 12px; left: 12px; transform: none;
        width: auto; max-width: none; max-height: 72%; overflow-y: auto;
        grid-template-columns: 1fr; grid-template-areas: "side" "info" "actions";
        row-gap: 16px; padding: 18px 16px 16px; font-size: 13px;
    }
    .bd-pickup-popup-tail { display: none; }
    .bd-pickup-popup-media { height: 90px; }
    .bd-pickup-popup-info dd { margin-bottom: 12px; }
    .bd-pickup-popup-actions { margin-top: 0; }
    .bd-pickup-item { grid-template-columns: 1fr; }
    .bd-pickup-item-media { flex-direction: row; padding: 18px 18px 0; align-items: center; }
    .bd-pickup-item-photo { width: 84px; height: 70px; }
    .bd-pickup-item-body { padding: 14px 18px; }
    .bd-pickup-item-contacts { grid-template-columns: 1fr; }
    .bd-pickup-item-aside { border-left: none; border-top: 1px solid var(--bd-border); padding: 14px 18px 18px; justify-content: stretch; }
    .bd-pickup-item-aside .bd-pickup-choose { width: 100%; }
}

/* Back / Next actions */
.bd-co-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.bd-co-btn-outline,
.bd-co-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
}
.bd-co-btn-outline { background: none; border: 1.5px solid var(--bd-border); color: var(--bd-text); }
.bd-co-btn-outline:hover { border-color: var(--bd-navy); color: var(--bd-navy); }
.bd-co-btn-next { background: none; border: 1.5px solid var(--bd-red); color: var(--bd-red); }
.bd-co-btn-next:hover { background: var(--bd-red); color: #fff; }

/* Payment method cards (step 3) — Barry_design/личный кабинет/1366
   Оформление заказа.jpg: gray cards in a horizontal scroll-snap row
   (3 visible desktop / 2 tablet / ~1 phone), title + logos on top,
   discount note + boxed "-N%" pinned to the bottom; the selected card
   turns white with a red underline. */
.bd-payment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.bd-payment-head-title { font-size: 16px; font-weight: 700; color: var(--bd-text); margin: 0; }
.bd-payment-nav .bd-payment-nav-disabled { opacity: .4; pointer-events: none; }
.bd-payment-cards {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 3px; /* room for the selected card's underline */
}
.bd-payment-cards::-webkit-scrollbar { display: none; }
.bd-payment-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 165px;
    margin: 0;
    background: var(--bd-gray-lt);
    border-bottom: 3px solid transparent;
    padding: 24px 26px 20px;
    cursor: pointer;
    font-weight: 400;
    transition: background .2s, border-color .2s;
}
.bd-payment-card:hover { background: #E8E8E8; }
.bd-payment-card:has(input:checked) { background: #fff; border-bottom-color: var(--bd-red); }
.bd-payment-card:has(input:focus-visible) { outline: 2px solid var(--bd-navy); outline-offset: -2px; }
.bd-payment-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bd-payment-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bd-payment-card-title { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--bd-text); }
.bd-payment-card-logos { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bd-payment-logo { display: block; height: 28px; width: auto; }
.bd-payment-logo--visa { height: 18px; }
.bd-payment-logo--idram,
.bd-payment-logo--easypay { height: 36px; }
.bd-payment-logo--telcell { height: 30px; }
.bd-payment-card-icon { font-size: 30px; color: var(--bd-navy); }
.bd-payment-card-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--bd-text);
}
.bd-payment-card-note .fa { color: var(--bd-red); font-size: 16px; flex-shrink: 0; }
.bd-payment-card-note span:not(.bd-payment-card-badge) { flex: 1; }
.bd-payment-card-badge {
    border: 1px solid var(--bd-red);
    color: var(--bd-red);
    padding: 8px 5px;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
}
/* Bank-transfer requisites, inside that card, only while it's selected */
.bd-payment-details {
    display: none;
    margin-top: auto;
    padding-top: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--bd-text);
    overflow-wrap: anywhere;
}
.bd-payment-card:has(input:checked) .bd-payment-details,
.bd-co-payment-summary .bd-payment-details { display: block; }
.bd-co-payment-summary [data-summary-payment] .bd-payment-details { margin-top: 0; padding-top: 0; flex: 1; }
@media (max-width: 991px) {
    .bd-payment-cards { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 575px) {
    .bd-payment-cards { grid-auto-columns: 85%; gap: 12px; }
    .bd-payment-card { padding: 20px 18px 16px; }
}

/* Step 3 collapsed: the chosen card, flat, beside the discount note */
.bd-co-payment-summary { grid-template-columns: 2fr 1fr; }
.bd-co-payment-summary [data-summary-payment] {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 22px;
}
.bd-co-payment-summary [data-summary-payment] .bd-payment-card-top { flex: 1; align-items: center; }
.bd-co-payment-summary [data-summary-payment] .bd-payment-card-note { margin-top: 0; padding-top: 0; flex: 1; }
.bd-co-payment-summary [data-summary-payment-discount] {
    display: flex;
    align-items: center;
    padding: 20px 22px;
    line-height: 1.5;
    color: var(--bd-muted);
}
@media (max-width: 767px) {
    .bd-co-payment-summary { grid-template-columns: 1fr; }
    .bd-co-payment-summary [data-summary-payment] { flex-direction: column; align-items: stretch; gap: 14px; }
}

/* Step 4 — item review table */
.bd-co-items-table { border-top: 1px solid var(--bd-border); }
/* Head and each row are separate grids, so their tracks must not depend
   on content: an `auto` last column (empty in the head, the remove button
   in rows) or an unclamped fr track (long product names) sizes differently
   per grid and shifts row values out from under their titles. */
.bd-co-items-head,
.bd-co-item-row { grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 1fr)) 170px; }
.bd-co-items-head {
    display: grid;
    gap: 12px;
    padding: 10px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--bd-muted);
    border-bottom: 1px solid var(--bd-border);
}
.bd-co-item-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid var(--bd-border);
    font-size: 13px;
}
.bd-co-item-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bd-co-item-product img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--bd-border); border-radius: var(--bd-radius); padding: 2px; flex-shrink: 0; }
.bd-co-item-sku { display: block; font-size: 11px; color: var(--bd-muted); margin-bottom: 2px; }
.bd-co-item-name { font-weight: 600; color: var(--bd-text); }
.bd-co-item-price-old { display: block; color: var(--bd-muted); text-decoration: line-through; font-size: 11px; }
.bd-co-item-total { font-weight: 700; }
.bd-co-item-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--bd-muted);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.bd-co-item-remove:hover { color: var(--bd-red); }

/* Step 4 — note + consent + totals */
.bd-co-final-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 20px; align-items: start; }
.bd-co-note textarea { min-height: 84px; resize: vertical; }
.bd-co-totals-box { background: var(--bd-gray-bg); border-radius: var(--bd-radius); padding: 20px; }
.bd-co-totals-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.bd-co-totals-row.bd-co-totals-discount { color: var(--bd-red); }
.bd-co-totals-row.bd-co-totals-final { font-size: 18px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--bd-border); margin-top: 8px; }
.bd-co-submit-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: var(--bd-red);
    color: #fff;
    border: none;
    border-radius: var(--bd-radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .2s;
}
.bd-co-submit-btn:hover { opacity: .9; }
.bd-co-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 767px) {
    .bd-co-step-head { padding: 14px 16px; }
    .bd-co-step-body { padding: 16px; }
    .bd-co-fields-2col { grid-template-columns: 1fr; }
    .bd-co-items-head { display: none; }
    .bd-co-item-row { grid-template-columns: 1fr; gap: 4px; }
    .bd-co-item-product { grid-column: 1; }
    .bd-co-final-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
/* Per Barry_design/личный кабинет/АВТОРИЗАЦИЯ + РЕГИСТРАЦИЯ ПРИ ПЕРЕХОДЕ
   ЧЕРЕЗ ИКОНКУ ЧЕЛОВЕЧКА В МЕНЮ 1931.jpg: a plain top-down page (not the
   old single-centered-card layout) with two cards side by side. */
.bd-auth-page { padding-top: 24px; padding-bottom: 48px; }
.bd-auth-cards {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.bd-auth-panel {
    flex: 1;
    min-width: 0;
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
    padding: 40px 36px;
}
.bd-auth-card-bar {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--bd-red);
    border-radius: 2px;
    margin-bottom: 14px;
}
.bd-auth-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--bd-text);
    margin: 0 0 24px;
}
.bd-auth-sub {
    font-size: 13px;
    color: var(--bd-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Inputs */
.bd-auth-panel .form-group { margin-bottom: 14px; }
.bd-auth-panel .form-control {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100%;
    color: var(--bd-text) !important;
    font-family: inherit;
    transition: border-color .2s;
    box-shadow: none !important;
    height: auto !important;
}
.bd-auth-panel .form-control:focus {
    border-color: var(--bd-navy) !important;
    outline: none;
    box-shadow: none !important;
}
.bd-auth-panel .form-control::placeholder { color: #aaa; }

/* Icon-prefixed inputs — the mockup's phone/lock/person glyphs, reusing
   Font Awesome (already loaded site-wide) since these fields are
   email/name not phone. */
.bd-auth-icon-field { position: relative; }
.bd-auth-icon-field > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bd-muted);
    font-size: 15px;
    pointer-events: none;
}
.bd-auth-icon-field .form-control {
    padding-left: 42px !important;
    background: #fff;
    border: none !important;
}

/* Remember-me + forgot-password row */
.bd-auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 20px;
}
.bd-forgot-link {
    font-size: 12px;
    color: var(--bd-muted);
    text-decoration: none;
    transition: color .2s;
}
.bd-forgot-link:hover { color: var(--bd-navy); }

/* Checkbox rows */
.bd-auth-panel .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* style.css's legacy "input[type=checkbox] { display:none }" (it pairs
   with a sibling <label>:before icon that was never wired up for these
   two checkboxes either — same root cause as the cart page's checkbox
   bug fixed earlier) was leaving "remember me" and "accept terms"
   impossible to check by mouse or keyboard. Pre-existing, not introduced
   by this redesign, but it directly blocks submitting either form. */
.bd-auth-panel .checkbox-group input[type="checkbox"] {
    display: inline-block !important;
    width: 15px; height: 15px;
    accent-color: var(--bd-navy);
    cursor: pointer;
    flex-shrink: 0;
}
.bd-auth-panel .checkbox-group label {
    font-size: 13px;
    color: var(--bd-text);
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}
.bd-auth-panel .checkbox-group label a { color: var(--bd-navy); }
/* Same style.css legacy "input[type=checkbox] + label:before { content:
   url(checkbox.svg) }" as the cart page's star-rating fix — now that the
   checkbox itself is visible again (above), its adjacent <label> would
   otherwise also draw that legacy icon right next to it. */
.bd-auth-panel .checkbox-group input + label:before {
    content: none !important;
}

/* Submit button — layered onto the shared .bd-account-submit (padding/
   radius/uppercase/hover-opacity, public/css/barry-new.css ~line 5028,
   used site-wide and left navy elsewhere e.g. /personal/profile) with
   just the color overridden to red for these two cards. */
.bd-auth-card-submit {
    background: var(--bd-red) !important;
    border-color: var(--bd-red) !important;
    width: 100%;
    display: block;
    padding: 12px 24px !important;
    font-size: 14px !important;
}

/* Toggle switch (newsletter subscription) */
.bd-auth-panel .switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}
/* Same legacy display:none as above — this input is deliberately
   invisible (opacity/size), but must stay display:block or the browser
   won't toggle it when its wrapping <label> is clicked. */
.bd-auth-panel .switch input { display: inline-block !important; opacity: 0; width: 0; height: 0; }
.bd-auth-panel .switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bd-border);
    border-radius: 24px;
    transition: background .2s;
}
.bd-auth-panel .switch .slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bd-auth-panel .switch input:checked + .slider { background: var(--bd-navy); }
.bd-auth-panel .switch input:checked + .slider::before { transform: translateX(20px); }

/* Social login */
.bd-auth-panel .text-p {
    font-size: 12px;
    color: var(--bd-muted);
    text-align: center;
    margin: 20px 0 12px;
    position: relative;
}
.bd-auth-panel .text-p::before,
.bd-auth-panel .text-p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: var(--bd-border);
}
.bd-auth-panel .text-p::before { left: 0; }
.bd-auth-panel .text-p::after { right: 0; }

.social-section .social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--bd-border);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all .2s;
    background: #fff;
    font-size: 18px;
}
.social-icons a:hover { border-color: var(--bd-navy); background: var(--bd-gray-bg); }

/* Validation messages */
.bd-auth-panel .invalid-feedback,
.bd-auth-panel .text-danger {
    font-size: 12px;
    color: var(--bd-red);
    margin-top: 4px;
    display: block;
}
.bd-auth-panel .alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    margin-bottom: 16px;
}

/* Simple centered card (forgot password / reset) */
.bd-auth-simple-wrap {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: var(--bd-gray-bg);
}
.bd-auth-simple {
    max-width: 460px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.bd-auth-simple h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 8px;
}
.bd-auth-simple .bd-auth-sub {
    font-size: 13px;
    color: var(--bd-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}
.bd-auth-simple .form-group { margin-bottom: 16px; }
.bd-auth-simple .form-control {
    border: 1.5px solid var(--bd-border) !important;
    border-radius: var(--bd-radius) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100%;
    color: var(--bd-text) !important;
    font-family: inherit;
    transition: border-color .2s;
    box-shadow: none !important;
    height: auto !important;
}
.bd-auth-simple .form-control:focus {
    border-color: var(--bd-navy) !important;
    outline: none;
    box-shadow: none !important;
}
.bd-auth-simple label.control-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    margin-bottom: 6px;
    display: block;
}
.bd-auth-simple .invalid-feedback {
    font-size: 12px;
    color: var(--bd-red);
    margin-top: 4px;
    display: block;
}
.bd-auth-simple .alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    margin-bottom: 16px;
}
/* Icon-prefixed field on this white card — the base .bd-auth-icon-field
   variant is white-on-gray (for the login/register cards); fill it
   instead so it doesn't disappear against this card's white background. */
.bd-auth-simple .bd-auth-icon-field .form-control {
    background: var(--bd-gray-bg);
    border: none !important;
    padding-left: 42px !important;
}
.bd-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bd-muted);
    text-decoration: none;
    margin-top: 16px;
    transition: color .2s;
}
.bd-auth-back:hover { color: var(--bd-navy); }

/* ============================================================
   CART / WISHLIST / COMPARE PAGES
   ============================================================ */
.bd-cart-page { padding-top: 24px; padding-bottom: 48px; }

.bd-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bd-border);
}

/* Select-all row above the table — per Barry_design/личный кабинет/
   Корзина 1920.jpg + 1922.png (the "all selected" state): the bulk-remove
   trigger is a plain link here rather than the permanent button it used
   to be below the table, and only shows once something is checked. */
.bd-cart-select-all-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.bd-cart-select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-navy);
    cursor: pointer;
    text-decoration: underline;
}
.bd-cart-bulk-remove-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-red);
    text-decoration: underline;
}
.bd-cart-bulk-remove-link:hover { color: var(--bd-red); text-decoration: none; }

/* Cart / wishlist table */
.bd-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    overflow: hidden;
}
.bd-cart-table thead td {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bd-muted);
    background: var(--bd-gray-bg);
    border-bottom: 1px solid var(--bd-border);
}
.bd-cart-table tbody tr { border-bottom: 1px solid var(--bd-border); }
.bd-cart-table tbody tr:last-child { border-bottom: none; }
.bd-cart-table td { padding: 14px; vertical-align: middle; }
.bd-cart-select-col { width: 36px; padding-right: 0 !important; text-align: center; }
.bd-cart-actions-col { width: 1%; white-space: nowrap; }
/* style.css's legacy "input[type=checkbox] { display:none }" (it relies on
   a sibling <label>:before for a custom icon, see checkbox.svg) would
   otherwise hide these — they have no such label, so restore a plain
   native checkbox instead. */
.bd-cart-checkbox {
    display: inline-block !important;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--bd-navy);
}

.bd-cart-img {
    width: 72px; height: 72px;
    object-fit: contain;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 4px;
    display: block;
}
.bd-cart-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color .2s;
    line-height: 1.4;
}
.bd-cart-name:hover { color: var(--bd-navy); }
.bd-cart-sku { display: block; font-size: 11px; color: var(--bd-muted); margin-bottom: 4px; }
.bd-cart-meta { font-size: 11px; color: var(--bd-muted); margin: 4px 0 0; padding: 0; list-style: none; }
.bd-cart-meta dt { font-weight: 600; display: inline; }
.bd-cart-meta dd { display: inline; margin-left: 4px; }

/* Discount badge — outlined, not the filled .bd-discount-pill (that one's
   shared with checkout_guest.blade.php's summary rows) */
.bd-discount-badge {
    display: inline-block;
    border: 1px solid var(--bd-red);
    color: var(--bd-red);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

/* Qty stepper */
.bd-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background: var(--bd-gray-bg);
    overflow: hidden;
}
.bd-qty-stepper-disabled { opacity: 0.5; }
.bd-qty-step {
    width: 28px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--bd-text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    padding: 0;
}
.bd-qty-step:hover:not(:disabled) { background: var(--bd-border); }
.bd-qty-step:disabled { cursor: not-allowed; }
.bd-qty-input {
    width: 32px;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--bd-text);
    font-family: inherit;
}
.bd-qty-input:focus { outline: none; }
/* Chrome/Firefox/Safari spinner arrows — the stepper buttons replace them */
.bd-qty-input::-webkit-outer-spin-button,
.bd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bd-qty-input[type=number] { -moz-appearance: textfield; }
.bd-icon-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--bd-border);
    background: #fff;
    border-radius: var(--bd-radius);
    cursor: pointer;
    color: var(--bd-text);
    font-size: 12px;
    transition: all .2s;
    flex-shrink: 0;
    padding: 0;
}
.bd-icon-btn:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; }
.bd-icon-btn-danger { border-color: #fca5a5; color: var(--bd-red); }
.bd-icon-btn-danger:hover { background: var(--bd-red); border-color: var(--bd-red); color: #fff; }
.bd-icon-btn:disabled,
.bd-icon-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Price cells */
.bd-price-val { font-size: 14px; font-weight: 700; color: var(--bd-text); white-space: nowrap; }
.bd-price-old { font-size: 11px; color: var(--bd-muted); text-decoration: line-through; font-weight: 600; display: block; }
.bd-price-sale { color: var(--bd-red); }

/* Gift badge */
.bd-gift-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: #fef9c3; color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 2px;
    font-size: 11px; font-weight: 600;
    padding: 2px 8px;
}

/* Cart actions below table */
.bd-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 10px;
    flex-wrap: wrap;
}
.bd-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    text-decoration: none;
    transition: all .2s;
    background: #fff;
}
.bd-btn-continue:hover { border-color: var(--bd-navy); color: var(--bd-navy); text-decoration: none; }

/* Per-row wishlist / remove links */
.bd-cart-row-actions-cell { white-space: nowrap; }
.bd-row-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-text);
    text-decoration: none;
    cursor: pointer;
}
.bd-row-action + .bd-row-action { margin-top: 8px; }
.bd-row-action:hover { color: var(--bd-navy); }
.bd-row-action-danger { color: var(--bd-red); }
.bd-row-action-danger:hover { color: var(--bd-red); opacity: 0.75; }

/* Below-table grid: promo code + order summary, per Barry_design/личный
   кабинет/Корзина 1920.jpg — the summary no longer runs the full height
   of the table beside it (see .bd-cart-summary below). */
.bd-cart-below-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}
.bd-cart-free-delivery {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--bd-navy);
    border-radius: var(--bd-radius);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--bd-text);
    line-height: 1.4;
}
.bd-cart-free-delivery svg { color: var(--bd-navy); flex-shrink: 0; }
.bd-cart-promo {
    padding-top: 4px;
}
.bd-cart-promo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-text);
    margin-bottom: 8px;
}
.bd-cart-promo-desc {
    font-size: 12px;
    color: var(--bd-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Summary panel — exclusive to this page, so .bd-btn-checkout is safely
   overridden to red (below) without touching compare.blade.php's or
   checkout_guest.blade.php's own (navy) use of that same button class. */
.bd-cart-summary {
    background: var(--bd-gray-bg);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 20px;
}
.bd-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
    gap: 8px;
}
.bd-summary-row .bd-lbl { color: var(--bd-muted); }
.bd-summary-discount { color: var(--bd-red); font-weight: 700; }
.bd-summary-discount-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -2px 0 8px;
}
.bd-summary-discount-details:empty { margin: 0; }
.bd-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    border-top: 1px solid var(--bd-border);
    padding-top: 12px;
    margin-top: 4px;
}
.bd-discount-pill {
    display: inline-block;
    background: #fee2e2;
    color: var(--bd-red);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
}

/* Coupon */
.bd-coupon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-navy);
    cursor: pointer;
    padding: 10px 0 0;
    border-top: 1px solid var(--bd-border);
    margin-top: 10px;
    text-decoration: none;
}
.bd-coupon-toggle:hover { opacity: 0.8; color: var(--bd-navy); }
.bd-coupon-body { padding-top: 10px; }
.bd-coupon-row { display: flex; gap: 6px; }
.bd-coupon-input {
    flex: 1;
    border: 1.5px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--bd-text);
    transition: border-color .2s;
    min-width: 0;
}
.bd-coupon-input:focus { border-color: var(--bd-navy); outline: none; }
.bd-coupon-btn {
    background: var(--bd-navy);
    color: #fff;
    border: none;
    border-radius: var(--bd-radius);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.bd-coupon-btn:hover { opacity: 0.88; }

.bd-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: var(--bd-navy);
    color: #fff;
    border: none;
    border-radius: var(--bd-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 14px;
    cursor: pointer;
    transition: opacity .2s;
}
.bd-btn-checkout:hover { opacity: 0.88; color: #fff; text-decoration: none; }
/* Per Barry_design/личный кабинет/Корзина 1920.jpg: red on this page only
   (scoped to .bd-cart-summary, which nothing but this page uses) — the
   "Купить в 1 клик" button next to it in the mockup isn't backed by any
   one-click-checkout flow in the app, so it's left out rather than faked. */
.bd-cart-summary .bd-btn-checkout { background: var(--bd-red); }
.bd-continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bd-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--bd-text);
    text-decoration: none;
}
.bd-continue-shopping-link:hover { color: var(--bd-navy); text-decoration: none; }

/* Empty state */
.bd-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--bd-muted);
    background: #fff;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
}
.bd-empty-state svg { color: var(--bd-border); margin-bottom: 16px; }
.bd-empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Stock labels */
.bd-in-stock { color: #16a34a; font-size: 12px; font-weight: 600; }
.bd-out-stock { color: var(--bd-red); font-size: 12px; font-weight: 600; }

/* Cart / wishlist alert */
.bd-alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Auth responsive */
@media (max-width: 767px) {
    .bd-auth-cards { flex-direction: column; }
    /* .bd-auth-cards has align-items:flex-start for desktop's side-by-side
       layout, which also means "size to content" on the cross axis —
       once flex-direction flips to column here, that cross axis is width,
       so each card shrank to its own content instead of matching widths. */
    .bd-auth-panel { width: 100%; padding: 28px 20px; }
    .bd-auth-simple { padding: 28px 20px; }
    .bd-cart-below-grid { grid-template-columns: 1fr; }
    .bd-cart-table thead { display: none; }
    .bd-cart-table { display: block; overflow-x: auto; }
}

/* ============================================================
   SHOP PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    #product-category { padding-top: 16px; }
    .page-title { font-size: 18px; }
    .bd-shop-filter-bar { gap: 8px; padding: 8px 10px; }
    .bd-filter-divider { display: none; }
    .product-right { border-left: none; padding-left: 15px; border-top: 1px solid var(--bd-border); padding-top: 20px; margin-top: 16px; }
    .bd-view-toggle { margin-left: 0; }
    h1.product-title { font-size: 17px; }
    .price-cartbox ul.price h3.special-price.prod-show { font-size: 22px; }
    #tabs_info .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Legacy style.css sets li{display:grid;width:100%} at this same
       max-width:767 breakpoint, which would force every tab to full width
       and stack them instead of scrolling horizontally — pinned back here. */
    #tabs_info .nav-tabs > li { flex: none !important; display: block !important; width: auto !important; }
    #tabs_info .nav-tabs > li > a { padding: 8px 12px !important; font-size: 12px !important; white-space: nowrap; }
    #tabs_info .tab-content { padding: 16px !important; }
    .item-block.item-image-pic { width: 100%; height: 280px; }
}

/* ============================================================
   WISHLIST-ADDED MODAL
   Per Barry_design/карточка новая - товар в избранное 1920.jpg — replaces
   the plain toastr popup that used to show on cart.postWishlist success.
   ============================================================ */
.bd-wishlist-modal .modal-dialog {
    max-width: 380px;
    margin: 100px auto;
}
.bd-wishlist-modal .modal-content {
    border: none;
    border-radius: var(--bd-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 32px 28px 28px;
}
.bd-wishlist-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--bd-muted);
    cursor: pointer;
    padding: 0;
}
.bd-wishlist-modal-close:hover { color: var(--bd-text); }
.bd-wishlist-modal-body { text-align: center; }
.bd-wishlist-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bd-text);
    margin-bottom: 16px;
}
.bd-wishlist-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 20px;
    line-height: 1.4;
}
.bd-wishlist-modal-product {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px;
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
    margin-bottom: 20px;
}
.bd-wishlist-modal-product-img {
    width: 48px; height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
}
.bd-wishlist-modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.bd-wishlist-modal-product-code {
    font-size: 12px;
    color: var(--bd-muted);
}
.bd-wishlist-modal-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bd-wishlist-modal-btn {
    display: block;
    width: 100%;
    background: var(--bd-red);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: opacity .2s;
}
.bd-wishlist-modal-btn:hover { opacity: 0.88; color: #fff; text-decoration: none; }
@media (max-width: 767px) {
    .bd-wishlist-modal .modal-dialog { max-width: calc(100% - 32px); margin: 80px auto; }
}

/* ============================================================
   CART-ADDED MODAL
   Per Barry_design/карточка и каталог/карточка новая - товар в корзину
   1920.jpg — replaces the plain toastr popup that used to show on
   cart.post success. Shares most of #bd-wishlist-modal's visual language
   but adds a product+stepper row and two footer buttons.
   ============================================================ */
/* "Order placed" modal (partials/order_success_modal.blade.php) —
   Barry_design/личный кабинет/1920  Оформление заказа-13.jpg */
/* The dim overlay lives on the full-viewport .modal wrapper itself rather
   than relying on Bootstrap's .modal-backdrop, which doesn't visibly dim
   here. */
.bd-order-modal.in { background: rgba(28, 30, 48, .55); }
.bd-order-modal .modal-dialog { width: auto; max-width: 498px; margin: 20vh auto 40px; padding: 0 16px; }
.bd-order-modal .modal-content { border: none; border-radius: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); padding: 0; }
.bd-order-modal-close {
    position: absolute; top: 18px; right: 20px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0;
    color: var(--bd-text); cursor: pointer;
}
.bd-order-modal-close:hover { color: var(--bd-red); }
.bd-order-modal-body { padding: 88px 56px 86px; text-align: center; }
.bd-order-modal-title { font-size: 26px; font-weight: 700; line-height: 1.45; color: var(--bd-text); margin: 0 0 18px; }
.bd-order-modal-text { font-size: 16px; line-height: 1.7; color: var(--bd-text); margin: 0 0 46px; overflow-wrap: anywhere; }
.bd-order-modal-btn {
    min-width: 190px;
    padding: 14px 24px;
    border: none;
    background: var(--bd-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .2s;
}
.bd-order-modal-btn:hover { opacity: .88; }
@media (max-width: 575px) {
    .bd-order-modal-body { padding: 56px 24px 40px; }
    .bd-order-modal-title { font-size: 20px; }
    .bd-order-modal-text { font-size: 14px; margin-bottom: 30px; }
}

.bd-cart-modal .modal-dialog {
    max-width: 420px;
    margin: 100px auto;
}
.bd-cart-modal .modal-content {
    border: none;
    border-radius: var(--bd-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 32px 28px 28px;
}
.bd-cart-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--bd-muted);
    cursor: pointer;
    padding: 0;
}
.bd-cart-modal-close:hover { color: var(--bd-text); }
.bd-cart-modal-body { text-align: center; }
.bd-cart-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bd-text);
    margin-bottom: 16px;
}
.bd-cart-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 20px;
    line-height: 1.4;
}
.bd-cart-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 12px;
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
    margin-bottom: 20px;
}
.bd-cart-modal-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0%;
    min-width: 0;
}
.bd-cart-modal-product-img {
    width: 48px; height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
}
.bd-cart-modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0%;
    min-width: 0;
}
.bd-cart-modal-product-code {
    width: 100%;
    font-size: 12px;
    color: var(--bd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bd-cart-modal-product-name {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bd-cart-modal-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.bd-cart-modal-qty-label {
    font-size: 11px;
    color: var(--bd-muted);
    white-space: nowrap;
}
.bd-cart-modal-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background: #fff;
    overflow: hidden;
}
.bd-cart-modal-qty-btn {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--bd-text);
    cursor: pointer;
    padding: 0;
}
.bd-cart-modal-qty-btn:hover { background: var(--bd-gray-bg); }
.bd-cart-modal-qty-btn:disabled { color: var(--bd-muted); cursor: not-allowed; background: none; }
.bd-cart-modal-qty-value {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
}
.bd-cart-modal-actions {
    display: flex;
    gap: 10px;
}
.bd-cart-modal-btn {
    display: block;
    flex: 1;
    text-align: center;
    padding: 12px;
    border: none;
    border-radius: var(--bd-radius);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}
.bd-cart-modal-btn-primary { background: var(--bd-red); color: #fff; }
.bd-cart-modal-btn-primary:hover { opacity: 0.88; color: #fff; text-decoration: none; }
.bd-cart-modal-btn-secondary { background: var(--bd-navy); color: #fff; }
.bd-cart-modal-btn-secondary:hover { opacity: 0.88; color: #fff; }
@media (max-width: 767px) {
    .bd-cart-modal .modal-dialog { max-width: calc(100% - 32px); margin: 80px auto; }
    .bd-cart-modal-row { flex-direction: column; align-items: stretch; }
    .bd-cart-modal-qty { align-items: flex-start; flex-direction: row; justify-content: space-between; }
    .bd-cart-modal-actions { flex-direction: column; }
}

/* ============================================================
   COMPARE-ADDED NOTIFICATION BAR
   Per Barry_design/личный кабинет/Уведомление о сравнении 1920.jpg
   (desktop, pinned to top) and .../320.jpg (mobile, pinned to bottom).
   Not a modal — see partials/compare_notification.blade.php.
   ============================================================ */
.bd-compare-bar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10060; /* above .modal (10050) and the sticky #head (9999) */
    background: #fff;
    border-bottom: 1px solid var(--bd-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.bd-compare-bar.show { display: block; }
.bd-compare-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.bd-compare-bar-thumb {
    width: 56px; height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.bd-compare-bar-info { min-width: 0; }
.bd-compare-bar-name,
.bd-compare-bar-status {
    display: inline;
    margin: 0;
    font-size: 14px;
}
.bd-compare-bar-name {
    font-weight: 700;
    color: var(--bd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 360px;
    vertical-align: bottom;
}
.bd-compare-bar-status { color: var(--bd-muted); margin-left: 6px; }
.bd-compare-bar-count {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--bd-muted);
}
.bd-compare-bar-btn {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--bd-red);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--bd-radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity .2s;
}
.bd-compare-bar-btn:hover { opacity: 0.88; color: #fff; text-decoration: none; }
.bd-compare-bar-close {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--bd-muted);
    cursor: pointer;
    padding: 0;
}
.bd-compare-bar-close:hover { color: var(--bd-text); }

@media (max-width: 767px) {
    .bd-compare-bar {
        top: auto;
        bottom: 60px; /* sits above .bd-bottom-nav instead of covering it */
        border-bottom: none;
        border-top: 1px solid var(--bd-border);
    }
    .bd-compare-bar-inner {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 4px 12px;
    }
    .bd-compare-bar-thumb { order: 1; }
    .bd-compare-bar-info { order: 2; flex: 1 1 auto; }
    .bd-compare-bar-close { order: 3; margin-left: 0; }
    .bd-compare-bar-name,
    .bd-compare-bar-status {
        display: block;
        max-width: 100%;
        font-size: 13px;
    }
    .bd-compare-bar-status { margin-left: 0; }
    .bd-compare-bar-count { display: none; }
    .bd-compare-bar-btn {
        order: 4;
        flex: 1 1 100%;
        margin-left: 0;
        text-align: center;
    }
}

/* ============================================================
   SHOP PAGE — CATEGORY SHOWCASE (categories with children)
   Barry_design/карточка и каталог/Каталог - подраздел тонометры 3 вар 1920
   Full-width layout used instead of the sidebar+filter grid whenever the
   category has published children: an intro block, one banner+carousel
   panel per child (plus a synthetic "Все ..." panel), related categories
   and recently-viewed.
   ============================================================ */
.bd-subcat-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
.bd-subcat-intro-img {
    flex: 0 0 340px;
    max-width: 340px;
}
.bd-subcat-intro-img img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
.bd-subcat-intro-text {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.8;
    color: var(--bd-muted);
}

.bd-subcat-block { margin-bottom: 40px; }
.bd-subcat-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--bd-gray-bg);
    border-radius: 8px;
    padding: 36px 40px;
    margin-bottom: 20px;
    overflow: visible;
}
.bd-subcat-panel-copy { flex: 1 1 auto; max-width: 55%; }
.bd-subcat-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 10px;
}
.bd-subcat-panel-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--bd-muted);
    margin: 0;
}
/* Barry_design/Group 588.svg — outline by default (white fill, thin dark
   border/text), filling red only on hover. Scoped to the showcase panels
   only; .bd-btn-primary itself stays solid red everywhere else it's used. */
.bd-subcat-panel .bd-btn-primary {
    margin-top: 18px;
    background: #fff;
    color: var(--bd-text);
    border: 1px solid var(--bd-text);
}
.bd-subcat-panel .bd-btn-primary:hover {
    background: var(--bd-red);
    color: #fff;
    border-color: var(--bd-red);
    opacity: 1;
}
.bd-subcat-panel-media {
    flex: 0 0 auto;
    max-width: 40%;
    align-self: flex-end;
    margin-top: -30px;
    margin-bottom: -20px;
}
.bd-subcat-panel-media img {
    max-width: 100%;
    max-height: 260px;
    display: block;
    object-fit: contain;
}

.bd-subcat-carousel-wrap { position: relative; }
.bd-subcat-carousel-wrap .customNavigation {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}
.bd-subcat-carousel-wrap .customNavigation .prev,
.bd-subcat-carousel-wrap .customNavigation .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
}
.bd-subcat-carousel-wrap .customNavigation .prev { left: -14px; }
.bd-subcat-carousel-wrap .customNavigation .next { right: -14px; }
.bd-subcat-owl .owl-stage { display: flex; }
.bd-subcat-owl .owl-item { height: auto; display: flex; }
.bd-subcat-owl .slider-item { width: 100%; }

@media (max-width: 1024px) {
    .bd-subcat-panel-media { max-width: 32%; }
}
@media (max-width: 767px) {
    .bd-subcat-intro { flex-direction: column; gap: 16px; margin-bottom: 28px; }
    .bd-subcat-intro-img { max-width: 100%; flex-basis: auto; }

    .bd-subcat-panel { flex-direction: column; align-items: flex-start; padding: 24px; }
    .bd-subcat-panel-copy { max-width: 100%; }
    .bd-subcat-panel-media {
        align-self: center;
        max-width: 70%;
        margin-top: 12px;
        margin-bottom: 0;
        order: -1;
    }
    .bd-subcat-panel-media img { max-height: 180px; }

    .bd-subcat-carousel-wrap .customNavigation .prev { left: 0; }
    .bd-subcat-carousel-wrap .customNavigation .next { right: 0; }
}

/* ============================================================
   CATALOG LISTING + /shop CATEGORY TILES
   (Barry_design/карточка и каталог/Каталог - товары подраздела карточки
   вертикальные *.jpg, Каталог - категории *.jpg)
   ============================================================ */
.bd-catalog { padding-bottom: 20px; }
/* .bd-catalog prefix: beats style.css's `.container h1, .container h2`
   (20px uppercase). */
.bd-catalog .bd-catalog-title {
    font: 800 36px/1.2 'Mardoto', sans-serif;
    text-transform: none;
    color: var(--bd-text);
    margin: 28px 0 44px;
}

/* Square ‹ › arrows — pagination and "Смотрите также" */
.bd-sq-nav { display: flex; }
.bd-sq-arrow {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    background: #F4F4F4;
    color: var(--bd-text);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.bd-sq-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: translateX(2px) rotate(45deg);
}
.bd-sq-next { background: var(--bd-navy); color: #fff; }
.bd-sq-next::before { transform: translateX(-2px) rotate(-135deg); }
.bd-sq-arrow:hover { background: var(--bd-navy); color: #fff; text-decoration: none; }
.bd-sq-arrow.is-disabled { opacity: .4; pointer-events: none; }

/* Intro: photo on two concentric circles + clamped description */
.bd-cat-intro {
    display: grid;
    grid-template-columns: 408px 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 64px;
}
.bd-cat-intro.no-media { grid-template-columns: 1fr; }
.bd-cat-intro-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 408px;
    height: 408px;
    border-radius: 50%;
    background: #F3F5F5;
    box-shadow: inset 0 0 0 39px #F3F5F5, inset 0 0 0 400px #E4EAEB;
    overflow: hidden;
}
.bd-cat-intro-circle img {
    max-width: 62%;
    max-height: 62%;
    object-fit: contain;
    mix-blend-mode: multiply; /* product photos are on white */
}
.bd-cat-intro-text {
    font-size: 18px;
    line-height: 30px;
    color: var(--bd-text);
    max-height: 210px; /* 7 lines */
    overflow: hidden;
}
/* Descriptions are pasted HTML full of inline styles (fonts, sizes,
   fixed widths, its own <h1>) — flatten them to the intro's type. */
.bd-cat-intro-text * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: none !important;
}
.bd-cat-intro-text h1, .bd-cat-intro-text h2, .bd-cat-intro-text h3,
.bd-cat-intro-text h4, .bd-cat-intro-text h5, .bd-cat-intro-text h6 {
    font-weight: 700 !important;
    text-transform: none !important;
    margin: 0 0 10px !important;
}
.bd-cat-intro-text ul, .bd-cat-intro-text ol { padding-left: 22px !important; }
.bd-cat-intro-text p { margin: 0 0 12px !important; }
.bd-cat-intro-text > :last-child, .bd-cat-intro-text p:last-child { margin-bottom: 0 !important; }
.bd-cat-intro.is-expanded .bd-cat-intro-text { max-height: none; }
.bd-cat-intro.is-clamped:not(.is-expanded) .bd-cat-intro-text {
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.bd-cat-intro-more,
.bd-filters-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-navy);
    cursor: pointer;
}
.bd-cat-intro-more[hidden] { display: none; }
.bd-cat-intro-more::after,
.bd-filters-more::after,
.bd-filter-box-chevron,
.bd-filters-chevron {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}
.bd-cat-intro-more.is-expanded::after,
.bd-filters-more.is-expanded::after { transform: translateY(2px) rotate(-135deg); }

/* Filters sidebar + product column */
.bd-listing {
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
    gap: 19px;
    align-items: start;
}
.bd-filters {
    background: #F4F4F4;
    padding: 30px 22px 40px;
}
.bd-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-bottom: 22px;
    border: none;
    background: none;
    color: var(--bd-text);
    cursor: default;
    text-align: left;
}
.bd-filters-title { font-size: 20px; font-weight: 800; }
.bd-filters-chevron { display: none; }

.bd-filter-box { background: #fff; margin-bottom: 20px; }
.bd-filter-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 10px 26px 10px 26px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--bd-text);
    text-align: left;
    cursor: pointer;
}
.bd-filter-box-title { flex: 1; min-width: 0; }
.bd-filter-box-chevron { flex: 0 0 auto; margin-right: -4px; width: 8px; height: 8px; }
.bd-filter-box.is-open .bd-filter-box-chevron { transform: translateY(2px) rotate(-135deg); }
.bd-filter-box-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--bd-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.bd-filter-box-body {
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px 16px 14px 26px;
}
.bd-filter-box.is-open .bd-filter-box-body { display: block; }
.bd-filter-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--bd-text);
    cursor: pointer;
}
/* style.css hides every checkbox sitewide (see its "+ label:before" icon
   scheme, which these don't use). */
.bd-filter-check input[type="checkbox"] {
    display: inline-block !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    position: static !important;
    opacity: 1 !important;
    width: 15px !important;
    height: 15px !important;
    margin: 1px 0 0 !important;
    flex: 0 0 15px;
    accent-color: var(--bd-red);
    cursor: pointer;
}
.bd-filter-check-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bd-filter-check-count { color: #9A9A9A; font-size: 12px; }

.bd-filter-extra { display: none; }
.bd-filters-form.show-extra .bd-filter-extra { display: block; }
.bd-filters-more {
    display: flex;
    margin: 4px auto 0;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    color: #8A8A8A;
}
.bd-filters-reset {
    display: block;
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bd-navy);
}
.bd-filters-reset:hover { color: var(--bd-red); text-decoration: none; }

/* Price */
.bd-filter-price { margin: 0 0 24px; }
.bd-filter-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.bd-filter-price-title { font-size: 16px; color: var(--bd-text); }
.bd-filter-price-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8A8A8A;
}
.bd-filter-price-reset::before { content: "\00d7"; font-size: 22px; line-height: 1; }
.bd-filter-price-reset:hover { color: var(--bd-red); text-decoration: none; }
.bd-filter-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-filter-price-field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    margin: 0;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    color: #8A8A8A;
}
.bd-filter-price-field input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    padding: 0;
    font-size: 14px;
    color: var(--bd-text);
    -moz-appearance: textfield;
}
.bd-filter-price-field input::-webkit-outer-spin-button,
.bd-filter-price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bd-filter-range { position: relative; height: 16px; margin: 18px 7px 0; }
.bd-filter-range::before,
.bd-filter-range-track {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 2px;
    background: #D6D6D6;
}
.bd-filter-range-track { background: var(--bd-red); }
.bd-filter-range input[type="range"] {
    position: absolute;
    top: 0;
    left: -7px;
    width: calc(100% + 14px);
    height: 16px;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}
.bd-filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bd-red);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
}
.bd-filter-range input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid var(--bd-red);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
}
.bd-filter-range input[type="range"]::-moz-range-track { background: none; }

/* Toolbar */
.bd-listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}
.bd-listing-sort { display: flex; align-items: center; gap: 22px; margin: 0; font-weight: 400; }
.bd-listing-sort-label,
.bd-listing-view-label { font-size: 16px; font-weight: 500; color: var(--bd-text); white-space: nowrap; }
.bd-listing-view-label { display: none; }
.bd-listing-sort-select {
    height: 40px;
    min-width: 181px;
    padding: 0 48px 0 22px;
    border: none;
    border-radius: 0;
    background: #F4F4F4 url("../images/icons/icon_arrow.svg") no-repeat calc(100% - 18px) center / 16px;
    font-size: 16px;
    color: var(--bd-text);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}
.bd-listing-view { display: flex; align-items: center; gap: 22px; }
.bd-listing .bd-view-toggle { gap: 18px; margin-left: 0; }
.bd-listing .bd-view-btn,
.bd-listing .bd-view-btn svg { width: 21px; height: 21px; }

.bd-listing-main .product-grid .cat_prod { margin: -5px; }
.bd-listing-empty { padding: 40px 0; font-size: 16px; color: var(--bd-muted); }

/* Pagination */
.bd-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 95px 0 0;
}
.bd-pager-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bd-pager-pages li > * {
    display: inline-block;
    min-width: 22px;
    padding: 4px 3px;
    font-size: 18px;
    text-align: center;
    color: #6F6F6F;
}
.bd-pager-pages a:hover { color: var(--bd-navy); text-decoration: none; }
.bd-pager-pages li.active > span { color: var(--bd-text); font-weight: 600; }

/* Sale banner under the listing */
.bd-listing-banner { margin: 100px 0 100px; }

/* "Смотрите также" */
.bd-see-also { margin-bottom: 80px; }
.bd-see-also-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.bd-see-also .bd-see-also-title { font: 800 20px/1.3 'Mardoto', sans-serif; text-transform: none; margin: 0; color: var(--bd-text); }
.bd-see-also-owl .owl-stage { display: flex; }
.bd-see-also-owl .owl-item { display: flex; }
.bd-see-also-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 278px;
    padding: 48px 48px 42px;
    background: #F4F4F4;
    overflow: hidden;
}
.bd-see-also-card::before { /* the big circle behind the photo */
    content: "";
    position: absolute;
    right: -140px;
    top: 5px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: #E4EAEB;
}
.bd-see-also-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 58%;
}
.bd-see-also-name { font-size: 18px; font-weight: 800; line-height: 30px; color: var(--bd-text); }
.bd-see-also-btn {
    display: inline-block;
    padding: 13px 26px;
    border: 1px solid var(--bd-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-text);
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.bd-see-also-btn:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; text-decoration: none; }
/* No z-index/transform here: either would isolate the photo's
   mix-blend-mode from the card background behind it. */
.bd-see-also-media {
    position: absolute;
    right: 40px;
    top: 15%;
    bottom: 15%;
    width: 34%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bd-see-also-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important; /* owl sets img width:100% */
    object-fit: contain;
    mix-blend-mode: multiply;
}
.bd-see-also-owl .owl-dots { display: flex; justify-content: center; gap: 16px; margin-top: 52px; }
.bd-see-also-owl .owl-dot span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #C4CDD5; }
.bd-see-also-owl .owl-dot.active span { background: var(--bd-text); }
.bd-see-also-owl .owl-dots.disabled { display: none; }

.bd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    height: 55px;
    padding: 0 32px;
    margin-bottom: 70px;
    border: 1px solid var(--bd-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-text);
}
.bd-back-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(45deg);
}
.bd-back-link:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; text-decoration: none; }

/* /shop category tiles */
.bd-cat-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 19px;
    margin-bottom: 80px;
}
.bd-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 420px;
    padding: 46px 20px 0;
    background: #F4F4F4;
    text-align: center;
    color: var(--bd-text);
    overflow: hidden;
}
.bd-cat-tile:hover { text-decoration: none; color: var(--bd-text); }
.bd-cat-tile-name {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}
.bd-cat-tile-btn {
    margin: 30px 0 24px;
    padding: 13px 18px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}
.bd-cat-tile:hover .bd-cat-tile-btn { background: var(--bd-navy); color: #fff; }
.bd-cat-tile-media {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-height: 220px;
    padding-bottom: 24px;
}
.bd-cat-tile-media img {
    max-width: 85%;
    max-height: 196px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .3s;
}
.bd-cat-tile:hover .bd-cat-tile-media img { transform: scale(1.04); }

@media (max-width: 1199px) {
    .bd-cat-intro { grid-template-columns: 320px 1fr; gap: 40px; }
    .bd-cat-intro-circle { width: 320px; height: 320px; box-shadow: inset 0 0 0 30px #F3F5F5, inset 0 0 0 400px #E4EAEB; }
    .bd-listing { grid-template-columns: 240px minmax(0, 1fr); }
    .bd-filters { padding: 24px 16px 30px; }
    .bd-filter-box-head { padding-left: 16px; padding-right: 18px; }
    .bd-filter-box-body { padding-left: 16px; }
    .bd-see-also-card { padding: 36px 32px; }
    .bd-cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .bd-listing { grid-template-columns: 1fr; }
    .bd-filters-head { cursor: pointer; margin-bottom: 0; }
    .bd-filters-chevron { display: block; width: 10px; height: 10px; transform: translateY(-2px) rotate(45deg); }
    .bd-filters.is-open .bd-filters-chevron { transform: translateY(3px) rotate(-135deg); }
    .bd-filters { padding: 22px 16px; }
    .bd-filters-form { display: none; margin-top: 22px; }
    .bd-filters.is-open .bd-filters-form { display: block; }
    .bd-listing-toolbar { margin: 30px 0 20px; }
    .bd-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .bd-catalog .bd-catalog-title { font-size: 22px; margin: 18px 0 24px; }
    .bd-cat-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; }
    .bd-cat-intro-media { display: flex; justify-content: center; }
    .bd-cat-intro-circle { width: 160px; height: 160px; box-shadow: inset 0 0 0 16px #F3F5F5, inset 0 0 0 200px #E4EAEB; }
    .bd-cat-intro-text { font-size: 16px; line-height: 30px; max-height: 120px; }
    .bd-cat-intro-more { display: flex; margin: 16px auto 0; }
    .bd-listing-toolbar { flex-direction: column; align-items: stretch; gap: 16px; }
    .bd-listing-sort { flex-direction: column; align-items: stretch; gap: 16px; }
    .bd-listing-sort-select { width: 100%; }
    .bd-listing-view { justify-content: space-between; }
    .bd-listing-view-label { display: inline; }
    .bd-pager { margin-top: 40px; gap: 12px; }
    .bd-listing-banner { margin: 50px 0; }
    .bd-see-also { margin-bottom: 40px; }
    .bd-see-also-head { margin-bottom: 20px; }
    .bd-see-also-card { min-height: 220px; padding: 28px 20px; }
    .bd-see-also-copy { max-width: 62%; }
    .bd-see-also-name { font-size: 16px; line-height: 24px; }
    .bd-see-also-btn { padding: 11px 14px; white-space: normal; }
    .bd-see-also-media { right: 12px; width: 36%; }
    .bd-back-link { margin-bottom: 40px; }
    /* Mobile mockup: one horizontally scrolling row of tiles */
    .bd-cat-tiles {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
        gap: 10px;
        margin: 0 -15px 40px;
        padding: 0 15px;
        scrollbar-width: thin;
    }
    .bd-cat-tile { flex: 0 0 85%; min-height: 320px; scroll-snap-align: start; padding-top: 30px; }
}

/* ============================================================
   SEARCH RESULTS (/search) — catalog listing layout; the term is in the
   heading and the header search box, no search bar of its own
   ============================================================ */
.bd-search-found { margin: -24px 0 40px; font-size: 14px; color: var(--bd-muted); }
.bd-search-empty { padding: 0 0 60px; font-size: 16px; line-height: 1.6; color: var(--bd-text); }
.bd-search-empty p { margin: 0 0 30px; max-width: 700px; }

@media (max-width: 767px) {
    .bd-search-found { margin: -8px 0 20px; }
}

/* ============================================================
   HOMEPAGE — "ТОВАРЫ ДНЯ" DEAL TABS (Barry_design/TDeals_block/3 block.svg)
   4-column mosaic per tab; items 1 and 6 span two columns and lay the
   canonical card out sideways (text + price left, photo right).
   ============================================================ */
.bd-tdeals { background: #F4F4F4; padding: 30px 0 40px; }
.bd-tdeals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.bd-tdeals .bd-tdeals-title {
    font: 800 24px/1.2 'Mardoto', sans-serif;
    text-transform: none;
    color: var(--bd-text);
    margin: 0;
}
.bd-tdeals-more {
    flex: 0 0 auto;
    padding: 13px 20px;
    border: 2px solid var(--bd-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-text);
    transition: background .2s, color .2s, border-color .2s;
}
.bd-tdeals-more:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; text-decoration: none; }

.bd-tdeals-tabs {
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bd-tdeals-tabs::-webkit-scrollbar { display: none; }
.bd-tdeals-tab {
    /* All tabs share one row on desktop; long deal names wrap to 2 lines */
    flex: 1 1 0;
    min-width: 120px;
    height: 58px;
    padding: 0 16px;
    line-height: 1.3;
    margin-left: -1px;
    border: 1px solid #E0E0E0;
    border-bottom-width: 3px;
    border-bottom-color: #E0E0E0;
    background: #F4F4F4;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bd-text);
    cursor: pointer;
    transition: background .2s;
}
.bd-tdeals-tab:first-child { margin-left: 0; }
.bd-tdeals-tab:hover { background: #EBEBEB; }
.bd-tdeals-tab.active { background: #E8E8E8; border-bottom-color: var(--bd-red); }

.bd-tdeals-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px 19px;
}
.bd-tdeals-panel[hidden] { display: none; }
.bd-tdeals-panel .product-layout { margin: 0; min-width: 0; }
.bd-tdeals-panel .product-layout .product-block { height: 100%; margin: 0; }
.bd-tdeals-panel .product-layout .product-block-inner { border-color: transparent; border-radius: 0; }

/* Wide card: details top-left, actions bottom-left, photo on the right */
.bd-tdeals-panel .product-layout.is-wide { grid-column: span 2; }
.bd-tdeals-panel .is-wide .product-block-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "details image"
        ".       image"
        "actions image";
    min-height: 391px;
}
.bd-tdeals-panel .is-wide .image-content {
    grid-area: image;
    align-self: center;
    padding: 30px 30px 30px 0;
}
.bd-tdeals-panel .is-wide .product-details { grid-area: details; padding: 64px 0 0 56px; }
.bd-tdeals-panel .is-wide .caption h4 { font-size: 16px; font-weight: 500; line-height: 24px; }
.bd-tdeals-panel .is-wide .product-actions { grid-area: actions; padding: 0 0 48px 56px; justify-content: flex-start; gap: 28px; }

@media (max-width: 991px) {
    .bd-tdeals { padding: 50px 0; }
    .bd-tdeals-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-tdeals-panel .is-wide .product-details { padding: 30px 0 0 24px; }
    .bd-tdeals-panel .is-wide .product-actions { padding: 0 0 24px 24px; }
    .bd-tdeals-panel .is-wide .product-block-inner { min-height: 300px; }
}
@media (max-width: 767px) {
    .bd-tdeals-head { margin-bottom: 20px; }
    .bd-tdeals .bd-tdeals-title { font-size: 22px; }
    .bd-tdeals-more { padding: 10px 14px; }
    .bd-tdeals-tab { flex: 0 0 auto; min-width: 0; height: 46px; padding: 0 18px; white-space: nowrap; }
    .bd-tdeals-panel { gap: 10px; }
    /* Too narrow to sit side by side: wide cards become normal cards */
    .bd-tdeals-panel .product-layout.is-wide { grid-column: auto; }
    .bd-tdeals-panel .is-wide .product-block-inner { display: flex; min-height: 0; }
    .bd-tdeals-panel .is-wide .image-content { padding: 0; }
    .bd-tdeals-panel .is-wide .product-details { padding: 12px 12px 0; }
    .bd-tdeals-panel .is-wide .caption h4 { font-size: 13px; font-weight: 600; line-height: 1.4; }
    .bd-tdeals-panel .is-wide .product-actions { padding: 8px 12px 12px; justify-content: space-between; gap: 10px; }
}

/* Contact page: the checkout pickup picker in read-only "browse" mode
   (front/checkout/shop_picker, $browse). No select2 here — style the
   city select natively; the popup/rows have no "Выбрать" buttons. */
.bd-pickup--browse { margin-top: 28px; }
.bd-pickup--browse #pickupCity {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--bd-border);
    border-radius: 0;
    background: #fff url("../images/icons/icon_arrow.svg") no-repeat calc(100% - 14px) center / 16px;
    font-size: 14px;
    color: var(--bd-text);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
/* Checkout bleeds the map into its card's padding; the contact page has none. */
.bd-pickup--browse .bd-pickup-mapwrap { margin-left: 0; margin-right: 0; }

/* ============================================================
   BLOG — "Статьи и обзоры" (Barry_design/СТАТЬИ И ОБЗОРЫ*):
   topics (/blog), category & author lists, article page
   ============================================================ */
.bd-blog { padding-bottom: 60px; }
/* .bd-blog prefix: beats style.css's `.container h1, .container h2`. */
.bd-blog .bd-blog-title {
    font: 800 36px/1.2 'Mardoto', sans-serif;
    text-transform: none;
    color: var(--bd-text);
    margin: 28px 0 44px;
}
.bd-blog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bd-blog-head .bd-blog-title { margin-bottom: 44px; }
.bd-blog-view { display: flex; align-items: center; gap: 18px; margin: 28px 0 44px; font-size: 16px; white-space: nowrap; }
.bd-blog-view .bd-view-toggle { gap: 18px; margin: 0; }
.bd-blog-view .bd-view-btn, .bd-blog-view .bd-view-btn svg { width: 21px; height: 21px; }

/* Search */
.bd-blog-search {
    display: flex;
    align-items: center;
    height: 50px;
    margin-bottom: 50px;
    border: 1px solid var(--bd-red);
    background: #fff;
}
.bd-blog-search-icon { flex: 0 0 auto; margin: 0 16px 0 22px; color: var(--bd-text); }
.bd-blog-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 16px;
    color: var(--bd-text);
}
.bd-blog-search input::placeholder { color: #8A8A8A; }
.bd-blog-search button {
    flex: 0 0 197px;
    height: calc(100% + 2px);
    margin-right: -1px;
    border: none;
    background: var(--bd-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.bd-blog-search button:hover { opacity: .9; }
.bd-blog-found { margin: -32px 0 40px 6px; font-size: 14px; color: var(--bd-text); }
.bd-blog-empty { padding: 20px 0 40px; font-size: 16px; color: var(--bd-muted); }

/* Shared bits */
.bd-blog-date { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #8A8A8A; white-space: nowrap; }
.bd-blog-date-icon { flex: 0 0 auto; color: #9AA0AE; }
.bd-blog-chip {
    display: inline-block;
    padding: 8px 19px;
    background: #F4F4F4;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--bd-text);
}
.bd-blog-chip:hover { background: #EAEAEA; color: var(--bd-text); text-decoration: none; }
.bd-blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 163px;
    height: 45px;
    padding: 0 24px;
    border: 1px solid var(--bd-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-text);
    transition: background .2s, color .2s, border-color .2s;
}
.bd-blog-btn:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; text-decoration: none; }

/* /blog — topic tiles */
.bd-blog-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
    margin-bottom: 40px;
}
.bd-blog-topic { display: grid; grid-template-columns: 1fr 1fr; min-height: 316px; background: #F4F4F4; }
.bd-blog-topic-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 46px 30px 40px; }
.bd-blog .bd-blog-topic-title { font: 700 18px/25px 'Mardoto', sans-serif; text-transform: none; color: var(--bd-text); margin: 0 0 18px; }
.bd-blog-topic-count { font-size: 14px; line-height: 21px; color: #8A8A8A; margin: 0 0 24px; }
.bd-blog-topic-btn {
    margin-top: auto;
    padding: 14px 30px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bd-text);
    transition: background .2s, color .2s;
}
.bd-blog-topic-btn:hover { background: var(--bd-navy); color: #fff; text-decoration: none; }
.bd-blog-topic-media { position: relative; display: block; overflow: hidden; background: #E9EBEE; }
.bd-blog-topic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bd-blog-topic:hover .bd-blog-topic-media img { transform: scale(1.04); }
.bd-blog-topic-media::before { /* the white notch on the photo's left edge */
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: 72%;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 13px solid #F4F4F4;
}

/* Category / author: sidebar + list */
.bd-blog-layout { display: grid; grid-template-columns: 319px minmax(0, 1fr); gap: 60px; align-items: start; }
.bd-blog-side-card { background: #F4F4F4; padding: 46px 26px 44px; margin-bottom: 42px; }
.bd-blog-side-title { font-size: 14px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 26px; }
.bd-blog-topics { display: flex; flex-direction: column; gap: 20px; }
.bd-blog-topics a { font-size: 14px; color: var(--bd-text); }
.bd-blog-topics a:hover, .bd-blog-topics a.active { color: var(--bd-red); text-decoration: none; }
.bd-blog-topics a.active { font-weight: 600; }
.bd-blog-side-news { display: flex; flex-direction: column; gap: 30px; }
.bd-blog-side-news-item { display: flex; gap: 23px; color: var(--bd-text); }
.bd-blog-side-news-item:hover { color: var(--bd-navy); text-decoration: none; }
.bd-blog-side-news-item img { flex: 0 0 81px; width: 81px; height: 108px; object-fit: cover; }
.bd-blog-side-news-item > span { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bd-blog-side-news-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article cards — list (default) and grid (#news-layout.is-grid) */
.bd-art-list { display: flex; flex-direction: column; gap: 40px; }
.bd-art-card { display: grid; grid-template-columns: 295px minmax(0, 1fr); min-height: 383px; border: 1px solid #E0E0E0; background: #fff; }
.bd-art-card-img { position: relative; display: block; overflow: hidden; background: #F4F4F4; }
.bd-art-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bd-art-card:hover .bd-art-card-img img,
.bd-blog-related-card:hover .bd-art-card-img img { transform: scale(1.04); }
.bd-art-card-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #C3C8D1; font-size: 44px; }
.bd-art-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 48px 28px 44px 32px; min-width: 0; }
.bd-art-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-bottom: 26px; flex-wrap: wrap; }
.bd-blog .bd-art-card-title { font: 700 18px/27px 'Mardoto', sans-serif; text-transform: none; margin: 0 0 22px; }
.bd-art-card-title a { color: var(--bd-text); }
.bd-art-card-title a:hover { color: var(--bd-navy); text-decoration: none; }
.bd-art-card-text { font-size: 14px; line-height: 21px; color: var(--bd-text); margin: 0 0 28px; }
.bd-art-card-body .bd-blog-btn { margin-top: auto; }

.bd-art-list.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 19px; }
.bd-art-list.is-grid .bd-art-card { grid-template-columns: 1fr; grid-template-rows: 228px 1fr; min-height: 0; }
.bd-art-list.is-grid .bd-art-card-body { padding: 30px 28px 38px; }
.bd-art-list.is-grid .bd-art-card-meta { flex-direction: column-reverse; align-items: flex-start; gap: 22px; margin-bottom: 20px; }
.bd-art-list.is-grid .bd-art-card-text { display: none; }
.bd-blog-main .bd-pager { margin-top: 60px; }

/* Author header */
.bd-blog-author { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; padding: 24px; background: #F4F4F4; }
.bd-blog-author-avatar { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.bd-blog-author-avatar--empty { display: flex; align-items: center; justify-content: center; background: var(--bd-navy); color: #fff; font-size: 28px; }
.bd-blog-author-name { font-size: 18px; font-weight: 700; }
.bd-blog-author-bio { margin-top: 4px; font-size: 14px; color: var(--bd-muted); }

/* Article page */
.bd-blog-article .bd-blog-title { margin-bottom: 20px; max-width: 1000px; }
.bd-blog-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 40px; }
.bd-blog-article-author { font-size: 14px; color: var(--bd-navy); }
.bd-blog-hero { display: block; width: 100%; max-height: 510px; object-fit: cover; margin-bottom: 80px; }
.bd-blog-toc-row { display: flex; align-items: flex-start; gap: 54px; margin: 0 100px 54px; }
.bd-blog-toc-row.no-toc { justify-content: flex-end; }
.bd-blog-toc { flex: 0 1 771px; padding: 48px 80px 50px; background: #F4F4F4; }
.bd-blog-toc-title { font-size: 16px; font-weight: 500; margin-bottom: 18px; }
.bd-blog-toc ol { margin: 0; padding: 0; list-style: none; }
.bd-blog-toc li { font-size: 17px; line-height: 32px; }
.bd-blog-toc li.level-3 { padding-left: 20px; font-size: 15px; }
.bd-blog-toc a { color: var(--bd-navy); }
.bd-blog-toc a:hover { color: var(--bd-red); text-decoration: none; }
.bd-blog-share { flex: 0 0 auto; margin-top: 46px; padding-right: 54px; border-right: 1px solid #E0E0E0; }
.bd-blog-share-title { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 26px; }
.bd-blog-share-links { display: grid; grid-template-columns: repeat(2, 24px); gap: 28px 42px; }
.bd-blog-share-links a, .bd-blog-share-links button { display: block; width: 24px; height: 24px; padding: 0; border: none; background: none; color: var(--bd-text); cursor: pointer; }
.bd-blog-share-links svg { width: 24px; height: 24px; }
.bd-blog-share-links a:hover, .bd-blog-share-links button:hover { color: var(--bd-red); }
.bd-blog-body { font-size: 15px; line-height: 24px; color: var(--bd-text); margin-bottom: 70px; overflow-wrap: anywhere; }
.bd-blog-body h2, .bd-blog-body h3 {
    font: 700 18px/1.4 'Mardoto', sans-serif !important;
    text-transform: none !important;
    margin: 50px 0 24px !important;
    scroll-margin-top: 120px;
}
.bd-blog-body p { margin: 0 0 12px; }
.bd-blog-body img { max-width: 100%; height: auto; }
.bd-blog-pager { display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 46px; border-top: 1px solid #E0E0E0; border-bottom: 1px solid #E0E0E0; margin-bottom: 90px; }
.bd-blog-pager a { display: flex; flex-direction: column; gap: 24px; max-width: 48%; color: var(--bd-text); }
.bd-blog-pager a.is-next { text-align: right; margin-left: auto; }
.bd-blog-pager a:hover { color: var(--bd-navy); text-decoration: none; }
.bd-blog-pager-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--bd-navy); }
.bd-blog-pager-title { font-size: 20px; font-weight: 800; line-height: 27px; }
.bd-blog .bd-blog-related-title { font: 700 14px/1.4 'Mardoto', sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--bd-navy); margin: 0 0 60px; }
.bd-blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 100px; }
.bd-blog-related-card { display: flex; flex-direction: column; border: 1px solid #E0E0E0; }
.bd-blog-related-card .bd-art-card-img { aspect-ratio: 361 / 240; }
.bd-blog-related-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 40px 40px 44px; }
.bd-blog .bd-blog-related-body h3 { font: 700 15px/24px 'Mardoto', sans-serif; text-transform: none; margin: 0 0 40px; }
.bd-blog-related-body h3 a { color: var(--bd-text); }
.bd-blog-related-body h3 a:hover { color: var(--bd-navy); text-decoration: none; }
.bd-blog-related-body .bd-blog-btn { margin-top: auto; }
.bd-blog-article .bd-back-link { margin-bottom: 30px; }

@media (max-width: 1199px) {
    .bd-blog-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
    .bd-art-card { grid-template-columns: 240px minmax(0, 1fr); }
    .bd-blog-toc-row { margin-left: 0; margin-right: 0; }
    .bd-blog-toc { padding: 40px; }
}
@media (max-width: 991px) {
    .bd-blog-topics-grid { grid-template-columns: 1fr; }
    .bd-blog-layout { grid-template-columns: 1fr; }
    .bd-blog-side { order: 2; }
    .bd-blog-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .bd-blog-related-grid > :nth-child(3) { display: none; }
}
@media (max-width: 767px) {
    .bd-blog .bd-blog-title, .bd-blog-head .bd-blog-title { font-size: 24px; margin: 16px 0 24px; }
    .bd-blog-head { flex-wrap: wrap; gap: 0 16px; }
    .bd-blog-view { margin: 0 0 20px; font-size: 14px; }
    .bd-blog-search { margin-bottom: 30px; }
    .bd-blog-search-icon { margin: 0 10px 0 14px; }
    .bd-blog-search input { font-size: 14px; }
    .bd-blog-search button { flex-basis: 96px; }
    .bd-blog-found { margin: -16px 0 24px; }
    .bd-blog-topic { grid-template-columns: 1fr; grid-template-rows: auto 200px; min-height: 0; }
    .bd-blog-topic-copy { padding: 28px 20px; }
    .bd-blog-topic-btn { margin-top: 0; }
    .bd-blog-topic-media::before { display: none; }
    .bd-art-card, .bd-art-list.is-grid .bd-art-card { grid-template-columns: 1fr; grid-template-rows: 200px 1fr; min-height: 0; }
    .bd-art-list.is-grid { grid-template-columns: 1fr; }
    .bd-art-card-body, .bd-art-list.is-grid .bd-art-card-body { padding: 22px 18px 26px; }
    .bd-art-list { gap: 20px; }
    .bd-blog-side-card { padding: 30px 20px; margin-bottom: 20px; }
    .bd-blog-hero { margin-bottom: 30px; }
    .bd-blog-toc-row { flex-direction: column; gap: 24px; margin-bottom: 30px; }
    .bd-blog-toc { flex: none; padding: 24px 20px; width: 100%; }
    .bd-blog-toc li { font-size: 15px; line-height: 26px; }
    .bd-blog-share { margin-top: 0; padding-right: 0; border-right: none; }
    .bd-blog-share-links { grid-template-columns: repeat(4, 24px); }
    .bd-blog-pager { flex-direction: column; gap: 24px; padding: 30px 0; margin-bottom: 50px; }
    .bd-blog-pager a, .bd-blog-pager a.is-next { max-width: none; text-align: left; margin-left: 0; }
    .bd-blog-pager-title { font-size: 17px; }
    .bd-blog-related-grid { grid-template-columns: 1fr; margin-bottom: 50px; }
    .bd-blog-related-grid > :nth-child(3) { display: flex; }
    .bd-blog-related-body { padding: 24px 20px; }
    .bd-blog .bd-blog-related-title { margin-bottom: 24px; }
}

/* ============================================================
   FLOATING TELEGRAM BUTTON (partials/telegram_button)
   ============================================================ */
.bd-tg-float {
    position: fixed;
    right: 24px;
    bottom: 96px; /* clears the reCAPTCHA badge (bottom:14px, 60px tall) */
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.bd-tg-float:hover, .bd-tg-float:focus { text-decoration: none; }
.bd-tg-float-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #229ED9;
    color: #fff;
    box-shadow: 0 6px 18px rgba(34, 158, 217, .45);
    transition: transform .2s, box-shadow .2s;
}
.bd-tg-float-icon svg { margin-left: -2px; }
.bd-tg-float-icon::before,
.bd-tg-float-icon::after { /* soft pulse rings */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #229ED9;
    opacity: 0;
    animation: bd-tg-pulse 2.6s ease-out infinite;
}
.bd-tg-float-icon::after { animation-delay: 1.3s; }
@keyframes bd-tg-pulse {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.65); opacity: 0; }
}
.bd-tg-float-label {
    padding: 9px 14px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-text);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.bd-tg-float:hover .bd-tg-float-icon,
.bd-tg-float:focus-visible .bd-tg-float-icon { transform: scale(1.06); box-shadow: 0 8px 22px rgba(34, 158, 217, .55); }
.bd-tg-float:hover .bd-tg-float-label,
.bd-tg-float:focus-visible .bd-tg-float-label { opacity: 1; transform: none; }
.bd-tg-float:focus-visible .bd-tg-float-icon { outline: 3px solid var(--bd-navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .bd-tg-float-icon::before, .bd-tg-float-icon::after { animation: none; }
}
@media (max-width: 767px) {
    /* above the 60px bottom tab bar and the reCAPTCHA badge */
    .bd-tg-float { right: 14px; bottom: calc(60px + 84px); }
    .bd-tg-float-icon { width: 52px; height: 52px; }
    .bd-tg-float-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Promotions page (/sale/) — front/sale/index, per the "Акции" mockup:
   category pills, filters, banner slider, promotion cards, show more.
   The card tag is .bd-promo-until (above, with the news cards).
   ═══════════════════════════════════════════════════════════════ */
.bd-sale-title { font-size: 22px; font-weight: 700; color: var(--bd-text); margin: 8px 0 20px; }

.bd-sale-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.bd-sale-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--bd-border);
    background: #fff;
    color: var(--bd-text);
    font-size: 13px;
    line-height: 1.3;
}
.bd-sale-cat span { color: var(--bd-muted); }
.bd-sale-cat:hover { border-color: var(--bd-navy); color: var(--bd-navy); text-decoration: none; }
.bd-sale-cat.is-active { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; }
.bd-sale-cat.is-active span { color: rgba(255, 255, 255, .75); }
.bd-sale-cat--extra { display: none; }
.bd-sale-cats.is-open .bd-sale-cat--extra { display: inline-flex; }
.bd-sale-cats-more {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bd-border);
    background: #fff;
    color: var(--bd-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.bd-sale-cats-more:hover { border-color: var(--bd-navy); color: var(--bd-navy); }
/* Second row: sub-subcategories of the picked subcategory. */
.bd-sale-cats--sub { margin-top: -6px; padding-left: 14px; border-left: 2px solid var(--bd-navy); }
.bd-sale-cat--sub { padding: 6px 12px; font-size: 12px; }

.bd-sale-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
    padding: 14px 16px;
    margin-bottom: 24px;
    background: var(--bd-gray-bg);
    border-radius: var(--bd-radius);
}
.bd-sale-filter { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; }
.bd-sale-filter span { font-size: 12px; color: var(--bd-muted); }
.bd-sale-filter select,
.bd-sale-filter input {
    min-width: 180px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background-color: #fff;
    font-size: 13px;
    color: var(--bd-text);
}
/* The legacy global "select" rule (style.css) forces width: 26px, height: 16px,
   no border and an !important arrow image — override every one of those, as
   .bd-filter-select does, and keep the text clear of the arrow. */
.bd-sale-filter select {
    width: auto !important;
    height: 36px !important;
    padding: 0 36px 0 10px !important;
    border: 1px solid var(--bd-border) !important;
    background-color: #fff !important;
    background-image: url("../images/icons/icon_arrow.svg") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 10px) center !important;
    background-size: 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
}
.bd-sale-reset { align-self: center; font-size: 13px; color: var(--bd-navy); text-decoration: underline; }

.bd-sale-slider { position: relative; margin-bottom: 32px; }
.bd-sale-slide { display: block; }
.bd-sale-slider .owl-item img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.bd-sale-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border: 0;
    background: #fff;
    color: var(--bd-navy);
    font-size: 22px;
    line-height: 32px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.bd-sale-slider-prev { left: -16px; }
.bd-sale-slider-next { right: -16px; background: var(--bd-navy); color: #fff; }
.bd-sale-slider .owl-dots { text-align: center; margin-top: 10px; }
.bd-sale-slider .owl-dot span { display: block; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--bd-border); }
.bd-sale-slider .owl-dot.active span { background: var(--bd-navy); }

.bd-sale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.bd-sale-card { display: flex; flex-direction: column; gap: 12px; color: var(--bd-text); }
.bd-sale-card:hover { text-decoration: none; color: var(--bd-navy); }
.bd-sale-card-img {
    position: relative;
    display: block;
    aspect-ratio: 7 / 5;
    overflow: hidden;
    background: var(--bd-gray-bg);
}
.bd-sale-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bd-sale-card:hover .bd-sale-card-img img { transform: scale(1.03); }
.bd-sale-card-title { font-size: 13px; line-height: 1.5; text-align: center; }
.bd-sale-empty { padding: 40px 0; text-align: center; color: var(--bd-muted); }

.bd-sale-more { display: flex; justify-content: center; margin: 32px 0 8px; }
.bd-sale-more-btn {
    padding: 10px 28px;
    border: 1px solid var(--bd-text);
    background: #fff;
    color: var(--bd-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
}
.bd-sale-more-btn:hover { background: var(--bd-navy); border-color: var(--bd-navy); color: #fff; }
.bd-sale-more-btn:disabled { opacity: .5; cursor: wait; }

@media (max-width: 991px) {
    .bd-sale-grid { grid-template-columns: repeat(2, 1fr); }
    .bd-sale-slider-prev { left: 4px; }
    .bd-sale-slider-next { right: 4px; }
}
@media (max-width: 575px) {
    .bd-sale-grid { grid-template-columns: 1fr; }
    .bd-sale-filter,
    .bd-sale-filter input { width: 100%; min-width: 0; }
    .bd-sale-filter select { width: 100% !important; min-width: 0; }
}
