/**
 * Custom CSS for KBM Theme
 * 
 * Add your custom UI/UX styles here
 */

/* ========================================================================== 
   Header and Navigation Styles
   ========================================================================== */

:root {
    --kbm-blue: #0b5fa5;
    --kbm-blue-dark: #08497e;
    --kbm-blue-soft: #e7f1fb;
    --kbm-gray-100: #f4f6f8;
    --kbm-gray-900: #1d1d1f;
}

.kbm-header {
    border-bottom: 1px solid #dfe6ee;
}

.site-header {
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.kbm-header-main {
    background: var(--kbm-blue);
    color: #fff;
    padding: 0.6rem 0;
}

.kbm-header-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.kbm-subbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kbm-subbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kbm-gray-900);
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 0;
}

.kbm-subbar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kbm-gray-900);
    background: none;
    border: none;
    font-weight: 400;
    padding: 0.5rem 0;
    cursor: pointer;
}

.kbm-subbar-links a:hover {
    color: var(--kbm-blue);
}

.kbm-subbar-button:hover {
    color: var(--kbm-blue);
}

.kbm-link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kbm-link-icon svg {
    width: 18px;
    border: none;
    display: block;
}

.kbm-branding {
    display: flex;
    align-items: center;
    order: 2;
}

.kbm-logo {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.kbm-logo-image {
    height: 48px;
    width: auto;
    display: block;
}

.kbm-branding .custom-logo {
    height: 48px;
    width: auto;
}

.kbm-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.kbm-logo-subtext {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kbm-search {
    flex: 1;
    min-width: 220px;
    order: 3;
    width: 100%;
    max-width: none;
}

.kbm-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
    overflow: hidden;
    position: relative;
    gap: 0.25rem;
}

.kbm-search-field {
    border: none;
    flex: 1;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    padding-right: 0.6rem;
}

.kbm-search-field:focus {
    outline: none;
}

.kbm-search-submit {
    border: none;
    background: var(--kbm-blue-dark);
    color: #fff;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.kbm-engine-select {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    order: 3;
    margin-left: auto;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 2rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.kbm-engine-select:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.08);
}

.kbm-engine-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
}

.kbm-engine-select option {
    background: var(--kbm-blue-dark);
    color: #fff;
}

.kbm-search-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: inline-block;
}

.kbm-search-icon::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

.kbm-vehicle-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.kbm-vehicle-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kbm-vehicle-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.kbm-vehicle-link:hover {
    color: var(--kbm-blue-soft);
}

.kbm-cart-icon {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    order: 4;
    margin-left: 0.6rem;
}

.kbm-cart-svg svg {
    width: 36px;
    height: 36px;
    display: block;
}

.kbm-cart-icon .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fff;
    color: var(--kbm-blue);
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.kbm-subbar {
    background: #eef1f4;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.kbm-subbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}

.kbm-primary-nav .primary-menu-container > ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kbm-primary-nav a {
    color: var(--kbm-gray-900);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
}

.kbm-primary-nav a:hover {
    color: var(--kbm-blue);
}

.kbm-subbar-link {
    color: var(--kbm-gray-900);
    text-decoration: none;
    font-weight: 400;
}

.kbm-subbar-link:hover {
    color: var(--kbm-blue);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile Navigation */
@media screen and (max-width: 980px) {
    .kbm-header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.75rem;
    }

    .kbm-branding {
        order: 1;
        justify-content: center;
        width: 100%;
    }

    .kbm-search {
        order: 3;
        width: 100%;
        margin-top: 0.35rem;
    }

    .kbm-vehicle-link {
        order: 3;
        width: 100%;
        text-align: right;
    }

    .kbm-cart-icon {
        order: 4;
        margin-left: auto;
    }

    .kbm-primary-nav .primary-menu-container > ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 0;
    }

    .main-navigation.toggled .primary-menu-container > ul {
        display: flex;
    }

    .kbm-primary-nav li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .kbm-primary-nav a {
        padding: 0.85rem 0;
        width: 100%;
    }

    .kbm-subbar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0.75rem;
    }

    .kbm-subbar-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   WooCommerce Custom Styles
   ========================================================================== */

.woocommerce-wrapper {
    margin: 2rem 0;
}

/* Product Catalog Cards */
.woocommerce .woocommerce-result-count {
    color: #5b6575;
    margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering select {
    border: 1px solid #d1dae5;
    border-radius: 10px;
    background: #fff;
    padding: 0.55rem 0.8rem;
    color: #1d1d1f;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product.kbm-wc-card {
    margin: 0;
    width: auto;
    float: none;
    border: none;
    padding: 0;
}

.kbm-wc-card-inner {
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(12, 24, 44, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kbm-wc-card:hover .kbm-wc-card-inner {
    transform: translateY(-3px);
    border-color: #c7d4e2;
    box-shadow: 0 14px 26px rgba(12, 24, 44, 0.12);
}

.kbm-wc-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #f4f7fb, #e9eef5);
    overflow: hidden;
}

.kbm-wc-card-media img,
.kbm-wc-card-media .woocommerce-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.22s ease;
}

.kbm-wc-card:hover .kbm-wc-card-media img {
    transform: scale(1.03);
}

.kbm-wc-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #0b5fa5;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    z-index: 2;
}

.kbm-wc-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1rem 1.1rem;
    flex: 1;
}

.kbm-wc-card-cats {
    margin: 0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7688;
    font-weight: 700;
}

.kbm-wc-card-cats a {
    color: inherit;
    text-decoration: none;
}

.kbm-wc-card-cats a:hover {
    color: var(--kbm-blue);
}

.kbm-wc-card-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    min-height: 2.7em;
}

.kbm-wc-card-title a {
    color: #111827;
    text-decoration: none;
}

.kbm-wc-card-title a:hover {
    color: var(--kbm-blue);
}

.kbm-wc-card-price {
    margin-top: 0.15rem;
    min-height: 1.6rem;
}

.kbm-wc-card-price .price {
    margin: 0;
    color: #0b5fa5;
    font-weight: 700;
    font-size: 1.06rem;
}

.kbm-wc-card-price del {
    color: #8993a4;
}

.kbm-wc-card-price ins {
    text-decoration: none;
}

.kbm-wc-card-actions {
    margin-top: auto;
    padding-top: 0.35rem;
}

.woocommerce ul.products li.product.kbm-wc-card .button {
    width: 100%;
    text-align: center;
    border-radius: 10px;
    background: #0b5fa5;
    color: #fff;
    border: 1px solid #0b5fa5;
    font-weight: 700;
    padding: 0.68rem 0.9rem;
    line-height: 1.15;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.woocommerce ul.products li.product.kbm-wc-card .button:hover {
    transform: translateY(-1px);
    background: #08497e;
    border-color: #08497e;
}

.woocommerce .woocommerce-pagination {
    margin-top: 1.5rem;
}

.woocommerce .woocommerce-pagination ul.page-numbers {
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.woocommerce .woocommerce-pagination ul.page-numbers li {
    border: none;
}

.woocommerce .woocommerce-pagination ul.page-numbers li .page-numbers {
    border: 1px solid #d1dae5;
    border-radius: 999px;
    min-width: 34px;
    min-height: 34px;
    padding: 0.4rem 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce .woocommerce-pagination ul.page-numbers li .page-numbers.current,
.woocommerce .woocommerce-pagination ul.page-numbers li .page-numbers:hover {
    border-color: #0b5fa5;
    background: #0b5fa5;
    color: #fff;
}

/* Product Single */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.woocommerce div.product .images {
    position: relative;
}

.woocommerce div.product .summary {
    padding: 1rem;
}

/* Cart */
.woocommerce table.cart {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
    padding: 1rem;
    border: 1px solid #e5e5e5;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #0073aa;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #005177;
}

/* Cart Icon */
.header-cart {
    margin-left: auto;
}

.cart-icon {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1rem;
    }

    .woocommerce div.product {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

/* ==========================================================================
   Custom UI/UX Section
   ========================================================================== */

/* Homepage Layout */
.kbm-promo-bar {
    background: #b7e28f;
    color: #0f3d1f;
    text-align: center;
    font-weight: 700;
    padding: 0.5rem 0;
}

.kbm-promo-link {
    color: inherit;
    text-decoration: none;
}

.kbm-hero {
    position: relative;
    min-height: 420px;
    background: #0b5fa5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}

.home .site-main {
    padding-top: 0;
}

.kbm-hero-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.kbm-hero-code {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    text-align: center;
    z-index: 2;
}

.kbm-hero-content {
    max-width: 620px;
}

.kbm-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.kbm-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.kbm-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0b5fa5;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
}

.kbm-hero-cta:hover {
    background: #e7f1fb;
    color: #08497e;
}

.kbm-banner-grid {
    padding: 3rem 0 4rem;
    background: #fff;
}

.kbm-banner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.kbm-banner-card {
    display: block;
    position: relative;
    width: min(100%, 360px);
    background: #f4f6f8;
    border: 1px solid #dfe6ee;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #1d1d1f;
    min-height: 240px;
    aspect-ratio: 3 / 2;
}

.kbm-banner-card img,
.kbm-banner-image-empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kbm-banner-image-empty {
    background: #fff;
}

.kbm-banner-content {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0;
}

.kbm-banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-end;
    background: var(--kbm-blue);
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
}

.kbm-banner-card:hover .kbm-banner-link {
    background: var(--kbm-blue-dark);
    color: #fff;
}

@media screen and (max-width: 768px) {
    .kbm-hero-title {
        font-size: 2rem;
    }

    .kbm-hero {
        min-height: 340px;
        background-size: cover;
        background-position: center;
    }
}

/* Slider Section */
.kbm-home-slider {
    padding: 2.5rem 0 3rem;
    background: #f7f7f8;
}

.kbm-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.kbm-section-header h2 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: #2b2b2b;
}

.kbm-section-divider {
    width: 90px;
    height: 2px;
    display: inline-block;
    background: #2b2b2b;
}

.kbm-passion-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.kbm-passion-grid .kbm-slide {
    flex: 0 0 clamp(180px, 20vw, 220px);
    scroll-snap-align: start;
}

@media screen and (min-width: 1240px) {
    .kbm-passion-grid {
        overflow: visible;
    }

    .kbm-passion-grid .kbm-slide {
        flex: 1 1 0;
    }
}

.kbm-slide {
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #1d1d1f;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbm-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.kbm-slide-media img,
.kbm-slide-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #dfe6ee, #f7f7f8);
}

.kbm-slide-title {
    padding: 0.9rem 1rem 1.1rem;
    text-align: center;
    font-weight: 700;
}

/* Product Cards */
.kbm-home-products {
    padding: 2.5rem 0 4rem;
    background: #fff;
}

.kbm-section-header--compact {
    text-align: left;
    margin-bottom: 1.5rem;
}

.kbm-section-header--compact h2 {
    margin-bottom: 0.35rem;
}

.kbm-section-header--compact p {
    margin: 0;
    color: #5a5a5f;
}

.kbm-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.kbm-product-card {
    display: flex;
    flex-direction: column;
    background: #f7f7f8;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #1d1d1f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.kbm-product-media img,
.kbm-product-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #dfe6ee, #f7f7f8);
    display: block;
}

.kbm-product-info {
    padding: 1.2rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kbm-product-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.kbm-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: auto;
    font-weight: 700;
    background: var(--kbm-blue);
    color: #fff;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
}

.kbm-product-card:hover .kbm-product-cta {
    background: var(--kbm-blue-dark);
    color: #fff;
}

/* Sidebar Menu + Search Panel */
.kbm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 999;
}

body.kbm-sidebar-open .kbm-overlay,
body.kbm-search-open .kbm-overlay,
body.kbm-contact-open .kbm-overlay {
    opacity: 1;
    visibility: visible;
}

.kbm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background: #fff;
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    overflow-y: auto;
}

.kbm-sidebar-group {
    display: none;
}

.kbm-sidebar-group.is-active {
    display: block;
}

body.kbm-sidebar-open .kbm-sidebar {
    transform: translateX(0);
}

.kbm-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kbm-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.kbm-sidebar-close,
.kbm-search-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #1d1d1f;
}

.kbm-sidebar-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.kbm-sidebar-tabs a {
    background: transparent;
    color: var(--kbm-blue);
    text-decoration: none;
    padding: 0.5rem 0.4rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--kbm-blue);
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.kbm-sidebar-tabs a:hover {
    background: var(--kbm-blue);
    color: #fff;
}

.kbm-sidebar-links {
    display: grid;
    gap: 0.65rem;
}

.kbm-sidebar-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
}

.kbm-sidebar-section h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #e2e5e9;
    padding-bottom: 0.5rem;
}

.kbm-sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.kbm-sidebar-section--departments ul {
    gap: 0;
}

.kbm-sidebar-section--departments li {
    border-bottom: 1px solid #e2e5e9;
}

.kbm-sidebar-section--departments a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
}

.kbm-dept-chevron {
    font-size: 1.2rem;
    color: #3f3f44;
}

.kbm-sidebar-section a {
    text-decoration: none;
    color: #1d1d1f;
}

.kbm-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.kbm-sidebar-nav a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
}

.kbm-search-panel {
    position: fixed;
    top: 15vh;
    right: 5vw;
    width: min(460px, 90vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

body.kbm-search-open .kbm-search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kbm-contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(560px, 92vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -52%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1002;
}

body.kbm-contact-open .kbm-contact-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.kbm-contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.kbm-contact-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.kbm-contact-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #1d1d1f;
}

.kbm-contact-modal-body p {
    margin: 0 0 0.9rem;
}

.kbm-contact-modal-body ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.kbm-contact-modal-body a {
    color: var(--kbm-blue);
    font-weight: 600;
}

.kbm-search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kbm-search-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.kbm-search-panel-body {
    display: grid;
    gap: 0.85rem;
}

.kbm-search-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #f4f6f8;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
}

@media screen and (max-width: 980px) {
    .kbm-search-panel {
        right: 50%;
        transform: translate(50%, -10px);
    }

    body.kbm-search-open .kbm-search-panel {
        transform: translate(50%, 0);
    }
}

/* ==========================================================================
   Department / Product Category Archive
   ========================================================================== */

.kbm-dept-hero {
    background: var(--kbm-blue);
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.kbm-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.kbm-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.kbm-breadcrumb a:hover {
    text-decoration: underline;
}

.kbm-dept-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.kbm-dept-desc {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
}

.kbm-dept-content {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.kbm-dept-content .woocommerce-products-header {
    display: none;
}

.kbm-dept-admin-tip {
    margin-bottom: 1rem;
    border: 1px solid #cfe2f6;
    background: #eef6ff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #1f2e44;
}

.kbm-dept-admin-tip p {
    margin: 0;
}

.kbm-dept-admin-tip a {
    color: var(--kbm-blue);
    font-weight: 700;
}

.kbm-dept-content .woocommerce-info,
.kbm-dept-content .woocommerce-no-products-found {
    margin-top: 0;
    border-radius: 12px;
    border: 1px solid #d9e4f0;
    background: #f7faff;
    color: #253a54;
}
