/* ARMANIPLAST-PASS-036 — hamburger glyph, Narges listing cards, filter layer */

/* 1. Hamburger: scale the three-line glyph only. Hit target stays 2.5rem. */
@media (max-width: 991.98px) {
    header.header .nav-toggler > button.icon {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        overflow: visible;
    }
    header.header .nav-toggler > button.icon > i,
    header.header .nav-toggler > button.icon > .ri-menu-fill {
        font-size: 1.65rem; /* 1.1rem × 1.5 */
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.65rem;
        height: 1.65rem;
        transform: none;
    }
}

/*
 * 2. Listing cards — Narges compiled breakpoints (read-only reference):
 *    default flex 33.33%; max-width 768 → 50%; max-width 600 → 100%.
 *    Pass 034 CSS grid (1 col <576, 2 from 576, 3 from 992) is not the Narges
 *    parent logic and kept a 200px image box at ≤430 (Pass 032).
 */
.product-content .products-list {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    box-sizing: border-box;
}
.product-content .products-list .item {
    flex: 33.33% 0 0 !important;
    width: 33.33%;
    max-width: 33.33%;
    min-width: 0;
    padding: 15px 5px !important;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .product-content .products-list .item {
        flex: 0 0 50% !important;
        width: 50%;
        max-width: 50%;
        padding: 15px 5px !important;
    }
}
@media (max-width: 600px) {
    .product-content .products-list .item {
        flex: 0 0 100% !important;
        width: 100%;
        max-width: 100%;
        padding: 15px 5px !important;
    }
}
@media (max-width: 991.98px) {
    .d-flex.flex-wrap.w-100 > .product-content.col-lg-9 {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Narges image well is 220px; keep Armani <img> visible (Narges hides img). */
.product-content .product-background-box {
    height: 220px !important;
}
.product-content .product-background-box img,
.product-content .product-background-box img.product-card-photo {
    height: 220px !important;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

/*
 * 3. Category filter must not live under header's stacking context (z-index 30/220).
 * Portal (body) + this layer beats sticky nav (220) and main drawer (400) without
 * changing nav-mobile overlay rules.
 */
body.ap-filter-layer-on > .ap-filter-backdrop.is-on {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 5100 !important;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto !important;
}
body.ap-filter-layer-on > .product-aside#apFilterDrawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(92vw, 380px) !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 5200 !important;
    background: #fff !important;
    overflow-y: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 0.5rem 0.75rem 2rem;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
}
body.ap-filter-layer-on > .product-aside#apFilterDrawer .ap-filter-close {
    display: block;
    position: relative;
    z-index: 1;
}

/* 4. Instagram: no empty chrome when the section is omitted in PHP.
    If a leftover node exists with [hidden] or data-state=unavailable, collapse it. */
.instagram-feed-widget[hidden],
.instagram-feed-widget[data-ap-ig-state="UNAVAILABLE"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
.ap-ig-tile {
    display: block;
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
}
.ap-ig-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
