@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600;700&display=swap');
:root {
    --ml-store-green: var(--theme-primary);
    --ml-store-green-dark: var(--theme-primary-dark);
    --ml-store-ink: var(--theme-text);
    --ml-store-muted: var(--theme-muted);
    --ml-store-border: var(--theme-border);
    --ml-store-canvas: var(--theme-background);
    --ml-store-surface: var(--theme-surface);
    --ml-store-gold: var(--theme-accent);
    --ml-store-gold-soft: color-mix(in srgb, var(--theme-accent) 24%, var(--theme-surface));
    --ml-store-shadow: 0 10px 28px rgba(91,70,37,.08);
}

body {
    background: var(--ml-store-canvas);
}

body .warehouse-banner {
    border-bottom: 1px solid var(--ml-store-border);
    background: var(--ml-store-canvas);
}

body .store-section {
    background:
        radial-gradient(circle at 90% 8%, rgba(199,164,90,.10), transparent 22%),
        var(--ml-store-canvas) !important;
}

body .store-sidebar .sidebar-widget,
body .advanced-filters-v2,
body .sort-options,
body .store-toolbar,
body .product-grid-wrapper,
body #productModal .modal-content {
    border: 1px solid var(--ml-store-border) !important;
    background: var(--ml-store-surface) !important;
    box-shadow: var(--ml-store-shadow) !important;
}

body .store-sidebar .sidebar-widget,
body .advanced-filters-v2,
body .sort-options,
body .store-toolbar {
    border-radius: 16px !important;
}

body .store-sidebar .widget-title,
body .advanced-filters-v2 .advanced-filters-title {
    color: var(--ml-store-ink) !important;
    border-bottom-color: var(--ml-store-gold) !important;
}

body .advanced-filters-v2 .advanced-filters-title::before {
    background: var(--ml-store-gold) !important;
}

body .store-sidebar .sidebar-collapse-control,
body .category-collapsible-header,
body .store-title,
body .store-toolbar {
    color: var(--ml-store-ink) !important;
}

body .store-title .text-primary,
body .store-sidebar .text-primary,
body .spinner-border.text-primary {
    color: var(--ml-store-green) !important;
}

body .store-sidebar .text-muted,
body .store-toolbar .text-muted,
body .advanced-filters-v2 .helper-text,
body .advanced-filters-v2 .filter-section-label {
    color: var(--ml-store-muted) !important;
}

body .category-list .category-item,
body .category-list-group .category-item {
    color: #4e554f !important;
    border-color: var(--ml-store-border) !important;
}

body .category-list .category-item:hover,
body .category-list-group .category-item:hover,
body .category-item:hover,
body .category-collapsible-header:hover {
    color: var(--ml-store-green-dark) !important;
    background: #f8f3e8 !important;
}

body .category-list .category-item.active,
body .category-list-group .category-item.active,
body .category-item.active {
    color: var(--ml-store-green-dark) !important;
    background: #f3e7c9 !important;
    border-left-color: var(--ml-store-gold) !important;
    box-shadow: inset 0 0 0 1px rgba(199,164,90,.35) !important;
}

body .category-toggle {
    color: var(--ml-store-muted) !important;
}

body .category-toggle:hover {
    color: var(--ml-store-green) !important;
    background: rgba(199,164,90,.16) !important;
}

body .category-children {
    border-left-color: #e5d7b8 !important;
}

body .category-expand-btn {
    color: var(--ml-store-green-dark) !important;
    border-color: #ddc99d !important;
    background: var(--ml-store-surface) !important;
}

body .category-expand-btn:hover {
    color: var(--ml-store-green-dark) !important;
    border-color: var(--ml-store-gold) !important;
    background: var(--ml-store-gold-soft) !important;
}

body .category-collapsible-body {
    scrollbar-color: rgba(199,164,90,.55) #f8f3e8 !important;
}

body .category-collapsible-body::-webkit-scrollbar-track {
    background: #f8f3e8 !important;
}

body .category-collapsible-body::-webkit-scrollbar-thumb {
    background: rgba(199,164,90,.55) !important;
}

body .advanced-filters-v2 .price-range-inline,
body .advanced-filters-v2 .filter-switches-wrapper {
    border-color: #e5d6b6 !important;
    background: #f8f3e8 !important;
}

body .advanced-filters-v2 .price-range-inline .price-input-wrapper,
body .advanced-filters-v2 .advanced-filters-list .filter-switch-item {
    color: var(--ml-store-ink) !important;
    border-color: var(--ml-store-border) !important;
    background: var(--ml-store-surface) !important;
}

body .advanced-filters-v2 .price-range-inline .price-input-wrapper:focus-within {
    border-color: var(--ml-store-gold) !important;
    box-shadow: 0 0 0 2px rgba(199,164,90,.16) !important;
}

body .advanced-filters-v2 .price-range-inline .prefix,
body .advanced-filters-v2 .advanced-filters-list .filter-switch-item .form-check-label {
    color: #53594f !important;
}

body .advanced-filters-v2 .advanced-filters-list .filter-switch-item:hover {
    border-color: #ddc99d !important;
    background: #fbf7ee !important;
}

body .advanced-filters-v2 .form-check-input:checked,
body .store-section .form-check-input:checked {
    border-color: var(--ml-store-green) !important;
    background-color: var(--ml-store-green) !important;
}

body .store-search-group {
    border-color: #ddc99d !important;
    background: linear-gradient(145deg, #fffdf8 0%, #f8f3e8 100%) !important;
    box-shadow: 0 2px 8px rgba(91,70,37,.06) !important;
}

body .store-search-group::before {
    background: linear-gradient(120deg, rgba(255,255,255,.58), rgba(243,231,201,.22)) !important;
}

body .store-search-group:focus-within {
    border-color: var(--ml-store-gold) !important;
    background: var(--ml-store-surface) !important;
    box-shadow: 0 0 0 3px rgba(199,164,90,.14), 0 6px 16px rgba(91,70,37,.08) !important;
}

body .store-search-group .input-group-text,
body .store-search-group .form-control {
    color: var(--ml-store-ink) !important;
}

body .store-search-group:focus-within .input-group-text i {
    color: var(--ml-store-green) !important;
}

body .store-toolbar .btn-outline-primary,
body .store-toolbar .btn-outline-secondary,
body .store-toolbar .btn-outline-dark,
body #collapse-sidebar-btn {
    color: var(--ml-store-green-dark) !important;
    border-color: #d8bd7d !important;
    background: var(--ml-store-surface) !important;
}

body .store-toolbar .btn-outline-primary:hover,
body .store-toolbar .btn-outline-secondary:hover,
body .store-toolbar .btn-outline-dark:hover,
body #collapse-sidebar-btn:hover,
body .store-toolbar .view-toggle .btn.active {
    color: var(--ml-store-green-dark) !important;
    border-color: var(--ml-store-gold) !important;
    background: var(--ml-store-gold-soft) !important;
}

body .store-toolbar .dropdown-menu {
    border-color: var(--ml-store-border) !important;
    background: var(--ml-store-surface) !important;
    box-shadow: var(--ml-store-shadow) !important;
}

body .store-toolbar .dropdown-item {
    color: var(--ml-store-ink) !important;
}

body .store-toolbar .dropdown-item:hover,
body .store-toolbar .dropdown-item.active {
    color: var(--ml-store-green-dark) !important;
    background: #f8f3e8 !important;
}

body #applied-filters-display .badge,
body #applied-filters-display .btn {
    border-color: #ddc99d !important;
}

body #products-container .product-card,
body #products-container .modern-card {
    border: 1px solid var(--ml-store-border) !important;
    background: var(--ml-store-surface) !important;
    box-shadow: 0 6px 20px rgba(91,70,37,.065) !important;
}

body #products-container .product-card:hover,
body #products-container .modern-card:hover {
    border-color: var(--ml-store-gold) !important;
    box-shadow: 0 14px 30px rgba(91,70,37,.11) !important;
}

body #products-container .product-image,
body #products-container .product-image-wrapper {
    border-color: #eee5d6 !important;
    background: linear-gradient(145deg, #fffdf8 0%, #f8f3e8 100%) !important;
}

body #products-container .product-name,
body #products-container .product-title,
body #products-container .product-title a,
body #products-container .card-title,
body #products-container .card-title a {
    color: var(--ml-store-ink) !important;
}

body #products-container .product-title a:hover,
body #products-container .card-title a:hover,
body #products-container .product-link-wrapper:hover .product-name {
    color: var(--ml-store-green) !important;
}

body #products-container .category-tag {
    color: var(--ml-store-green-dark) !important;
    border-color: rgba(199,164,90,.34) !important;
    background: #f8f3e8 !important;
}

body #products-container .product-stats {
    border-top-color: var(--ml-store-border) !important;
}

body #products-container .rating-score,
body #products-container .product-stats .sold-count,
body #products-container .review-count {
    color: var(--ml-store-muted) !important;
}

body #products-container .product-actions .btn-primary,
body #open-filters-fab {
    color: #fff !important;
    border-color: var(--ml-store-green) !important;
    background: var(--ml-store-green) !important;
    box-shadow: 0 8px 18px rgba(12,107,77,.16) !important;
}

body #products-container .product-actions .btn-primary:hover,
body #open-filters-fab:hover {
    border-color: var(--ml-store-green-dark) !important;
    background: var(--ml-store-green-dark) !important;
}

body .pagination .page-link {
    color: var(--ml-store-green-dark) !important;
    border-color: var(--ml-store-border) !important;
    background: var(--ml-store-surface) !important;
}

body .pagination .page-item.active .page-link {
    color: #fff !important;
    border-color: var(--ml-store-green) !important;
    background: var(--ml-store-green) !important;
}

body #productModal .modal-header {
    border-bottom-color: var(--ml-store-border) !important;
    background: #f8f3e8 !important;
}

body #productModal .modal-footer {
    border-top-color: var(--ml-store-border) !important;
}

body #productModal .card,
body #productModal .selected-variant-info .card {
    border-color: var(--ml-store-border) !important;
    background: var(--ml-store-surface) !important;
}

body #productModal .btn-primary {
    border-color: var(--ml-store-green) !important;
    background: var(--ml-store-green) !important;
}

body #productModal .btn-primary:hover {
    border-color: var(--ml-store-green-dark) !important;
    background: var(--ml-store-green-dark) !important;
}

@media (max-width: 991.98px) {
    body .store-sidebar {
        background: transparent !important;
    }

    body .store-toolbar {
        padding: 12px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 576px) {
    body .store-section {
        padding-top: 18px !important;
    }

    body .store-sidebar .sidebar-widget,
    body .advanced-filters-v2 {
        border-radius: 14px !important;
    }

    body #products-container .product-card,
    body #products-container .modern-card {
        border-radius: 14px !important;
    }

    body .store-toolbar .toolbar-actions {
        gap: 6px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body #products-container .product-card,
    body #products-container .modern-card {
        transition: none !important;
    }

    body #products-container .product-card:hover,
    body #products-container .modern-card:hover {
        transform: none !important;
    }
}

/* MING LIFE editorial product shortcuts — storefront only */
body .ml-store-pillars {
    background: #fffdf8;
    padding: clamp(22px, 3vw, 44px) 0 clamp(27px, 3vw, 46px);
}
body .ml-store-pillars-heading { margin-bottom: 20px; }
body .ml-store-pillars-eyebrow {
    display: block; font-size: .69rem; font-weight: 700; letter-spacing: .17em;
    color: #69806a; margin-bottom: 7px;
}
body .ml-store-pillars-heading h2 {
    font: 400 clamp(1.45rem, 2.5vw, 2.4rem)/1.3 "Noto Serif", Georgia, "Times New Roman", serif;
    color: #143d30; margin: 0;
}
body .ml-store-pillars-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 24px);
}
body .ml-store-pillar {
    display: block; text-decoration: none; min-width: 0; color: #143d30;
    border-bottom: 2px solid transparent; padding-bottom: 8px;
}
body .ml-store-pillar:focus-visible,
body .ml-store-sidebar-shortcuts a:focus-visible { outline: 2px solid #b59d6e; outline-offset: 3px; }
body .ml-store-pillar-image {
    display: block; position: relative; width: 100%; aspect-ratio: 3 / 2;
    overflow: hidden; background: #f5f0e7;
}
body .ml-store-pillar-image img {
    display: block; position: absolute; inset: 0;
    width: 100% !important; height: 100% !important; max-height: none !important;
    object-fit: cover; object-position: center;
    transition: transform .2s ease;
}
body .ml-store-pillar:hover img { transform: scale(1.025); }
body .ml-store-pillar-title {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; padding-top: 12px;
    font: 400 clamp(1rem, 1.45vw, 1.42rem)/1.3 "Noto Serif", Georgia, "Times New Roman", serif;
}
body .ml-store-pillar-title i { flex-shrink: 0; font-size: .81rem; }
body .ml-store-pillar:hover, body .ml-store-pillar.is-active { border-bottom-color: #aa9466; color: #10452e; }
body #store-products { scroll-margin-top: 112px; }
body .ml-store-sidebar-shortcuts {
    background: #fff; border: 1px solid var(--ml-store-border, #e0e6dc);
    border-radius: 14px; padding: 15px 17px; margin-bottom: 16px;
}
body .ml-store-sidebar-shortcuts > strong {
    display: block; color: #143d30; margin-bottom: 10px; font-size: .91rem;
}
body .ml-store-sidebar-shortcuts-list { display: grid; gap: 3px; }
body .ml-store-sidebar-shortcuts-list a {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    color: #415648; padding: 8px 6px; border-radius: 5px; text-decoration: none;
    font-size: .88rem;
}
body .ml-store-sidebar-shortcuts-list a:hover,
body .ml-store-sidebar-shortcuts-list a.is-active {
    color: #10452e; background: #f4ead7;
}
body .ml-store-sidebar-shortcuts-list a i { font-size: .7rem; }
body .ml-store-pillar-status {
    background: #fff6df; border: 1px solid #e7d7ad; border-radius: 8px;
    color: #68501f; padding: 12px 15px; margin-bottom: 16px; font-size: .9rem;
}
@media (max-width: 767.98px) {
    body .ml-store-pillars { padding: 20px 0 24px; }
    body .ml-store-pillars-heading { margin-bottom: 14px; }
    body .ml-store-pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    body .ml-store-pillar-title { font-size: 1rem; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { body .ml-store-pillar-image img { transition: none; } }


/* MING LIFE — polished product filtering, PC + tablet/mobile. */
body #store-sidebar{
 background:#fffdf9 !important;border:1px solid #e4e9df;border-radius:16px;
 padding:19px 16px !important;box-shadow:0 3px 15px rgba(15,53,29,.05);
}
body #store-sidebar .ml-filter-heading{
 display:flex;align-items:center;justify-content:space-between;
 padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid #e5e9df;
}
body #store-sidebar .ml-filter-heading small{
 display:block;color:#7d927f;font-size:.64rem;letter-spacing:.12em;font-weight:700;
}
body #store-sidebar .ml-filter-heading h2{
 margin:5px 0 0;font:500 1.32rem/1.35 "Noto Serif",Georgia,serif;color:#143e2e;
}
body #store-sidebar #ml-filter-close{
 border-radius:50%;width:36px;height:36px;background:#fff;
 border:1px solid #d2dfd2;color:#244d39;
}
body #store-sidebar .sidebar-widget,
body #store-sidebar .ml-store-sidebar-shortcuts{
 background:transparent !important;border:0 !important;
 border-bottom:1px solid #e7eae2 !important;border-radius:0 !important;
 box-shadow:none !important;padding:0 0 17px !important;margin:0 0 16px !important;
}
body #store-sidebar .ml-store-sidebar-shortcuts-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
}
body #store-sidebar .ml-store-sidebar-shortcuts-list a{
 min-width:0;padding:10px 7px;border-radius:8px;
 background:#fff;border:1px solid #e0e7db;font-size:.8rem;color:#3c5b44;
}
body #store-sidebar .ml-store-sidebar-shortcuts-list a i{display:none;}
body #store-sidebar .ml-store-sidebar-shortcuts-list a:hover,
body #store-sidebar .ml-store-sidebar-shortcuts-list a.is-active{
 background:#e9f3e7;border-color:#a5baa4;color:#194c35;
}
body #store-sidebar .category-collapsible-header{padding:7px 0;}
body #store-sidebar .category-collapsible-header span{color:#24513b !important;}
body #store-sidebar .category-collapsible.expanded .category-collapsible-body{
 max-height:none !important;overflow:visible !important;opacity:1 !important;
}
body #store-sidebar .category-list .category-item{
 padding:7px !important;border-radius:7px;border-left:0 !important;
 box-shadow:none !important;color:#49614e;font-size:.85rem;
}
body #store-sidebar .category-list .category-item.active{
 background:#eaf3e7 !important;color:#1a4c34 !important;font-weight:700;
}
body #store-sidebar .advanced-filters-v2 .advanced-filters-title{
 color:#244c36 !important;font-size:.94rem !important;font-weight:700 !important;
 padding:0 0 12px !important;margin:0 0 12px !important;
}
body #store-sidebar .advanced-filters-v2 .advanced-filters-title:before{display:none !important;}
body #store-sidebar .advanced-filters-v2 .filter-section-label{
 font-size:.82rem;color:#4e6b56;letter-spacing:0 !important;text-transform:none !important;
}
body #store-sidebar .price-range-inline{
 display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 gap:8px !important;background:transparent !important;border:0 !important;padding:0 !important;
}
body #store-sidebar .price-range-inline .range-sep{display:none !important;}
body #store-sidebar .price-range-inline .price-input-wrapper{
 min-width:0 !important;width:100%;display:flex;flex-direction:column;align-items:start;
 gap:3px;border:1px solid #dae4d7;border-radius:9px;background:#fff;padding:7px 9px;
}
body #store-sidebar .price-range-inline .prefix{font-size:.69rem;color:#69806b;}
body #store-sidebar .price-range-inline input{
 width:100% !important;height:auto !important;text-align:left;
 font-family:Arial,sans-serif !important;letter-spacing:0;
 font-size:.84rem !important;padding:2px 0 !important;
}
body #store-sidebar .advanced-filters-list .filter-switch-item{
 display:flex;align-items:center;gap:9px;min-height:42px;
 padding:8px 8px 8px 32px !important;border-radius:8px;
 border:0 !important;background:transparent !important;
}
body #store-sidebar .advanced-filters-list .filter-switch-item:hover{background:#f3f6f0 !important;}
body #store-sidebar .advanced-filters-list .form-check-input{
 float:none;width:18px !important;height:18px !important;border-radius:5px !important;
 margin:0 0 0 -23px;border:1px solid #b2c3b0;
}
body #store-sidebar .advanced-filters-list .form-check-input:checked{
 background-color:#17513a !important;border-color:#17513a !important;
}
body #store-sidebar .advanced-filters-list .form-check-label{font-size:.85rem;color:#395640;}
body #store-sidebar .ml-filter-clear{
 display:block;width:100%;padding:10px;border:1px solid #d1dfcf;
 border-radius:8px;background:#fff;color:#2d5b3e;font-weight:600;
}
body .ml-filter-chips:empty{display:none;}
body .ml-filter-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
body .ml-filter-chips-label{font-size:.8rem;color:#6b806c;}
body .ml-filter-chip{
 border:1px solid #d0e0ce;border-radius:22px;padding:7px 11px;
 background:#eaf3e7;color:#20513a;font-size:.79rem;
}
body .ml-filter-chip-clear{
 border:0;background:transparent;color:#58725f;text-decoration:underline;font-size:.8rem;
}
body #store-products .store-toolbar{
 background:#fffdf9 !important;border-color:#dce6dc !important;
 box-shadow:0 3px 13px rgba(17,58,29,.04) !important;
}
body #store-products .store-toolbar .sort-dropdown .btn,
body #store-products .store-toolbar #toggle-filters{
 background:#fff !important;border-color:#bfd3c1 !important;color:#27573c !important;
}
body #store-sidebar .ml-filter-footer{display:none;}
@media(min-width:992px){
 body #sidebar-column:not(.collapsed) ~ .col-lg-9 #show-filters-desktop{display:none !important;}
}
@media(max-width:991.98px){
 body #sidebar-column,body #sidebar-column.collapse-hidden{
  display:block !important;flex:0 0 0 !important;max-width:0 !important;
  width:0 !important;height:0 !important;margin:0 !important;padding:0 !important;overflow:visible !important;
 }
 body #sidebar-column + .col-lg-9{flex:0 0 100% !important;max-width:100% !important;}
 body #store-sidebar{
  position:fixed !important;top:0 !important;left:auto !important;right:0 !important;
  width:min(90vw,420px) !important;max-width:420px !important;height:100dvh !important;
  overflow-x:hidden !important;overflow-y:auto !important;overscroll-behavior:contain;
  z-index:1050 !important;transform:translateX(110%);
  transition:transform .3s ease !important;border-radius:18px 0 0 18px;
  padding:20px 18px 110px !important;box-shadow:-12px 0 40px rgba(0,0,0,.15) !important;
 }
 body #store-sidebar.open{transform:translateX(0) !important;}
 body #store-sidebar .ml-filter-heading{
  position:sticky;top:-20px;z-index:4;background:#fffdf9;margin-top:-20px;padding-top:20px;
 }
 body #store-sidebar .ml-filter-footer{
  display:flex !important;position:sticky;bottom:-110px;margin:18px -18px -110px;
  padding:14px 18px max(14px,env(safe-area-inset-bottom));
  gap:10px;background:#fffdf9;border-top:1px solid #dbe7da;z-index:5;
 }
 body #store-sidebar .ml-filter-footer button{
  border-radius:8px;padding:12px;font-size:.85rem;font-weight:700;
 }
 body #store-sidebar #ml-filter-reset-mobile{
  background:white;color:#27523a;border:1px solid #cfdfce;
 }
 body #store-sidebar #ml-filter-apply{
  flex:1;background:#16503a;color:#fff;border:1px solid #16503a;
 }
 body #store-products .store-toolbar{position:relative !important;top:auto !important;}
}
@media(max-width:576px){
 body #store-sidebar{width:100vw !important;max-width:none !important;border-radius:0;}
}
@media(prefers-reduced-motion:reduce){
 body #store-sidebar{transition:none !important;}
}

body #store-sidebar .ml-filter-heading-actions{display:flex;align-items:center;gap:8px;}
body #store-sidebar .ml-filter-desktop-close{
    width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;
    border:1px solid #d2dfd2;border-radius:50%;color:#244d39;background:#fff;
    transition:background-color .15s;
}
body #store-sidebar .ml-filter-desktop-close:hover{background:#ecf4ea;}
body #store-sidebar .ml-filter-heading button:focus-visible,
body #store-sidebar .ml-filter-footer button:focus-visible,
body .ml-filter-chip:focus-visible{outline:2px solid #a89766;outline-offset:3px;}


/* MING LIFE product categories — searchable dropdown with native category data. */
body #store-sidebar .ml-searchable-categories {
    position: relative;
    overflow: visible !important;
    z-index: 4;
}
body #store-sidebar .ml-searchable-categories .category-collapsible-header {
    padding: 0 0 12px !important;
    cursor: pointer;
}
body #store-sidebar .ml-searchable-categories .category-collapsible-header:focus-visible {
    outline: 2px solid #a28f62;
    outline-offset: 4px;
    border-radius: 4px;
}
body #store-sidebar .ml-searchable-categories .category-collapsible-header .toggle-icon {
    transition: transform .2s ease;
}
body #store-sidebar .ml-searchable-categories.expanded .category-collapsible-header .toggle-icon {
    transform: rotate(180deg) !important;
}
body #store-sidebar .ml-searchable-categories .category-collapsible-body[hidden] {
    display: none !important;
}
body #store-sidebar .ml-category-picker {
    width: 100%;
    position: relative;
}
body #store-sidebar .ml-category-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 0 11px;
    background: #fff;
    border: 1px solid #d2dfd2;
    border-radius: 9px;
    color: #627d6a;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body #store-sidebar .ml-category-search-wrap:focus-within {
    border-color: #548067;
    box-shadow: 0 0 0 3px rgba(25, 81, 58, .1);
}
body #store-sidebar .ml-category-search-wrap > i {
    flex-shrink: 0;
    font-size: .82rem;
}
body #store-sidebar #ml-category-search {
    min-width: 0;
    width: 100%;
    height: 42px;
    flex: 1 1 auto;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    color: #204d36;
    font: 400 .86rem/1.4 Arial, sans-serif;
}
body #store-sidebar #ml-category-search::placeholder {
    color: #819083;
    opacity: 1;
}
body #store-sidebar .ml-category-results[hidden],
body #store-sidebar .ml-category-current[hidden] {
    display: none !important;
}
body #store-sidebar .ml-category-results {
    display: block;
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 314px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 120;
    padding: 6px;
    background: #fffefb;
    border: 1px solid #d7e4d7;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(19, 55, 34, .16);
    scrollbar-width: thin;
}
body #store-sidebar .ml-category-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    width: 100%;
    min-height: 43px;
    padding: 10px 30px 10px 12px;
    color: #31543e;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: .87rem;
    line-height: 1.4;
}
body #store-sidebar .ml-category-option:hover,
body #store-sidebar .ml-category-option.is-keyboard-active,
body #store-sidebar .ml-category-option:focus-visible {
    background: #eef4e9;
    color: #184d34;
    outline: none;
}
body #store-sidebar .ml-category-option.is-selected {
    background: #e6f0e3;
    color: #145038;
    font-weight: 600;
}
body #store-sidebar .ml-category-option-name {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}
body #store-sidebar .ml-category-option-path {
    color: #81907f;
    font-size: .7rem;
    font-weight: 400;
    line-height: 1.35;
}
body #store-sidebar .ml-category-option > i {
    position: absolute;
    top: 14px;
    right: 12px;
    font-size: .75rem;
}
body #store-sidebar .ml-category-empty {
    margin: 0;
    padding: 14px 10px;
    color: #768676;
    font-size: .82rem;
}
body #store-sidebar .ml-category-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding: 8px 9px 8px 12px;
    color: #205238;
    background: #eaf4e7;
    border-radius: 9px;
}
body #store-sidebar .ml-category-current > div {
    min-width: 0;
}
body #store-sidebar .ml-category-current small {
    display: block;
    color: #607862;
    font-size: .67rem;
}
body #store-sidebar .ml-category-current strong {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
body #store-sidebar #ml-category-reset {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 30px;
    height: 30px;
    background: #fff;
    color: #295840;
    border: 1px solid #ccdfcd;
    border-radius: 50%;
}
body #store-sidebar #ml-category-reset:hover {
    background: #f3faf1;
}
@media(max-width:991.98px) {
    body #store-sidebar .ml-category-results {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 8px;
        max-height: min(40dvh, 320px);
        box-shadow: none;
    }
}
@media(prefers-reduced-motion:reduce) {
    body #store-sidebar .ml-category-search-wrap,
    body #store-sidebar .ml-searchable-categories .category-collapsible-header .toggle-icon {
        transition: none !important;
    }
}


/* Filter discovery: start closed, display one prominent toggle in the product toolbar. */
body #store-products .store-toolbar #show-filters-desktop,
body #store-products .store-toolbar #toggle-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 38px;
    padding: 8px 15px !important;
    border: 1px solid #155039 !important;
    border-radius: 22px !important;
    background: #155039 !important;
    color: #fff !important;
    font-weight: 700;
    font-size: .88rem;
    box-shadow: 0 3px 9px rgba(21, 80, 57, .15);
    white-space: nowrap;
    transition: background-color .2s ease, box-shadow .2s ease;
}
body #store-products .store-toolbar #show-filters-desktop:hover,
body #store-products .store-toolbar #toggle-filters:hover {
    background: #206d50 !important;
    border-color: #206d50 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(21, 80, 57, .2);
}
body #store-products .store-toolbar #show-filters-desktop:focus-visible,
body #store-products .store-toolbar #toggle-filters:focus-visible {
    outline: 2px solid #b29b66 !important;
    outline-offset: 3px;
}
body #store-products .store-toolbar .ml-filter-attention-label {
    display: inline-block;
    transform-origin: 50% 70%;
    animation: mlFilterAttentionWiggle 6s ease-in-out 1s infinite;
}
/* A small two-beat nudge followed by a long quiet interval. */
@keyframes mlFilterAttentionWiggle {
    0%, 2%, 12%, 100% { transform: translateY(0) rotate(0); }
    4%, 9% { transform: translateY(-2px) rotate(-3deg); }
    6%, 11% { transform: translateY(1px) rotate(3deg); }
}
body #open-filters-fab { display: none !important; } /* Avoid duplicated floating filter buttons. */
@media (min-width: 992px) {
    body #store-products .store-toolbar #toggle-filters { display: none !important; }
    body #sidebar-column:not(.collapsed) ~ .col-lg-9 #show-filters-desktop { display: none !important; }
}
@media (max-width: 991.98px) {
    body #store-products .store-toolbar #show-filters-desktop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    body #store-products .store-toolbar .ml-filter-attention-label {
        animation: none !important;
    }
    body #store-products .store-toolbar #show-filters-desktop,
    body #store-products .store-toolbar #toggle-filters {
        transition: none !important;
    }
}


/* MING LIFE tablet product grid: expand content fully when filters are hidden. */
body #store-products #sidebar-column.collapsed + .col-lg-9,
body #store-products #sidebar-column.collapse-hidden + .col-lg-9 {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}
body #store-products .product-grid-wrapper,
body #store-products #products-container {
    min-width: 0;
}
body #store-products #products-container {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}
/* Respect list-view; these dimensions only affect grid cards and skeletons. */
@media (max-width: 575.98px) {
    body #store-products .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    body #store-products .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    body #store-products .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    body #store-products #sidebar-column.collapsed + .col-lg-9 .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
    }
    body #store-products #sidebar-column:not(.collapsed) + .col-lg-9 .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    body #store-products #sidebar-column.collapsed + .col-lg-9 .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
    }
    body #store-products #sidebar-column:not(.collapsed) + .col-lg-9 .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
    }
}
@media (min-width: 1400px) {
    body #store-products #sidebar-column.collapsed + .col-lg-9 .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 16.666667% !important;
        width: 16.666667% !important;
        max-width: 16.666667% !important;
    }
    body #store-products #sidebar-column:not(.collapsed) + .col-lg-9 .product-grid-wrapper:not(.list-view) #products-container > div[class*="col-"] {
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    body #store-products .store-toolbar {
        padding: 14px !important;
    }
    body #store-products .toolbar-row {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }
    body #store-products .toolbar-search-group {
        min-width: min(100%, 250px);
        flex: 1 1 270px !important;
    }
    body #store-products .store-search-group {
        max-width: none;
        min-height: 42px;
    }
    body #store-products .toolbar-actions {
        gap: 8px !important;
    }
    body #store-products .toolbar-actions > .btn,
    body #store-products .toolbar-actions .dropdown > .btn {
        min-height: 40px;
    }
    body #store-products .product-grid-wrapper:not(.list-view) .product-card .product-image {
        height: auto !important;
        aspect-ratio: 1 / 1;
    }
    body #store-products .product-grid-wrapper:not(.list-view) .product-card .product-image img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    body #store-products .product-card .product-info {
        padding: .55rem .65rem .7rem !important;
    }
    body #store-products .product-card .product-name {
        font-size: .9rem !important;
        line-height: 1.4 !important;
        min-height: 2.5rem;
    }
    body #store-products .product-card .product-price .discount-price {
        font-size: 1rem !important;
        letter-spacing: 0;
    }
    body #store-products .product-card .product-stats {
        font-size: .72rem !important;
        gap: .35rem;
        flex-wrap: wrap;
    }
}
@media (max-width: 575.98px) {
    body #store-products #products-container { --bs-gutter-x: .75rem; }
    body #store-products .product-card .product-info { padding: .42rem .5rem .55rem !important; }
}
