/* ==========================================================================
   frontend.css — Mountings Starter Plugin  v3.1
   All sections intact. Key fixes in §14: collapsed sidebar head no longer
   uses position:sticky (causes overflow at 52px width), and collapsed
   header properly centers the expand icon.
   ========================================================================== */

/* ── 1. Shared buttons ──────────────────────────────────────────────────── */
.mi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #0a0a0a; color: #fff; padding: 12px 22px; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .06em; border: 1px solid #0a0a0a; cursor: pointer; transition: background .18s, color .18s; font-family: inherit; }
.mi-btn:hover        { background: #fff; color: #0a0a0a; }
.mi-btn--sm          { padding: 7px 14px; font-size: 11px; }
.mi-btn--outline     { background: transparent; color: #fff; border-color: #fff; }
.mi-btn--outline:hover { background: #fff; color: #0a0a0a; }
.mi-btn--white       { background: #fff; color: #0a0a0a; border-color: #fff; }
.mi-btn--white:hover { background: #0a0a0a; color: #fff; }
.mi-btn--ghost       { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.mi-btn--ghost:hover { border-color: #fff; background: white; }

/* ── 2. Mega menu ───────────────────────────────────────────────────────── */
.mi-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; background: rgba(255,255,255,.97); border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 32px 5%; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.mi-mega-grid h3, .mi-mega-grid h4 { margin: 0 0 12px; text-transform: uppercase; }
.mi-mega-grid p   { margin: 0 0 18px; color: #333; }
.mi-mega-grid ul  { list-style: none; margin: 0 0 22px; padding: 0; }
.mi-mega-grid li  { border-bottom: 1px solid #eee; }
.mi-mega-grid li a { display: block; padding: 8px 0; color: #111; text-decoration: none; }
.mi-mega-grid a:hover { color: #ff2b1b; }
@media (max-width: 900px) { .mi-mega-grid { grid-template-columns: 1fr; } }

/* ── 3. Attribute tags & colour dots ────────────────────────────────────── */
.mi-attr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.mi-attr-tag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d9d9d9; background: #f4f4f4; color: #0a0a0a; padding: 5px 7px; font-size: 11px; line-height: 1.15; }
.mi-attr-tag b    { font-size: 10px; text-transform: uppercase; color: #666; font-weight: 700; }
.mi-attr-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-attr-tags--single { margin: 16px 0 18px; padding: 14px 0; border-top: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9; gap: 8px; }
.mi-attr-tags--single .mi-attr-tag { font-size: 13px; padding: 8px 10px; }
.mi-attr-tags--single .mi-attr-tag span { white-space: normal; overflow: visible; text-overflow: unset; word-break: break-word; }
.mi-color-dot { display: inline-block; width: 12px; height: 12px; min-width: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background: var(--mi-color, #d9d9d9); vertical-align: -1px; }
.mi-filter .mi-color-dot { margin-right: 8px; }
.mi-attr-tag--spalva .mi-color-dot { width: 14px; height: 14px; }
.mpt-color-strip { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 0; align-items: center; }
.mpt-color-strip .mi-color-dot { width: 13px; height: 13px; }

/* ── 4. Colour variation swatches ───────────────────────────────────────── */
.mi-native-color-select { position: absolute !important; inline-size: 1px !important; block-size: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.mi-variation-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.mi-color-swatch { appearance: none; border: 2px solid #d9d9d9; background: #fff; color: #0a0a0a; border-radius: 0; min-height: 42px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; transition: border-color .18s; }
.mi-color-swatch span { display: block; width: 24px; height: 24px; border: 1px solid #d9d9d9; background: var(--mi-color, #d9d9d9); }
.mi-color-swatch em { font-style: normal; font-size: 12px; }
.mi-color-swatch:hover, .mi-color-swatch.is-selected { border-color: #0a0a0a; }

/* ── 5. Wishlist heart SVG ──────────────────────────────────────────────── */
.mi-heart-svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill .18s, stroke .18s, transform .22s cubic-bezier(.34,1.56,.64,1); }
.mi-wishlist-btn.is-active .mi-heart-svg { fill: black; stroke: black; }
.mi-wishlist-btn:hover .mi-heart-svg { transform: scale(1.2); }
@keyframes mi-heart-beat { 0%{transform:scale(1)} 25%{transform:scale(1.45)} 50%{transform:scale(.9)} 75%{transform:scale(1.15)} 100%{transform:scale(1)} }
.mi-heart-pulse .mi-heart-svg { animation: mi-heart-beat .5s ease forwards; }

/* ── 6. Wishlist buttons ────────────────────────────────────────────────── */
.mi-wishlist-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: none; cursor: pointer; font-family: inherit; transition: background .18s, color .18s, border-color .18s; position: relative; }
.mi-wishlist-btn--loop {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 20;
    width: 34px;
    height: 34px;
    padding: 0;
    color: rgba(0,0,0,.45);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: color .18s, transform .18s, background .18s;
}
.mi-wishlist-btn--loop .mi-heart-svg { width: 20px; height: 20px; stroke-width: 1.8; filter: drop-shadow(0 1px 2px rgba(255,255,255,.9)); }
.mi-wishlist-btn--loop .mi-wishlist-text { display: none; }
.mi-wishlist-btn--loop:hover { color: #0a0a0a; transform: scale(1.15); }
.mi-wishlist-btn--loop.is-active { color: #ff2b1b; }
.mi-wishlist-btn--loop.is-active:hover { transform: scale(1.2); }
.mi-wishlist-btn--loop:hover .mi-heart-svg { transform: scale(1); }
.mi-wishlist-btn--single { width: 100%; margin: .8rem 0 0; padding: 13px 20px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #0a0a0a; border: 2px solid #0a0a0a; gap: 10px; }
.mi-wishlist-btn--single .mi-heart-svg { width: 20px; height: 20px; }
.mi-wishlist-btn--single:hover { background: #0a0a0a; color: #fff; }
.mi-single-wishlist { margin-top: 8px; }
.mi-wishlist-link .mi-heart-svg { width: 22px; height: 22px; stroke-width: 1.8; display: block; }
.mi-wishlist-link:hover .mi-heart-svg { transform: scale(1.15); }
.mi-wishlist-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; background: #ff2b1b; color: #fff; font-size: 10px; font-weight: 700; margin-left: 2px; border-radius: 9px; }

/* ── 7. Slide panels ────────────────────────────────────────────────────── */
.mi-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: #0a0a0a; color: #fff; flex-shrink: 0; min-height: 56px; }
.mi-panel__header strong { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.mi-panel__close { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; transition: color .18s; }
.mi-panel__close:hover { color: #ff2b1b; }
.mi-panel__footer { padding: 16px 20px; border-top: 1px solid #e5e5e5; display: flex; gap: 10px; flex-shrink: 0; }
.mi-panel-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 16px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border: 2px solid #0a0a0a; background: #fff; color: #0a0a0a; text-decoration: none; cursor: pointer; transition: background .18s, color .18s; font-family: inherit; }
.mi-panel-btn:hover { background: #0a0a0a; color: #fff; }
.mi-panel-btn--red { background: #ff2b1b; border-color: #ff2b1b; color: #fff; }
.mi-panel-btn--red:hover { background: #cc1a0d; border-color: #cc1a0d; }
.mi-panel-btn--outline { background: transparent; color: #0a0a0a; }
.mi-panel-btn--outline:hover { background: #0a0a0a; color: #fff; }

/* ── 8. Wishlist drawer ─────────────────────────────────────────────────── */
.mi-wishlist-drawer { position: fixed; inset: 0; z-index: 9996; pointer-events: none; }
.mi-wishlist-drawer.is-open { pointer-events: auto; }
.mi-wishlist-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .28s; cursor: pointer; }
.mi-wishlist-drawer.is-open .mi-wishlist-overlay { opacity: 1; }
.mi-wishlist-panel { position: fixed; top: 0; left: 0; bottom: 0; width: min(400px,95vw); background: #fff; display: flex; flex-direction: column; border-right: 2px solid #0a0a0a; transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1); z-index: 9997; overflow: hidden; }
.mi-wishlist-drawer.is-open .mi-wishlist-panel { transform: translateX(0); }
.mi-wishlist-panel__content { flex: 1; overflow-y: auto; padding: 0 20px; scrollbar-width: thin; }

/* ── 9. Wishlist item list ──────────────────────────────────────────────── */
.mi-wishlist-items { display: flex; flex-direction: column; }
.mi-wishlist-item { display: grid; grid-template-columns: 72px 1fr 32px; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.mi-wishlist-item:last-child { border-bottom: 0; }
.mi-wishlist-item__img img { width: 72px; height: 72px; object-fit: contain; border: 1px solid #eee; display: block; padding: 4px; }
.mi-wishlist-item__title { color: #0a0a0a; text-decoration: none; font-weight: 400; font-size: 12px; text-transform: uppercase; display: block; margin-bottom: 6px; line-height: 1.3; }
.mi-wishlist-item__title:hover { color: #ff2b1b; }
.mi-wishlist-item__price { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.mi-wishlist-remove { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: #ccc; padding: 0; line-height: 1; transition: color .18s; }
.mi-wishlist-remove:hover { color: #ff2b1b; }
.mi-wishlist-empty { padding: 32px 0; color: #888; font-size: 13px; text-align: center; }

/* ── 10. Toast ──────────────────────────────────────────────────────────────── */
.mi-wishlist-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: #0a0a0a;
    color: #fff;
    padding: 18px 28px;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
}
.mi-wishlist-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}
.mi-wishlist-toast__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.55);
}
.mi-wishlist-toast__delta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.mi-wishlist-toast__heart {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    position: relative;
    top: 1px;
}

.mi-wishlist-toast__name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    max-width: 240px;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
}

/* Badge hides when empty */
.mi-wishlist-count.is-empty { display: none !important; }

/* ── 11. Wishlist page ──────────────────────────────────────────────────── */
.mi-wishlist-page { max-width: 1280px; margin: 40px auto; padding: 0 24px; }
.mi-wishlist-page h1 { font-size: 28px; text-transform: uppercase; margin: 0 0 24px; }

/* ── 12. Specs table & product video ────────────────────────────────────── */
.mi-specs { width: 100%; border-collapse: collapse; margin: 24px 0; }
.mi-specs th, .mi-specs td { border-top: 1px solid #d9d9d9; padding: 12px; text-align: left; font-size: 13px; }
.mi-specs th { width: 34%; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #666; background: #f4f4f4; }
.mi-product-video { clear: both; margin: 34px 0; border-top: 1px solid #d9d9d9; padding-top: 24px; }
.mi-video-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mi-video-title { margin: 0; text-transform: uppercase; font-size: 16px; }
.mi-video-toggle { display: inline-flex; align-items: center; gap: 8px; }
.mi-video-chevron { transition: transform .2s; }
.mi-video-toggle[aria-expanded="true"] .mi-video-chevron { transform: rotate(180deg); }
.mi-video-frame { aspect-ratio: 16/9; background: #000; }
.mi-video-frame iframe { width: 100%; height: 100%; display: block; }
.mi-video-inner { position: relative; width: 100%; height: 100%; }
.mi-video-poster { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 13. Utility ────────────────────────────────────────────────────────── */
body.mi-drawer-open { overflow: hidden; }
.mi-hero { min-height: 420px; background: #0a0a0a; color: #fff; display: flex; align-items: center; padding: 48px 5%; }
.mi-hero__content { max-width: 760px; }
.mi-hero h1 { font-size: clamp(32px,5vw,56px); line-height: 1; margin: 0 0 18px; text-transform: uppercase; letter-spacing: -.04em; }
.mi-hero p { font-size: 14px; margin: 0 0 26px; color: #bbb; }

/* ── 14. Filter panel — collapsible desktop sidebar ─────────────────────── */
/*
   CRITICAL FIX: .mi-filter-head is NO LONGER position:sticky.
   When the sidebar collapses to 52px width, a sticky element inside it
   causes layout overflow and the grid doesn't expand. Using position:static
   + overflow:hidden on the panel achieves the same visual stickiness
   within the narrow column without breaking the grid layout.
*/
form.woocommerce-ordering {
    margin:0!important;
}

.mi-filter-panel {
    background: #fff;
    border: 1px solid var(--clr-border, #e5e5e5);
    overflow: hidden; /* clips the body when collapsed */
    border-top:none;
}

/* Header: "FILTRAI" + collapse arrow — BLACK bar */
.mi-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--clr-black, #0a0a0a);
    color: #fff;
    gap: 8px;
    /* position: static — NOT sticky (breaks collapsed layout) */
}

.mi-filter-head__left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden; /* prevent text overflow in narrow state */
}
.mi-filter-head__left strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.mi-filter-head__right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mi-filter-reset {
    font-size: 10px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
    transition: color .13s;
}
.mi-filter-reset:hover { color: #ff2b1b; }

/* ← Collapse button */
.mi-filter-collapse {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.mi-filter-collapse:hover { background: rgba(255,255,255,.25); }
.mi-filter-collapse__icon { transition: transform .22s ease; display: block; }

/* Collapsed states — inner panel collapse (arrow button inside sidebar) */
.mi-filter-panel.is-collapsed .mi-filter-body           { display: none; }
.mi-filter-panel.is-collapsed .mi-filter-reset          { display: none; }
.mi-filter-panel.is-collapsed .mi-filter-head           { justify-content: space-between; padding: 12px 14px; }
.mi-filter-panel.is-collapsed .mi-filter-head__left     { display: flex !important; overflow: visible; }
.mi-filter-panel.is-collapsed .mi-filter-head__right    { display: flex; }
.mi-filter-panel.is-collapsed .mi-filter-collapse__icon { transform: rotate(180deg); }

/* Sidebar-collapsed is no longer used (sidebar is now always absolute) */
.mpt-archive.sidebar-collapsed .mpt-sidebar { display: none; }

/* Filter body */
.mi-filter-body { padding: 0px; }

/* ── 15. Filter options — single-select radio style ─────────────────────── */

.mi-filter { border-bottom: 1px solid var(--clr-border, #e5e5e5); }
.mi-filter:last-child { border-bottom: 0; }

.mi-filter summary {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--clr-text, #1a1a1a);
    user-select: none;
    background: var(--clr-gray, #f4f4f4);
    transition: background .13s;
}
.mi-filter summary::-webkit-details-marker { display: none; }
.mi-filter summary::after { content: "+"; font-size: 16px; font-weight: 300; color: var(--clr-muted, #888); flex-shrink: 0; }
.mi-filter[open] summary::after { content: "−"; }
.mi-filter[open] summary { background: #fff; border-bottom: 1px solid var(--clr-border, #e5e5e5); }

.mi-filter ul { list-style: none !important; margin: 0 !important; padding: 4px 0 6px !important; }
.mi-color-grid { padding-left: 16px !important; padding-right: 16px !important; }
.mi-filter li { list-style: none !important; border: 0 !important; }

/* Option link */
.mi-filter-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--clr-text, #1a1a1a);
    text-decoration: none;
    transition: background .12s;
}
.mi-filter-opt:hover { background: var(--clr-gray, #f4f4f4); }

/* Radio circle */
.mi-filter-opt__check {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--clr-border, #e5e5e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .13s, background .13s;
}
.mi-filter-opt__check::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: background .13s;
}

/* Active = filled black circle */
.mi-filter-opt.is-active { font-weight: 600; }
.mi-filter-opt.is-active .mi-filter-opt__check {
    border-color: var(--clr-black, #0a0a0a);
    background: var(--clr-black, #0a0a0a);
}
.mi-filter-opt.is-active .mi-filter-opt__check::after { background: #fff; }

.mi-filter-opt__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mi-filter-opt small {
    font-size: 10px;
    color: var(--clr-muted, #888);
    flex-shrink: 0;
    margin-left: 2px;
}

/* ── 16. Filter badge ───────────────────────────────────────────────────── */
.mi-filter-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 4px;
    background: white; color:black;
    font-size: 9px; font-weight: 800; border-radius: 9px; line-height: 1;
    border:1px solid;
}
.mi-filter-badge--bar { margin-left: 4px; }

/* ── 17. Mobile filter drawer (slide-up) ────────────────────────────────── */
.mi-mob-filter { display: none; position: fixed; inset: 0; z-index: 9990; pointer-events: none; }
.mi-mob-filter.is-open { pointer-events: auto; }
.mi-mob-filter__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .28s; cursor: pointer; }
.mi-mob-filter.is-open .mi-mob-filter__backdrop { opacity: 1; }
.mi-mob-filter__panel {
    position: absolute; bottom: 0; left: 0; right: 0; max-height: 85vh;
    background: #fff; display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden; border-top: 3px solid #0a0a0a;
}
.mi-mob-filter.is-open .mi-mob-filter__panel { transform: translateY(0); }
.mi-mob-filter__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #0a0a0a; color: #fff; flex-shrink: 0; }
.mi-mob-filter__header strong { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mi-mob-filter__header-actions { display: flex; align-items: center; gap: 10px; }
.mi-mob-filter__close { background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.mi-mob-filter__close:hover { background: #ff2b1b; }
.mi-mob-filter__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 80px; }
.mi-mob-filter__body .mi-filter-collapse { display: none; }
.mi-mob-filter__body .mi-filter-head { position: static; }

/* ── 18. Mobile bottom filter bar ───────────────────────────────────────── */
.mi-mob-filter-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9980; background: #0a0a0a; border-top: 1px solid rgba(255,255,255,.1); height: 56px; align-items: stretch; }
.mi-mob-filter-bar__btn, .mi-mob-filter-bar__sort { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; background: transparent; border: none; cursor: pointer; text-decoration: none; font-family: inherit; transition: background .15s; }
.mi-mob-filter-bar__btn:hover, .mi-mob-filter-bar__sort:hover { background: rgba(255,255,255,.08); }
.mi-mob-filter-bar__btn { border-right: 1px solid rgba(255,255,255,.1); }

@media (max-width: 959px) {
    .mi-mob-filter     { display: block; }
    .mi-mob-filter-bar { display: flex; }
    .mpt-archive { padding-bottom: 72px; }
    .mpt-sidebar { display: none; }
    .mpt-archive { grid-template-columns: 1fr !important; }
    .mi-filter-collapse { display: none; }
}

/* Radius cleanup */
.mi-btn, .mi-panel-btn, .mi-wishlist-btn, .mi-wishlist-panel,
.mi-wishlist-toast, .mi-attr-tag, .mi-color-swatch,
.mi-color-swatch span, .mi-wishlist-count { border-radius: 0 !important; }

/*wishlist aditionall css*/
/* ── Wishlist drawer: stock & colour variation rows ─────────────── */
.mi-wishlist-item__stock { margin: 6px 0 0; }

.mi-wl-stock {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 2px 6px;
}
.mi-wl-stock--in  { background: #e8f5e9; color: #2e7d32; }
.mi-wl-stock--low { background: #fff8e1; color: #f57f17; }
.mi-wl-stock--out { background: #fce4e4; color: #c62828; }

.mi-wl-variations {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mi-wl-variations li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #444;
    border: none !important;
}
.mi-wl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.18);
    flex-shrink: 0;
}

/* ── AJAX filter loading state ── */
.mi-filter-loading {
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s;
}
.mi-filter-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    cursor: wait;
}
.mpt-products-area { position: relative; }

/* ── Wishlist email form in drawer footer ────────────────────────── */

/* Stack footer vertically — override section 7's flex row + gap */
.mi-panel__footer {
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
}

/* Email form row — input + button side by side */
.mi-wl-email-form {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 0;
}

.mi-wl-email-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--clr-border, #e5e5e5);
    border-right: none;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}

.mi-wl-email-input:focus {
    border-color: #0a0a0a;
}

.mi-wl-email-btn {
    height: 40px;
    padding: 0 16px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.mi-wl-email-btn:hover    { background: #333; }
.mi-wl-email-btn:disabled { background: #999; cursor: not-allowed; }

/* Full-width link button in footer */
.mi-panel__footer .mi-panel-btn {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

/* Error msg — inline below form */
.mi-wl-email-msg {
    display: none;
    width: 100%;
    font-size: 11px;
    padding: 4px 0 0;
    color: #c62828;
}
.mi-wl-email-msg.is-error { display: block; }

/* Email send success toast */
.mi-wl-send-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #2e7d32;
    color: #fff;
    padding: 12px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.mi-wl-send-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
