:root {
    --micasa-dropdown-ink: #1f1e31;
    --micasa-dropdown-muted: #77727e;
    --micasa-dropdown-line: #ebe2d9;
    --micasa-dropdown-soft: #faf6f1;
    --micasa-dropdown-brand: #ce9a60;
}

/* Global Bootstrap menus — specialist product/header menus keep their own layout. */
.dropdown-menu:not(.micasa-account-menu__panel):not(.share_dropdown):not(.micasa-wp-mega-menu) {
    min-width: 210px;
    margin-top: 8px !important;
    margin-inline-start: 0 !important;
    padding: 7px;
    border: 1px solid var(--micasa-dropdown-line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 48px rgba(31, 30, 49, .14);
    color: var(--micasa-dropdown-ink);
    overflow: hidden;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.dropdown-menu:not(.micasa-account-menu__panel):not(.share_dropdown):not(.micasa-wp-mega-menu).show {
    animation: micasa-dropdown-in .16s ease-out both;
}
.dropdown-menu .dropdown-header {
    padding: 8px 11px 6px;
    color: #9a7048;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.dropdown-menu .dropdown-item {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    margin: 2px 0;
    padding: 9px 11px;
    border-radius: 10px;
    color: #4f4b57;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}
.dropdown-menu .dropdown-item i,
.dropdown-menu .dropdown-item svg {
    flex: 0 0 auto;
    color: #a8713e;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #74491f;
    background: var(--micasa-dropdown-soft);
    outline: 0;
    transform: translateX(2px);
}
[dir="rtl"] .dropdown-menu .dropdown-item:hover,
[dir="rtl"] .dropdown-menu .dropdown-item:focus { transform: translateX(-2px); }
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, #d6a66f, #bd8045);
}
.dropdown-menu .dropdown-item.active i,
.dropdown-menu .dropdown-item.active svg,
.dropdown-menu .dropdown-item:active i,
.dropdown-menu .dropdown-item:active svg { color: #fff; }
.dropdown-menu .dropdown-divider {
    margin: 7px 5px;
    border-top-color: var(--micasa-dropdown-line);
}
.dropdown-toggle::after {
    margin-inline-start: 7px;
    vertical-align: .14em;
    transition: transform .18s ease;
}
.dropdown.show > .dropdown-toggle::after { transform: rotate(180deg); }

/* Native selects and enhanced Select2 controls share one visual language. */
select.form-control:not([multiple]),
.custom-select {
    min-height: 44px;
    padding-inline: 14px 38px;
    border: 1px solid #e4dbd2;
    border-radius: 11px;
    background-color: #fff;
    color: var(--micasa-dropdown-ink);
    font-size: 12px;
    box-shadow: 0 3px 11px rgba(31, 30, 49, .035);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
select.form-control:not([multiple]):hover,
.custom-select:hover { border-color: #d3b18e; background-color: #fffdfa; }
select.form-control:not([multiple]):focus,
.custom-select:focus {
    border-color: var(--micasa-dropdown-brand);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(206, 154, 96, .14);
}
select.form-control:not([multiple]):disabled,
.custom-select:disabled { background-color: #f4f2ef; color: #9a969e; cursor: not-allowed; }

.select2-container .select2-selection--single {
    height: 44px !important;
    border: 1px solid #e4dbd2 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: 0 3px 11px rgba(31, 30, 49, .035);
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-inline: 14px 38px !important;
    color: var(--micasa-dropdown-ink) !important;
    font-size: 12px;
    line-height: 42px !important;
}
.select2-container .select2-selection--single .select2-selection__arrow { top: 9px !important; inset-inline-end: 10px; }
.select2-container--open .select2-selection--single {
    border-color: var(--micasa-dropdown-brand) !important;
    box-shadow: 0 0 0 3px rgba(206, 154, 96, .14) !important;
}
.select2-dropdown {
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--micasa-dropdown-line) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 30, 49, .14);
    overflow: hidden;
}
.select2-results__option {
    margin: 2px 0;
    padding: 9px 11px !important;
    border-radius: 9px;
    color: #56515d;
    font-size: 12px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] { color: #74491f !important; background: var(--micasa-dropdown-soft) !important; }
.select2-container--default .select2-results__option[aria-selected="true"] { color: #fff !important; background: var(--micasa-dropdown-brand) !important; }

.dropdown-menu,
.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: #d4a46d #f5f0ea;
}
.dropdown-menu::-webkit-scrollbar,
.select2-results__options::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-track,
.select2-results__options::-webkit-scrollbar-track { background: #f5f0ea; }
.dropdown-menu::-webkit-scrollbar-thumb,
.select2-results__options::-webkit-scrollbar-thumb { border-radius: 10px; background: #d4a46d; }

@keyframes micasa-dropdown-in {
    from { opacity: 0; filter: blur(2px); }
    to { opacity: 1; filter: blur(0); }
}
@media (max-width: 575px) {
    .dropdown-menu:not(.micasa-account-menu__panel):not(.share_dropdown):not(.micasa-wp-mega-menu) {
        max-width: calc(100vw - 20px);
        border-radius: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu.show { animation: none !important; }
    .dropdown-menu .dropdown-item,
    .dropdown-toggle::after { transition: none; }
}

/* Enhanced filtering and sorting selects. Native values remain in the form. */
.micasa-smart-select{position:relative;min-width:190px;flex:1}.micasa-smart-select__native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;clip:rect(0 0 0 0);opacity:0!important;pointer-events:none}.micasa-smart-select__button{display:flex;width:100%;min-height:44px;padding:9px 12px;border:1px solid #e3dad1;border-radius:11px;align-items:center;justify-content:space-between;gap:12px;background:#fff;color:var(--micasa-dropdown-ink);font-size:12px;font-weight:700;text-align:start;box-shadow:0 3px 11px rgba(31,30,49,.035);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.micasa-smart-select__button:hover{border-color:#d5af88;background:#fffdfa}.micasa-smart-select__button:focus,.micasa-smart-select.is-open .micasa-smart-select__button{border-color:var(--micasa-dropdown-brand);outline:0;box-shadow:0 0 0 3px rgba(206,154,96,.14)}.micasa-smart-select__value{overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}.micasa-smart-select__arrow{flex:0 0 auto;color:#a97643;font-size:10px;transition:transform .18s ease}.micasa-smart-select.is-open .micasa-smart-select__arrow{transform:rotate(180deg)}.micasa-smart-select__menu{position:absolute;z-index:1080;top:calc(100% + 7px);right:0;left:0;display:none;max-height:280px;padding:6px;border:1px solid var(--micasa-dropdown-line);border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(31,30,49,.16);overflow-y:auto;overscroll-behavior:contain}.micasa-smart-select.is-open .micasa-smart-select__menu{display:block;animation:micasa-dropdown-in .16s ease-out both}.micasa-smart-select__option{display:flex;width:100%;min-height:40px;margin:2px 0;padding:8px 10px;border:0;border-radius:9px;align-items:center;justify-content:space-between;gap:10px;background:transparent;color:#55515c;font-size:12px;font-weight:600;text-align:start;transition:background .15s ease,color .15s ease}.micasa-smart-select__option:hover,.micasa-smart-select__option:focus{outline:0;background:var(--micasa-dropdown-soft);color:#794d23}.micasa-smart-select__option i{visibility:hidden;color:#fff;font-size:10px}.micasa-smart-select__option.is-selected{background:linear-gradient(135deg,#d6a66f,#bd8045);color:#fff}.micasa-smart-select__option.is-selected i{visibility:visible}.micasa-smart-select__option:disabled{opacity:.45;cursor:not-allowed}.micasa-select-control .micasa-smart-select{align-self:stretch}.micasa-select-control .micasa-smart-select__button{height:100%;min-height:48px;padding-inline:8px 12px;border:0;border-radius:0 12px 12px 0;background:transparent;box-shadow:none}.micasa-select-control .micasa-smart-select__button:focus,.micasa-select-control .micasa-smart-select.is-open .micasa-smart-select__button{box-shadow:none}.micasa-filter-panel .micasa-smart-select{width:100%;min-width:0}.micasa-filter-panel .micasa-smart-select__button{min-height:43px;background:#faf9f7}.micasa-orders-sort .micasa-smart-select{min-width:160px}.micasa-orders-sort .micasa-smart-select__button{min-height:42px}
[dir="rtl"] .micasa-select-control .micasa-smart-select__button{border-radius:12px 0 0 12px}
@media(max-width:767px){.micasa-smart-select{width:100%;min-width:0}.micasa-smart-select__menu{position:fixed;z-index:1090;top:auto;right:12px;bottom:14px;left:12px;max-height:min(380px,60vh);padding:8px;border-radius:18px;box-shadow:0 24px 70px rgba(31,30,49,.24)}.micasa-smart-select__option{min-height:46px;padding:10px 12px}}
