/* =============================================================================
   OHIO CHILD THEME — style.css
   Theme:  Ohio Child  |  Author: Colabrio
   =============================================================================

   TABLE OF CONTENTS
01.  Theme Header
    2.  Branding & Logo
    3.  Header & Navigation
    4.  Layout — Page Container & Breadcrumbs
    5.  Typography & Global Colors
    6.  Buttons
    7.  Forms & Inputs
    8.  Contact Form 7 — Modern Style
    9.  Blog Category Cards  (.mbs-catcards)
   10.  WooCommerce — Catalogue Mode
   11.  Variation Swatches (CFVSW)
   12.  Elementor Overrides
   13.  Carousels — Smooth, Custom & Instagram
   14.  Subscribe Form
   15.  Hero Slider
   16.  404 Page
   17.  Misc Utilities
   18.  Filters — YITH WCAN & WPC
   19.  Disabled / Commented-out Rules (reference only)
   20.  Custom Font Override

============================================================================= */


/* =============================================================================
   1. THEME HEADER
============================================================================= */
/*
   Theme Name:   Ohio-Child
   Theme URI:    http://ohio.colabr.io/
   Author:       Colabrio
   Author URI:   http://colabr.io/
   Description:  Ohio child theme — WordPress theme bundled with premium plugins.
   Version:      1.0.2
   License:      GNU General Public License v2 or later
   License URI:  http://www.gnu.org/licenses/gpl-2.0.html
   Template:     ohio
   Text Domain:  ohio-child
   Tags:         ajax, customizer, ecommerce, portfolio, minimal, page builder,
                 responsive, multipurpose, shop, store, woocommerce, wpml
*/


/* =============================================================================
   2. BRANDING & LOGO
============================================================================= */

.branding .logo img,
.branding .logo-mobile img,
.branding .logo-dynamic img {
    max-width: 123px !important;
}

.header.-sticky .branding img {
    min-height: unset;
    max-height: unset;
    max-width: 123px !important;
}


/* =============================================================================
   3. HEADER & NAVIGATION
============================================================================= */

/* Non-sticky header text colours */
.header:not(.-sticky):not(.-mobile) .menu-blank,
.header:not(.-sticky):not(.-mobile) .menu > li > a,
.header:not(.-sticky) .hamburger-outer,
.header:not(.-sticky) .branding-title,
.header:not(.-sticky) .icon-button:not(.-overlay-button):not(.-small):not(.-extra-small),
.header:not(.-sticky) .cart-button-total a,
.header:not(.-sticky) .lang-dropdown {
    color: #000 !important;
}

/* Red menu item (high-specificity chain is intentional) */
.make_red.make_red.make_red.make_red.make_red a {
    color: red !important;
}

/* Header horizontal padding */
.header-wrap {
    padding-left: 95px !important;
    padding-right: 95px !important;
    height: var(--clb-header-height) !important;
}

@media (max-width: 1023.98px) {
    .header-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Mega menu — 3-column layout with dividers */
.header:not(.-mobile) .menu .sub-menu-wide > li {
    width: 33.33% !important;
    border-right: 1px solid #eee;
    padding: 0 10px 0 0;
}

.header:not(.-mobile) .menu .sub-menu-wide > li:last-child {
    border-right: 0;
}

/* Submenu link chevron */
.header:not(.-mobile) .menu li > ul > li a::before {
    content: "›" !important;
    font-family: inherit !important;
    color: #c02428;
    font-weight: 700;
    margin-right: 10px;
    display: inline-block !important;
}

/* Mega menu — centered, capped width (desktop only) */
@media (min-width: 1024px) {
    .header:not(.-mobile) .menu .sub-menu-wide {
        max-width: 800px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Hide menu link subtitles */
.header .menu li span .menu-link-subtitle {
    display: none !important;
}

/* Slider pages — header offset reset */
.slider-with-bullets:not(.slider-with-bullets-type8) .header {
    margin-right: 0 !important;
}


/* =============================================================================
   4. LAYOUT — PAGE CONTAINER & BREADCRUMBS
============================================================================= */

.page-headline {
    align-items: center !important;
}

@media (max-width: 767.98px) {

    .page-headline {
        align-items: center !important;
        padding-bottom: 35px;
    }

    .page-headline::before {
        background: unset !important;
    }
}


.page-headline .holder {
    padding-bottom: 5px !important;
}

/* Full-width container on headline / breadcrumb pages */
.page-headline .page-container,
.page-container:has(> .breadcrumb-holder) {
    max-width: 100%;
    padding-left: 95px !important;
    padding-right: 95px !important;
}

@media (max-width: 1023.98px) {
    .page-headline {
        min-height: unset !important;
    }

    .page-headline .page-container,
    .page-container:has(> .breadcrumb-holder) {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.breadcrumb-holder {
    padding: 0 !important;
}

.project-gallery {
    margin: 80px 0 0 !important;
}

/* Portfolio project slider — full-width images, especially on mobile */
.project.-layout5 .project-gallery.-with-slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.project.-layout5 .project-slider.-slider-fs,
.project.-layout5 .project-gallery.-with-slider .project-slider {
    width: 100%;
}

@media (max-width: 767px) {
    .project-page.project.-layout5 {
        margin-top: 88px;
    }

    .project-gallery {
        margin: 0 !important;
    }

    .project.-layout5 .project-gallery.-with-slider {
        margin-top: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    /* Shorter landscape frame — beats Ohio 75vh / inline heights when possible */
    .project.-layout5 .project-gallery.-with-slider,
    .project.-layout5 .project-slider,
    .project.-layout5 .project-slider.-slider-fs,
    .project.-layout5 .video-holder,
    .project-page .project-slider.-slider-fs {
        height: auto !important;
        max-height: 56vw !important; /* ~16:10 of viewport width */
        min-height: 0 !important;
    }

    .project.-layout5 .project-slider.-slider-fs,
    .project.-layout5 .project-gallery.-with-slider .project-slider,
    .project-page .project-slider.-slider-fs {
        aspect-ratio: 16 / 10 !important;
        width: 100% !important;
    }

    .project.-layout5 .project-slider .clb-slider-outer-stage,
    .project.-layout5 .project-slider .clb-slider-stage,
    .project.-layout5 .project-slider .clb-slider-item,
    .project.-layout5 .project-slider .parallax,
    .project.-layout5 .project-image,
    .project-page .project-slider .clb-slider-outer-stage,
    .project-page .project-slider .clb-slider-stage,
    .project-page .project-slider .parallax,
    .project-page .project-image {
        height: 100% !important;
        width: 100% !important;
        max-height: none !important;
    }

    .project.-layout5 .project-image,
    .project.-layout5 .project-image.parallax-bg,
    .project-page .project-image,
    .project-page .project-image.parallax-bg {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-color: #0f0f0f;
    }

    /* Disable parallax shift on small screens — keeps framing stable */
    .project.-layout5 .project-slider .parallax-bg,
    .project-page .project-slider .parallax-bg {
        transform: none !important;
    }

    /* Hide numbered bullets (01–09) on mobile — type5 vertical list */
    .project-page .clb-slider-nav-dots,
    .project-gallery .clb-slider-nav-dots,
    .project.-layout5 .clb-slider-nav-dots,
    .project .-slider-fs .clb-slider-nav-dots,
    body.slider-with-bullets .project .clb-slider-nav-dots,
    body.slider-with-bullets-type5 .project .clb-slider-nav-dots {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Keep arrow controls usable */
    .project.-layout5 .-slider-fs .clb-slider-nav-btn,
    .project-page .-slider-fs .clb-slider-nav-btn {
        padding: 0.35rem;
        z-index: 3;
    }

    .project.-layout5 .-slider-fs .clb-slider-nav-btn .btn-round,
    .project-page .-slider-fs .clb-slider-nav-btn .btn-round {
        width: 40px;
        height: 40px;
    }
}


/* =============================================================================
   5. TYPOGRAPHY & GLOBAL COLORS
============================================================================= */

h1 {
    color: #1f3735;
}

/* Global link colour */
.content-area a:not(.-unlink):not(.tag),
.comment-form a:not(.-unlink):not(.tag),
.comment-content a:not(.-unlink):not(.tag),
.project-content a:not(.-unlink):not(.tag),
.woocommerce-product-details__short-description a:not(.-unlink):not(.tag),
.wpb-content-wrapper a:not(.-unlink):not(.tag),
.elementor a:not(.-unlink):not(.tag) {
    --clb-color-link: #0a0000;
}

select:not(.lang-dropdown) {
    color: #000;
}

.um-outline-white p {
    color: #fff;
}

/* Dynamic product title */
.variation-dynamic-title {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 32px;
}

/* Product excerpt bullet list */
.product-excerpt ul {
    margin-bottom: 0 !important;
}

.product-excerpt ul li::before {
    content: "\f058" !important;
    font-family: "FontAwesome" !important;
    font-size: 14px !important;
    color: #000 !important;
}


/* =============================================================================
   6. BUTTONS
============================================================================= */

a.button {
    font-size: var(--clb-action-font-size) !important;
    min-height: 48px !important;
}

/* NOTE: the selector below is missing a comma between `button` and `a.button`,
   making it target `a.button` *inside* a `button` — effectively a no-op.
   Kept as-is to avoid unintentional behaviour change; review before fixing. */
button
a.button {
    min-height: 48px !important;
    border-radius: 10px !important;
}

/* Small optional button */
a.button.-small.btn-optional {
    font-size: clamp(8px, 2.5vw, 15px) !important;
    min-height: clamp(25px, 5vw, 40px) !important;
}

/* Block buttons */
a.ohio-widget.button.-outlined.-block,
a.ohio-widget.button.-default.-block {
    font-size: clamp(12px, 2.5vw, 18px) !important;
    min-height: clamp(35px, 5vw, 48px) !important;
}

/* Rounded pill shape */
a.ohio-widget.button,
a.button.btn-optional {
    border-radius: 25px;
}

@media (max-width: 767.98px) {
    a.ohio-widget.button,
    a.ohio-widget.button.-outlined.-block,
    a.ohio-widget.button.-default.-block,
    a.button.btn-optional {
        font-size: 14px !important;
        height: 40px !important;
    }

    a.ohio-widget.button,
    a.button.btn-optional {
        font-size: 10px !important;
    }
}

/* Outlined button colours */
.elementor-element-c5fed3c a.ohio-widget.button.-outlined,
.um-outline-white a.ohio-widget.button.-outlined {
    color: #fff !important;
    border-color: #fff !important;
}

a.ohio-widget.button.-outlined:hover,
.um-outline-white a.ohio-widget.button.-outlined:hover {
    color: #9b191a !important;
    border-color: #9b191a !important;
}

.elementor-element-c5fed3c a.ohio-widget.button.-outlined:hover {
    color: #111013 !important;
    border-color: #111013 !important;
}

/* Primary / default button colours */
a.ohio-widget.button.-default,
.page-id-20722 a.button.-small.-primary {
    background-color: #111013 !important;
}

a.ohio-widget.button.-default:hover,
.page-id-20722 a.button.-small.-primary:hover {
    background-color: #9b191a !important;
}

/* Container query: narrow button containers */
.my-button-container {
    container-type: inline-size;
    width: 100%;
}

@container (max-width: 300px) {
    a.ohio-widget.button.-outlined.-block,
    a.ohio-widget.button.-default.-block {
        font-size: 10px !important;
    }

    .my-button-container .um-sale-price .title {
        font-size: 30px !important;
    }

    .my-button-container .um-save .title {
        font-size: 15px !important;
    }
}


/* =============================================================================
   7. FORMS & INPUTS
============================================================================= */

form {
    display: flex;
    flex-direction: column !important;
    column-gap: 20px;
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 30px;
}

label {
    font-size: 14px !important;
    font-weight: 500 !important;
}

input {
    border-radius: 10px !important;
}

/* Base input styles */
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="date"],
input[type="url"],
textarea,
select,
.select2-container--default .select2-selection--single {
    width: 100%;
    border: 1px solid #000;
    background-color: #fff;
}

/* Focus / active states */
input[type="email"]:not(.-outlined):focus,
input[type="email"]:not(.-outlined):active,
input[type="number"]:not(.-outlined):focus,
input[type="number"]:not(.-outlined):active,
input[type="password"]:not(.-outlined):focus,
input[type="password"]:not(.-outlined):active,
input[type="search"]:not(.-outlined):focus,
input[type="search"]:not(.-outlined):active,
input[type="tel"]:not(.-outlined):focus,
input[type="tel"]:not(.-outlined):active,
input[type="text"]:not(.-outlined):focus,
input[type="text"]:not(.-outlined):active,
input[type="date"]:not(.-outlined):focus,
input[type="date"]:not(.-outlined):active,
input[type="url"]:not(.-outlined):focus,
input[type="url"]:not(.-outlined):active,
textarea:not(.-outlined):focus,
textarea:not(.-outlined):active,
select:not(.-outlined):focus,
select:not(.-outlined):active,
.select2-container--default .select2-selection--single:not(.-outlined):focus,
.select2-container--default .select2-selection--single:not(.-outlined):active {
    background-color: #fff;
    outline: none;
}

/* Mobile — same width rule; tighter form top margin */
@media only screen and (max-width: 768px) {
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="text"],
    input[type="date"],
    input[type="url"],
    textarea,
    select,
    .select2-container--default .select2-selection--single {
        width: 100%;
    }

    form {
        margin-top: -55px;
    }
}


/* =============================================================================
   8. CONTACT FORM 7 — MODERN STYLE
============================================================================= */

.cf7-modern-form {
    max-width: 100%;
    margin: auto;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.cf7-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cf7-row.full {
    display: block;
}

.cf7-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cf7-field label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.cf7-field input,
.cf7-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cf7-field input:focus,
.cf7-field textarea:focus {
    border-color: #6c3cff;
    box-shadow: 0 0 0 3px rgba(108, 60, 255, 0.15);
    outline: none;
}

.cf7-field textarea {
    min-height: 120px;
    resize: none;
}

.cf7-modern-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #6c3cff, #9f5cff);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cf7-modern-form input[type="submit"]:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cf7-row {
        flex-direction: column;
    }
}


/* =============================================================================
   9. BLOG CATEGORY CARDS  (.mbs-catcards shortcode)
============================================================================= */

.mbs-catcards {
    display: grid;
    gap: 24px;
}

.mbs-catcards-4 { grid-template-columns: repeat(4, 1fr); }
.mbs-catcards-3 { grid-template-columns: repeat(3, 1fr); }
.mbs-catcards-2 { grid-template-columns: repeat(2, 1fr); }

/* Card */
.mbs-catcard {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mbs-catcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* Overlay */
.mbs-catcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
    transition: background 0.3s ease;
}

.mbs-catcard:hover .mbs-catcard-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
}

/* Content */
.mbs-catcard-content {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mbs-catcard-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: brightness(0) invert(1); /* force icon to white */
}

.mbs-catcard-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.mbs-catcard-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.mbs-catcard-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.mbs-catcard:hover .mbs-catcard-arrow {
    transform: translateX(5px);
}

/* Tablet — collapse to 2 columns */
@media (max-width: 992px) {
    .mbs-catcards-4,
    .mbs-catcards-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px !important;
        min-height: 264px;
    }
}


/* =============================================================================
   10. WOOCOMMERCE — CATALOGUE MODE
============================================================================= */

/* Hide Elementor Add-to-Cart widget */
:is(
    .elementor-widget-woocommerce-product-add-to-cart,
    .woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
    .elementor-widget-wc-add-to-cart,
    .woocommerce div.product .elementor-widget-wc-add-to-cart
).elementor-add-to-cart--layout-auto form.cart.variations_form .woocommerce-variation-add-to-cart,
:is(
    .elementor-widget-woocommerce-product-add-to-cart,
    .woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
    .elementor-widget-wc-add-to-cart,
    .woocommerce div.product .elementor-widget-wc-add-to-cart
).elementor-add-to-cart--layout-auto form.cart:not(.grouped_form):not(.variations_form),
:is(
    .elementor-widget-woocommerce-product-add-to-cart,
    .woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
    .elementor-widget-wc-add-to-cart,
    .woocommerce div.product .elementor-widget-wc-add-to-cart
).elementor-add-to-cart--layout-stacked form.cart.variations_form .woocommerce-variation-add-to-cart,
:is(
    .elementor-widget-woocommerce-product-add-to-cart,
    .woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
    .elementor-widget-wc-add-to-cart,
    .woocommerce div.product .elementor-widget-wc-add-to-cart
).elementor-add-to-cart--layout-stacked form.cart:not(.grouped_form):not(.variations_form) {
    display: none;
}

/* Hide variation controls & single variation wrap */
.reset-variation,
.single_variation_wrap {
    display: none;
}

/* Hide quickview button on product thumbnails */
.product-item-thumbnail button.icon-button.button-quickview.-fade-down.-top {
    display: none;
}

/* Product tabs — reset inner spacing */
.single-product-tabs .tabs .tabs-content {
    margin: 0;
    padding: 0;
}

/* ACF short description */
.acf-short-description {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    font-weight: 400;
}

/* Gallery thumbnails — prevent wrapping */
.ohio-bottom-gallery-thumbs {
    flex-wrap: nowrap !important;
}


/* =============================================================================
   11. COLOUR SWATCHES (custom — mbs-swatches)
============================================================================= */

.mbs-swatches-select-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mbs-swatches-wrap {
    position: relative;
}

.mbs-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mbs-swatches-loop-wrap {
    margin: 10px 0 4px;
}

.mbs-swatch {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mbs-swatch--empty {
    background: repeating-conic-gradient(#eee 0% 25%, #ccc 0% 50%) 50% / 8px 8px;
}

.mbs-swatch.is-selected {
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 0 2px #fff;
}

/* Small colour-name tooltip */
.mbs-swatch[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    top: auto;
    transform: translateX(-50%) translateY(2px);
    padding: 3px 7px;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.mbs-swatch[data-tooltip]:hover::after,
.mbs-swatch[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mbs-swatches--single .mbs-swatch {
    width: 28px;
    height: 28px;
}

.mbs-swatches--loop .mbs-swatch {
    width: 25px;
    height: 25px;
}

.mbs-swatches--loop {
    overflow: visible;
}


/* =============================================================================
   12. ELEMENTOR OVERRIDES
============================================================================= */

/* Swiper navigation arrows */
.elementor-element .swiper .elementor-swiper-button-next {
    right: 35px !important;
}

.elementor-element .swiper .elementor-swiper-button-prev {
    left: 35px !important;
}

/* Tabs — remove default button background */
.elementor-widget-n-tabs .e-n-tabs-heading button {
    background: transparent !important;
    border-radius: 0 !important;
}

/* Offset column padding (desktop only) */
@media screen and (min-width: 1181px) {
    .elementor-element.e-con-full.e-parent[data-ohio-offset-column="yes"] > .e-child:first-of-type,
    .elementor-element.e-con-full.e-parent[data-ohio-offset-column-left="yes"] > .e-child:first-of-type {
        padding-left: 30px;
    }
}

/* Archive products grid */
@media (min-width: 1025px) {
    .elementor-widget-wc-archive-products .woocommerce.columns-3 ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .elementor-248293 .elementor-element.elementor-element-2b5787c {
        margin: 0;
        padding: 0;
    }

    .elementor-widget-wc-archive-products .woocommerce.columns-3 ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Reset Elementor side margins on tablet / mobile */
@media (max-width: 1024px) {
    .elementor {
        margin-left: unset !important;
        margin-right: unset !important;
    }
}


/* =============================================================================
   13. CAROUSELS — SMOOTH, CUSTOM & INSTAGRAM
============================================================================= */

/* --- Shared keyframes ---------------------------------------------------- */

@keyframes smoothScroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

@keyframes customScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Smooth Slider -------------------------------------------------------- */

.smooth-slider-container {
    width: 100%;
    position: relative;
    background: #fff;
    padding: 14px 0;
}

.smooth-slider-wrapper {
    display: flex;
    width: max-content;
    animation: smoothScroll 90s linear infinite;
}

.smooth-slider-slide {
    flex: 0 0 auto;
    margin-right: 28px;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.smooth-slider-slide img {
    width: 350px;
    height: auto;
    border-radius: 10px;
}

.smooth-slider-slide:hover {
    transform: scale(1.03);
}

.smooth-slider-container:hover .smooth-slider-wrapper {
    animation-play-state: paused;
}

/* --- Custom Carousel ------------------------------------------------------ */

.custom-carousel-container {
    width: 100%;
    position: relative;
    background: #fff;
    padding: 14px 0;
}

.custom-carousel-wrapper {
    display: flex;
    width: max-content;
    animation: customScroll 150s linear infinite;
}

.custom-carousel-slide {
    flex: 0 0 auto;
    margin-right: 28px;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.custom-carousel-slide img {
    width: 350px;
    height: auto;
    border-radius: 10px;
}

.custom-carousel-slide:hover {
    transform: scale(1.03);
}

.custom-carousel-container:hover .custom-carousel-wrapper {
    animation-play-state: paused;
}

/* --- Instagram Carousel --------------------------------------------------- */

.custom-carousel-containers {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: #fff;
    padding: 20px 0;
}

.custom-carousel-wrappers {
    display: flex;
    width: max-content;
    animation: customScroll 150s linear infinite;
}

.custom-carousel-slides {
    position: relative;
    flex: 0 0 auto;
    margin-right: 28px;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.custom-carousel-slides img {
    width: 350px;
    height: 400px !important;
    border-radius: 10px !important;
    transition: opacity 0.3s ease;
}

.custom-carousel-slides:last-child {
    margin-right: 0;
}

/* Instagram hover overlay */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-carousel-slides:hover .overlay {
    opacity: 1;
}

/* Instagram icon */
.insta-icon img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.custom-carousel-slides:hover .insta-icon img {
    transform: scale(1.1);
}

/* Pause Instagram carousel on hover */
.custom-carousel-containers:hover .custom-carousel-wrappers {
    animation-play-state: paused;
}

/* Mobile — tighter slide gaps for all carousels */
@media (max-width: 767px) {
    .custom-carousel-slide,
    .smooth-slider-slide,
    .custom-carousel-slides {
        margin-right: 16px;
    }
}


/* =============================================================================
   14. SUBSCRIBE FORM
============================================================================= */

.subscribe-form {
    position: relative;
    margin-top: 50px;
}

.subscribe-form .button,
.subscribe-form input[type="submit"],
.subscribe-form button[type="submit"] {
    white-space: nowrap;
    position: absolute;
    top: 10px;
    left: 100%;
    transform: translate(-100%, 0);
}


/* =============================================================================
   15. HERO SLIDER  (.mbs-hero)
============================================================================= */

.mbs-hero {
    position: relative;
    overflow: hidden;
}

.mbs-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.mbs-slide {
    flex: 0 0 100%;
}

.mbs-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation buttons */
.mbs-prev,
.mbs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.mbs-prev:hover,
.mbs-next:hover {
    background: rgba(0, 0, 0, 0.55);
}

.mbs-prev { left: 30px; }
.mbs-next { right: 30px; }

@media (max-width: 767.98px) {
    .mbs-prev { left: 16px; }
    .mbs-next { right: 16px; }
}

/* Dots */
.mbs-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.mbs-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.mbs-dots button.active {
    background: #fff;
}


/* =============================================================================
   16. 404 PAGE
============================================================================= */

.error404 .search label {
    width: 100%;
}

.error404 input[type="text"] {
    width: 100% !important;
}

.error404 .headline-meta {
    display: none;
}


/* =============================================================================
   17. MISC UTILITIES
============================================================================= */

/* Minimum width helper */
.um-width {
    min-width: 112px;
}

/* Hide element on specific category term pages */
.term-255 .um-hide-differnt-page,
.term-254 .um-hide-differnt-page,
.term-275 .um-hide-differnt-page {
    display: none;
}

/* Card padding */
.card .overlay-details {
    padding: 15px !important;
}

.card.-contained .card-details {
    padding: 15px !important;
}

/* Small avatar */
.avatar.-small {
    width: 30px !important;
    height: 30px !important;
}

/* Product excerpt checkmark bullet */
body .product-excerpt ul li::before {
    content: "✔" !important;
    font-family: sans-serif !important;
    font-size: 12px !important;
    color: #000 !important;
    height: 16px;
    display: inline-flex;
}

/* Mobile menu result count */
.is-mobile-menu .woocommerce-result-count {
    display: block !important;
    margin: 0 !important;
}

/* Product slider top margin */
ul.products.elementor-grid.woo-products.woo-products-slider.-unlist {
    margin-top: 20px !important;
}


/* =============================================================================
   18. PRODUCT FILTER  (.mbs-filter — custom, replaces WPC & YITH)
============================================================================= */

.mbs-filter {
    position: relative;
}

/* --- Subcategory nav (above the filter) ----------------------------------- */

.mbs-subcats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.mbs-subcat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 24px;
    background: #f2e8e1;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-family: "DM Sans", sans-serif;
    font-size: var(--clb-font-size-small);
    font-weight: 600;
    transition: background 0.2s ease;
}

.mbs-subcat:hover,
.mbs-subcat.is-active {
    background: #e8d7c9;
}

.mbs-subcat.is-active {
    box-shadow: inset 0 0 0 1px #1a1a1a;
}

.mbs-subcat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbs-subcat-logo {
    flex: 0 0 auto;
    max-width: 100px !important;
    width: auto;
    object-fit: contain;
}

.mbs-subcat-arrow {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .mbs-subcats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 16px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .mbs-subcats {
        grid-template-columns: 1fr;
    }
}

/* --- Filter bar (desktop) ------------------------------------------------- */

.mbs-filter {
    position: relative;
}

/* Soft focus backdrop while a desktop panel is open */
@media (min-width: 769px) {
    .mbs-filter.mbs-filter-panel-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 4;
        background: rgba(26, 26, 26, 0.12);
        animation: mbs-filter-fade-in 0.2s ease;
    }
}

@keyframes mbs-filter-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mbs-filter-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
    row-gap: 12px;
    background: #f2e8e1;
    border-radius: 10px;
    border-top: 1px solid rgba(26, 26, 26, 0.06);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    padding: 16px 24px;
    margin-bottom: 28px;
}

@media (max-width: 1024px) {
    .mbs-filter-bar {
        margin-bottom: 16px;
    }
}

.mbs-filter-by {
    display: block;
    grid-column: 1;
    justify-self: start;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
}

.mbs-filter-drawer {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin-left: 0;
}

.mbs-filter-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: auto;
    gap: 10px 28px;
}

.mbs-filter-sort {
    grid-column: 3;
    justify-self: end;
    flex: 0 0 auto;
    margin-left: 0;
}

.mbs-filter-sort-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.22);
    border-radius: 10px;
    padding: 8px 34px 8px 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
}

.mbs-filter-sort-inner::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #1a1a1a;
    border-bottom: 1.5px solid #1a1a1a;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    z-index: 1;
}

.mbs-filter-sort-prefix {
    white-space: nowrap;
}

.mbs-filter-sort-select {
    /* Theme styles all <select>s with a chevron background-image that tiles
       when the control is short/transparent — wipe that and size to content. */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto !important;
    min-width: 0;
    max-width: 140px;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    height: 28px;
    min-height: unset;
}

.mbs-filter-sort-select::-ms-expand {
    display: none;
}

.mbs-filter-sort-select:focus,
.mbs-filter-sort-select:active,
.mbs-filter-sort-select:focus-visible {
    outline: none;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.mbs-filter-group {
    position: static;
}

.mbs-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 4px 2px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.15s ease;
    box-shadow: none;
}

.mbs-filter-toggle:hover {
    color: #9b191a;
    border-color: transparent;
    box-shadow: none;
    background: none;
}

.mbs-filter-toggle:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

.mbs-filter-toggle-label {
    flex: 0 1 auto;
    text-align: left;
}

.mbs-filter-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #9b191a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.mbs-filter-toggle-count[hidden] {
    display: none;
}

.mbs-filter-group.is-open .mbs-filter-toggle {
    font-weight: 600;
    color: #1a1a1a;
    background: none;
    border: 0;
    box-shadow: none;
}

.mbs-filter-group.has-active .mbs-filter-toggle {
    background: none;
    border: 0;
    color: #9b191a;
}

.mbs-filter-group.has-active .mbs-filter-toggle-count {
    background: #9b191a;
    color: #fff;
}

.mbs-filter-group.has-active.is-open .mbs-filter-toggle {
    background: none;
    color: #9b191a;
}

.mbs-filter-caret {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.mbs-filter-group.is-open .mbs-filter-caret {
    transform: rotate(180deg);
}

/* --- Full-width dropdown panel -------------------------------------------- */

.mbs-filter-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 14px);
    z-index: 60;
    max-width: 990px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.14);
    padding: 0 28px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mbs-filter-group.is-open .mbs-filter-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mbs-filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.mbs-filter-panel-title {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.mbs-filter-panel-close {
    flex: 0 0 auto;
    background: #f2e8e1;
    border: 0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mbs-filter-panel-close:hover {
    background: #e8d7c9;
}

.mbs-filter-panel-close:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* --- Options grid --------------------------------------------------------- */

.mbs-filter-options {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 16px;
    max-height: 340px;
    overflow-y: auto;
}

.mbs-filter-option {
    margin: 0;
}

.mbs-filter-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: var(--clb-font-size-small, 14px);
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mbs-filter-option label:hover {
    background: #f7f2ee;
}

.mbs-filter-option label:has(input:focus-visible) {
    outline: 2px solid #1a1a1a;
    outline-offset: 1px;
}

.mbs-filter-option label:has(input:checked) {
    background: #f2e8e1;
}

/* Native checkbox is visually hidden; the swatch / label is the control */
.mbs-filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* Colour swatch chip */
.mbs-filter-swatch {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.14);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mbs-filter-option input:checked + .mbs-filter-swatch {
    border-color: #9b191a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #9b191a;
}

/* Custom checkbox for text options (Finishes / Style — no swatch) */
.mbs-filter-check {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1.5px solid #999;
    border-radius: 5px;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mbs-filter-check::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.mbs-filter-option input:checked + .mbs-filter-check {
    background: #9b191a;
    border-color: #9b191a;
}

.mbs-filter-option input:checked + .mbs-filter-check::after {
    opacity: 1;
}

/* Selected state for text options label */
.mbs-filter-option input:checked ~ .mbs-filter-label {
    font-weight: 600;
}

/* Counts are not shown in this design (kept in the DOM for logic) */
.mbs-filter-count {
    display: none;
}

/* Zero-count terms are hidden */
.mbs-filter-option.is-empty {
    display: none;
}

/* Mobile-only chrome — hidden on desktop */
.mbs-filter-open,
.mbs-filter-drawer-head,
.mbs-filter-actions {
    display: none;
}

/* --- Results -------------------------------------------------------------- */

/* Active-filter chips */
.mbs-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
}

.mbs-filter-chips[hidden] {
    display: none;
}

.mbs-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: #f2e8e1;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--clb-font-size-small, 14px);
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mbs-filter-chip:hover {
    background: #e8d7c9;
}

.mbs-filter-chip-x {
    font-size: 18px;
    line-height: 1;
    color: #666;
}

.mbs-filter-chip:hover .mbs-filter-chip-x {
    color: #1a1a1a;
}

.mbs-filter-chipclear {
    border: 1px solid #1a1a1a;
    background: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--clb-font-size-small, 14px);
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mbs-filter-chipclear:hover {
    background: #1a1a1a;
    color: #fff;
}

.mbs-filter-resultcount {
    margin: 0 0 16px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--clb-font-size-small, 14px);
    color: #444;
}

.mbs-filter-grid {
    transition: opacity 0.2s ease;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Neutralise WooCommerce's float/width so the grid controls the layout */
.mbs-filter-grid > li,
.mbs-filter-grid > li.product {
    width: auto;
    margin: 0;
    float: none;
    clear: none;
    position: relative;
    z-index: 1;
}

/* Keep Ohio thumbnail overlay links scoped to the image (not the whole filter) */
.mbs-filter-grid .product-item,
.mbs-filter-grid .product-item-thumbnail,
.mbs-filter-grid .image-holder {
    position: relative;
}

.mbs-filter-grid .image-holder > a {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

.mbs-filter-results {
    position: relative;
    z-index: 1;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .mbs-filter-grid {
        grid-template-columns: 1fr;
    }
}

.mbs-filter.is-loading .mbs-filter-grid {
    opacity: 0.45;
    pointer-events: none;
}

.mbs-filter-empty {
    padding: 40px 0;
    text-align: center;
    color: #444;
}

.mbs-filter-more {
    text-align: center;
    margin-top: 30px;
}

.mbs-filter-loadmore {
    border: 1px solid #1a1a1a;
    background: none;
    border-radius: 25px;
    padding: 12px 34px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--clb-font-size-small, 14px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mbs-filter-loadmore:hover {
    background: #1a1a1a;
    color: #fff;
}

.mbs-filter-loadmore:disabled {
    opacity: 0.5;
    cursor: default;
}

/* --- Mobile drawer (≤ 768px) ---------------------------------------------- */

@media (max-width: 768px) {

    .mbs-filter-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        margin-bottom: 16px;
        z-index: auto;
    }

    .mbs-filter-by {
        display: none;
    }

    .mbs-filter-open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        order: 1;
        width: 100%;
        border: 1px solid #1a1a1a;
        background: #f2e8e1;
        border-radius: 10px;
        padding: 14px 16px;
        font-family: "DM Sans", sans-serif;
        font-size: var(--clb-font-size-small, 14px);
        font-weight: 600;
        color: #1a1a1a;
        cursor: pointer;
        margin-bottom: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .mbs-filter-open.has-active {
        border-color: #9b191a;
        color: #9b191a;
    }

    .mbs-filter-open-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 11px;
        background: #9b191a;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
    }

    .mbs-filter-open-count[hidden] {
        display: none;
    }

    .mbs-filter-sort {
        order: 2;
        grid-column: auto;
        justify-self: stretch;
        margin: 0 0 20px;
        width: 100%;
    }

    .mbs-filter-sort-inner {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 34px 12px 14px;
        border-radius: 10px;
    }

    .mbs-filter-sort-select {
        flex: 1 1 auto;
        max-width: none;
    }

    .mbs-filter-drawer {
        order: 3;
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }

    /* Dimmed backdrop */
    .mbs-filter-drawer-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0, 0, 0, 0.4);
    }

    .mbs-filter-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        z-index: 100000;
        background: #fff;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
        padding-top: env(safe-area-inset-top, 0px);
    }

    .mbs-filter-drawer-open .mbs-filter-drawer {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mbs-filter-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        padding: 18px 20px;
        border-bottom: 1px solid #eee;
        font-family: "DM Sans", sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
    }

    .mbs-filter-close {
        background: #f2e8e1;
        border: 0;
        border-radius: 8px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        line-height: 1;
        color: #1a1a1a;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mbs-filter-groups {
        display: block;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 4px 20px 8px;
        gap: 0;
    }

    .mbs-filter-group {
        border-bottom: 1px solid #eee;
    }

    .mbs-filter-toggle {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        justify-content: flex-start;
        padding: 14px 0;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mbs-filter-toggle:hover,
    .mbs-filter-toggle:focus-visible {
        color: #1a1a1a;
        box-shadow: none;
        outline: none;
    }

    .mbs-filter-toggle-label {
        flex: 1 1 auto;
        order: 1;
    }

    .mbs-filter-toggle-count {
        order: 2;
    }

    /* Caret on the right for mobile accordion */
    .mbs-filter-caret {
        order: 3;
        margin-left: 8px;
        width: 14px;
        height: 14px;
    }

    .mbs-filter-group.is-open .mbs-filter-toggle,
    .mbs-filter-group.has-active .mbs-filter-toggle,
    .mbs-filter-group.has-active.is-open .mbs-filter-toggle {
        border: 0;
        background: none;
        color: #1a1a1a;
        box-shadow: none;
        font-weight: 600;
    }

    .mbs-filter-group.has-active .mbs-filter-toggle-count {
        background: #9b191a;
        color: #fff;
    }

    .mbs-filter-panel {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0 0 12px;
        max-width: none;
        margin: 0;
        left: auto;
        right: auto;
        top: auto;
    }

    .mbs-filter-group.is-open .mbs-filter-panel {
        display: block;
    }

    .mbs-filter-panel-head {
        display: none;
    }

    .mbs-filter-panel-close {
        display: none;
    }

    .mbs-filter-options {
        grid-template-columns: 1fr;
        gap: 2px;
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .mbs-filter-option label {
        min-height: 48px;
        padding: 12px 4px;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .mbs-filter-option label:hover {
        background: none;
    }

    .mbs-filter-option label:has(input:checked) {
        background: #f7f2ee;
    }

    .mbs-filter-swatch {
        width: 28px;
        height: 28px;
    }

    .mbs-filter-actions {
        display: flex;
        gap: 12px;
        flex: 0 0 auto;
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #eee;
        background: #fff;
    }

    .mbs-filter-apply {
        flex: 1;
        background: #9b191a;
        color: #fff;
        border: 0;
        border-radius: 10px;
        padding: 16px;
        font-family: "DM Sans", sans-serif;
        font-size: var(--clb-font-size-small, 14px);
        font-weight: 600;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mbs-filter-clear {
        flex: 0 0 auto;
        background: none;
        border: 1px solid #1a1a1a;
        border-radius: 10px;
        padding: 16px 20px;
        font-family: "DM Sans", sans-serif;
        font-size: var(--clb-font-size-small, 14px);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* =============================================================================
   19. DISABLED / COMMENTED-OUT RULES (reference only)
============================================================================= */

/*
-- Hide all variation swatches in product listings --
.cfvsw-swatches-container.cfvsw-product-container {
    display: none;
}
*/

/*
-- Dark outlined button variant --
a.ohio-widget.button.-outlined {
    color: #111013 !important;
    border-color: #111013 !important;
}
*/

/*
-- Global dark text colour --
h2, h3, h4, h5, h6, p, div, span {
    color: #1f3735;
}
*/


/* =============================================================================
   20. CUSTOM FONT OVERRIDE
   Forces bootstrap-icons to fall back to Arial (prevents icon font loading).
============================================================================= */

@font-face {
    font-family: "bootstrap-icons" !important;
    src: local("Arial") !important;
    font-weight: normal !important;
    font-style: normal !important;
}


/* =============================================================================
   21. DISABLE THEME LINK-UNDERLINE HOVER
   Removes Ohio's animated underline that grows on hover / -dashed links.
============================================================================= */

.links-underline a:not(.button):not(.tag):not(.-undash):hover,
.links-underline a:not(.button):not(.tag):not(.-undash).-dashed {
    background-image: none !important;
    background-size: 0 0 !important;
}