/*
 Theme Name:   Buvmix Theme
 Theme URI:    http://localhost/buvmix
 Description:  Custom WooCommerce child theme for Buvmateriali.com
 Author:       Buvmix
 Template:     generatepress
 Version:      1.0.1
 Text Domain:  buvmix-theme
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --bm-primary: #1a3a5c;
    --bm-primary-dark: #132c47;
    --bm-primary-light: #2a5580;
    --bm-accent: #e74c3c;
    --bm-accent-dark: #c0392b;
    --bm-green: #27ae60;
    --bm-bg: #f0f2f5;
    --bm-bg-light: #f8f9fa;
    --bm-white: #ffffff;
    --bm-border: #e0e0e0;
    --bm-text: #333333;
    --bm-text-secondary: #666666;
    --bm-text-muted: #999999;
    --bm-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --bm-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --bm-radius: 4px;
    --bm-sidebar-width: 270px;
    --bm-content-max: 1300px;
    --bm-section-max: 1260px;
    --bm-gutter: clamp(16px, 2.5vw, 24px);
    --bm-home-sidebar-width: clamp(240px, 24vw, 300px);
    --bm-showcase-info-width: clamp(190px, 20vw, 220px);
    --bm-faq-left-width: clamp(280px, 30vw, 380px);
    --bm-font: "DM Sans", sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
body {
    background-color: var(--bm-bg);
    font-family: var(--bm-font);
    color: var(--bm-text);
}

/* Hide default GeneratePress header/nav on all pages */
.site-header,
#site-navigation {
    display: none !important;
}

/* ============================================================
   CUSTOM HEADER
   ============================================================ */
.bm-header {
    background: var(--bm-primary);
    color: var(--bm-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bm-header-top {
    display: flex;
    align-items: center;
    width: min(var(--bm-content-max), calc(100% - (var(--bm-gutter) * 2)));
    padding: 0;
    min-height: 60px;
    height: auto;
    margin: 0 auto;
    gap: clamp(12px, 1.8vw, 20px);
    box-sizing: border-box;
}

.bm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--bm-white);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}

.bm-logo span {
    color: #5dade2;
}

.bm-logo-img {
    max-height: 42px;
    width: auto;
    max-width: 100%;
    display: block;
}

.bm-search {
    flex: 1 1 420px;
    min-width: 0;
    max-width: none;
    position: relative;
}

.bm-search input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 0;
    padding: 0 45px 0 15px;
    font-size: 14px;
    outline: none;
    color: var(--bm-text);
}

.bm-search input::placeholder {
    color: var(--bm-text-muted);
}

.bm-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 42px;
    background: #f5c518;
    border: none;
    border-radius: 0;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-search-btn:hover {
    background: #e0b315;
}

.bm-search-btn img {
    display: block;
    width: 18px;
    height: 18px;
}

.bm-search-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    overflow: visible;
}

/* Live search results dropdown */
.bm-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bm-white);
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}

.bm-search-results.active {
    display: block;
}

.bm-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--bm-text);
    border-bottom: 1px solid var(--bm-border);
    transition: background 0.1s;
}

.bm-search-result-item:hover {
    background: var(--bm-bg);
}

.bm-search-result-item:last-child {
    border-bottom: none;
}

.bm-search-result-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--bm-radius);
    background: var(--bm-bg);
}

.bm-search-result-info {
    flex: 1;
    min-width: 0;
}

.bm-search-result-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bm-text);
}

.bm-search-result-price {
    font-size: 12px;
    color: var(--bm-text-secondary);
    margin-top: 2px;
}

.bm-search-no-results {
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: var(--bm-text-secondary);
}

.bm-search-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-primary);
    text-decoration: none;
    border-top: 1px solid var(--bm-border);
    background: var(--bm-bg);
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
}

.bm-search-view-all:hover {
    background: var(--bm-border);
}

.bm-search-loading {
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: var(--bm-text-secondary);
}

.bm-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.4vw, 18px);
    margin-left: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

.bm-header-actions a {
    color: var(--bm-white);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
    flex: 0 0 32px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.bm-header-actions a:hover {
    opacity: 1;
}

.bm-header-actions a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bm-header-language-switcher {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown {
    position: relative;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 7px;
    color: var(--bm-white);
    cursor: pointer;
    opacity: 0.9;
    user-select: none;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown summary::-webkit-details-marker {
    display: none;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown[open] summary,
.bm-header-language-switcher .bmtp-language-switcher-dropdown summary:hover {
    opacity: 1;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown summary span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown summary svg {
    width: 10px;
    height: 6px;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 72px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(8, 24, 44, 0.16);
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown ul li {
    margin: 0;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown ul a {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 8px 14px;
    justify-content: flex-start;
    color: var(--bm-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex: initial;
    opacity: 1;
}

.bm-header-language-switcher .bmtp-language-switcher-dropdown ul a:hover {
    color: var(--bm-accent);
}

.bm-nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bm-nav-menu li {
    margin: 0;
}

.bm-header-wishlist {
    position: relative;
}

.bm-wishlist-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--bm-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bm-header-cart {
    position: relative;
}

.bm-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--bm-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Yellow top bar */
.bm-topbar {
    background: #f5c518;
}

.bm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--bm-content-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 0 auto;
    padding: 0;
    height: 34px;
    gap: clamp(12px, 1.6vw, 20px);
    box-sizing: border-box;
}

.bm-topbar-left,
.bm-topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.bm-topbar-right {
    margin-left: auto;
    justify-content: flex-end;
}

.bm-topbar a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.bm-topbar a:hover {
    color: #000;
    text-decoration: underline;
}

.bm-topbar-left a {
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.bm-topbar-left a:first-child {
    padding-left: 0;
}

.bm-topbar-left a:last-child {
    border-right: none;
}

.bm-topbar-right a {
    font-weight: 600;
}

.bm-topbar-right a:last-child {
    padding-right: 0;
}

/* Navigation bar */
.bm-nav {
    background: var(--bm-primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bm-nav-inner {
    display: flex;
    align-items: center;
    width: min(var(--bm-content-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 0 auto;
    padding: 0;
    gap: 0;
    min-width: 0;
    box-sizing: border-box;
}

.bm-nav a {
    color: var(--bm-white);
    text-decoration: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.bm-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bm-nav a.bm-catalog-btn {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.bm-nav a.bm-catalog-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Undo .bm-nav a styles inside dropdown */
.bm-catalog-dropdown .bm-home-cat-link {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: normal;
    transition: all 0.15s;
}

.bm-catalog-dropdown .bm-home-subcat-card {
    white-space: normal;
    gap: 14px;
    padding: 16px;
    font-size: inherit;
    font-weight: inherit;
}

/* Catalog dropdown */
.bm-catalog-wrap {
    position: relative;
}

.bm-catalog-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: min(var(--bm-content-max), calc(100vw - (var(--bm-gutter) * 2)));
    max-width: calc(100vw - (var(--bm-gutter) * 2));
}

.bm-catalog-wrap:hover .bm-catalog-dropdown,
.bm-catalog-wrap.open .bm-catalog-dropdown {
    display: block;
}

.bm-dd-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--bm-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
    overflow: hidden;
}

.bm-dd-layout .bm-home-sidebar {
    width: var(--bm-home-sidebar-width);
    flex-shrink: 0;
    border-radius: 0 0 0 var(--bm-radius);
}

.bm-dd-panels {
    display: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    background: var(--bm-bg);
    border-radius: 0 0 var(--bm-radius) 0;
    overflow: clip;
    height: var(--bm-dd-panel-height, auto);
    max-height: var(--bm-dd-panel-max-height, none);
}

.bm-dd-panels.has-panel {
    display: block;
}

.bm-dd-panel {
    display: none;
    padding: 25px 30px;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bm-dd-panel.active {
    display: block;
}

/* Breadcrumbs */
.bm-breadcrumbs {
    background: transparent;
    padding: 14px 20px 6px;
}

.bm-breadcrumbs-inner {
    width: min(1280px, calc(100% - (var(--bm-gutter) * 2)));
    margin: 0 auto;
    font-size: 13px;
    color: var(--bm-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bm-breadcrumbs a {
    color: var(--bm-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.bm-breadcrumbs a:hover {
    color: var(--bm-primary);
}

.bm-breadcrumbs span:last-child {
    color: var(--bm-text);
    font-weight: 500;
}

.bm-breadcrumbs .bm-bc-sep {
    color: var(--bm-text-muted);
    font-size: 10px;
}

.bm-breadcrumbs .bm-bc-home svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    fill: var(--bm-text-secondary);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.bm-page-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%; /* Needed when inside GP's display:flex .site-content */
    box-sizing: border-box;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.bm-sidebar {
    width: var(--bm-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

@media (min-width: 901px) {
    .bm-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }
}

.bm-sidebar::-webkit-scrollbar {
    width: 4px;
}

.bm-sidebar::-webkit-scrollbar-thumb {
    background: var(--bm-border);
    border-radius: 2px;
}

/* Categories box — blue themed */
.bm-categories-box {
    background: var(--bm-primary);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.bm-categories-title {
    background: rgba(0,0,0,0.2);
    color: var(--bm-white);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bm-categories-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    display: none;
}

@media (max-width: 900px) {
    .bm-categories-chevron {
        display: block;
    }
    .bm-categories-title.open .bm-categories-chevron {
        transform: rotate(180deg);
    }
}

.bm-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-cat-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bm-cat-item:last-child {
    border-bottom: none;
}

.bm-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
    gap: 8px;
}

.bm-cat-link:hover {
    background: rgba(255,255,255,0.1);
    color: #f5c518;
}

.bm-cat-link.active {
    background: rgba(0,0,0,0.2);
    color: #f5c518;
    font-weight: 600;
}

.bm-cat-link.active .bm-cat-toggle {
    color: #f5c518;
}

.bm-cat-link.active .bm-cat-toggle:hover,
.bm-cat-link.active .bm-cat-toggle.open {
    background: #f5c518;
    color: #000;
}

.bm-cat-sidebar-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.bm-cat-link:hover .bm-cat-sidebar-icon,
.bm-cat-link.active .bm-cat-sidebar-icon {
    filter: brightness(0) saturate(100%) invert(79%) sepia(60%) saturate(600%) hue-rotate(5deg);
}

.bm-cat-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.bm-cat-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: rgba(255,255,255,0.6);
    font-size: 0;
    line-height: 0;
    flex-shrink: 0;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, background 0.15s, color 0.15s;
    border-radius: 3px;
}

.bm-cat-toggle::before,
.bm-cat-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.bm-cat-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.bm-cat-toggle:hover,
.bm-cat-toggle:active,
.bm-cat-toggle.open {
    background: #f5c518;
    color: #000;
}

.bm-cat-toggle.open {
    transform: rotate(45deg);
    transform-origin: 50% 50%;
}

.bm-cat-toggle:focus {
    outline: none;
    box-shadow: none;
}

.bm-cat-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.45);
}

/* Neutralize inherited theme button focus background when collapsed. */
.bm-cat-toggle:focus:not(.open):not(:hover):not(:active) {
    background: none;
    color: rgba(255,255,255,0.6);
}

.bm-cat-link.active .bm-cat-toggle:focus:not(.open):not(:hover):not(:active) {
    color: #f5c518;
}

.bm-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: rgba(0,0,0,0.18);
}

.bm-cat-children.open {
    display: block;
}

.bm-cat-children .bm-cat-child-link {
    display: block;
    padding: 8px 16px 8px 30px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: all 0.15s;
    position: relative;
}

.bm-cat-children .bm-cat-child-link::before {
    content: "–";
    position: absolute;
    left: 18px;
    color: rgba(255,255,255,0.35);
}

.bm-cat-children .bm-cat-child-link:hover {
    color: #f5c518;
    background: rgba(255,255,255,0.07);
}

.bm-cat-children .bm-cat-child-link.current {
    color: #f5c518;
    font-weight: 600;
}

/* Filters box */
.bm-filters-box {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    overflow: hidden;
}

.bm-filters-title {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-filters-title svg {
    width: 16px;
    height: 16px;
}

.bm-filters-chevron {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    display: none;
}

@media (max-width: 900px) {
    .bm-filters-chevron {
        display: block;
    }
    .bm-filters-title.open .bm-filters-chevron {
        transform: rotate(180deg);
    }
}

.bm-filter-section {
    border-top: 1px solid var(--bm-border);
    padding: 14px 16px;
}

.bm-filter-reset-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
}

.bm-filter-reset-btn {
    width: 100%;
    height: 34px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bm-filter-reset-btn:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 12px;
}

.bm-filter-header .toggle-icon {
    font-size: 18px;
    color: var(--bm-text-muted);
    transition: transform 0.2s;
    line-height: 1;
}

/* Price filter */
.bm-price-slider-wrap {
    padding: 5px 0;
}

.bm-price-range {
    position: relative;
    height: 6px;
    background: var(--bm-border);
    border-radius: 3px;
    margin: 8px 0 16px;
}

.bm-price-range-fill {
    position: absolute;
    height: 100%;
    background: #f5c518;
    border-radius: 3px;
    left: 0;
    right: 0;
}

.bm-price-range input[type="range"] {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 18px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.bm-price-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.bm-price-range input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
    border: 0;
}

.bm-price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #f5c518;
    border: 2px solid #f5c518;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bm-price-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #f5c518;
    border: 2px solid #f5c518;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bm-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-price-inputs label {
    font-size: 12px;
    color: var(--bm-text-muted);
    display: block;
    margin-bottom: 2px;
}

.bm-price-input-wrap {
    flex: 1;
}

.bm-price-input-wrap input {
    width: 100%;
    height: 34px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 0 8px;
    font-size: 13px;
    text-align: center;
    color: var(--bm-text);
}

.bm-price-input-wrap input:focus {
    border-color: var(--bm-primary);
    outline: none;
}

.bm-price-apply {
    width: 34px;
    height: 34px;
    background: #f5c518;
    color: #000;
    border: none;
    border-radius: var(--bm-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    align-self: flex-end;
    transition: background 0.2s;
}

.bm-price-apply:hover {
    background: #e0b400;
}

/* Brand filter */
.bm-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--bm-text);
}

.bm-brand-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bm-primary);
    flex-shrink: 0;
}

.bm-brand-item .brand-icon {
    width: 24px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bm-brand-item .brand-icon img {
    max-width: 100%;
    max-height: 100%;
}

.bm-brand-item .brand-name {
    flex: 1;
}

/* Attribute filters (dynamic) */
.bm-attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.bm-attr-list::-webkit-scrollbar {
    width: 4px;
}

.bm-attr-list::-webkit-scrollbar-thumb {
    background: var(--bm-border);
    border-radius: 2px;
}

.bm-attr-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--bm-text);
}

.bm-attr-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bm-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.bm-attr-item label {
    flex: 1;
    cursor: pointer;
    line-height: 1.3;
}

.bm-attr-count {
    font-size: 11px;
    color: var(--bm-text-muted);
    flex-shrink: 0;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.bm-main {
    flex: 1;
    min-width: 0;
}

/* Category title & description */
.bm-category-header {
    margin-bottom: 20px;
}

.bm-category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 12px 0;
}

.bm-category-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bm-text-secondary);
    position: relative;
    max-height: 65px;
    overflow: hidden;
    transition: max-height 0.3s;
}

.bm-category-desc.expanded {
    max-height: 500px;
}

.bm-readmore {
    display: inline-block;
    color: var(--bm-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
}

.bm-readmore:hover {
    text-decoration: underline;
}

/* Subcategory cards */
.bm-subcats-wrap {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.bm-subcats-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--bm-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s;
}

.bm-subcats-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bm-subcats-wrap:hover .bm-subcats-btn {
    opacity: 1;
    pointer-events: auto;
}

.bm-subcats-btn:hover {
    background: #f5c518;
    color: #000;
}

.bm-subcats-prev { left: 0; }
.bm-subcats-next { right: 0; }

.bm-subcats {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    min-width: 0;
}

.bm-subcat-card {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--bm-text);
    transition: box-shadow 0.2s, transform 0.2s;
    flex: 0 0 160px;
    width: 160px;
}

.bm-subcat-card:hover {
    box-shadow: var(--bm-shadow-hover);
    transform: translateY(-2px);
}

.bm-subcat-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.bm-subcat-card .bm-subcat-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: var(--bm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--bm-text-muted);
}

.bm-subcat-card .bm-subcat-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* Category archive: show subcategories as a fixed grid instead of a slider */
.bm-subcats-wrap {
    overflow: visible;
}

.bm-subcats-wrap .bm-subcats-btn {
    display: none !important;
}

.bm-subcats-wrap .bm-subcats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    overflow: visible;
    scroll-behavior: auto;
}

.bm-subcats-wrap .bm-subcat-card {
    width: 100%;
    min-width: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 1199px) {
    .bm-subcats-wrap .bm-subcats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bm-subcats-wrap .bm-subcats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bm-subcats-wrap .bm-subcats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bm-subcats-wrap .bm-subcat-card {
        width: 100%;
        min-height: 160px;
        padding: 16px 12px;
    }
}

@media (max-width: 479px) {
    .bm-subcats-wrap .bm-subcats {
        grid-template-columns: 1fr;
    }
}

/* Brand logos bar */
.bm-brands-wrap {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.bm-brands-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--bm-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s;
}

.bm-brands-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bm-brands-wrap:hover .bm-brands-btn {
    opacity: 1;
    pointer-events: auto;
}

.bm-brands-btn:hover {
    background: #f5c518;
    color: #000;
}

.bm-brands-prev { left: 0; }
.bm-brands-next { right: 0; }

.bm-brands-bar {
    background: var(--bm-bg-light);
    border-radius: var(--bm-radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    box-shadow: var(--bm-shadow);
    width: 100%;
    min-width: 0;
}

.bm-brands-bar .bm-brand-logo {
    height: 28px;
    opacity: 0.55;
    transition: opacity 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--bm-radius);
    border: none;
    cursor: pointer;
}

.bm-brands-bar .bm-brand-logo:hover {
    opacity: 1;
}

.bm-brands-bar .bm-brand-logo.active {
    opacity: 1;
}

.bm-brands-bar .bm-brand-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.bm-brands-bar .bm-brand-logo .bm-brand-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-text);
    white-space: nowrap;
}

/* Toolbar (product count + sorting) */
.bm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: var(--bm-shadow);
    flex-wrap: wrap;
    gap: 10px;
}

.bm-result-count {
    font-size: 14px;
    color: var(--bm-text-secondary);
}

.bm-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bm-text-secondary);
}

.bm-sort-wrap select {
    height: 36px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 0 30px 0 12px;
    font-size: 13px;
    color: var(--bm-text);
    background: var(--bm-white);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.bm-sort-wrap select:focus {
    border-color: var(--bm-primary);
    outline: none;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.bm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.bm-product-card {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bm-product-card:hover {
    box-shadow: var(--bm-shadow-hover);
    transform: translateY(-2px);
}

/* Discount badge */
.bm-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f5c518;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
}

/* Out of stock product card */
.bm-product-card.bm-out-of-stock .bm-product-image img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.bm-product-card.bm-out-of-stock .bm-product-pricing {
    opacity: 0.45;
}

.bm-product-card.bm-out-of-stock .bm-card-add-to-cart {
    display: none !important;
}

.bm-product-card.bm-out-of-stock .bm-discount-badge {
    display: none;
}

.bm-sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--bm-radius);
    text-transform: uppercase;
    z-index: 3;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Product image */
.bm-product-image {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: var(--bm-white);
}

.bm-product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bm-product-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    transition: transform 0.3s;
}

.bm-product-card:hover .bm-product-image img {
    transform: scale(1.05);
}

/* Wishlist heart on product card */
.bm-card-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff !important;
    border: 1px solid #ddd !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
    padding: 0;
    line-height: 1;
}

.bm-card-wishlist svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #999 !important;
    fill: none !important;
    stroke-width: 2 !important;
    flex-shrink: 0;
    display: block !important;
}

.bm-product-card:hover .bm-card-wishlist {
    opacity: 1;
    transform: translateY(0);
}

.bm-card-wishlist:hover {
    border-color: #e74c3c !important;
}

.bm-card-wishlist:hover svg {
    stroke: #e74c3c !important;
}

.bm-card-wishlist.added {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    opacity: 1;
    transform: translateY(0);
}

.bm-card-wishlist.added svg {
    stroke: #fff !important;
    fill: #fff !important;
}

.bm-card-wishlist.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hide YITH's auto-injected wishlist buttons on shop loop (we use our own) */
.bm-product-card .yith-wcwl-add-to-wishlist,
.bm-product-image .yith-wcwl-add-to-wishlist,
.bm-product-info .yith-wcwl-add-to-wishlist {
    display: none !important;
}

/* Add to cart button on hover */
.bm-card-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 3;
}

.bm-product-card:hover .bm-card-add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.bm-card-cart-btn {
    display: block;
    text-align: center;
    background: #f5c518;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 0;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.bm-card-cart-btn:hover {
    background: #e6b800;
    color: #000;
}

.bm-card-cart-btn.added::after {
    content: ' \2713';
}

/* Product info */
.bm-product-info {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid var(--bm-border);
}

.bm-product-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--bm-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bm-product-title {
    font-size: 13px;
    line-height: 1.4;
    color: var(--bm-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}

.bm-product-title a {
    color: inherit;
    text-decoration: none;
}

.bm-product-title a:hover {
    color: var(--bm-primary);
}

/* Pricing */
.bm-product-pricing {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.bm-price-current {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.bm-price-sale {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-text);
    line-height: 1;
}

.bm-price-sale .price-cents {
    font-size: 14px;
    vertical-align: super;
}

.bm-price-unit,
.bm-price-unit-label {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--bm-text-secondary);
}

.bm-price-with-unit,
.bm-wc-price-wrap {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.bm-price-original {
    font-size: 13px;
    color: var(--bm-text-muted);
    text-decoration: line-through;
}

/* Feature badge (energy rating, etc.) */
.bm-feature-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bm-white);
    background: var(--bm-green);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.bm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
    padding: 20px 0;
}

.bm-pagination a,
.bm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}

.bm-pagination a:hover {
    background: var(--bm-primary);
    color: var(--bm-white);
    border-color: var(--bm-primary);
}

.bm-pagination .current {
    background: var(--bm-primary);
    color: var(--bm-white);
    border-color: var(--bm-primary);
    font-weight: 600;
}

/* WooCommerce pagination override */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 4px;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--bm-primary);
    color: var(--bm-white);
    border-color: var(--bm-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--bm-primary);
    color: var(--bm-white);
    border-color: var(--bm-primary);
    font-weight: 600;
}

/* ============================================================
   HIDE DEFAULT WOOCOMMERCE ELEMENTS
   ============================================================ */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-breadcrumb {
    display: none !important;
}

/* Override WooCommerce product list styles */
.woocommerce ul.products,
body.search-results ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product,
body.search-results ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
body.search-results ul.products::before,
body.search-results ul.products::after {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
    .bm-topbar a {
        padding: 0 10px;
        font-size: 11px;
        gap: 4px;
    }

    .bm-header-top {
        gap: 12px;
    }

    .bm-logo-img {
        max-height: 38px;
    }

    .bm-search {
        min-width: 0;
    }

    .bm-header-actions {
        gap: 12px;
    }

    .bm-nav a {
        padding: 12px 16px;
    }

    .bm-dd-panel {
        padding: 22px 24px;
    }
}

@media (max-width: 1100px) {
    .bm-products-grid,
    .woocommerce ul.products,
    body.search-results ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .bm-page-wrap {
        flex-direction: column;
        align-items: stretch; /* Children stretch to full container width in column layout */
    }

    .bm-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .bm-products-grid,
    .woocommerce ul.products,
    body.search-results ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .bm-header-top {
        flex-wrap: wrap;
        justify-content: space-between;
        min-height: 0;
        padding: 10px 0 12px;
        gap: 10px 12px;
    }

    .bm-logo {
        order: 1;
        max-width: min(46vw, 210px);
    }

    .bm-header-actions {
        order: 2;
        margin-left: auto;
    }

    .bm-search {
        order: 3;
        flex: 1 0 100%;
        flex-basis: 100%;
        width: 100%;
    }

    .bm-topbar-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 34px;
        padding: 6px 0;
        row-gap: 4px;
    }

    .bm-topbar-right {
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* Hide topbar on mobile — causes overflow, not useful on small screens */
    .bm-topbar {
        display: none;
    }

    /* Nav scrolls horizontally instead of overflowing page */
    .bm-nav-inner {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        gap: 0;
    }

    /* Dropdown is unusable on mobile — hide it */
    .bm-catalog-wrap.open .bm-catalog-dropdown,
    .bm-catalog-wrap:hover .bm-catalog-dropdown {
        display: none;
    }

    .bm-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .bm-nav a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .bm-page-wrap {
        padding: 10px;
        gap: 10px;
    }

    .bm-products-grid,
    .woocommerce ul.products,
    body.search-results ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .bm-product-image {
        min-height: 130px;
        padding: 12px;
    }

    .bm-product-info {
        padding: 10px;
    }

    .bm-price-sale {
        font-size: 18px;
    }

    .bm-category-title {
        font-size: 22px;
    }

    .bm-nav-inner {
        overflow-x: auto;
    }

    .bm-header-top {
        padding: 8px 0 10px;
        gap: 8px 10px;
    }

    .bm-logo {
        max-width: min(48vw, 170px);
    }

    .bm-logo-img {
        max-height: 36px;
    }

    .bm-header-actions {
        gap: 8px;
    }

    .bm-header-actions a {
        width: 30px;
        min-width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .bm-header-actions a svg {
        width: 18px;
        height: 18px;
    }

    .bm-search input {
        height: 38px;
        padding: 0 44px 0 14px;
    }

    .bm-search-btn {
        width: 42px;
        height: 38px;
    }

    .bm-header-actions .bm-phone-text {
        display: none;
    }
}

/* ============================================================
   WooCommerce overrides to integrate with our layout
   ============================================================ */
.woocommerce .site-content .content-area,
.woocommerce-page .site-content .content-area {
    width: 100%;
}

/* Remove GeneratePress default WooCommerce wrappers padding */
.woocommerce .entry-content {
    margin-top: 0 !important;
}

.woocommerce div.product,
.woocommerce .inside-article {
    padding: 0;
}

.woocommerce .inside-article {
    background: transparent;
}

/* Remove default star ratings in loop */
.woocommerce ul.products li.product .star-rating {
    display: none;
}

/* Remove default add to cart button in loop */
.woocommerce ul.products li.product .button {
    display: none;
}

/* Override sale flash */
.woocommerce span.onsale {
    display: none !important;
}

/* ============================================================
   HOMEPAGE: Break out of GeneratePress wrappers
   (.site-content = display:flex, .grid-container = max-width:1200px)
   ============================================================ */
body.home #page.site,
body.home #page.grid-container,
body.home .site.grid-container,
body.page-template-front-page #page.site,
body.page-template-front-page #page.grid-container,
body.page-template-front-page .site.grid-container,
body.single-product #page.site,
body.single-product #page.grid-container,
body.single-product .site.grid-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home .site-content,
body.page-template-front-page .site-content,
body.page-template-page-zimoli .site-content,
body.single-product .site-content,
body.woocommerce .site-content,
body.woocommerce-page .site-content,
body.search-results .site-content {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    flex-direction: column !important;
}

body.home .container.grid-container,
body.page-template-front-page .container.grid-container,
body.page-template-page-zimoli .container.grid-container,
body.single-product .container.grid-container {
    max-width: none !important;
    width: 100% !important;
}

body.page-template-page-zimoli .content-area {
    width: 100% !important;
    max-width: none !important;
}

body.single-product .content-area {
    width: 100% !important;
    max-width: none !important;
}

/* ============================================================
   HOMEPAGE: INFO BAR (yellow)
   ============================================================ */
.bm-info-bar {
    background: #f5c518;
    width: 100%;
}

.bm-info-bar-inner {
    width: min(var(--bm-content-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    gap: 20px;
    box-sizing: border-box;
}

.bm-info-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.bm-info-bar-right a {
    color: var(--bm-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bm-info-bar-right a:hover {
    color: var(--bm-primary);
}

.bm-info-bar-right svg {
    flex-shrink: 0;
}

/* ============================================================
   HOMEPAGE: MAIN LAYOUT
   ============================================================ */
.bm-home-wrap {
    width: min(var(--bm-content-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    box-sizing: border-box;
}

/* Hide breadcrumbs on homepage */
body.home .bm-breadcrumbs,
body.page-template-front-page .bm-breadcrumbs {
    display: none;
}

/* ============================================================
   HOMEPAGE: SIDEBAR (always visible)
   ============================================================ */
.bm-home-sidebar {
    width: var(--bm-home-sidebar-width);
    flex-shrink: 0;
    background: var(--bm-primary);
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
    overflow: hidden;
    z-index: 10;
}

.bm-home-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-home-cat-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bm-home-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--bm-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.15s;
}

.bm-home-cat-link:hover {
    color: #f5c518;
    background: rgba(255, 255, 255, 0.05);
}

.bm-home-cat-item.hovered .bm-home-cat-link {
    color: #f5c518;
    background: rgba(255, 255, 255, 0.05);
}

.bm-home-cat-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.bm-home-cat-name {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bm-home-cat-arrow {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
}

.bm-home-cat-link:hover .bm-home-cat-arrow,
.bm-home-cat-item.hovered .bm-home-cat-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ============================================================
   HOMEPAGE: MAIN CONTENT AREA
   ============================================================ */
.bm-home-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
    background: transparent;
}

.bm-home-default {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    background: transparent;
    overflow: hidden;
    line-height: 0;
}

/* ============================================================
   HOMEPAGE: HERO BANNER
   ============================================================ */
.bm-hero {
    position: relative;
    overflow: hidden;
    background: transparent;
    height: auto;
    min-height: 0;
    aspect-ratio: 49 / 24;
    z-index: 0;
}

.bm-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.bm-hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    backface-visibility: hidden;
}

.bm-hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: transparent;
    backface-visibility: hidden;
}

.bm-hero-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    backface-visibility: hidden;
}

.bm-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: 500px;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bm-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--bm-white);
    margin: 0 0 12px;
    line-height: 1.1;
    text-transform: uppercase;
}

.bm-hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px;
    font-weight: 400;
}

.bm-hero-brand {
    font-size: 28px;
    font-weight: 800;
    color: #f5c518;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.bm-hero-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
    max-width: 420px;
}

/* Hero arrows */
.bm-hero-arrow {
    --bm-hero-arrow-size: clamp(34px, 3vw, 44px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--bm-hero-arrow-size);
    min-width: var(--bm-hero-arrow-size);
    max-width: var(--bm-hero-arrow-size);
    height: var(--bm-hero-arrow-size);
    min-height: var(--bm-hero-arrow-size);
    max-height: var(--bm-hero-arrow-size);
    padding: 0;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    line-height: 1;
    flex: 0 0 var(--bm-hero-arrow-size);
    background: rgba(0, 0, 0, 0.25);
    color: var(--bm-white);
    border: none;
    border-radius: 50%;
    font-size: clamp(16px, 1.5vw, 20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}

.bm-hero-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

.bm-hero-arrow:focus,
.bm-hero-arrow:focus-visible {
    outline: none;
    box-shadow: none;
}

.bm-hero-arrow:not(:hover):focus,
.bm-hero-arrow:not(:hover):focus-visible,
.bm-hero-arrow:not(:hover):active {
    background: rgba(0, 0, 0, 0.25);
}

.bm-hero-prev {
    left: 15px;
}

.bm-hero-next {
    right: 15px;
}

/* ============================================================
   HOMEPAGE: PROMO CARDS
   ============================================================ */
.bm-promo-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: -1px;
    align-items: stretch;
    overflow: hidden;
    background: transparent;
}

.bm-promo-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 49 / 30;
    background: transparent;
    backface-visibility: hidden;
}

.bm-promo-card + .bm-promo-card {
    margin-left: -1px;
}

.bm-promo-card img,
.bm-promo-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.bm-promo-card img {
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s;
}

.bm-promo-card:hover img {
    transform: scale(1.05);
}

.bm-promo-card-placeholder {
    background: linear-gradient(135deg, #2a5580, #1a3a5c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-promo-card-logo {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 4px;
}

.bm-promo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.bm-promo-card-name {
    color: var(--bm-white);
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   HOMEPAGE: BRAND SLIDER
   ============================================================ */
.bm-brand-slider {
    width: min(var(--bm-section-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 20px auto 0;
    padding: 10px 0;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.bm-brand-slider::before,
.bm-brand-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.bm-brand-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bm-white) 0%, transparent 100%);
}

.bm-brand-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bm-white) 0%, transparent 100%);
}

.bm-brand-track {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: bm-brand-scroll 25s linear infinite;
    width: max-content;
}

.bm-brand-track:hover {
    animation-play-state: paused;
}

.bm-brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
}

.bm-brand-item img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bm-brand-item:hover img {
    opacity: 1;
}

@keyframes bm-brand-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   HOMEPAGE: SUBCATEGORY PANELS (on hover)
   ============================================================ */
.bm-home-subcat-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bm-bg-light);
    padding: 25px 30px;
    box-sizing: border-box;
    z-index: 5;
    border-radius: 0 0 var(--bm-radius) 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (min-width: 901px) {
    .bm-home-wrap.has-fixed-panel .bm-home-subcat-panel {
        position: fixed;
        top: var(--bm-home-panel-top, 0);
        left: var(--bm-home-panel-left, 0);
        right: auto;
        bottom: auto;
        width: var(--bm-home-panel-width, auto);
        height: var(--bm-home-panel-height, auto);
        max-height: var(--bm-home-panel-max-height, calc(100vh - var(--bm-home-panel-top, 0px)));
        z-index: 950;
    }
}

.bm-home-subcat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bm-home-subcat-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--bm-text);
    min-width: 0;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.bm-home-subcat-card:hover {
    box-shadow: var(--bm-shadow-hover);
    border-color: var(--bm-primary-light);
}

.bm-home-subcat-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-home-subcat-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bm-home-subcat-nothumb {
    width: 56px;
    height: 56px;
    background: var(--bm-bg);
    border-radius: var(--bm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-home-subcat-info {
    flex: 1;
    min-width: 0;
}

.bm-home-subcat-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--bm-text);
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    text-wrap: pretty;
}

.bm-home-subcat-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #f5c518;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bm-home-subcat-card:hover .bm-home-subcat-more {
    color: #e0b315;
}

.bm-dd-panel .bm-home-subcat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
}

.bm-dd-panel .bm-home-subcat-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    height: 100%;
    padding: 18px;
}

.bm-dd-panel .bm-home-subcat-thumb {
    width: clamp(56px, 4vw, 72px);
    height: clamp(56px, 4vw, 72px);
}

.bm-dd-panel .bm-home-subcat-info {
    width: 100%;
}

.bm-dd-panel .bm-home-subcat-name {
    font-size: 12px;
    line-height: 1.4;
}

.bm-dd-panel .bm-home-subcat-more {
    margin-top: 10px;
}

/* ============================================================
   HOMEPAGE: RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
    .bm-home-subcat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .bm-home-wrap {
        flex-direction: column;
    }

    .bm-home-sidebar {
        width: 100%;
        border-radius: 0;
    }

    .bm-home-cat-list {
        display: none;
    }

    .bm-home-sidebar.open .bm-home-cat-list {
        display: block;
    }

    .bm-home-catalog-header {
        cursor: pointer;
    }

    .bm-home-main {
        min-height: auto;
    }

    .bm-home-subcat-panel {
        position: relative;
    }

    .bm-hero {
        border-radius: 0;
    }

    .bm-hero-title {
        font-size: 28px;
    }

    .bm-hero-slide {
        padding: 0;
    }

    .bm-brand-slider {
        margin-top: 15px;
        padding: 14px 0;
    }

    .bm-brand-track {
        gap: 25px;
    }

    .bm-brand-name {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .bm-topbar {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .bm-topbar::-webkit-scrollbar {
        display: none;
    }

    .bm-topbar-inner {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        height: 34px;
        min-height: 34px;
        padding: 0 var(--bm-gutter);
        margin: 0;
        row-gap: 0;
        column-gap: 16px;
    }

    .bm-topbar-left,
    .bm-topbar-right {
        width: auto;
        flex-wrap: nowrap;
        gap: 0;
    }

    .bm-topbar-right {
        margin-left: auto;
        justify-content: flex-end;
    }

    .bm-topbar a {
        padding: 0 8px;
        white-space: nowrap;
    }

    .bm-topbar-left a {
        border-right: 1px solid rgba(0, 0, 0, 0.15);
    }

    .bm-topbar-left a:first-child {
        padding-left: 0;
    }

    .bm-topbar-left a:last-child {
        border-right: none;
    }

    .bm-topbar-right a:last-child {
        padding-right: 0;
    }

    .bm-header-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo actions"
            "search search";
        align-items: center;
        padding: 10px 0 12px;
        row-gap: 10px;
        column-gap: 12px;
    }

    .bm-logo {
        grid-area: logo;
        order: initial;
        max-width: min(48vw, 220px);
    }

    .bm-header-actions {
        grid-area: actions;
        order: initial;
        margin-left: 0;
        justify-self: end;
        align-self: center;
        gap: 10px;
    }

    .bm-search {
        grid-area: search;
        order: initial;
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .bm-nav-inner {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        gap: 0;
    }

    .bm-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .bm-nav a {
        flex: 0 0 auto;
    }
}

@media (max-width: 820px) {
    .bm-topbar-inner {
        height: 32px;
        min-height: 32px;
        column-gap: 12px;
        padding: 0 12px;
    }

    .bm-topbar a {
        font-size: 10px;
        padding: 0 6px;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .bm-topbar {
        display: block;
    }

    .bm-topbar-inner {
        height: 30px;
        min-height: 30px;
        padding: 0 10px;
        column-gap: 10px;
    }

    .bm-topbar a {
        font-size: 9px;
        line-height: 1;
        padding: 0 5px;
    }

    .bm-topbar a svg {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    .bm-header-top {
        padding: 8px 0 10px;
        row-gap: 8px;
        column-gap: 10px;
    }

    .bm-logo {
        max-width: min(50vw, 170px);
    }

    .bm-logo-img {
        max-height: 36px;
    }

    .bm-header-actions {
        gap: 8px;
    }

    .bm-header-actions a {
        width: 30px;
        min-width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .bm-header-actions a svg {
        width: 18px;
        height: 18px;
    }

    .bm-search input {
        height: 38px;
        padding: 0 44px 0 14px;
        font-size: 13px;
    }

    .bm-search-btn {
        width: 42px;
        height: 38px;
    }

    .bm-nav a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .bm-hero-arrow {
        --bm-hero-arrow-size: 32px;
        font-size: 16px;
    }

    .bm-hero-prev {
        left: 10px;
    }

    .bm-hero-next {
        right: 10px;
    }

    .bm-home-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bm-home-subcat-card {
        padding: 12px;
        gap: 10px;
    }

    .bm-home-subcat-thumb {
        width: 40px;
        height: 40px;
    }

    .bm-info-bar-inner {
        padding: 0 12px;
    }

    .bm-info-bar-right {
        gap: 15px;
    }

    .bm-info-bar-right a {
        font-size: 12px;
    }
}

/* ============================================================
   HOMEPAGE: CATEGORY SHOWCASE
   ============================================================ */
.bm-showcase-wrap {
    width: min(var(--bm-section-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 30px auto 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    box-sizing: border-box;
}

/* --- Sticky icon sidebar nav --- */
.bm-showcase-nav {
    position: sticky;
    top: var(--showcase-nav-top, 20px);
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--bm-primary);
    border-radius: var(--bm-radius);
    overflow: visible;
    z-index: 10;
    align-self: flex-start;
}

.bm-showcase-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 56px;
    position: relative;
    text-decoration: none;
    color: var(--bm-white);
    transition: background 0.2s;
    overflow: visible;
    cursor: pointer;
}

.bm-showcase-nav-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
    position: relative;
    z-index: 2;
}

.bm-showcase-nav-letter {
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-white);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.bm-showcase-nav-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 16px 0 68px;
    background: #f5c518;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    pointer-events: none;
    transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 var(--bm-radius) var(--bm-radius) 0;
    z-index: 1;
}

.bm-showcase-nav-item:hover .bm-showcase-nav-label {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
}

.bm-showcase-nav-item:hover img {
    filter: brightness(0);
}

.bm-showcase-nav-item:hover .bm-showcase-nav-letter {
    color: var(--bm-text);
}

.bm-showcase-nav-item:hover {
    background: transparent;
}

.bm-showcase-nav-item.active {
    background: #f5c518;
}

.bm-showcase-nav-item.active img {
    filter: brightness(0);
}

.bm-showcase-nav-item.active .bm-showcase-nav-letter {
    color: var(--bm-text);
}

.bm-showcase-nav-item.active .bm-showcase-nav-label {
    background: #f5c518;
}

/* --- Category sections --- */
.bm-showcase-sections {
    flex: 1;
    min-width: 0;
}

.bm-showcase-section {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.bm-showcase-section-inner {
    display: flex;
    align-items: stretch;
}

/* Left info panel */
.bm-showcase-section-info {
    width: var(--bm-showcase-info-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 24px;
    border-right: 1px solid var(--bm-border);
    text-align: center;
    gap: 16px;
}

.bm-showcase-section-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.bm-showcase-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-text);
    margin: 0;
    line-height: 1.3;
}

.bm-showcase-section-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #f5c518;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--bm-radius);
    transition: background 0.15s;
}

.bm-showcase-section-btn:hover {
    background: #e0b200;
}

/* Subcategory grid */
.bm-showcase-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-width: 0;
}

.bm-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 12px;
    text-decoration: none;
    color: var(--bm-text);
    border-right: 1px solid var(--bm-border);
    border-bottom: 1px solid var(--bm-border);
    transition: background 0.15s;
    text-align: center;
}

.bm-showcase-card:hover {
    background: var(--bm-bg-light);
}

.bm-showcase-card:nth-child(5n) {
    border-right: none;
}

.bm-showcase-card-thumb {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.bm-showcase-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bm-showcase-card-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bm-text);
}

.bm-showcase-empty {
    padding: 30px;
    color: var(--bm-text-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* --- Showcase responsive --- */
@media (max-width: 1240px) {
    .bm-showcase-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bm-showcase-card:nth-child(5n) {
        border-right: 1px solid var(--bm-border);
    }

    .bm-showcase-card:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 900px) {
    .bm-showcase-nav {
        display: none;
    }

    .bm-showcase-wrap {
        padding: 0;
    }

    .bm-showcase-section-inner {
        flex-direction: column;
    }

    .bm-showcase-section-info {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bm-border);
        padding: 20px;
        flex-direction: row;
        gap: 16px;
    }

    .bm-showcase-section-img {
        max-width: 60px;
        max-height: 60px;
    }

    .bm-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-showcase-card:nth-child(4n) {
        border-right: 1px solid var(--bm-border);
    }

    .bm-showcase-card:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .bm-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-showcase-card:nth-child(3n) {
        border-right: 1px solid var(--bm-border);
    }

    .bm-showcase-card:nth-child(2n) {
        border-right: none;
    }

    .bm-showcase-card-thumb {
        width: 70px;
        height: 70px;
    }

    .bm-showcase-section-info {
        flex-direction: column;
    }
}

/* ============================================================
   HOMEPAGE: BOTTOM SECTIONS (Brands, Tips, Info)
   ============================================================ */
.bm-bottom-section {
    width: min(var(--bm-section-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 40px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.bm-bottom-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 24px;
    text-align: center;
}

.bm-bottom-action {
    text-align: center;
    margin-top: 20px;
}

.bm-bottom-btn {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    color: var(--bm-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.bm-bottom-btn:hover {
    border-color: var(--bm-primary);
    background: var(--bm-bg-light);
}

/* --- Brands grid --- */
.bm-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.bm-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 8px 14px;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bm-brand-card:hover {
    border-color: var(--bm-primary-light);
    box-shadow: var(--bm-shadow-hover);
}

.bm-brand-card img {
    max-height: 32px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* --- Tips / Blog posts --- */
.bm-tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.bm-tips-header .bm-bottom-title {
    margin: 0;
    text-align: left;
}

.bm-tips-all-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #f5c518;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--bm-radius);
    transition: background 0.15s;
}

.bm-tips-all-btn:hover {
    background: #e0b315;
}

.bm-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bm-tip-card {
    text-decoration: none;
    color: var(--bm-text);
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}

.bm-tip-card:hover {
    box-shadow: var(--bm-shadow-hover);
    transform: translateY(-2px);
}

.bm-tip-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.bm-tip-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bm-tip-card:hover .bm-tip-card-img img {
    transform: scale(1.05);
}

.bm-tip-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-tip-card-title {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bm-text);
}

/* --- Information cards --- */
.bm-info-section {
    margin-bottom: 40px;
}

.bm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.bm-info-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 28px 24px;
}

.bm-info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bm-text-secondary);
    margin-bottom: 14px;
}

.bm-info-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 10px;
}

.bm-info-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bm-text-secondary);
    margin: 0 0 14px;
}

.bm-info-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.bm-info-card-link:hover {
    color: #f5c518;
}

/* --- Bottom sections responsive --- */
@media (max-width: 1100px) {
    .bm-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bm-tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .bm-bottom-section {
        padding: 0;
    }

    .bm-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-info-grid {
        grid-template-columns: 1fr;
    }

    .bm-bottom-title {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .bm-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bm-tips-grid {
        grid-template-columns: 1fr;
    }

    .bm-tips-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bm-tip-card-img {
        height: 150px;
    }

    .bm-bottom-section {
        margin-top: 30px;
    }
}

/* ============================================================
   HOMEPAGE: FAQ SECTION
   ============================================================ */
.bm-faq-section {
    background: #e8edf2;
    margin-top: 50px;
    padding: 60px 0;
}

.bm-faq-inner {
    width: min(var(--bm-section-max), calc(100% - (var(--bm-gutter) * 2)));
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Left column */
.bm-faq-left {
    width: var(--bm-faq-left-width);
    flex-shrink: 0;
}

.bm-faq-eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-primary);
    margin-bottom: 12px;
}

.bm-faq-heading {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--bm-text);
    margin: 0 0 16px;
}

.bm-faq-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--bm-text);
    margin: 0 0 24px;
}

.bm-faq-contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #f5c518;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--bm-radius);
    transition: background 0.15s;
}

.bm-faq-contact-btn:hover {
    background: #e0b200;
}

/* Right column */
.bm-faq-right {
    flex: 1;
    min-width: 0;
}

.bm-faq-list-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--bm-text);
    margin: 0 0 20px;
}

.bm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bm-faq-item {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    overflow: hidden;
}

.bm-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--bm-text);
    font-family: var(--bm-font);
    transition: background 0.15s;
}

.bm-faq-question:hover {
    background: var(--bm-bg-light);
}

.bm-faq-chevron {
    flex-shrink: 0;
    color: #f5c518;
    transition: transform 0.25s;
}

.bm-faq-item.open .bm-faq-chevron {
    transform: rotate(180deg);
}

.bm-faq-answer {
    display: none;
    padding: 0 20px 18px 48px;
}

.bm-faq-item.open .bm-faq-answer {
    display: block;
}

.bm-faq-answer p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--bm-text-secondary);
    margin: 0;
}

/* --- FAQ responsive --- */
@media (max-width: 900px) {
    .bm-faq-inner {
        flex-direction: column;
        gap: 30px;
    }

    .bm-faq-left {
        width: 100%;
    }

    .bm-faq-heading {
        font-size: 24px;
    }

    .bm-faq-list-title {
        font-size: 22px;
    }

    .bm-faq-section {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .bm-faq-question {
        font-size: 14px;
        padding: 15px 16px;
    }

    .bm-faq-answer {
        padding: 0 16px 15px 42px;
    }
}

/* ============================================================
   NOTIFICATIONS (toast)
   ============================================================ */
.bm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    padding: 14px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 400px;
    font-family: var(--bm-font);
}

.bm-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.bm-notification.success {
    background: #27ae60;
}

.bm-notification.error {
    background: #e74c3c;
}

/* Dismissible notices (WooCommerce + toast errors) */
.woocommerce-error,
.bm-notification.error {
    position: relative;
}

.woocommerce-error.bm-dismissable,
.bm-notification.error.bm-dismissable {
    padding-right: 44px !important;
}

.bm-notice-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 4px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: currentColor;
    opacity: 0.72;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.bm-notice-close:hover,
.bm-notice-close:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
    outline: none;
}

.bm-notice-closing {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Hide WooCommerce "View cart" link after add-to-cart */
a.added_to_cart {
    display: none !important;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */

/* --- Page wrapper --- */
.bm-sp-page-wrap {
    background: var(--bm-bg);
    padding-bottom: 60px;
}

.bm-sp {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top section: 2-column --- */
.bm-sp-top {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    margin-bottom: 30px;
}

/* --- Gallery --- */
.bm-sp-gallery {
    padding: 30px;
    position: relative;
    border-right: 1px solid var(--bm-border);
}

.bm-sp-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bm-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.bm-sp-main-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    margin-bottom: 16px;
}

.bm-sp-main-img img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.bm-sp-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bm-sp-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid var(--bm-border);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.bm-sp-thumb.active,
.bm-sp-thumb:hover {
    border-color: var(--bm-primary);
}

.bm-sp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Summary column --- */
.bm-sp-summary {
    padding: 24px 28px;
}

.bm-sp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.bm-sp-brand-tag {
    background: var(--bm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.bm-sp-brand-link {
    font-size: 13px;
    color: var(--bm-primary);
    text-decoration: underline;
}

.bm-sp-brand-link:hover {
    color: var(--bm-accent);
}

.bm-sp-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-primary);
    line-height: 1.35;
    margin: 0 0 10px;
}

.bm-sp-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--bm-text-secondary);
    margin-bottom: 16px;
}

.bm-sp-meta strong {
    color: var(--bm-text);
}

/* Price block */
.bm-sp-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.bm-sp-price-current {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.bm-sp-price-per-unit {
    font-size: 18px;
    line-height: 1;
    color: var(--bm-text-secondary);
    font-weight: 500;
}

.bm-sp-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--bm-primary);
}

.bm-sp-price sup {
    font-size: 18px;
    font-weight: 700;
    vertical-align: baseline;
}

.bm-sp-price-old {
    font-size: 18px;
    color: var(--bm-text-muted);
    text-decoration: line-through;
}

/* Stock */
.bm-sp-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.bm-sp-stock.in-stock {
    color: var(--bm-green);
}

.bm-sp-stock.out-of-stock {
    color: var(--bm-accent);
}

.bm-sp-stock.manufacturer-stock {
    color: #1a3a5c;
}

/* Komentārs */
.bm-sp-comment {
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-left: 3px solid #c0392b;
    background: #fff5f5;
}

/* Quick links */
.bm-sp-quick-links {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.bm-sp-qlink {
    font-size: 13px;
    color: var(--bm-primary);
    text-decoration: underline;
}

.bm-sp-qlink:hover {
    color: var(--bm-accent);
}

/* Variation buttons */
.bm-sp-variation-group {
    margin-bottom: 14px;
}

.bm-sp-variation-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    display: block;
    margin-bottom: 6px;
}

.bm-sp-variation-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bm-sp-var-btn {
    padding: 6px 14px;
    border: 1px solid var(--bm-border);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bm-white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--bm-text);
    transition: all 0.15s;
}

.bm-sp-var-btn:hover {
    border-color: var(--bm-primary);
}

.bm-sp-var-btn:focus,
.bm-sp-var-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.bm-sp-var-btn:focus:not(.active):not(.disabled),
.bm-sp-var-btn:active:not(.active):not(.disabled) {
    border-color: var(--bm-border);
    background: var(--bm-white);
    color: var(--bm-text);
}

.bm-sp-var-btn.active {
    border-color: var(--bm-primary);
    background: var(--bm-primary);
    color: #fff;
}

.bm-sp-var-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Cart section */
.bm-sp-cart-section {
    background: var(--bm-bg-light);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 16px;
    margin-bottom: 20px;
}

/* Qty row */
.bm-sp-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bm-sp-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
}

.bm-sp-qty-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--bm-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-sp-qty-btn:hover {
    background: var(--bm-primary);
    color: #fff;
}

.bm-sp-qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--bm-border);
    border-right: 1px solid var(--bm-border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.bm-sp-qty-input::-webkit-inner-spin-button,
.bm-sp-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bm-sp-qty-eq {
    font-size: 16px;
    color: var(--bm-text-muted);
}

.bm-sp-total-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
}

/* Cart actions */
.bm-sp-cart-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bm-sp-wishlist-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bm-text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.bm-sp-wishlist-btn:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

/* YITH wishlist button styling inside single product — icon only, no text */
.bm-sp-wishlist-wrap {
    flex-shrink: 0;
}

.bm-sp-wishlist-wrap .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
}

.bm-sp-wishlist-wrap .yith-wcwl-add-button a,
.bm-sp-wishlist-wrap .yith-wcwl-wishlistexistsbrowse a,
.bm-sp-wishlist-wrap .yith-wcwl-wishlistaddedbrowse a,
.bm-sp-wishlist-wrap a.add_to_wishlist,
.bm-sp-wishlist-wrap a.delete_item {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid var(--bm-border) !important;
    border-radius: var(--bm-radius) !important;
    background: var(--bm-white) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: var(--bm-text-muted) !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.bm-sp-wishlist-wrap .yith-wcwl-add-button a:hover,
.bm-sp-wishlist-wrap a.add_to_wishlist:hover {
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

.bm-sp-wishlist-wrap .yith-wcwl-wishlistexistsbrowse a,
.bm-sp-wishlist-wrap .yith-wcwl-wishlistaddedbrowse a,
.bm-sp-wishlist-wrap a.delete_item {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
}

.bm-sp-wishlist-wrap .yith-wcwl-add-button a i,
.bm-sp-wishlist-wrap .yith-wcwl-add-button a svg,
.bm-sp-wishlist-wrap a.add_to_wishlist i,
.bm-sp-wishlist-wrap a.add_to_wishlist svg {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.bm-sp-wishlist-wrap .yith-wcwl-add-button a::before,
.bm-sp-wishlist-wrap .yith-wcwl-wishlistexistsbrowse a::before,
.bm-sp-wishlist-wrap .yith-wcwl-wishlistaddedbrowse a::before {
    font-size: 18px !important;
}

/* Hide all text, spans, feedback inside YITH wishlist on single product */
.bm-sp-wishlist-wrap .yith-wcwl-add-to-wishlist span,
.bm-sp-wishlist-wrap .yith-wcwl-add-to-wishlist .feedback,
.bm-sp-wishlist-wrap .yith-wcwl-add-to-wishlist .yith-wcwl-add-button span,
.bm-sp-wishlist-wrap .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse span,
.bm-sp-wishlist-wrap .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse span {
    display: none !important;
}

/* Single product wishlist toggle button */
.bm-sp-wishlist-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    color: var(--bm-text-muted);
}

.bm-sp-wishlist-toggle:hover {
    border-color: var(--bm-border);
}

.bm-sp-wishlist-toggle.added {
    background: var(--bm-white);
    border-color: var(--bm-border);
    color: #e74c3c;
}

.bm-sp-wishlist-toggle.loading {
    opacity: 0.5;
    pointer-events: none;
}

.bm-sp-add-to-cart {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: var(--bm-radius);
    background: #f5c518;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.bm-sp-add-to-cart:hover {
    background: #e0b315;
}

/* Neutralize global theme button :focus styles for single-product controls. */
.bm-sp-qty-btn:focus,
.bm-sp-tab-btn:focus,
.bm-sp-add-to-cart:focus,
.bm-sp-carousel-prev:focus,
.bm-sp-carousel-next:focus {
    outline: none;
    box-shadow: none;
}

.bm-sp-qty-btn:focus:not(:hover) {
    background: none;
    color: var(--bm-text);
}

.bm-sp-tab-btn:focus:not(:hover) {
    background: none;
    color: var(--bm-text-secondary);
}

.bm-sp-tab-btn.active:focus:not(:hover) {
    color: var(--bm-primary);
    border-bottom-color: #f5c518;
}

.bm-sp-add-to-cart:focus:not(:hover) {
    background: #f5c518;
    color: #000;
}

.bm-sp-add-to-cart:focus:hover {
    background: #e0b315;
    color: #000;
}

.bm-sp-carousel-prev:focus:not(:hover),
.bm-sp-carousel-next:focus:not(:hover) {
    background: var(--bm-white);
    border-color: var(--bm-border);
    color: var(--bm-text);
}

/* Prevent sticky :hover styles on touch devices after tap. */
@media (hover: none) {
    .bm-sp-qty-btn:hover {
        background: none !important;
        color: var(--bm-text) !important;
    }

    .bm-sp-tab-btn:hover {
        background: none !important;
        color: var(--bm-text-secondary) !important;
    }

    .bm-sp-tab-btn.active:hover {
        color: var(--bm-primary) !important;
        border-bottom-color: #f5c518 !important;
    }

    .bm-sp-add-to-cart:hover {
        background: #f5c518 !important;
        color: #000 !important;
    }

    .bm-sp-carousel-prev:hover,
    .bm-sp-carousel-next:hover {
        border-color: var(--bm-border) !important;
        color: var(--bm-text) !important;
    }
}

.bm-sp-add-to-cart.disabled {
    background: var(--bm-text-muted);
    color: #fff;
    cursor: not-allowed;
}

.bm-sp-add-to-cart.loading {
    opacity: 0.7;
    cursor: wait;
}

/* --- Review form --- */
.bm-sp-review-form-section {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.bm-sp-review-form-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 8px;
}

.bm-sp-review-form-section > p {
    font-size: 14px;
    color: var(--bm-text-secondary);
    margin: 0 0 20px;
}

.bm-sp-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bm-sp-form-field {
    margin-bottom: 16px;
}

.bm-sp-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 6px;
}

.bm-sp-form-field label .required {
    color: var(--bm-accent);
}

.bm-sp-form-field input[type="text"],
.bm-sp-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    font-size: 14px;
    font-family: var(--bm-font);
    color: var(--bm-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bm-sp-form-field input[type="text"]:focus,
.bm-sp-form-field textarea:focus {
    outline: none;
    border-color: var(--bm-primary);
}

.bm-sp-star-rating {
    display: flex;
    gap: 2px;
    direction: rtl;
    justify-content: flex-end;
    margin-top: 6px;
}

.bm-sp-star-rating input {
    display: none;
}

.bm-sp-star-rating label {
    font-size: 28px;
    color: var(--bm-border);
    cursor: pointer;
    transition: color 0.15s;
    margin-bottom: 0;
}

.bm-sp-star-rating label:hover,
.bm-sp-star-rating label:hover ~ label,
.bm-sp-star-rating input:checked ~ label {
    color: #f5c518;
}

.bm-sp-submit-review {
    background: var(--bm-primary);
    color: #fff;
    border: none;
    border-radius: var(--bm-radius);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.bm-sp-submit-review:hover {
    background: var(--bm-primary-dark);
}

/* Reviews list */
.bm-sp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bm-sp-review {
    padding: 16px;
    background: var(--bm-bg-light);
    border-radius: var(--bm-radius);
}

.bm-sp-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.bm-sp-review-date {
    font-size: 13px;
    color: var(--bm-text-muted);
}

.bm-sp-review-rating .bm-star {
    color: var(--bm-border);
    font-size: 16px;
}

.bm-sp-review-rating .bm-star.filled {
    color: #f5c518;
}

.bm-sp-review-text {
    font-size: 14px;
    color: var(--bm-text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

.bm-sp-no-reviews {
    font-size: 14px;
    color: var(--bm-text-muted);
}

/* --- Tabs --- */
.bm-sp-tabs {
    background: var(--bm-white);
    border-radius: var(--bm-radius) var(--bm-radius) 0 0;
    box-shadow: var(--bm-shadow);
    position: relative;
}

.bm-sp-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--bm-bg);
}

.bm-sp-tab-btn {
    flex: 0 0 auto;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bm-text-secondary);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.bm-sp-tab-btn.active {
    color: var(--bm-primary);
    border-bottom-color: #f5c518;
}

.bm-sp-tab-btn:hover {
    background: var(--bm-primary);
    color: #fff;
}

/* Active tab should keep its active look even when hovered/focused. */
.bm-sp-tab-btn.active:hover,
.bm-sp-tab-btn.active:focus {
    background: none;
    color: var(--bm-primary);
}

.bm-sp-tab-content {
    display: none;
    background: var(--bm-white);
    padding: 30px;
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
    box-shadow: var(--bm-shadow);
    margin-bottom: 30px;
}

.bm-sp-tab-content.active {
    display: block;
}

.bm-sp-tab-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 20px;
}

/* Attributes table */
.bm-sp-attrs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bm-sp-attrs-table th,
.bm-sp-attrs-table td {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--bm-border);
}

.bm-sp-attrs-table th {
    background: var(--bm-bg-light);
    font-weight: 600;
    color: var(--bm-text);
    text-align: left;
    width: 30%;
}

.bm-sp-attrs-table td {
    color: var(--bm-text-secondary);
}

.bm-sp-description,
.bm-sp-short-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--bm-text-secondary);
}

/* --- Brand Products Carousel --- */
.bm-sp-brand-section {
    margin-bottom: 30px;
}

.bm-sp-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bm-sp-brand-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0;
}

.bm-sp-carousel-nav {
    display: flex;
    gap: 6px;
}

.bm-sp-carousel-prev,
.bm-sp-carousel-next {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bm-text);
    transition: all 0.2s;
}

.bm-sp-carousel-prev:hover,
.bm-sp-carousel-next:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-sp-carousel {
    overflow: hidden;
    position: relative;
}

.bm-sp-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.bm-sp-carousel-item {
    flex: 0 0 calc((100% - 80px) / 6);
    min-width: 160px;
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 12px;
    position: relative;
}

.bm-sp-carousel-item .bm-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 2px 8px;
}

.bm-sp-carousel-img {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.bm-sp-carousel-img img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

.bm-sp-carousel-item .bm-product-brand {
    font-size: 10px;
}

.bm-sp-carousel-title {
    font-size: 12px;
    color: var(--bm-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 6px;
}

.bm-sp-carousel-title:hover {
    color: var(--bm-primary);
}

.bm-sp-carousel-item .bm-product-pricing {
    font-size: 14px;
}

/* --- Variants section --- */
.bm-sp-variants-section {
    background: var(--bm-white);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.bm-sp-variants-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 16px;
}

.bm-sp-variants-list {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
}

.bm-sp-variants-list li {
    padding: 4px 0;
    font-size: 14px;
}

.bm-sp-variants-list a {
    color: var(--bm-text);
    text-decoration: none;
}

.bm-sp-variants-list a:hover {
    color: var(--bm-primary);
    text-decoration: underline;
}

/* --- Recently viewed --- */
.bm-sp-recently-viewed {
    margin-bottom: 30px;
}

.bm-sp-recently-viewed h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 16px;
}

/* --- Single product responsive --- */
@media (max-width: 1024px) {
    .bm-sp-carousel-item {
        flex: 0 0 calc((100% - 48px) / 4);
    }

    /* Keep heading/nav aligned with page gutters on tablet while carousel can remain edge-to-edge. */
    .bm-sp-brand-section > .bm-sp-brand-header,
    .bm-sp-recently-viewed > .bm-sp-brand-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .bm-sp-top {
        grid-template-columns: 1fr;
    }

    .bm-sp-gallery {
        border-right: none;
        border-bottom: 1px solid var(--bm-border);
    }

    .bm-sp-summary {
        border-right: none;
    }

    .bm-sp-main-img {
        min-height: 240px;
    }

    .bm-sp-main-img img {
        max-height: 300px;
    }

    .bm-sp-title {
        font-size: 18px;
    }

    .bm-sp-price {
        font-size: 26px;
    }

    .bm-sp-tabs-nav {
        overflow-x: auto;
    }

    .bm-sp-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .bm-sp-tab-content {
        padding: 20px;
    }

    .bm-sp-carousel-item {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: 140px;
    }

    .bm-sp-attrs-table th,
    .bm-sp-attrs-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .bm-sp-form-row-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bm-sp {
        padding: 0 12px;
    }

    .bm-sp-brand-section > .bm-sp-brand-header,
    .bm-sp-recently-viewed > .bm-sp-brand-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bm-sp-gallery {
        padding: 16px;
    }

    .bm-sp-summary {
        padding: 16px;
    }

    .bm-sp-meta {
        flex-direction: column;
        gap: 4px;
    }

    .bm-sp-cart-actions {
        flex-wrap: wrap;
    }

    .bm-sp-add-to-cart {
        order: -1;
        flex: 1 1 100%;
    }

    .bm-sp-carousel-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
    }

    .bm-sp-review-form-section {
        padding: 20px;
    }
}

/* ==========================================================================
   YITH Wishlist Page — Card Grid Layout
   ========================================================================== */

.bm-wishlist-page .inside-article,
.bm-wishlist-page #primary {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.bm-wishlist-page .site-content .content-area {
    width: 100%;
    float: none;
}

/* Page title */
.bm-wishlist-page .entry-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bm-primary, #1a3a5c);
    margin-bottom: 24px;
}

/* Hide YITH's default wishlist title (we use the page title) */
.bm-wishlist-page .wishlist-title-container,
.bm-wishlist-page .wishlist-title {
    display: none !important;
}

/* Product card grid */
.bm-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Individual wishlist card — reuses existing .bm-product-card styling */
.bm-wishlist-card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.bm-wishlist-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Discount badge */
.bm-wishlist-card .bm-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

/* Remove (X) button — top left */
.bm-wishlist-remove {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.bm-wishlist-remove:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Product image */
.bm-wishlist-card .bm-product-image {
    position: relative;
    padding: 16px;
    text-align: center;
    background: #fafafa;
}

.bm-wishlist-card .bm-product-image a {
    display: block;
}

.bm-wishlist-card .bm-product-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Add to cart overlay on hover — reuses global .bm-card-cart-btn */
.bm-wishlist-card .bm-card-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 3;
}

.bm-wishlist-card:hover .bm-card-add-to-cart {
    transform: translateY(0);
    opacity: 1;
}

/* Product info */
.bm-wishlist-card .bm-product-info {
    padding: 14px 16px 18px;
}

.bm-wishlist-card .bm-product-brand {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bm-wishlist-card .bm-product-title {
    margin-bottom: 8px;
}

.bm-wishlist-card .bm-product-title a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.bm-wishlist-card .bm-product-title a:hover {
    color: var(--bm-primary, #1a3a5c);
}

.bm-wishlist-card .bm-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bm-wishlist-card .bm-price-sale {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.bm-wishlist-card .bm-price-sale .price-cents {
    font-size: 13px;
    vertical-align: super;
}

.bm-wishlist-card .bm-price-unit {
    font-size: 12px;
}

.bm-wishlist-card .bm-price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

/* Empty state */
.bm-wishlist-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.bm-wishlist-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.bm-wishlist-empty p {
    font-size: 18px;
    color: #888;
    margin: 0 0 20px;
}

.bm-wishlist-browse-btn {
    display: inline-block;
    background: #f5c518;
    color: #000;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.bm-wishlist-browse-btn:hover {
    background: #e6b800;
}

/* Pagination */
.bm-wishlist-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
}

/* ==========================================================================
   Wishlist Share Section
   ========================================================================== */
.bm-wishlist-share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bm-wishlist-share-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.bm-wishlist-share-buttons {
    display: flex;
    gap: 8px;
}

.bm-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.bm-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Facebook */
.bm-share-facebook {
    background: #1877F2;
    color: #fff;
}

.bm-share-facebook:hover {
    background: #0d65d9;
}

/* WhatsApp */
.bm-share-whatsapp {
    background: #25D366;
    color: #fff;
}

.bm-share-whatsapp:hover {
    background: #1ebe57;
}

/* Email */
.bm-share-email {
    background: #EA4335;
    color: #fff;
}

.bm-share-email:hover {
    background: #d33426;
}

/* Pinterest */
.bm-share-pinterest {
    background: #BD081C;
    color: #fff;
}

.bm-share-pinterest:hover {
    background: #a00718;
}

/* Twitter / X */
.bm-share-twitter {
    background: #000;
    color: #fff;
}

.bm-share-twitter:hover {
    background: #333;
}

/* URL share */
.bm-wishlist-share-url {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.bm-share-url-input {
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    width: 200px;
    outline: none;
}

.bm-share-url-input:focus {
    border-color: var(--bm-primary, #1a3a5c);
}

.bm-share-copy-btn {
    background: var(--bm-primary, #1a3a5c);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.bm-share-copy-btn:hover {
    background: #15304d;
}

/* Responsive */
@media (max-width: 1100px) {
    .bm-wishlist-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bm-wishlist-page .inside-article,
    .bm-wishlist-page #primary {
        padding: 0 16px;
    }

    .bm-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bm-wishlist-card .bm-product-image img {
        height: 140px;
    }

    .bm-wishlist-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .bm-wishlist-share-url {
        margin-left: 0;
        width: 100%;
    }

    .bm-share-url-input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 480px) {
    .bm-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bm-wishlist-card .bm-product-image img {
        height: 120px;
    }

    .bm-wishlist-card .bm-product-info {
        padding: 10px 12px 14px;
    }

    .bm-wishlist-card .bm-price-sale {
        font-size: 16px;
    }
}

/* ============================================================
   MY ACCOUNT — AUTH (LOGIN / REGISTER) PAGE
   ============================================================ */

/* Hide default WC page title on account page */
.woocommerce-account .entry-header,
.woocommerce-account .page-header {
    display: none;
}

/* WooCommerce notices — fixed toast at top center */
.woocommerce-account .woocommerce-notices-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 520px;
    padding: 0 16px;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    animation: bm-toast-in 0.3s ease;
}

@keyframes bm-toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Single centered card layout */
.bm-auth-wrap {
    width: 520px !important;
    max-width: calc(100% - 32px) !important;
    margin: 40px auto !important;
    float: none !important;
}

.bm-auth-card {
    width: 100% !important;
    min-width: 0;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: var(--bm-shadow);
    box-sizing: border-box;
}

/* Force everything inside card to full width — override WC + GP constraints */
.bm-auth-card *,
.bm-auth-card form,
.bm-auth-card .bm-auth-view {
    box-sizing: border-box;
}

.bm-auth-card .bm-auth-view,
.bm-auth-card form {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.bm-auth-card .bm-auth-field,
.bm-auth-card .bm-auth-row,
.bm-auth-card .form-row,
.bm-auth-card p.form-row,
.bm-auth-card p {
    width: 100% !important;
    max-width: none !important;
}

.bm-auth-card input[type="text"],
.bm-auth-card input[type="email"],
.bm-auth-card input[type="password"],
.bm-auth-card input[type="tel"],
.bm-auth-card button,
.bm-auth-card .bm-auth-btn {
    width: 100% !important;
    max-width: none !important;
}

/* Override GeneratePress/WC containers on account page (logged-out) */
.woocommerce-account .site-content .content-area,
.woocommerce-account .site-main,
.woocommerce-account .entry-content,
.woocommerce-account .inside-article {
    max-width: none !important;
    width: 100% !important;
}

.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: none !important;
    width: 100% !important;
}

/* Two-column name fields */
.bm-auth-fields-row {
    display: flex;
    gap: 16px;
}

.bm-auth-fields-row .bm-auth-field {
    flex: 1;
}

/* Phone field with prefix */
.bm-auth-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.bm-auth-phone-wrap:focus-within {
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.1);
}

.bm-auth-phone-prefix {
    padding: 12px 14px;
    background: var(--bm-bg);
    color: var(--bm-text);
    font-size: 15px;
    font-weight: 600;
    border-right: 1px solid var(--bm-border);
    white-space: nowrap;
    user-select: none;
}

.bm-auth-input-phone {
    border: none !important;
    box-shadow: none !important;
}

.bm-auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 6px;
}

.bm-auth-subtitle {
    color: var(--bm-text-secondary);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Form fields */
.bm-auth-field {
    margin-bottom: 16px;
}

.bm-auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 6px;
}

.bm-auth-field label .required {
    color: var(--bm-accent);
}

.bm-auth-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text);
    font-family: var(--bm-font);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bm-auth-input:focus {
    outline: none;
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.1);
}

.bm-auth-input::placeholder {
    color: var(--bm-text-muted);
}

/* Remember / Lost row */
.bm-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.bm-auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--bm-text-secondary);
}

.bm-auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bm-primary);
}

.bm-auth-lost {
    color: var(--bm-primary);
    text-decoration: none;
    font-weight: 500;
}

.bm-auth-lost:hover {
    text-decoration: underline;
}

/* Buttons */
.bm-auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--bm-font);
    border: none;
    border-radius: var(--bm-radius);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
}

.bm-auth-btn:active {
    transform: scale(0.98);
}

.bm-auth-btn-primary {
    background: #f5c518;
    color: #000;
}

.bm-auth-btn-primary:hover {
    background: #e0b315;
}

.bm-auth-btn-accent {
    background: #f5c518;
    color: #000;
}

.bm-auth-btn-accent:hover {
    background: #e0b315;
}

/* Switch link */
.bm-auth-switch {
    text-align: center;
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--bm-text-secondary);
}

.bm-auth-switch a {
    color: var(--bm-primary);
    font-weight: 600;
    text-decoration: none;
}

.bm-auth-switch a:hover {
    text-decoration: underline;
}

/* Note text */
.bm-auth-note {
    font-size: 13px;
    color: var(--bm-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* WooCommerce privacy policy text inside registration form */
.bm-auth-card .woocommerce-privacy-policy-text p {
    font-size: 12px;
    color: var(--bm-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.bm-auth-card .woocommerce-privacy-policy-text a {
    color: var(--bm-primary);
}

/* ============================================================
   MY ACCOUNT — DASHBOARD (LOGGED-IN)
   ============================================================ */

/* Wrapper — override WC default 2-column */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    float: none !important;
}

.woocommerce-account.logged-in .entry-content,
.woocommerce-account.logged-in .woocommerce {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 32px 16px;
    display: flex !important;
    gap: 32px;
    align-items: flex-start;
    width: 100% !important;
    box-sizing: border-box;
}

/* Navigation sidebar */
.woocommerce-MyAccount-navigation {
    width: 240px;
    min-width: 240px;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    box-shadow: var(--bm-shadow);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid var(--bm-border);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--bm-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}


.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--bm-bg);
    color: var(--bm-primary);
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
    background: var(--bm-primary);
    color: var(--bm-white);
}

/* Content area */
.woocommerce-MyAccount-content {
    flex: 1;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: var(--bm-shadow);
    min-height: 300px;
}

.woocommerce-MyAccount-content > p:first-child {
    font-size: 15px;
    line-height: 1.6;
    color: var(--bm-text-secondary);
}

.woocommerce-MyAccount-content a {
    color: var(--bm-primary);
    font-weight: 500;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* ============================================================
   MY ACCOUNT — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .bm-auth-wrap {
        margin: 20px auto;
    }

    .bm-auth-card {
        padding: 24px 20px;
    }

    .bm-auth-fields-row {
        flex-direction: column;
        gap: 0;
    }

    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 20px;
        padding: 20px 16px;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
        min-width: unset;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
    }
}

/* My Account — Form Fields (Profile, Edit Address) */
.woocommerce-MyAccount-content .form-row label {
    display: block;
    font-family: var(--bm-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 6px;
}

.woocommerce-MyAccount-content .form-row input[type="text"],
.woocommerce-MyAccount-content .form-row input[type="email"],
.woocommerce-MyAccount-content .form-row input[type="tel"],
.woocommerce-MyAccount-content .form-row input[type="password"],
.woocommerce-MyAccount-content .form-row input[type="number"],
.woocommerce-MyAccount-content .form-row select,
.woocommerce-MyAccount-content .form-row textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--bm-font);
    font-size: 15px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.woocommerce-MyAccount-content .form-row input:focus,
.woocommerce-MyAccount-content .form-row select:focus,
.woocommerce-MyAccount-content .form-row textarea:focus {
    outline: none;
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.1);
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 16px;
}

.woocommerce-MyAccount-content em {
    font-style: normal;
    font-size: 13px;
    color: var(--bm-text-secondary);
    display: block;
    margin-top: 4px;
}

.woocommerce-MyAccount-content fieldset {
    border: none;
    padding: 0;
    margin: 24px 0 0;
}

.woocommerce-MyAccount-content fieldset legend {
    font-family: var(--bm-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--bm-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bm-border);
    width: 100%;
}

/* My Account — Buttons */
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"],
.woocommerce-MyAccount-content .button {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--bm-font);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--bm-radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    background: #f5c518;
    color: #000;
    text-decoration: none;
    text-align: center;
}

.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-MyAccount-content .button:hover {
    background: #e0b315;
}

.woocommerce-MyAccount-content button[type="submit"]:active,
.woocommerce-MyAccount-content .button:active {
    transform: scale(0.98);
}

/* My Account — Addresses */
.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
    flex: 1;
    min-width: 280px;
}

.woocommerce-MyAccount-content .woocommerce-Address header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bm-border);
}

.woocommerce-MyAccount-content .woocommerce-Address header h3 {
    font-family: var(--bm-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address header .edit {
    font-size: 13px;
    padding: 6px 16px;
    background: #f5c518;
    color: #000;
    border-radius: var(--bm-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.woocommerce-MyAccount-content .woocommerce-Address header .edit:hover {
    background: #e0b315;
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
    font-family: var(--bm-font);
    font-size: 14px;
    font-style: normal;
    color: var(--bm-text);
    line-height: 1.7;
}

/* My Account — Orders Table */
.woocommerce-MyAccount-content .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--bm-font);
}

.woocommerce-MyAccount-content .woocommerce-orders-table th {
    background: var(--bm-bg);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--bm-border);
}

.woocommerce-MyAccount-content .woocommerce-orders-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--bm-text);
    border-bottom: 1px solid var(--bm-border);
    vertical-align: middle;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
    padding: 8px 18px;
    font-size: 13px;
}

/* My Account — Dashboard text */
.woocommerce-MyAccount-content p {
    font-family: var(--bm-font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--bm-text);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: var(--bm-font);
    color: var(--bm-primary);
}

/* My Account — Override WooCommerce defaults */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
    font-family: var(--bm-font);
    font-size: 14px;
    border-top-color: var(--bm-primary);
    background: var(--bm-bg);
}

/* ============================================================
   CART PAGE
   ============================================================ */

body.woocommerce-cart .entry-header { display: none; }
body.woocommerce-cart .entry-content { padding: 0; margin: 0; }

/* Main layout */
.bm-cart-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.bm-cart-left { flex: 1; min-width: 0; }

.bm-cart-right {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Title */
.bm-cart-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 16px;
}

/* Cart items card */
.bm-cart-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    overflow: hidden;
}

.bm-cart-header {
    display: grid;
    grid-template-columns: 1fr 110px 130px 110px 40px;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bm-bg-light);
    border-bottom: 1px solid var(--bm-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--bm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bm-cart-item {
    display: grid;
    grid-template-columns: 1fr 110px 130px 110px 40px;
    gap: 12px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--bm-border);
}

.bm-cart-item:last-child { border-bottom: none; }

/* Product column */
.bm-cart-col-product {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.bm-cart-item-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow: hidden;
    background: #fafafa;
}

.bm-cart-item-img a { display: block; width: 100%; height: 100%; }
.bm-cart-item-img img { width: 100%; height: 100%; object-fit: contain; }

.bm-cart-item-info { min-width: 0; flex: 1; }

.bm-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    line-height: 1.4;
    margin-bottom: 2px;
}

.bm-cart-item-name a { color: var(--bm-text); text-decoration: none; }
.bm-cart-item-name a:hover { color: var(--bm-primary); }

.bm-cart-item-sku { font-size: 12px; color: var(--bm-text-muted); }
.bm-cart-item-meta { font-size: 12px; color: var(--bm-text-secondary); margin-top: 2px; }
.bm-cart-item-meta dt { display: inline; font-weight: 600; }
.bm-cart-item-meta dd { display: inline; margin: 0 8px 0 0; }
.bm-cart-backorder { font-size: 12px; color: var(--bm-accent); margin: 4px 0 0; }

/* Price column */
.bm-cart-col-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    text-align: center;
}

.bm-cart-price-wrap,
.bm-cart-subtotal-wrap {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bm-cart-price-unit,
.bm-cart-subtotal-unit {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--bm-text-secondary);
}

.bm-cart-col-price del { color: var(--bm-text-muted); font-weight: 400; font-size: 12px; display: block; }
.bm-cart-col-price ins { text-decoration: none; color: var(--bm-accent); font-weight: 700; }

/* Quantity column */
.bm-cart-col-qty { text-align: center; }

.bm-cart-col-qty .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow: hidden;
}

.bm-cart-col-qty .quantity .bm-qty-btn {
    width: 32px;
    height: 34px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--bm-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.bm-cart-col-qty .quantity .bm-qty-btn:hover { background: var(--bm-bg); }

.bm-cart-col-qty .quantity input.qty {
    width: 40px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--bm-border);
    border-right: 1px solid var(--bm-border);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0;
    font-family: var(--bm-font);
}

.bm-cart-col-qty .quantity input.qty::-webkit-inner-spin-button,
.bm-cart-col-qty .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal column */
.bm-cart-col-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: var(--bm-primary);
    text-align: center;
}

/* Remove button */
.bm-cart-col-remove { text-align: center; }

.bm-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--bm-border);
    color: var(--bm-text-muted);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s;
}

.bm-cart-remove:hover {
    background: var(--bm-accent);
    border-color: var(--bm-accent);
    color: #fff;
}

/* Bottom bar */
.bm-cart-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.bm-cart-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }

.bm-cart-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    background: var(--bm-primary);
    color: #fff;
    border: none;
    border-radius: var(--bm-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.bm-cart-btn-continue:hover { background: var(--bm-primary-dark); color: #fff; }

.bm-cart-btn-update {
    height: 40px;
    padding: 0 18px;
    background: var(--bm-bg);
    color: var(--bm-text-secondary);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--bm-font);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.bm-cart-btn-update:hover { background: var(--bm-border); color: var(--bm-text); }

/* Cart totals card */
.bm-cart-totals {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 24px;
}

.bm-cart-totals-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bm-primary);
}

.bm-cart-totals-rows { margin-bottom: 20px; }

.bm-cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--bm-bg);
    font-size: 14px;
}

.bm-cart-totals-row:last-child { border-bottom: none; }

.bm-cart-totals-label { color: var(--bm-text-secondary); font-weight: 500; }
.bm-cart-totals-value { font-weight: 600; color: var(--bm-text); text-align: right; }

.bm-cart-totals-tax .bm-cart-totals-label { color: var(--bm-text-muted); font-size: 13px; }

.bm-cart-totals-total {
    border-top: 2px solid var(--bm-primary);
    border-bottom: none;
    padding-top: 14px;
    margin-top: 6px;
}

.bm-cart-totals-total .bm-cart-totals-label { font-size: 16px; font-weight: 700; color: var(--bm-primary); }
.bm-cart-totals-total .bm-cart-totals-value { font-size: 20px; font-weight: 700; color: var(--bm-primary); }

/* Shipping rows inside totals (WC outputs table rows) */
.bm-cart-totals tr { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bm-bg); }
.bm-cart-totals th, .bm-cart-totals td { padding: 0; border: none; font-size: 14px; }
.bm-cart-totals th { font-weight: 500; color: var(--bm-text-secondary); }
.bm-cart-totals td { text-align: right; }
.bm-cart-totals table { width: 100%; border-collapse: collapse; }

/* Checkout button */
.bm-cart-checkout-btn {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: #f5c518;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bm-font);
    border: none;
    border-radius: var(--bm-radius);
    text-decoration: none;
    transition: background 0.2s;
}

.bm-cart-checkout-btn:hover { background: #e0b315; color: #000; }

/* Hide default WC proceed-to-checkout */
.bm-cart-totals .wc-proceed-to-checkout { display: none; }

/* Cart totals enquiry notice */
.bm-cart-totals-notice {
    font-size: 12px;
    color: var(--bm-text-muted);
    line-height: 1.5;
    margin: 12px 0 16px;
    padding: 10px 12px;
    background: #fef9e7;
    border: 1px solid #f5c518;
    border-radius: var(--bm-radius);
}

/* Empty cart */
.bm-cart-empty { max-width: 500px; margin: 60px auto; text-align: center; padding: 40px 20px; }
.bm-cart-empty-icon { color: var(--bm-text-muted); margin-bottom: 20px; }
.bm-cart-empty-title { font-size: 24px; font-weight: 700; color: var(--bm-primary); margin: 0 0 10px; }
.bm-cart-empty-text { font-size: 15px; color: var(--bm-text-secondary); margin: 0 0 24px; line-height: 1.5; }

.bm-cart-empty-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #f5c518;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bm-font);
    border-radius: var(--bm-radius);
    text-decoration: none;
    transition: background 0.2s;
}

.bm-cart-empty-btn:hover { background: #e0b315; color: #000; }

/* WC notices on cart */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
    border-left: 4px solid var(--bm-green);
    border-radius: var(--bm-radius);
    padding: 12px 18px 12px 42px;
    font-size: 14px;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.woocommerce-cart .woocommerce-error {
    border-left-color: var(--bm-accent);
}
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    flex-shrink: 0;
}

/* Cart responsive */
@media (max-width: 900px) {
    .bm-cart-wrap { flex-direction: column; }
    .bm-cart-right { width: 100%; position: static; }
    .bm-cart-header { display: none; }

    .bm-cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
        position: relative;
    }

    .bm-cart-col-product { padding-right: 36px; }

    .bm-cart-col-price,
    .bm-cart-col-qty,
    .bm-cart-col-subtotal {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bm-cart-col-price::before,
    .bm-cart-col-qty::before,
    .bm-cart-col-subtotal::before {
        content: attr(data-label) ": ";
        font-size: 12px;
        font-weight: 600;
        color: var(--bm-text-muted);
        text-transform: uppercase;
        min-width: 55px;
    }

    .bm-cart-col-remove { position: absolute; top: 16px; right: 16px; }

    .bm-cart-bottom { flex-direction: column; align-items: stretch; }
    .bm-cart-actions { margin-left: 0; justify-content: space-between; }
    .bm-cart-btn-continue, .bm-cart-btn-update { flex: 1; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
    .bm-cart-title { font-size: 20px; }
    .bm-cart-item-img { width: 56px; height: 56px; }
    .bm-cart-actions { flex-direction: column; }
    .bm-cart-btn-continue, .bm-cart-btn-update { width: 100%; }
}

/* ====================================================
   CHECKOUT PAGE
   ==================================================== */

/* Two-column layout */
.bm-checkout-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.bm-checkout-form {
    flex: 1;
    min-width: 0;
}

.bm-checkout-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 24px;
}

/* Section titles */
.bm-checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 20px;
    font-family: var(--bm-font);
}

.bm-checkout-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bm-primary);
    font-family: var(--bm-font);
}

/* Billing form fields */
.bm-checkout-fields .form-row {
    margin-bottom: 14px;
}

.bm-checkout-fields .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-primary);
    margin-bottom: 4px;
    font-family: var(--bm-font);
}

.bm-checkout-fields .form-row label .optional {
    font-weight: 400;
    color: var(--bm-text-muted);
    font-size: 12px;
}

.bm-checkout-fields .form-row label .required {
    color: var(--bm-accent);
}

.bm-checkout-fields .form-row input.input-text,
.bm-checkout-fields .form-row textarea,
.bm-checkout-fields .form-row select,
.bm-checkout-fields .form-row .select2-container .select2-selection--single {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    font-size: 14px;
    font-family: var(--bm-font);
    color: var(--bm-primary);
    background: var(--bm-white);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bm-checkout-fields .form-row input.input-text:focus,
.bm-checkout-fields .form-row textarea:focus,
.bm-checkout-fields .form-row select:focus {
    border-color: var(--bm-primary);
    outline: none;
}

.bm-checkout-fields .form-row textarea {
    height: 100px;
    padding: 10px 14px;
    resize: vertical;
}

.bm-checkout-fields .form-row .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.bm-checkout-fields .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 44px;
    color: var(--bm-primary);
}

.bm-checkout-fields .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

/* Two-column field rows (first + last name) */
.bm-checkout-fields .form-row-first,
.bm-checkout-fields .form-row-last {
    width: calc(50% - 7px);
    display: inline-block;
    vertical-align: top;
}

.bm-checkout-fields .form-row-first {
    margin-right: 14px;
}

/* Validation states */
.bm-checkout-fields .form-row.woocommerce-invalid .input-text,
.bm-checkout-fields .form-row.woocommerce-invalid select {
    border-color: var(--bm-accent);
}

.bm-checkout-fields .form-row.woocommerce-validated .input-text,
.bm-checkout-fields .form-row.woocommerce-validated select {
    border-color: var(--bm-green);
}

/* Additional fields / order notes */
.woocommerce-additional-fields {
    margin-top: 30px;
}

/* ── Order summary items ── */
.bm-checkout-order-items {
    margin-bottom: 16px;
}

.bm-checkout-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bm-bg);
}

.bm-checkout-order-item:last-child {
    border-bottom: none;
}

.bm-checkout-order-item-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--bm-radius);
    overflow: hidden;
    border: 1px solid var(--bm-bg);
}

.bm-checkout-order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-checkout-order-item-info {
    flex: 1;
    min-width: 0;
}

.bm-checkout-order-item-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--bm-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-checkout-order-item-qty {
    font-size: 12px;
    color: var(--bm-text-muted);
}

.bm-checkout-order-item-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-primary);
    white-space: nowrap;
    text-align: right;
}

.bm-checkout-item-total-wrap {
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.bm-checkout-price-unit {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--bm-text-secondary);
}

/* ── Order totals ── */
.bm-checkout-order-totals {
    border-top: 1px solid var(--bm-border);
    padding-top: 12px;
}

.bm-checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.bm-checkout-totals-label {
    font-size: 14px;
    color: var(--bm-text-secondary);
}

.bm-checkout-totals-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-primary);
}

.bm-checkout-totals-total {
    border-top: 1px solid var(--bm-border);
    margin-top: 4px;
    padding-top: 12px;
}

.bm-checkout-totals-total .bm-checkout-totals-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-primary);
}

.bm-checkout-totals-total .bm-checkout-totals-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-primary);
}

/* ── Payment / place order ── */
.bm-checkout-payment {
    margin: 16px -24px -24px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--bm-border);
    background: var(--bm-bg);
    border-radius: 0 0 var(--bm-radius) var(--bm-radius);
}

.bm-checkout-payment-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 10px;
    font-family: var(--bm-font);
}

.bm-checkout-payment-methods {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.bm-checkout-payment-methods li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bm-checkout-payment-methods li:hover {
    border-color: var(--bm-primary);
}

.bm-checkout-payment-methods li input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.bm-checkout-payment-methods li label {
    font-size: 14px;
    font-family: var(--bm-font);
    color: var(--bm-primary);
    cursor: pointer;
    margin: 0;
    padding: 0;
    flex: 1;
}

.bm-checkout-payment-methods li:has(input:checked) {
    border-color: var(--bm-primary);
    background: #f8f9fa;
}

.bm-checkout-payment-methods .payment_box {
    display: none !important;
}

.bm-checkout-enquiry-notice {
    font-size: 12px;
    color: var(--bm-text-muted);
    line-height: 1.5;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #fef9e7;
    border: 1px solid #f5c518;
    border-radius: var(--bm-radius);
}

.bm-checkout-place-order {
    margin: 0;
    padding: 0;
}

.bm-checkout-submit-btn {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: #f5c518 !important;
    color: #000 !important;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--bm-font);
    border: none !important;
    border-radius: var(--bm-radius) !important;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0 !important;
    margin-top: 12px;
}

.bm-checkout-submit-btn:hover {
    background: #e0b315 !important;
    color: #000 !important;
}

/* Terms checkbox */
.bm-checkout-payment .woocommerce-terms-and-conditions-wrapper {
    margin: 12px 0;
    font-size: 13px;
    color: var(--bm-text-secondary);
    line-height: 1.5;
}

.bm-checkout-payment .woocommerce-terms-and-conditions-wrapper p {
    margin: 0 0 8px;
}

.bm-checkout-payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.bm-checkout-payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.bm-checkout-payment .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: var(--bm-text-muted);
    margin-bottom: 8px;
}

/* WC notices on checkout */
body.woocommerce-checkout .woocommerce-NoticeGroup {
    margin-bottom: 20px;
}

body.woocommerce-checkout .woocommerce-error {
    border-left: 4px solid var(--bm-accent);
    border-radius: var(--bm-radius);
    padding: 12px 18px 12px 42px;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    list-style: none;
}

body.woocommerce-checkout .woocommerce-error::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

body.woocommerce-checkout .woocommerce-error li {
    list-style: none;
}

/* ── Thank you page ── */
.bm-thankyou {
    max-width: 600px;
    margin: 40px auto;
}

.bm-thankyou-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 40px;
    text-align: center;
}

.bm-thankyou-icon {
    margin-bottom: 16px;
}

.bm-thankyou-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 10px;
    font-family: var(--bm-font);
}

.bm-thankyou-text {
    font-size: 15px;
    color: var(--bm-text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.bm-thankyou-details {
    background: var(--bm-bg);
    border-radius: var(--bm-radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.bm-thankyou-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.bm-thankyou-detail-label {
    color: var(--bm-text-secondary);
}

.bm-thankyou-detail-value {
    font-weight: 600;
    color: var(--bm-primary);
}

.bm-thankyou-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.bm-thankyou-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--bm-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--bm-font);
    text-decoration: none;
    border: 1px solid var(--bm-border);
    color: var(--bm-primary);
    background: var(--bm-white);
    transition: background 0.2s;
}

.bm-thankyou-btn:hover {
    background: var(--bm-bg);
    color: var(--bm-primary);
}

.bm-thankyou-btn-primary {
    background: #f5c518;
    color: #000;
    border-color: #f5c518;
}

.bm-thankyou-btn-primary:hover {
    background: #e0b315;
    color: #000;
    border-color: #e0b315;
}

/* Hide the default page title on checkout / thank you page */
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout .page-header {
    display: none;
}
body.woocommerce-checkout .entry-content {
    padding: 0;
    margin: 0;
}

/* Style WooCommerce order details on thank you page */
.bm-thankyou .woocommerce-order-details,
.bm-thankyou .woocommerce-customer-details {
    max-width: 600px;
    margin: 24px auto;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 24px;
    font-family: var(--bm-font);
}

.bm-thankyou .woocommerce-order-details h2,
.bm-thankyou .woocommerce-customer-details h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 16px;
    font-family: var(--bm-font);
}

.bm-thankyou .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bm-thankyou .woocommerce-table--order-details thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--bm-primary);
    font-weight: 700;
    color: var(--bm-primary);
    font-size: 13px;
    text-transform: uppercase;
}

.bm-thankyou .woocommerce-table--order-details tbody td,
.bm-thankyou .woocommerce-table--order-details tfoot td,
.bm-thankyou .woocommerce-table--order-details tfoot th {
    padding: 12px;
    border-bottom: 1px solid var(--bm-bg);
    color: var(--bm-primary);
    font-size: 14px;
}

.bm-thankyou .woocommerce-table--order-details tfoot th {
    text-align: left;
    font-weight: 600;
}

.bm-thankyou .woocommerce-table--order-details a {
    color: var(--bm-primary);
    text-decoration: none;
}

.bm-thankyou .woocommerce-table--order-details a:hover {
    text-decoration: underline;
}

.bm-thankyou .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    font-size: 14px;
    color: var(--bm-primary);
    padding: 16px;
    background: var(--bm-bg);
    border-radius: var(--bm-radius);
}

/* Remove bottom gap in sidebar */
.bm-checkout-payment .bm-checkout-place-order {
    padding: 0 !important;
    margin: 0 !important;
}

.bm-checkout-payment .bm-checkout-submit-btn {
    margin-bottom: 0;
}

/* ── Checkout responsive ── */
@media (max-width: 900px) {
    .bm-checkout-wrap {
        flex-direction: column;
    }

    .bm-checkout-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 480px) {
    .bm-checkout-fields .form-row-first,
    .bm-checkout-fields .form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }

    .bm-checkout-sidebar {
        padding: 16px;
    }

    .bm-thankyou-card {
        padding: 24px 16px;
    }

    .bm-thankyou-actions {
        flex-direction: column;
    }

    .bm-thankyou-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.bm-contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.bm-contact-wrap,
.bm-contact-info,
.bm-contact-form-wrap,
.bm-contact-map {
    min-width: 0;
    box-sizing: border-box;
}

.bm-contact-intro {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--bm-text);
}

.bm-contact-notice {
    padding: 14px 20px;
    border-radius: var(--bm-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.bm-contact-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bm-contact-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bm-contact-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.bm-contact-info {
    flex: 0 0 42%;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--bm-shadow);
}

.bm-contact-info h2 {
    font-family: var(--bm-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 20px;
}

.bm-contact-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bm-border);
}

.bm-contact-detail.is-last-detail,
.bm-contact-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bm-contact-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--bm-primary);
}

.bm-contact-detail strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bm-text-secondary);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bm-contact-detail a,
.bm-contact-detail span {
    font-size: 15px;
    color: var(--bm-text);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bm-contact-detail a:hover {
    color: var(--bm-primary);
}

.bm-contact-rekviziti {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--bm-border);
}

.bm-contact-rekviziti h3 {
    font-family: var(--bm-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 12px;
}

.bm-contact-rekviziti table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.bm-contact-rekviziti td {
    padding: 10px 14px;
    vertical-align: top;
    color: var(--bm-text);
    border: 1px solid var(--bm-border);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bm-contact-rekviziti td:first-child {
    font-weight: 600;
    color: var(--bm-text-secondary);
    width: 140px;
    white-space: nowrap;
    background: var(--bm-bg);
}

/* Contact form */
.bm-contact-form-wrap {
    flex: 1;
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--bm-shadow);
}

.bm-contact-form-wrap h2 {
    font-family: var(--bm-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 20px;
}

.bm-contact-field {
    margin-bottom: 16px;
}

.bm-contact-field label {
    display: block;
    font-family: var(--bm-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-text);
    margin-bottom: 6px;
}

/* Red asterisk for required fields — match "Vārds *" pattern in label text */
.bm-contact-field label .bm-required {
    color: #e74c3c;
}

.bm-contact-field input,
.bm-contact-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--bm-font);
    font-size: 15px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bm-contact-field input:focus,
.bm-contact-field textarea:focus {
    outline: none;
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.1);
}

.bm-contact-field textarea {
    resize: vertical;
    min-height: 120px;
}

.bm-contact-fields-row {
    display: flex;
    gap: 16px;
}

.bm-contact-fields-row .bm-contact-field {
    flex: 1;
}

.bm-contact-submit {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--bm-font);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--bm-radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    background: #f5c518;
    color: #000;
    margin-top: 4px;
}

.bm-contact-submit:hover {
    background: #e0b315;
}

.bm-contact-submit:active {
    transform: scale(0.98);
}

/* Map */
.bm-contact-map {
    margin-top: 28px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--bm-shadow);
}

.bm-contact-map iframe {
    display: block;
}

@media (max-width: 768px) {
    .bm-contact-page {
        max-width: 100%;
        padding: 16px 12px 0;
        overflow-x: clip;
    }

    .bm-contact-wrap {
        flex-direction: column;
    }

    .bm-contact-info {
        flex: none;
        width: 100%;
    }

    .bm-contact-form-wrap,
    .bm-contact-map {
        width: 100%;
        max-width: 100%;
    }

    .bm-contact-rekviziti {
        overflow-x: auto;
    }

    .bm-contact-rekviziti td:first-child {
        width: 40%;
        white-space: normal;
    }

    .bm-contact-fields-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================================
   STATIC PAGES (Par Mums, Pasūtījumi, etc.)
   ============================================================ */

.bm-static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
}

.bm-static-page .bm-static-content {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--bm-shadow);
}

.bm-static-page .bm-static-content h1 {
    font-family: var(--bm-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 20px;
}

.bm-static-page .bm-static-content h2 {
    font-family: var(--bm-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 28px 0 12px;
}

.bm-static-page .bm-static-content h3 {
    font-family: var(--bm-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 24px 0 10px;
}

.bm-static-page .bm-static-content p {
    font-family: var(--bm-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--bm-text);
    margin: 0 0 14px;
}

.bm-static-page .bm-static-content ul,
.bm-static-page .bm-static-content ol {
    font-family: var(--bm-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--bm-text);
    padding-left: 24px;
    margin: 0 0 14px;
}

.bm-static-page .bm-static-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bm-radius);
}

.bm-static-page .bm-static-content a {
    color: var(--bm-primary);
    font-weight: 500;
}

.bm-static-page .bm-static-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .bm-static-page .bm-static-content {
        padding: 24px 20px;
    }
}

/* ============================================================
   BLOG / NEWS (Jaunumi)
   ============================================================ */

.bm-blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.bm-blog-title {
    font-family: var(--bm-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 24px;
}

.bm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bm-blog-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--bm-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.bm-blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bm-blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bm-bg);
}

.bm-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-blog-card-image .bm-blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bm-text-secondary);
}

.bm-blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bm-blog-card-date {
    font-size: 13px;
    color: var(--bm-text-secondary);
    margin-bottom: 8px;
}

.bm-blog-card-title {
    font-family: var(--bm-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 10px;
    line-height: 1.4;
}

.bm-blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.bm-blog-card-title a:hover {
    color: var(--bm-primary);
    text-decoration: underline;
}

.bm-blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bm-text);
    margin-bottom: 14px;
    flex: 1;
}

.bm-blog-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-primary);
    text-decoration: none;
}

.bm-blog-card-link:hover {
    text-decoration: underline;
}

.bm-blog-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bm-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bm-text);
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.bm-blog-pagination .page-numbers.current,
.bm-blog-pagination .page-numbers:hover {
    background: var(--bm-primary);
    color: var(--bm-white);
    border-color: var(--bm-primary);
}

.bm-blog-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--bm-text-secondary);
    font-size: 15px;
}

@media (max-width: 900px) {
    .bm-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .bm-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */

.bm-article-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

.bm-article-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--bm-shadow);
}

.bm-article-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.bm-article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bm-article-body {
    padding: 32px;
}

.bm-article-meta {
    font-size: 13px;
    color: var(--bm-text-secondary);
    margin-bottom: 12px;
}

.bm-article-title {
    font-family: var(--bm-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0 0 20px;
    line-height: 1.3;
}

.bm-article-content {
    font-family: var(--bm-font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--bm-text);
}

.bm-article-content p {
    margin: 0 0 16px;
}

.bm-article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 28px 0 12px;
}

.bm-article-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 24px 0 10px;
}

.bm-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bm-radius);
    margin: 16px 0;
}

.bm-article-content a {
    color: var(--bm-primary);
    font-weight: 500;
}

.bm-article-content ul,
.bm-article-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.bm-article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 32px;
    border-top: 1px solid var(--bm-border);
}

.bm-article-nav a {
    font-size: 14px;
    color: var(--bm-primary);
    text-decoration: none;
    font-weight: 500;
}

.bm-article-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .bm-article-body {
        padding: 20px;
    }

    .bm-article-title {
        font-size: 22px;
    }

    .bm-article-nav {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================================
   Zīmoli (Brands) Page
   ============================================================ */
.bm-zimoli-page {
    padding: 30px 20px 60px;
}

.bm-zimoli-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bm-zimoli-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--bm-text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bm-primary);
}

/* --- Top Brands grid --- */
.bm-top-brands-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
}

.bm-top-brand-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
    height: 70px;
    overflow: hidden;
}

.bm-top-brand-card:hover {
    border-color: var(--bm-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.bm-top-brand-card img {
    max-width: 100%;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.15s;
}

.bm-top-brand-card:hover img {
    filter: grayscale(0%);
}

/* --- Search --- */
.bm-zimoli-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin-bottom: 20px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    padding: 0 14px;
    transition: border-color 0.15s;
}

.bm-zimoli-search-wrap:focus-within {
    border-color: var(--bm-primary);
}

.bm-zimoli-search-wrap svg {
    flex-shrink: 0;
    color: var(--bm-text-muted);
    pointer-events: none;
}

.bm-zimoli-search-input {
    flex: 1;
    padding: 10px 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    color: var(--bm-text-primary);
    background: transparent;
    min-width: 0;
}

.bm-zimoli-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* --- Alphabet tabs --- */
.bm-alpha-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
}

.bm-alpha-btn {
    padding: 6px 12px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-white);
    color: var(--bm-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    line-height: 1;
}

.bm-alpha-btn:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-alpha-btn.active {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
    color: var(--bm-white);
}

/* --- Letter sections --- */
.bm-letter-section {
    margin-bottom: 36px;
}

.bm-letter-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--bm-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bm-border);
    margin-bottom: 16px;
}

/* --- Brand cards grid --- */
.bm-brand-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.bm-brand-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100px;
    text-decoration: none;
    color: var(--bm-text-primary);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
    text-align: center;
    overflow: hidden;
}

.bm-brand-card:hover {
    border-color: var(--bm-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.bm-brand-card-logo {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 4px;
    box-sizing: border-box;
}

.bm-brand-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bm-brand-card-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--bm-primary);
    word-break: break-word;
}

.bm-brand-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--bm-text-primary);
    line-height: 1.2;
    padding: 0 4px 2px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-brand-card-count {
    font-size: 10px;
    color: var(--bm-text-muted);
    padding: 0 4px 4px;
    line-height: 1;
}

.bm-brands-no-results {
    color: var(--bm-text-muted);
    font-size: 14px;
    padding: 20px 0;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .bm-top-brands-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    .bm-brand-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .bm-top-brands-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .bm-brand-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .bm-zimoli-page {
        padding: 16px 12px 40px;
    }
    .bm-top-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bm-brand-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bm-alpha-tabs {
        gap: 4px;
    }
    .bm-alpha-btn {
        padding: 5px 9px;
        font-size: 12px;
    }
}
