/* =====================================================
   Multi Shop Builder — Frontend Styles v2.0
   ===================================================== */

/* CSS Variables injected per-store via PHP */
/* --msb-color-primary / --msb-color-secondary / --msb-color-accent */

/* ── Reset helpers ── */
.msb-widget-inner { width: 100%; }
.msb-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ─────────────────────────────────────────────────────
   EDITOR PLACEHOLDER
───────────────────────────────────────────────────── */
.msb-editor-placeholder {
    background: linear-gradient(135deg,#f0f6ff 0%,#eef4fb 100%);
    border: 2px dashed #a0c0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #446;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.msb-editor-placeholder__title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

/* ─────────────────────────────────────────────────────
   PRODUCT GRID
───────────────────────────────────────────────────── */

/* Hard-reset: stop any theme/WC rule from re-adding underlines inside our grid.
   Uses !important so this wins even when Elementor CSS regeneration causes a
   load-order race on the first page view after a save. */
.msb-product-grid__inner ul.products li.product a,
.msb-product-grid__inner ul.products li.product .button {
    text-decoration: none !important;
}
/* Hide the WooCommerce "View Cart" link that appears after add-to-cart */
.msb-product-grid__inner .added_to_cart { display: none !important; }

.msb-product-grid__inner ul.products {
    display: grid;
    grid-template-columns: repeat(var(--msb-columns, 3), 1fr);
    list-style: none;
    margin: 0 !important;
    padding: 0;
}
.msb-product-grid__inner ul.products li.product {
    margin: 0 !important;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}
.msb-product-grid__inner ul.products li.product:hover { transform: translateY(-2px); }

/* Image hover effects */
.msb-grid--hover-zoom ul.products li.product img { transition: transform 0.35s ease; }
.msb-grid--hover-zoom ul.products li.product:hover img { transform: scale(1.08); }
.msb-grid--hover-fade ul.products li.product img { transition: opacity 0.3s; }
.msb-grid--hover-fade ul.products li.product:hover img { opacity: 0.75; }
.msb-grid--hover-flip .woocommerce-LoopProduct-link { position: relative; display: block; overflow: hidden; }
.msb-grid--hover-flip .woocommerce-LoopProduct-link img:nth-child(2) {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.35s;
}
.msb-grid--hover-flip ul.products li.product:hover .woocommerce-LoopProduct-link img:nth-child(2) { opacity: 1; }
.msb-grid--hover-flip ul.products li.product:hover .woocommerce-LoopProduct-link img:first-child { opacity: 0; }

/* Button group visibility — on_hover fades in on card hover */
.msb-grid--btn-display-on_hover ul.products li.product .msb-btn-group {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
.msb-grid--btn-display-on_hover ul.products li.product:hover .msb-btn-group {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Card content alignment */
.msb-grid--align-center ul.products li.product { text-align: center; }
.msb-grid--align-center ul.products li.product .price,
.msb-grid--align-center ul.products li.product .star-rating { margin-left: auto; margin-right: auto; }
.msb-grid--align-center ul.products li.product .msb-btn-group { justify-content: center; }
.msb-grid--align-center ul.products li.product .msb-badges { left: 50%; transform: translateX(-50%); right: auto; }

.msb-grid--align-right ul.products li.product { text-align: right; }
.msb-grid--align-right ul.products li.product .msb-btn-group { justify-content: flex-end; }
.msb-grid--align-right ul.products li.product .msb-badges { left: auto; right: 10px; }

/* Button styles on grid */
.msb-grid--atc-style-outline ul.products li.product .button {
    background: transparent !important;
    border: 2px solid var(--msb-color-primary, #0071a1) !important;
    color: var(--msb-color-primary, #0071a1) !important;
}
.msb-grid--atc-style-outline ul.products li.product .button:hover {
    background: var(--msb-color-primary, #0071a1) !important;
    color: #fff !important;
}
.msb-grid--atc-style-text ul.products li.product .button {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--msb-color-primary, #0071a1) !important;
    text-decoration: underline;
    padding-left: 0; padding-right: 0;
}
.msb-grid--atc-style-icon ul.products li.product .button .button-text { display: none; }
.msb-grid--atc-style-icon ul.products li.product .button::before {
    content: '🛒';
    font-size: 18px;
}

/* Button width */
.msb-grid--atc-width-full ul.products li.product .button { width: 100%; justify-content: center; }

/* ── Button group wrapper ── */
.msb-btn-group {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
/* inline: ATC + QV side by side */
.msb-btn-group--inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
.msb-btn-group--inline .button,
.msb-btn-group--inline .msb-quick-view-btn {
    flex: 1 1 auto;
}
/* stacked: ATC on top, QV below */
.msb-btn-group--stacked {
    flex-direction: column;
}
.msb-btn-group--stacked .button,
.msb-btn-group--stacked .msb-quick-view-btn {
    width: 100%;
    justify-content: center;
}
/* icon_row: compact circular icon-only buttons */
.msb-btn-group--icon_row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.msb-btn-group--icon_row .button,
.msb-btn-group--icon_row .msb-card-wishlist,
.msb-btn-group--icon_row .msb-quick-view-btn {
    width: 38px; height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    font-size: 0; /* hide text, show icon only */
    min-width: unset;
    overflow: hidden;
}
/* Show SVG icons at normal size inside icon_row */
.msb-btn-group--icon_row .button::before { font-size: 16px; }
.msb-btn-group--icon_row .msb-card-wishlist svg,
.msb-btn-group--icon_row .msb-quick-view-btn svg { width: 16px; height: 16px; display: block; }
/* Quick View button inside button group — text only, no icon, no overlay behaviour */
.msb-btn-group .msb-quick-view-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.msb-btn-group .msb-quick-view-btn:hover {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border-color: var(--msb-color-primary, #0071a1);
}
/* Stacked mode: make wishlist full-width to match other buttons */
.msb-btn-group--stacked .msb-card-wishlist {
    width: 100%;
    border-radius: 4px;
    justify-content: center;
}
.msb-btn-group a,
.msb-btn-group .button { text-decoration: none !important; }

/* ── View toggle (grid / list) ── */
.msb-view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    justify-content: flex-end;
}
.msb-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0 !important;
    line-height: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}
.msb-view-toggle__btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
}
.msb-view-toggle__btn:hover {
    border-color: var(--msb-color-primary, #0071a1);
    color: var(--msb-color-primary, #0071a1);
}
.msb-view-toggle__btn.is-active {
    background: var(--msb-color-primary, #0071a1);
    border-color: var(--msb-color-primary, #0071a1);
    color: #fff;
}
/* List layout: product cards become horizontal rows */
.msb-product-grid__inner.msb-grid--layout-list ul.products {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product {
    width: 100% !important;
    float: none !important;
    display: grid !important;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto;
    align-items: start;
    gap: 0 20px;
    margin: 0 !important;
}
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .woocommerce-loop-product__link {
    grid-column: 1;
    grid-row: 1 / 10;
    display: block;
}
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .woocommerce-loop-product__title,
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .price,
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .star-rating,
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .msb-btn-group,
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .msb-badges {
    grid-column: 2;
}
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .msb-badges {
    position: static;
    margin-bottom: 6px;
}
.msb-product-grid__inner.msb-grid--layout-list ul.products li.product .msb-btn-group {
    margin-top: auto;
}

/* ── Badges ── */
.msb-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 4;
    pointer-events: none;
}
.msb-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    color: #fff;
    line-height: 1.4;
}
.msb-badge--sale     { background: #e74c3c; }
.msb-badge--new      { background: #27ae60; }
.msb-badge--featured { background: #f39c12; }

/* ── Wishlist button ── */
/* Base styles (used both in button group and standalone corner) */
.msb-card-wishlist {
    background: rgba(255,255,255,.92);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.msb-card-wishlist:hover { background: #fee2e2; border-color: #e74c3c; color: #e74c3c; }
.msb-card-wishlist.is-active { background: #fee2e2; color: #e74c3c; border-color: #e74c3c; }
/* When inside the button group — override any absolute positioning */
.msb-btn-group .msb-card-wishlist {
    position: static;
    transform: none;
    backdrop-filter: none;
    z-index: auto;
}

/* ── Quick View — circular button, top-right of product image ── */
.msb-qv-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #374151;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s, color 0.15s, border-color 0.15s;
    z-index: 5;
    pointer-events: none;
    padding: 0 !important;
    line-height: 0;
    box-sizing: border-box;
}
.msb-qv-overlay-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
}
/* Make the product image container relative so the button can anchor to it */
.msb-product-grid__inner ul.products li.product .woocommerce-LoopProduct-link {
    display: block;
    position: relative;
    overflow: hidden;
}
.msb-product-grid__inner ul.products li.product:hover .msb-qv-overlay-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.msb-qv-overlay-btn:hover {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border-color: var(--msb-color-primary, #0071a1);
}

/* ── Image hover overlay (colour tint layer) ── */
.msb-product-grid__inner ul.products li.product .woocommerce-LoopProduct-link .msb-image-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.25s;
    pointer-events: none;
    z-index: 3;
}
.msb-product-grid__inner ul.products li.product:hover .woocommerce-LoopProduct-link .msb-image-overlay {
    background: rgba(0,0,0,.08);
}

/* ── List layout ── */
.msb-grid--layout-list ul.products {
    grid-template-columns: 1fr !important;
}
.msb-grid--layout-list ul.products li.product {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}
.msb-grid--layout-list ul.products li.product .woocommerce-LoopProduct-link img {
    width: 160px;
    flex-shrink: 0;
    object-fit: cover;
}

/* ─────────────────────────────────────────────────────
   PRODUCT SEARCH
───────────────────────────────────────────────────── */
.msb-search { position: relative; }
.msb-search__form { width: 100%; }
.msb-search__wrap {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.msb-search__wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(0,113,161,.15);
}
.msb-search__input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}
.msb-search__btn {
    padding: 10px 16px;
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border: none !important;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}
.msb-search__btn:hover { background: var(--msb-color-secondary, #23282d); }

.msb-search__results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
}
.msb-search__results[hidden] { display: none; }
.msb-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1d2327;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}
.msb-search-result:last-child { border-bottom: none; }
.msb-search-result:hover { background: #f9fafb; }
.msb-search-result__thumb {
    width: 46px; height: 46px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #eee;
}
.msb-search-result__info { flex: 1; min-width: 0; }
.msb-search-result__title {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msb-search-result__price { font-size: 12px; color: var(--msb-color-primary, #0071a1); margin-top: 2px; }
.msb-search-loading, .msb-search-no-results {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* ─────────────────────────────────────────────────────
   SORTING BAR
───────────────────────────────────────────────────── */
.msb-sorting-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px 0;
}

/* ─────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────── */
.msb-pagination {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}
.msb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #444;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
    cursor: pointer;
}
.msb-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}
.msb-pagination .page-numbers.current {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border-color: var(--msb-color-primary, #0071a1);
    font-weight: 700;
    cursor: default;
}
.msb-pagination .page-numbers:hover:not(.current):not(.dots) {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border-color: var(--msb-color-primary, #0071a1);
}
/* WooCommerce wraps pagination in nav > ul > li */
.woocommerce-pagination .page-numbers { display: flex; list-style: none; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; justify-content: center; }
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span { display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 6px;border:1px solid #ddd;border-radius:6px;text-decoration:none;font-size:14px;color:#444;background:#fff;transition:background .2s,color .2s,border-color .2s; }
.woocommerce-pagination .page-numbers li span.current { background:var(--msb-color-primary,#0071a1);color:#fff;border-color:var(--msb-color-primary,#0071a1);font-weight:700; }
.woocommerce-pagination .page-numbers li a:hover { background:var(--msb-color-primary,#0071a1);color:#fff;border-color:var(--msb-color-primary,#0071a1); }
.msb-load-more {
    display: block;
    margin: 0 auto;
    padding: 12px 36px;
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}
.msb-load-more:hover { opacity: 0.88; transform: translateY(-1px); }
.msb-load-more.loading { opacity: 0.6; pointer-events: none; }

/* ─────────────────────────────────────────────────────
   PRODUCT FILTER
───────────────────────────────────────────────────── */
.msb-filter { padding: 0; }
.msb-filter--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.msb-filter__section { margin-bottom: 24px; }
.msb-filter--horizontal .msb-filter__section { margin-bottom: 0; }

.msb-filter__heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    color: #1d2327;
    padding: 0;
    background: none;
    border: none;
    cursor: default;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.msb-filter--collapsible .msb-filter__heading { cursor: pointer; }
.msb-filter--collapsible .msb-filter__heading:hover { color: var(--msb-color-primary, #0071a1); }
.msb-filter__chevron { transition: transform 0.2s; }
.msb-filter__heading[aria-expanded="false"] .msb-filter__chevron { transform: rotate(-90deg); }
.msb-filter__section-body { overflow: hidden; transition: max-height 0.3s ease; }

.msb-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.msb-filter__item { margin-bottom: 6px; }
.msb-filter__list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.msb-filter__list label:hover { background: #f3f4f6; }
.msb-filter__count { color: #9ca3af; font-size: 11px; margin-left: auto; }
.msb-filter__stars { color: #f59e0b; letter-spacing: 2px; }

/* Attribute search */
.msb-filter__attr-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* Toggle buttons */
.msb-filter__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.msb-filter__btn {
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.msb-filter__btn:hover { border-color: var(--msb-color-primary, #0071a1); color: var(--msb-color-primary, #0071a1); }
.msb-filter__btn.is-active {
    background: var(--msb-color-primary, #0071a1);
    border-color: var(--msb-color-primary, #0071a1);
    color: #fff;
}

/* Dropdown */
.msb-filter__select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

/* Reset */
.msb-filter__reset {
    margin-top: 16px;
    width: 100%;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.msb-filter__reset:hover { background: #e5e7eb; }

/* ── Filter Drawer ── */

/* Trigger button — hidden in static mode; shown in drawer mode via prefix_class CSS */
.msb-filter-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #1d2327;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.2;
}
.msb-filter-trigger:hover {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    border-color: var(--msb-color-primary, #0071a1);
}
.msb-filter-trigger__badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}
.msb-filter-trigger__badge.has-count { display: inline-flex; }

/* Overlay */
.msb-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.msb-filter-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Drawer header — hidden in static mode */
.msb-filter-drawer__header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: inherit;
}
.msb-filter-drawer__title { font-size: 15px; font-weight: 600; color: #1d2327; }
.msb-filter-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.msb-filter-drawer__close:hover { background: #f3f4f6; color: #1d2327; }

/* Drawer panel — in-flow in static mode */
.msb-filter-drawer {
    display: flex;
    flex-direction: column;
    /* --msb-dw / --msb-dmh set by Elementor slider controls */
}
.msb-filter-drawer > .msb-filter { flex: 1; overflow-y: auto; padding: 16px; }

/* ── Position-variant custom properties (inherited by .msb-filter-drawer) ── */
.msb-filter-wrap--pos-left   { --msb-dc-t: translateX(-100%); }
.msb-filter-wrap--pos-right  { --msb-dc-t: translateX(100%); }
.msb-filter-wrap--pos-bottom { --msb-dc-t: translateY(100%); }
.msb-filter-wrap--anim-fade       { --msb-dc-t: none; --msb-dc-o: 0; }
.msb-filter-wrap--anim-fade-slide { --msb-dc-o: 0; }

/* ── Drawer-active: shared rules applied by each active breakpoint block below ── */
/* (position: fixed makes the drawer panel float over the page) */
.msb-filter-wrap--pos-left   .msb-filter-drawer { top: 0; left: 0; bottom: 0; right: auto; width: var(--msb-dw, 300px); height: 100%; }
.msb-filter-wrap--pos-right  .msb-filter-drawer { top: 0; right: 0; bottom: 0; left: auto; width: var(--msb-dw, 300px); height: 100%; }
.msb-filter-wrap--pos-bottom .msb-filter-drawer { bottom: 0; left: 0; right: 0; top: auto; width: 100%; height: auto; max-height: var(--msb-dmh, 80vh); border-radius: 12px 12px 0 0; }

/* Open state — always wins */
.msb-filter-drawer.is-open { transform: none !important; opacity: 1 !important; pointer-events: auto; }

/* ── Desktop: static mode — always hide trigger ── */
.msb-fmode-static .msb-filter-trigger { display: none !important; }

/* ── Desktop: drawer mode ── */
.msb-fmode-drawer .msb-filter-trigger         { display: inline-flex; }
.msb-fmode-drawer .msb-filter-drawer__header  { display: flex; }
.msb-fmode-drawer .msb-filter-overlay         { display: block; }
.msb-fmode-drawer .msb-filter-drawer          { position: fixed; z-index: 99999; background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.15); overflow: hidden; transition: transform 0.3s ease, opacity 0.3s ease; }
/* Desktop drawer: closed state (only meaningful at this breakpoint since position:fixed is set here) */
.msb-fmode-drawer .msb-filter-drawer:not(.is-open) {
    transform: var(--msb-dc-t, translateX(-100%));
    opacity: var(--msb-dc-o, 1);
    pointer-events: none;
}
/* ── Tablet: drawer / static override ── */
/* All tablet rules use !important so they win over base + desktop rules at ≤1024px */
@media (max-width: 1024px) {
    .msb-fmode-tablet-drawer .msb-filter-trigger        { display: inline-flex !important; }
    .msb-fmode-tablet-drawer .msb-filter-drawer__header { display: flex !important; }
    .msb-fmode-tablet-drawer .msb-filter-overlay        { display: block !important; }
    .msb-fmode-tablet-drawer .msb-filter-drawer         { position: fixed !important; z-index: 99999; background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.15); overflow: hidden; transition: transform 0.3s ease, opacity 0.3s ease; }
    .msb-fmode-tablet-drawer .msb-filter-drawer:not(.is-open) {
        transform: var(--msb-dc-t, translateX(-100%)) !important;
        opacity: var(--msb-dc-o, 1) !important;
        pointer-events: none !important;
    }
    .msb-fmode-tablet-static .msb-filter-trigger        { display: none !important; }
    .msb-fmode-tablet-static .msb-filter-drawer__header { display: none !important; }
    .msb-fmode-tablet-static .msb-filter-overlay        { display: none !important; }
    .msb-fmode-tablet-static .msb-filter-drawer         { position: static !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
}

/* ── Mobile: drawer / static override ── */
/* Mobile rules use !important and come AFTER tablet in source, so they always win at ≤767px */
@media (max-width: 767px) {
    .msb-fmode-mobile-drawer .msb-filter-trigger        { display: inline-flex !important; }
    .msb-fmode-mobile-drawer .msb-filter-drawer__header { display: flex !important; }
    .msb-fmode-mobile-drawer .msb-filter-overlay        { display: block !important; }
    .msb-fmode-mobile-drawer .msb-filter-drawer         { position: fixed !important; z-index: 99999; background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.15); overflow: hidden; transition: transform 0.3s ease, opacity 0.3s ease; }
    .msb-fmode-mobile-drawer .msb-filter-drawer:not(.is-open) {
        transform: var(--msb-dc-t, translateX(-100%)) !important;
        opacity: var(--msb-dc-o, 1) !important;
        pointer-events: none !important;
    }
    .msb-fmode-mobile-static .msb-filter-trigger        { display: none !important; }
    .msb-fmode-mobile-static .msb-filter-drawer__header { display: none !important; }
    .msb-fmode-mobile-static .msb-filter-overlay        { display: none !important; }
    .msb-fmode-mobile-static .msb-filter-drawer         { position: static !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
}

/* ─────────────────────────────────────────────────────
   PRICE SLIDER
───────────────────────────────────────────────────── */
.msb-price-slider { position: relative; padding: 4px 0 8px; }
.msb-price-slider__track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 18px 0 8px;
}
.msb-price-slider__range {
    position: absolute;
    height: 100%;
    background: var(--msb-color-primary, #0071a1);
    border-radius: 2px;
}
.msb-price-slider__input {
    position: absolute;
    width: 100%;
    top: 14px;
    height: 4px;
    appearance: none;
    background: transparent;
    pointer-events: none;
}
.msb-price-slider__input::-webkit-slider-thumb {
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--msb-color-primary, #0071a1);
    pointer-events: all;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform 0.15s;
}
.msb-price-slider__input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.msb-price-slider__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    font-size: 12px;
    color: #374151;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────
   CATEGORY GRID
───────────────────────────────────────────────────── */
.msb-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--msb-columns, 3), 1fr);
    gap: 20px;
}
.msb-cat-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #1d2327;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.msb-cat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); color: #1d2327; }
.msb-cat-card__image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}
.msb-cat-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.msb-cat-card__name { font-weight: 700; font-size: 14px; }
.msb-cat-card__count { font-size: 12px; color: #9ca3af; }

/* ─────────────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────────────── */
.msb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.msb-breadcrumb a { color: #6b7280; text-decoration: none; transition: color 0.15s; }
.msb-breadcrumb a:hover { color: var(--msb-color-primary, #0071a1); }
.msb-breadcrumb__sep { color: #d1d5db; }
.msb-breadcrumb__current { color: #1d2327; font-weight: 600; }

/* ─────────────────────────────────────────────────────
   STOCK STATUS
───────────────────────────────────────────────────── */
.msb-stock-status { display: flex; flex-direction: column; gap: 6px; }
.msb-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}
.msb-stock-badge--in  { background: #d1fae5; color: #065f46; }
.msb-stock-badge--low { background: #fef3c7; color: #92400e; }
.msb-stock-badge--out { background: #fee2e2; color: #991b1b; }
.msb-stock-count { font-size: 12px; color: #6b7280; }
.msb-stock-bar { margin-top: 4px; }
.msb-stock-bar__track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.msb-stock-bar__fill {
    height: 100%;
    background: var(--msb-color-primary, #0071a1);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.msb-stock-bar__fill--low { background: #ef4444; }

/* ─────────────────────────────────────────────────────
   SALE COUNTDOWN
───────────────────────────────────────────────────── */
.msb-countdown { display: inline-block; }
.msb-countdown__heading {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.msb-countdown__boxes {
    display: flex;
    gap: 8px;
    align-items: center;
}
.msb-countdown__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 52px;
}
.msb-countdown__number { font-size: 22px; font-weight: 700; line-height: 1; }
.msb-countdown__label  { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: .75; margin-top: 3px; }
.msb-countdown--expired { opacity: .6; }

/* ─────────────────────────────────────────────────────
   WISHLIST BUTTON
───────────────────────────────────────────────────── */
.msb-wishlist-wrap { display: inline-block; }
.msb-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.msb-wishlist-btn:hover { border-color: #ef4444; color: #ef4444; }
.msb-wishlist-btn.is-active { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
.msb-wishlist-btn.is-active .msb-wishlist-icon { fill: #ef4444; }
.msb-wishlist-icon { flex-shrink: 0; transition: fill 0.2s; }

/* ─────────────────────────────────────────────────────
   PRODUCT SKU
───────────────────────────────────────────────────── */
.msb-sku { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.msb-sku__label { font-weight: 700; color: #6b7280; }
.msb-sku__value { font-family: monospace; font-size: 13px; }

/* ─────────────────────────────────────────────────────
   MINI CART
───────────────────────────────────────────────────── */
/* ── Mini Cart ── */
.msb-mini-cart { position: relative; display: inline-block; }

.msb-mini-cart__trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: none; cursor: pointer; padding: 8px;
    position: relative; color: inherit;
    transition: background-color 0.18s ease, color 0.18s ease;
    text-decoration: none;
}

/* Icon wrapper keeps badge anchored to icon even when label/total follow */
.msb-mini-cart__icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msb-mini-cart__icon { display: block; transition: stroke 0.18s ease, fill 0.18s ease, color 0.18s ease; }
.msb-mini-cart__icon-wrap svg { display: block; fill: currentColor; transition: fill 0.18s ease; }
.msb-mini-cart__icon-wrap i { transition: color 0.18s ease; }

.msb-mini-cart__label { font-size: 14px; font-weight: 600; transition: color 0.18s ease; }
.msb-mini-cart__total { font-size: 14px; font-weight: 600; transition: color 0.18s ease; }

/* Count badge */
.msb-mini-cart__count {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px;
    background: var(--msb-color-accent, #e2401c); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    pointer-events: none;
}

/* Dropdown */
.msb-mini-cart__dropdown {
    position: absolute; top: calc(100% + 8px);
    width: 320px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    z-index: 9999; padding: 16px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* Slide animation (default) */
.msb-mini-cart:not([data-animation="fade"]) .msb-mini-cart__dropdown { transform: translateY(-10px); }
.msb-mini-cart:not([data-animation="fade"]).is-open .msb-mini-cart__dropdown { transform: translateY(0); }
/* Fade animation */
.msb-mini-cart[data-animation="fade"] .msb-mini-cart__dropdown { transform: none; }

/* Alignment */
.msb-mini-cart[data-dropdown="right"]  .msb-mini-cart__dropdown { right: 0; }
.msb-mini-cart[data-dropdown="left"]   .msb-mini-cart__dropdown { left: 0; }
.msb-mini-cart[data-dropdown="center"] .msb-mini-cart__dropdown { left: 50%; transform: translateX(-50%) translateY(-10px); }
.msb-mini-cart[data-dropdown="center"].is-open .msb-mini-cart__dropdown { transform: translateX(-50%) translateY(0); }

.msb-mini-cart.is-open .msb-mini-cart__dropdown { opacity: 1; visibility: visible; pointer-events: auto; }

/* Close button */
.msb-mini-cart__close {
    position: absolute; top: 10px; right: 12px;
    background: transparent; border: none !important; outline: none; cursor: pointer; padding: 0;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.18s ease;
    line-height: 0;
}
.msb-mini-cart__close svg {
    width: 14px; height: 14px; stroke: #9ca3af; display: block;
    transition: stroke 0.18s ease; pointer-events: none; flex-shrink: 0;
}
.msb-mini-cart__close:hover { background: #f3f4f6; }
.msb-mini-cart__close:hover svg { stroke: #1a1a1a; }

/* Empty state */
.msb-mini-cart__empty { color: #9ca3af; text-align: center; padding: 16px 0; font-size: 14px; margin: 0; }

/* Items list */
.msb-mini-cart__items { list-style: none; padding: 0; margin: 0 0 12px; max-height: 240px; overflow-y: auto; }
.msb-mini-cart__item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px;
}
.msb-mini-cart__item:last-child { border-bottom: none; }
.msb-mini-cart__item-image img {
    width: 44px; height: 44px; object-fit: cover;
    border-radius: 4px; border: 1px solid #e5e7eb; display: block; flex-shrink: 0;
}
.msb-mini-cart__item-info { flex: 1; min-width: 0; }
.msb-mini-cart__item-name {
    font-weight: 600; color: #1d2327; text-decoration: none;
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    transition: color 0.18s ease;
}
.msb-mini-cart__item-name:hover { color: var(--msb-color-primary, #0071a1); }
.msb-mini-cart__item-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.msb-mini-cart__item-qty { color: #9ca3af; font-size: 12px; }
.msb-mini-cart__item-price { font-weight: 700; color: #1a1a1a; font-size: 12px; }

/* Subtotal */
.msb-mini-cart__subtotal {
    font-size: 13px; font-weight: 700; padding: 8px 0;
    border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
    color: #555;
}
.msb-mini-cart__subtotal strong { color: #1a1a1a; }

/* Action buttons */
.msb-mini-cart__actions { display: flex; gap: 8px; }
.msb-mini-cart__view-cart,
.msb-mini-cart__checkout {
    flex: 1; text-align: center; font-size: 13px; font-weight: 600;
    padding: 9px 12px; border-radius: 6px; text-decoration: none; display: block;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.msb-mini-cart__view-cart { background: #f5f5f5; color: #1a1a1a; border: 1px solid #e0e0e0; }
.msb-mini-cart__view-cart:hover { background: #e9e9e9; }
.msb-mini-cart__checkout { background: #1a1a1a; color: #fff; border: 1px solid transparent; }
.msb-mini-cart__checkout:hover { background: #333; color: #fff; }

/* ─────────────────────────────────────────────────────
   STORE NOTICE
───────────────────────────────────────────────────── */
.msb-store-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}
.msb-store-notice--success { background: #f0fdf4; color: #166534; border-left-color: #22c55e; }
.msb-store-notice--warning { background: #fffbeb; color: #92400e; border-left-color: #f59e0b; }
.msb-store-notice--error   { background: #fef2f2; color: #991b1b; border-left-color: #ef4444; }
.msb-store-notice__dismiss {
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: inherit; opacity: .5;
    flex-shrink: 0; line-height: 1;
    transition: opacity 0.15s;
}
.msb-store-notice__dismiss:hover { opacity: 1; }

/* ─────────────────────────────────────────────────────
   EMPTY CART
───────────────────────────────────────────────────── */
.msb-empty-cart {
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.msb-empty-cart__icon { color: #d1d5db; }
.msb-empty-cart__icon svg { width: 80px; height: 80px; }
.msb-empty-cart__heading { font-size: 22px; font-weight: 700; margin: 0; }
.msb-empty-cart__subtext { color: #6b7280; max-width: 360px; margin: 0; font-size: 14px; line-height: 1.6; }
.msb-empty-cart__btn { padding: 12px 32px; font-size: 15px; font-weight: 600; }

/* ─────────────────────────────────────────────────────
   UPSELLS / CROSS-SELLS
───────────────────────────────────────────────────── */
.msb-upsells, .msb-cross-sells { margin-top: 48px; }
.msb-upsells__heading,
.msb-cross-sells__heading { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.msb-upsells__grid,
.msb-cross-sells__grid {
    display: grid;
    grid-template-columns: repeat(var(--msb-columns, 4), 1fr);
    gap: 20px;
}
.msb-upsells__grid ul.products,
.msb-cross-sells__grid ul.products {
    grid-template-columns: repeat(var(--msb-columns, 4), 1fr) !important;
}

/* ─────────────────────────────────────────────────────
   CART TABLE
───────────────────────────────────────────────────── */
.msb-cart-table table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.msb-cart-table table.shop_table td,
.msb-cart-table table.shop_table th {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}
.msb-cart-table table.shop_table thead th {
    background: #f9fafb;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* ─────────────────────────────────────────────────────
   CART TOTALS
───────────────────────────────────────────────────── */
.msb-cart-totals .cart_totals {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
}
.msb-cart-totals .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}
.msb-cart-totals .cart_totals td,
.msb-cart-totals .cart_totals th {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ─────────────────────────────────────────────────────
   ACCOUNT
───────────────────────────────────────────────────── */
.msb-account-nav--vertical .woocommerce-MyAccount-navigation ul,
.msb-account-addresses--two-col .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.msb-account-nav--horizontal .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    transition: background 0.15s, color 0.15s;
}
.woocommerce-MyAccount-navigation li a:hover { background: #f3f4f6; }
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active a {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
}

/* ─────────────────────────────────────────────────────
   ORDER CONFIRMATION
───────────────────────────────────────────────────── */
.msb-order-confirmation {
    text-align: center;
    padding: 60px 24px;
}
.msb-order-confirmation__icon { margin-bottom: 20px; color: #22c55e; }
.msb-order-confirmation__icon svg { width: 72px; height: 72px; }
.msb-order-confirmation__text p { font-size: 18px; }

/* ─────────────────────────────────────────────────────
   CHECKOUT
───────────────────────────────────────────────────── */
.msb-checkout-form #customer_details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ─────────────────────────────────────────────────────
   BULK PRICING
───────────────────────────────────────────────────── */
.msb-bulk-pricing { margin: 20px 0; }
.msb-bulk-pricing__heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}
.msb-bulk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.msb-bulk-table thead th {
    background: var(--msb-color-primary, #0071a1);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.msb-bulk-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.msb-bulk-table tbody tr:last-child td { border-bottom: none; }
.msb-bulk-table tbody tr:nth-child(even) { background: #f9fafb; }
.msb-bulk-row--highlight {
    background: #fffbeb !important;
    font-weight: 600;
}
.msb-bulk-row__badge {
    display: inline-block;
    background: var(--msb-color-accent, #e2401c);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 700;
}
.msb-bulk-row__discount { color: #22c55e; font-weight: 700; }

/* ─────────────────────────────────────────────────────
   PRODUCT META
───────────────────────────────────────────────────── */
.msb-product-meta .msb-meta__row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.msb-meta__label { font-weight: 700; color: #6b7280; min-width: 80px; }

/* ─────────────────────────────────────────────────────
   QUICK VIEW MODAL
───────────────────────────────────────────────────── */
.msb-quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.msb-quick-view-overlay.is-open { opacity: 1; visibility: visible; }
.msb-quick-view-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.msb-quick-view-overlay.is-open .msb-quick-view-modal { transform: scale(1); }
.msb-quick-view-modal__close {
    position: absolute;
    top: 14px; right: 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #374151;
    z-index: 1;
    transition: background 0.15s;
}
.msb-quick-view-modal__close:hover { background: #e5e7eb; }
.msb-quick-view-modal__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.msb-quick-view-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}
.msb-quick-view-modal__info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.msb-quick-view-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    font-size: 14px;
    color: #9ca3af;
}

/* ─────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────────────────── */
.msb-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}
.msb-toast {
    background: #1d2327;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}
.msb-toast.is-visible { transform: translateX(0); }
.msb-toast--success { border-left: 4px solid #22c55e; }
.msb-toast--error   { border-left: 4px solid #ef4444; }
.msb-toast--info    { border-left: 4px solid #3b82f6; }
.msb-toast__icon { font-size: 16px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────
   FLYOUT CART
───────────────────────────────────────────────────── */

/* Wrapper — zero height so it takes no layout space; children are position:fixed */
.msb-fc-wrap { height: 0; overflow: visible; }

/* ── Trigger button ── */
.msb-fc-trigger {
    position: fixed;
    z-index: 99993;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.msb-fc-trigger:hover { transform: scale(1.07); }
.msb-fc-trigger__icon { display: flex; align-items: center; justify-content: center; }
.msb-fc-trigger__icon svg { stroke: #fff; display: block; pointer-events: none; }

/* Default position classes (Elementor offset sliders override the specific values) */
[class*="msb-fc-tpos-bottom-right"] .msb-fc-trigger { bottom: 24px; right: 24px; }
[class*="msb-fc-tpos-bottom-left"]  .msb-fc-trigger { bottom: 24px; left: 24px; }
[class*="msb-fc-tpos-top-right"]    .msb-fc-trigger { top: 24px; right: 24px; }
[class*="msb-fc-tpos-top-left"]     .msb-fc-trigger { top: 24px; left: 24px; }

/* ── Badge ── */
.msb-fc-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 50em;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    display: none;
    box-sizing: border-box;
}
.msb-fc-badge.has-count { display: flex; align-items: center; justify-content: center; }

/* ── Overlay ── */
.msb-fc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}
.msb-fc-has-overlay.is-open .msb-fc-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ── Panel position custom props (inherited by .msb-fc-panel even when fixed) ── */
.msb-fc-panel--right  { --fc-t: translateX(100%); }
.msb-fc-panel--left   { --fc-t: translateX(-100%); }
.msb-fc-panel--bottom { --fc-t: translateY(100%); }
.msb-fc-anim--fade       { --fc-t: none; --fc-o: 0; }
.msb-fc-anim--slide-fade { --fc-o: 0; }

/* ── Panel ── */
.msb-fc-panel {
    position: fixed;
    z-index: 99992;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    /* Default closed state */
    transform: var(--fc-t, translateX(100%));
    opacity: var(--fc-o, 1);
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.32s ease;
}
.msb-fc-panel.is-open {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
}

/* Panel positions */
.msb-fc-panel--right .msb-fc-panel  { top: 0; right: 0; bottom: 0; width: 380px; height: 100%; }
.msb-fc-panel--left  .msb-fc-panel  { top: 0; left: 0;  bottom: 0; width: 380px; height: 100%; }
.msb-fc-panel--bottom .msb-fc-panel { bottom: 0; left: 0; right: 0; width: 100%; max-height: 85vh; border-radius: 12px 12px 0 0; }

/* ── Header ── */
.msb-fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ebebeb;
    flex-shrink: 0;
}
.msb-fc-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }
/* Shared icon-centering span used inside close + remove buttons */
.msb-fc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
    font-size: 0;
    pointer-events: none;
}
.msb-fc-icon svg { display: block; flex-shrink: 0; }

.msb-fc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 0;
    font-size: 0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    overflow: hidden;
}
.msb-fc-close:hover { background: #f3f4f6; }
.msb-fc-close svg {
    display: block;
    pointer-events: none;
    stroke: #666;
    flex-shrink: 0;
}

/* ── Items scrollable area ── */
.msb-fc-items { flex: 1; overflow-y: auto; overflow-x: hidden; }
.msb-fc-items-inner { display: flex; flex-direction: column; }

/* ── Cart item ── */
.msb-fc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
    border-top: 1px solid transparent;
}
.msb-fc-item + .msb-fc-item { border-top-color: #f0f0f0; }

.msb-fc-item__img-wrap {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
}
.msb-fc-item__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.msb-fc-item__details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.msb-fc-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msb-fc-item__name:hover { text-decoration: underline; }
.msb-fc-item__variation { font-size: 11px; color: #888; }

.msb-fc-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.msb-fc-item__price { font-size: 13px; font-weight: 600; color: #555; }

/* Quantity controls */
.msb-fc-qty {
    display: inline-flex;
    align-items: center;
    border: none !important;
    border-radius: 50em;
    overflow: hidden;
    background: #f5f5f5;
}
.msb-fc-qty__btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none !important;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.msb-fc-qty__btn svg { display: block; pointer-events: none; stroke: currentColor; flex-shrink: 0; }
.msb-fc-qty__btn:hover { background: rgba(0,0,0,0.06); }
.msb-fc-qty__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.msb-fc-qty__val { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; color: #1a1a1a; }

/* Remove button */
.msb-fc-item__remove {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background-color 0.15s;
    border-radius: 4px;
    line-height: 0;
    font-size: 0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    overflow: hidden;
}
.msb-fc-item:hover .msb-fc-item__remove { opacity: 1; }
/* Always-visible remove (prefix_class toggle) */
.msb-fc-remove-always-yes .msb-fc-item__remove { opacity: 1; }
.msb-fc-item__remove:hover { background: #fef2f2; }
.msb-fc-item__remove .msb-fc-icon svg { stroke: #aaa; transition: stroke 0.15s; }
.msb-fc-item__remove:hover .msb-fc-icon svg { stroke: #e74c3c; }

/* ── Empty state ── */
.msb-fc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
}
.msb-fc-empty__icon svg { stroke: #ccc; }
.msb-fc-empty__msg { font-size: 15px; color: #888; margin: 0; }
.msb-fc-empty__cta {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.15s;
}
.msb-fc-empty__cta:hover { background: #f5f5f5; }

/* ── Footer ── */
.msb-fc-footer-wrap { flex-shrink: 0; }
.msb-fc-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #ebebeb;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msb-fc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.msb-fc-subtotal__label { font-size: 14px; color: #666; }
.msb-fc-subtotal__value { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.msb-fc-actions { display: flex; gap: 8px; }
.msb-fc-view-cart,
.msb-fc-checkout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.msb-fc-view-cart {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #e0e0e0;
}
.msb-fc-view-cart:hover { background: #e9e9e9; color: #1a1a1a; }
.msb-fc-checkout {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.msb-fc-checkout:hover { background: #333; color: #fff; }

/* Body scroll lock when flyout is open */
body.msb-fc-open { overflow: hidden; }

/* ── Trigger hidden-when-empty ── */
.msb-fc-trigger--hidden { opacity: 0; pointer-events: none; transform: scale(0.6); }

/* ── Fly-to-cart animation (product lands in trigger) ── */
.msb-fc-fly {
    position: fixed; z-index: 99999; pointer-events: none;
    border-radius: 50%; object-fit: cover;
    animation: msb-fc-fly-anim 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes msb-fc-fly-anim {
    0%   { transform: scale(1); opacity: 1; }
    60%  { opacity: 0.9; }
    100% { transform: scale(0.2); opacity: 0; }
}

/* ── Trigger "bump" when item lands ── */
@keyframes msb-fc-trigger-bump {
    0%,100% { transform: scale(1); }
    35%      { transform: scale(1.28); }
    65%      { transform: scale(0.9); }
}
.msb-fc-trigger--bump { animation: msb-fc-trigger-bump 0.45s ease; }

/* ── Cart notification toast ── */
.msb-fc-notification {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%) translateY(-12px);
    z-index: 10; background: #1a1a1a; color: #fff; padding: 7px 16px;
    border-radius: 50em; font-size: 12px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.msb-fc-notification.is-visible {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
.msb-fc-notification--success { background: #27ae60; }
.msb-fc-notification--error   { background: #e74c3c; }

/* ── Shipping bar ── */
.msb-fc-shipping-bar { padding: 14px 20px; background: #f8f8f8; flex-shrink: 0; }
.msb-fc-shipping-bar__msg { font-size: 12px; color: #444; margin: 0 0 8px; line-height: 1.4; }
.msb-fc-shipping-bar__track {
    width: 100%; height: 6px; background: #e0e0e0;
    border-radius: 50em; overflow: hidden;
}
.msb-fc-shipping-bar__fill {
    height: 100%; background: #27ae60; border-radius: 50em;
    transition: width 0.5s ease;
}
.msb-fc-shipping-bar.is-reached { background: #edfaf1; }
.msb-fc-shipping-bar.is-reached .msb-fc-shipping-bar__msg { color: #27ae60; }

/* ── Savings badge ── */
.msb-fc-item__img-wrap { position: relative; }
.msb-fc-item__savings {
    position: absolute; top: 4px; left: 4px;
    background: #e74c3c; color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 5px; border-radius: 3px; line-height: 1.3; z-index: 1;
}

/* ── Coupon ── */
.msb-fc-coupon { padding: 12px 20px; background: #f8f8f8; flex-shrink: 0; border-top: 1px solid #ebebeb; }
.msb-fc-coupon__applied { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.msb-fc-coupon__tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #e8f5e9; color: #27ae60; font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 50em;
}
.msb-fc-coupon__remove {
    background: none; border: none; cursor: pointer; padding: 0;
    color: inherit; font-size: 14px; line-height: 1; opacity: 0.7;
}
.msb-fc-coupon__remove:hover { opacity: 1; }
.msb-fc-coupon__label { font-size: 12px; color: #555; margin: 0 0 6px; }
.msb-fc-coupon__form { display: flex; gap: 6px; }
.msb-fc-coupon__input {
    flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px;
    border: 1px solid #e0e0e0; border-radius: 5px; background: #fff;
    outline: none; color: #1a1a1a;
}
.msb-fc-coupon__input:focus { border-color: #1a1a1a; }
.msb-fc-coupon__btn {
    padding: 8px 14px; font-size: 13px; font-weight: 600;
    background: #1a1a1a; color: #fff; border: none; border-radius: 5px;
    cursor: pointer; white-space: nowrap; transition: background 0.18s ease;
}
.msb-fc-coupon__btn:hover { background: #333; }
.msb-fc-coupon__msg { font-size: 11px; margin-top: 6px; min-height: 16px; }
.msb-fc-coupon__msg.is-success { color: #27ae60; }
.msb-fc-coupon__msg.is-error   { color: #e74c3c; }

/* ── Recommendations ── */
.msb-fc-recommendations {
    padding: 16px 20px 20px; background: #f8f8f8;
    border-top: 1px solid #ebebeb; flex-shrink: 0;
}
.msb-fc-recommendations__title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #888; margin: 0 0 12px;
}
.msb-fc-rec-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.msb-fc-rec-item {
    background: #fff; border-radius: 8px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.msb-fc-rec-item__img-wrap { display: block; aspect-ratio: 1; overflow: hidden; }
.msb-fc-rec-item__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msb-fc-rec-item__info { padding: 7px 8px 2px; flex: 1; }
.msb-fc-rec-item__name {
    display: block; font-size: 11px; font-weight: 600; color: #1a1a1a;
    line-height: 1.3; margin-bottom: 3px; text-decoration: none;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.msb-fc-rec-item__name:hover { text-decoration: underline; }
.msb-fc-rec-item__price { font-size: 11px; color: #555; }
.msb-fc-rec-item__add {
    display: block; width: 100%; padding: 7px 8px; margin-top: 6px;
    background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 700;
    border: none; cursor: pointer; text-align: center;
    transition: background 0.18s ease;
}
.msb-fc-rec-item__add:hover { background: #333; }
.msb-fc-rec-item__add.is-adding { opacity: 0.6; pointer-events: none; }

/* ── Checkout total in button ── */
.msb-fc-checkout__total { opacity: 0.75; font-weight: 400; font-size: 0.9em; margin-left: 4px; }

/* ── Title count ── */
.msb-fc-title__count { font-weight: 400; color: #888; font-size: 0.85em; }

/* ─────────────────────────────────────────────────────
   AERO CHECKOUT
───────────────────────────────────────────────────── */

/* Wrapper */
.msb-aero-checkout {
    position: relative;
    font-family: inherit;
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo */
.msb-ac-logo { margin-bottom: 24px; }
.msb-ac-logo img { display: inline-block; max-width: 100%; height: auto; }
.msb-ac-logo a { display: inline-block; line-height: 0; }
.msb-aty-logo { margin-bottom: 28px; }
.msb-aty-logo img { display: inline-block; max-width: 100%; height: auto; }
.msb-aty-logo a { display: inline-block; line-height: 0; }

/* ── Progress bar ── */
.msb-ac-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 16px;
}
.msb-ac-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
}
.msb-ac-step__dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.msb-ac-step__line {
    height: 2px;
    width: 80px;
    background: #d1d5db;
    margin-top: 17px;
    flex-shrink: 0;
    transition: background 0.3s;
}
.msb-ac-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    background: #fff;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    flex-shrink: 0;
}
.msb-ac-step.is-active .msb-ac-step__num,
.msb-ac-step.is-done .msb-ac-step__num {
    background: #5e4bcc;
    border-color: #5e4bcc;
    color: #fff;
}
.msb-ac-step__label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s;
}
.msb-ac-step.is-active .msb-ac-step__label,
.msb-ac-step.is-done .msb-ac-step__label { color: #5e4bcc; }
.msb-ac-step.is-done .msb-ac-step__line { background: #5e4bcc; }

/* ── Express checkout bar ── */
.msb-ac-express {
    background: #f9f9fb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
}
.msb-ac-express__label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
    text-align: center;
}
.msb-ac-express__btns {
    display: flex;
    gap: 8px;
}
.msb-ac-express__btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s, border-color 0.15s;
}
.msb-ac-express__btn:hover { background: #f3f4f6; }
.msb-ac-express__btn--apple { color: #111; }
.msb-ac-express__btn--google { color: #111; }
.msb-ac-express__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 12px;
}
.msb-ac-express__divider::before,
.msb-ac-express__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Two-column grid ── */
.msb-ac-cols {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.msb-ac-layout-one-col .msb-ac-cols { grid-template-columns: 1fr; }

/* ── Form column ── */
.msb-ac-col-form { min-width: 0; }
.msb-ac-section-heading {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #111827;
}

/* ── Multi-step panels ── */
.msb-ac-step-panel { display: none; }
.msb-ac-step-panel.is-active { display: block; }
.msb-ac-mode-one-page .msb-ac-step-panel { display: block; }
/* Editor-only preview panel (step 2 shipping mock) — always visible */
.msb-ac-step-panel--preview { display: block !important; }

/* Step nav */
.msb-ac-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}
.msb-ac-step-back-row { margin-top: 12px; }
.msb-ac-btn-continue {
    padding: 14px 28px;
    background: #5e4bcc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.msb-ac-btn-continue:hover { opacity: 0.9; }
.msb-ac-btn-back {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}
.msb-ac-btn-back:hover { color: #111827; }
.msb-ac-btn-continue.is-hidden,
.msb-ac-btn-back.is-hidden { display: none; }

/* ── WC form field overrides inside Aero Checkout ── */
.msb-aero-checkout .woocommerce-checkout .form-row,
.msb-ac-form .form-row {
    margin-bottom: 16px;
}
.msb-aero-checkout input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.msb-aero-checkout select,
.msb-aero-checkout textarea {
    width: 100%;
    padding: 14px 12px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: auto;
}
.msb-aero-checkout input:not([type=checkbox]):not([type=radio]):not([type=submit]):focus,
.msb-aero-checkout select:focus,
.msb-aero-checkout textarea:focus {
    outline: none;
    border-color: #5e4bcc;
    box-shadow: 0 0 0 3px rgba(94,75,204,.15);
}
.msb-aero-checkout #place_order {
    width: 100%;
    margin-top: 8px;
    padding: 16px 32px;
    background: #5e4bcc !important;
    color: #fff !important;
    border-color: #5e4bcc !important;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.msb-aero-checkout #place_order:hover { opacity: 0.9; }

/* ── Floating labels ── */
.msb-ac-labels-floating .form-row { position: relative; }
.msb-ac-labels-floating .form-row label {
    position: absolute;
    top: 14px;
    left: 13px;
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
    transition: top 0.15s, font-size 0.15s, color 0.15s;
    z-index: 1;
}
.msb-ac-labels-floating .form-row.is-filled label,
.msb-ac-labels-floating .form-row input:focus ~ label,
.msb-ac-labels-floating .form-row select:focus ~ label {
    top: 5px;
    font-size: 11px;
    color: #6b7280;
}
.msb-ac-labels-floating .form-row.is-filled input,
.msb-ac-labels-floating .form-row input:focus,
.msb-ac-labels-floating .form-row select { padding-top: 20px; padding-bottom: 6px; }

/* Label above: just show label above, no padding trick */
.msb-ac-labels-above .form-row label { position: static; font-size: 13px; font-weight: 500; color: #374151; display: block; margin-bottom: 6px; }
.msb-ac-labels-above input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.msb-ac-labels-above select,
.msb-ac-labels-above textarea { padding: 10px 12px; }

/* Placeholder only */
.msb-ac-labels-placeholder .form-row label { display: none; }

/* ── Order Bump ── */
.msb-ac-bump {
    position: relative;
    border: 2px dashed #f59e0b;
    border-radius: 10px;
    padding: 20px;
    background: #fefce8;
    margin-top: 24px;
}
.msb-ac-bump__badge {
    position: absolute;
    top: -13px;
    left: 20px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
}
.msb-ac-bump__inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 8px;
}
.msb-ac-bump__img { flex-shrink: 0; }
.msb-ac-bump__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.msb-ac-bump__content { flex: 1; }
.msb-ac-bump__headline {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 4px;
}
.msb-ac-bump__price { font-size: 14px; font-weight: 700; color: #b45309; margin: 0 0 8px; }
.msb-ac-bump__desc { font-size: 13px; color: #78350f; margin: 0 0 12px; }
.msb-ac-bump__check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #78350f;
    cursor: pointer;
}
.msb-ac-bump__checkbox { width: 16px; height: 16px; cursor: pointer; accent-color: #f59e0b; }

/* ── Trust badges ── */
.msb-ac-trust {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.msb-ac-trust__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
}
.msb-ac-trust__badge i, .msb-ac-trust__badge svg { font-size: 14px; color: #6b7280; }

/* ── Summary column ── */
.msb-ac-col-summary { position: relative; }
.msb-ac-sticky-summary-yes .msb-ac-col-summary { position: sticky; top: 24px; }

.msb-ac-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}
.msb-ac-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.msb-ac-summary__heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.msb-ac-summary__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    display: none;
    transition: transform 0.2s;
}
.msb-ac-summary.is-collapsed .msb-ac-summary__toggle { transform: rotate(180deg); }
.msb-ac-summary.is-collapsed .msb-ac-summary__body { display: none; }

/* Summary items */
.msb-ac-summary__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.msb-ac-summary__item-img {
    position: relative;
    flex-shrink: 0;
}
.msb-ac-summary__item-img img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}
.msb-ac-summary__item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6b7280;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.msb-ac-summary__item-info { flex: 1; min-width: 0; }
.msb-ac-summary__item-name { font-size: 13px; font-weight: 500; color: #111827; display: block; }
.msb-ac-summary__item-price { font-size: 13px; font-weight: 600; color: #111827; flex-shrink: 0; }

/* Coupon */
.msb-ac-coupon { margin: 12px 0; }
.msb-ac-coupon-form { display: flex; gap: 6px; }
.msb-ac-coupon-input {
    flex: 1;
    padding: 9px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 13px;
    background: #fff !important;
}
.msb-ac-coupon-btn {
    padding: 9px 16px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.msb-ac-coupon-btn:hover { opacity: 0.85; }
.msb-ac-coupon-msg { font-size: 12px; margin-top: 6px; }
.msb-ac-coupon-msg.is-error { color: #dc2626; }
.msb-ac-coupon-msg.is-success { color: #16a34a; }
.msb-ac-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    margin-top: 6px;
}
.msb-ac-coupon-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

/* Summary totals */
.msb-ac-summary__totals { border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 12px; }
.msb-ac-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}
.msb-ac-summary__row--discount { color: #16a34a; }
.msb-ac-summary__row--total {
    font-size: 16px;
    color: #111827;
    font-weight: 700;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

/* ── Logo placeholder (editor only) ── */
.msb-ac-logo-placeholder {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    background: #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* ── WooCommerce form layout overrides inside Aero Checkout ──
   WooCommerce uses float-based two-column by default; we replace
   it with CSS grid to match the editor preview's layout. */
.msb-aero-checkout .woocommerce-billing-fields__field-wrapper,
.msb-aero-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.msb-aero-checkout .form-row-first,
.msb-aero-checkout .form-row-last {
    float: none !important;
    width: 100% !important;
    clear: none !important;
    margin-right: 0 !important;
}
.msb-aero-checkout .form-row-wide,
.msb-aero-checkout .form-row.notes {
    grid-column: 1 / -1;
}
/* Remove WooCommerce's own section headings — we render ours via msb-ac-section-heading.
   Exclude #ship-to-different-address: it is the shipping toggle checkbox, not a heading. */
.msb-aero-checkout .woocommerce-billing-fields > h3,
.msb-aero-checkout .woocommerce-billing-fields > p:first-of-type,
.msb-aero-checkout .woocommerce-shipping-fields > h3:not(#ship-to-different-address),
.msb-aero-checkout .woocommerce-shipping-fields__field-wrapper + h3,
.msb-aero-checkout .woocommerce-additional-fields > h3 {
    display: none;
}
/* input-wrapper span must be block so inputs stretch full width */
.msb-aero-checkout .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}
/* Native selects and select2 must fill their grid cell */
.msb-aero-checkout .form-row select,
.msb-aero-checkout .woocommerce-input-wrapper select {
    width: 100%;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}
.msb-aero-checkout .select2-container {
    width: 100% !important;
    display: block !important;
}
/* select2 dropdown must float above the grid, not shift it */
.select2-container--open .select2-dropdown {
    z-index: 999999 !important;
}
/* Prevent grid row from reflowing when a select opens */
.msb-aero-checkout .form-row {
    overflow: visible !important;
    min-width: 0;
}

/* ── Shipping address toggle ── */
.msb-aero-checkout .woocommerce-shipping-fields { margin-top: 0; }
.msb-aero-checkout #ship-to-different-address {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 16px;
    color: #374151;
    cursor: pointer;
}
.msb-aero-checkout #ship-to-different-address label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: 14px !important;
    color: #374151 !important;
    cursor: pointer;
    pointer-events: auto !important;
}
.msb-aero-checkout #ship-to-different-address input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #5e4bcc;
    flex-shrink: 0;
}
/* Step 2 shipping panel: always show fields (WC JS would hide .shipping_address
   because the toggle is in step 1; we override that here) */
.msb-aero-checkout .msb-ac-step-panel[data-step="2"] .shipping_address {
    display: block !important;
}
/* Shipping toggle row in step 1 */
.msb-aero-checkout .msb-ac-ship-toggle-row {
    margin-top: 16px;
    margin-bottom: 0;
}
.msb-aero-checkout .shipping_address { margin-top: 8px; }

/* ── Floating labels — focus state via :focus-within ──
   WooCommerce puts <label> BEFORE <input>, inside a wrapper span,
   so the CSS ~ sibling selector fails. :focus-within works regardless. */
.msb-ac-labels-floating .form-row:focus-within label {
    top: 5px;
    font-size: 11px;
    color: #6b7280;
}
.msb-ac-labels-floating .form-row:focus-within .woocommerce-input-wrapper input,
.msb-ac-labels-floating .form-row:focus-within select {
    padding-top: 20px;
    padding-bottom: 6px;
}

/* ── Payment section ── */
.msb-aero-checkout #payment {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
.msb-aero-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    border: none !important;
}
.msb-aero-checkout #payment ul.payment_methods li {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    margin: 0 0 8px !important;
    padding: 12px 16px !important;
    background: #fff !important;
    transition: border-color 0.15s, background 0.15s;
}
.msb-aero-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: #5e4bcc !important;
    background: #fafafe !important;
}
.msb-aero-checkout #payment ul.payment_methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    /* override floating-label positioning */
    position: static !important;
    top: auto !important;
    left: auto !important;
    pointer-events: auto !important;
    margin: 0 !important;
}
.msb-aero-checkout #payment ul.payment_methods li input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #5e4bcc;
    flex-shrink: 0;
}
.msb-aero-checkout #payment ul.payment_methods img {
    max-height: 24px !important;
    width: auto !important;
    vertical-align: middle;
}
.msb-aero-checkout .payment_box {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: -8px 0 8px !important;
}
.msb-aero-checkout .place-order { padding: 0 !important; }
.msb-aero-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 12px;
    color: #6b7280;
    margin: 12px 0;
}

/* ─────────────────────────────────────────────────────
   AERO THANK YOU
───────────────────────────────────────────────────── */

.msb-aero-thank-you {
    position: relative;
    font-family: inherit;
    max-width: 900px;
    margin: 0 auto;
}

/* Confetti canvas */
.msb-aty-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Hero */
.msb-aty-hero {
    text-align: center;
    padding: 48px 24px 36px;
    background: #f0fdf4;
    border-radius: 16px;
    margin-bottom: 28px;
}
.msb-aty-hero__icon {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 16px;
    line-height: 1;
    animation: msb-aty-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.msb-aty-hero__icon i, .msb-aty-hero__icon svg {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #22c55e;
    fill: #22c55e;
}
@keyframes msb-aty-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.msb-aty-hero__heading {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
}
.msb-aty-hero__sub {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

/* Stats bar */
.msb-aty-stats {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #fff;
}
.msb-aty-stat {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}
.msb-aty-stat:last-child { border-right: none; }
.msb-aty-stat__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.msb-aty-stat__value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    word-break: break-all;
}

/* Body */
.msb-aty-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.msb-aty-order-details { grid-column: 1 / -1; }
.msb-aty-order-details:not(:only-child) { grid-column: auto; }

/* What's next */
.msb-aty-next { margin-bottom: 32px; }
.msb-aty-next__heading {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px;
    text-align: center;
}
.msb-aty-next__steps {
    display: flex;
    gap: 20px;
}
.msb-aty-next__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.msb-aty-next__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msb-aty-next__icon i, .msb-aty-next__icon svg { font-size: 22px; color: #5e4bcc; }
.msb-aty-next__step-body {}
.msb-aty-next__step-title { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.msb-aty-next__step-desc { font-size: 13px; color: #6b7280; margin: 0; }

/* CTA */
.msb-aty-cta-wrap { text-align: center; margin-top: 8px; padding-bottom: 32px; }
.msb-aty-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #5e4bcc;
    color: #fff !important;
    border: 1px solid #5e4bcc;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}
.msb-aty-cta:hover { opacity: 0.9; color: #fff !important; }

/* ── WooCommerce order table inside AeroThankYou ── */
.msb-aero-thank-you .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
    margin-bottom: 24px;
}
.msb-aero-thank-you .woocommerce-table--order-details thead th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}
.msb-aero-thank-you .woocommerce-table--order-details tbody td {
    padding: 14px 16px;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}
.msb-aero-thank-you .woocommerce-table--order-details tfoot tr {
    border-top: 2px solid #e5e7eb;
}
.msb-aero-thank-you .woocommerce-table--order-details tfoot th,
.msb-aero-thank-you .woocommerce-table--order-details tfoot td {
    padding: 12px 16px;
    background: #f9fafb;
    font-weight: 700;
    font-size: 14px;
}

/* ── Customer addresses inside AeroThankYou ── */
.msb-aero-thank-you .woocommerce-customer-details { margin-bottom: 24px; }
.msb-aero-thank-you .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    float: none !important;
    width: 100% !important;
}
.msb-aero-thank-you .woocommerce-column { float: none !important; width: 100% !important; }
.msb-aero-thank-you .woocommerce-column__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
.msb-aero-thank-you address {
    font-style: normal;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────
   AERO CART
───────────────────────────────────────────────────── */
.msb-acart { width: 100%; }
.msb-acart-cols {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}
.msb-acart-col-items { flex: 0 0 60%; min-width: 0; }
.msb-acart-col-summary { flex: 1; min-width: 0; position: sticky; top: 24px; }

/* Table wrapper */
.msb-acart-table {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Single unified table (header + rows) */
.msb-acart-table__inner {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Header row */
.msb-acart-table-head th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.msb-acart-th-img    { width: 96px; }
.msb-acart-th-qty    { width: 140px; text-align: center; }
.msb-acart-th-total  { width: 90px; text-align: right; }
.msb-acart-th-remove { width: 36px; }

/* Item rows — <tr> */
.msb-acart-item td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}
.msb-acart-item:last-child td { border-bottom: none; }

/* Image cell */
.msb-acart-item__img-col { width: 96px; }
.msb-acart-item__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.msb-acart-item__img--placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    opacity: 0.7;
}

/* Product cell */
.msb-acart-item__product-col { min-width: 0; }
.msb-acart-item__name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    margin-bottom: 4px;
}
.msb-acart-item__name:hover { color: #5e4bcc; }
.msb-acart-item__meta { font-size: 12px; color: #6b7280; }
.msb-acart-item__meta span { display: inline-block; margin-right: 8px; }

/* Qty cell */
.msb-acart-item__qty-col { text-align: center; }

/* Qty stepper */
.msb-acart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.msb-acart-qty__btn {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #111827;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    user-select: none;
}
.msb-acart-qty__btn:hover { background: #e5e7eb; }
.msb-acart-qty__input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: #fff;
    padding: 0;
    -moz-appearance: textfield;
}
.msb-acart-qty__input::-webkit-inner-spin-button,
.msb-acart-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Total cell */
.msb-acart-item__total-col { text-align: right; white-space: nowrap; }
.msb-acart-item__total {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Remove cell */
.msb-acart-item__remove-col { text-align: center; width: 36px; }
.msb-acart-item__remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    line-height: 1;
    transition: color 0.15s;
}
.msb-acart-item__remove:hover { color: #dc2626; }

/* Coupon */
.msb-acart-coupon { padding: 16px; border-top: 1px solid #e5e7eb; }
.msb-acart-coupon-form { display: flex; gap: 8px; }
.msb-acart-coupon-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}
.msb-acart-coupon-btn {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.msb-acart-coupon-btn:hover { opacity: 0.85; }
.msb-acart-coupon-msg { font-size: 12px; margin-top: 6px; }
.msb-acart-coupon-msg.is-error { color: #dc2626; }
.msb-acart-coupon-msg.is-success { color: #16a34a; }
.msb-acart-coupon-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.msb-acart-coupon-tag {
    font-size: 12px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 2px 8px;
}
.msb-acart-coupon-remove {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

/* Continue shopping */
.msb-acart-continue { padding: 12px 16px; }
.msb-acart-continue__link {
    font-size: 13px;
    color: #5e4bcc;
    text-decoration: none;
    cursor: pointer;
}
.msb-acart-continue__link:hover { text-decoration: underline; }

/* Summary panel */
.msb-acart-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}
.msb-acart-summary__heading {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.msb-acart-summary__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.msb-acart-summary__row td {
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
    border: none;
}
.msb-acart-summary__row td:last-child { text-align: right; font-weight: 500; }
.msb-acart-summary__row--discount td { color: #16a34a; }
.msb-acart-summary__row--total td {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
}
.msb-acart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    background: #5e4bcc;
    color: #fff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.15s;
    margin-top: 4px;
    cursor: pointer;
    border: none;
}
.msb-acart-checkout-btn:hover { opacity: 0.9; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .msb-ac-cols { grid-template-columns: 1fr; }
    .msb-acart-cols { flex-direction: column; }
    .msb-acart-col-items { flex: 0 0 100%; width: 100%; }
    .msb-acart-col-summary { width: 100%; position: static; }
    .msb-acart-table { overflow-x: auto; }
    .msb-acart-item td { padding: 12px 10px; }
    .msb-acart-item__img { width: 60px; height: 60px; }
    .msb-acart-item__img--placeholder { width: 60px; height: 60px; }
    .msb-acart-th-qty { width: 120px; }
    .msb-ac-col-summary { order: -1; }
    .msb-ac-sticky-summary-yes .msb-ac-col-summary { position: static; }
    .msb-ac-summary__toggle { display: flex; }
    .msb-ac-summary.is-collapsed .msb-ac-summary__body { display: none; }
    .msb-aty-stats { flex-wrap: wrap; }
    .msb-aty-stat { flex: 0 0 50%; border-bottom: 1px solid #e5e7eb; }
    .msb-aty-stat:nth-last-child(-n+2):not(:nth-child(odd)) { border-bottom: none; }
    .msb-aty-body { grid-template-columns: 1fr; }
    .msb-aty-order-details { grid-column: auto; }
    .msb-aty-next__steps { flex-direction: column; }
}
@media (max-width: 768px) {
    .msb-checkout-form #customer_details { grid-template-columns: 1fr; }
    .msb-product-grid__inner ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .msb-quick-view-modal__inner { grid-template-columns: 1fr; }
    .msb-quick-view-modal__image img { border-radius: 12px 12px 0 0; }
    .msb-cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .msb-account-addresses--two-col .woocommerce-Addresses { grid-template-columns: 1fr; }
    .msb-upsells__grid, .msb-cross-sells__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .msb-countdown__boxes { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .msb-product-grid__inner ul.products { grid-template-columns: 1fr !important; }
    .msb-cat-grid { grid-template-columns: 1fr !important; }
    .msb-mini-cart__dropdown { width: 100vw; right: -16px; }
    .msb-toast-container { left: 16px; right: 16px; max-width: none; }
}
