    #menu-mobile .sub-toggle:before,
    .menu--mobile .sub-toggle:before {
        content: '';
        position: absolute;
        top: 44%;
        left: 50%;
        width: 9px;
        height: 9px;
        background: transparent !important;
        border: 0;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: translate(-50%, -50%) rotate(45deg);
        transition: transform .25s ease, top .25s ease;
    }
    #menu-mobile .sub-toggle:after,
    .menu--mobile .sub-toggle:after {
        display: none !important;
    }
    #menu-mobile .sub-toggle.active:before,
    .menu--mobile .sub-toggle.active:before {
        top: 56%;
        transform: translate(-50%, -50%) rotate(-135deg);
    }
    /* Hide the decorative leading icons (phone, heart, user, bag, etc.) on the
       mobile main-menu drawer items — text only. Scoped to #menu-mobile so the
       Categories drawer (#navigation-mobile) and desktop menu are untouched.
       Chevron is a .sub-toggle span, not an <i>, so it stays. (stakeholder req) */
    #menu-mobile .menu--mobile li > a > i {
        display: none !important;
    }

    /* Telegram 6924 (Nastya): a mega-menu column without children renders a bare <a> (12px/400),
       e.g. Melna piektdiena -> Swarovski. Style it like a column heading (<h4>) that has children.
       Mobile drawer only; the desktop mega menu is untouched. */
    #navigation-mobile .mega-menu__column > a:not(:has(h4)) {
        display: block;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
        padding: 10px 0;
        min-height: 40px;
        color: #000;
    }

    /* Task 2971 (Nastya): a discounted product that also carries a label showed
       both badges on one row (.ps-product__badge is float:left). Stack them so
       each badge gets its own line. Single-badge cards are unaffected. */
    .ps-product__badges {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .ps-product__badges .ps-product__badge {
        float: none;
        margin-right: 0;
    }
    /* Label on the first line, discount underneath (Nastya, 2981 — reverted the
       2979 swap). Markup order already gives this, so no `order` override. */

    /* Task 3044 (Nastya): the "bestsellers" and "new arrivals" carousels on the
       home page showed a single product per screen on phones. The card sizes
       itself from its content (max-width 400px), which is wider than the screen,
       so only one fitted. Size the slide to half the carousel instead. */
    @media (max-width: 767.98px) {
        .product-carousel {
            gap: 12px !important;
        }
        .product-carousel .product-gallery-item {
            flex: 0 0 calc(50% - 6px) !important;
            max-width: calc(50% - 6px);
            padding-left: 0;
            padding-right: 0;
        }
        .product-carousel .v-rootapi-product-item {
            max-width: 100%;
            padding: 0;
        }

        /* Task 3046 (Nastya): the carousel container cancels its own side padding
           with margin: 0 -20px, so the cards ran into the screen edges once the
           slides were resized. Keep the padding, drop the negative margin. */
        body.homepage .product-carousel-container {
            margin-left: 0;
            margin-right: 0;
            padding-left: 16px;
            padding-right: 16px;
        }
        /* The grey "frame" around the photo is the image box's own background. */
        body.homepage .product-carousel .v-rootapi-product-item__img-wrap {
            background-color: transparent;
        }
    }

    /* Task 3015 (Nastya): the list view collapsed into a tall single column on
       phones - the theme sets `.ps-product--wide{flex-flow:row wrap}` and a full
       width thumbnail below 479px, so photo, title, price and button each took a
       full row. Keep the same shape the list has on a narrow desktop window:
       photo on the left, text and button on the right. */
    @media (max-width: 767.98px) {
        .ps-shopping-product > .ps-product--wide {
            flex-flow: row nowrap;
            margin-bottom: 16px;
            align-items: flex-start;
        }
        .ps-product--wide .ps-product__thumbnail {
            flex: 0 0 140px;
            min-width: 140px;
            max-width: 140px;
            margin-bottom: 0;
        }
        /* The container holds text and the buy column side by side on desktop;
           at this width they stack, but inside the right-hand half only. */
        .ps-product--wide .ps-product__container {
            flex-flow: column nowrap;
            padding: 10px 12px;
        }
        .ps-product--wide .ps-product__shopping {
            flex-basis: auto;
            margin-top: 10px;
        }
        .ps-product--wide .ps-product__content {
            padding: 0;
        }
        /* The badges are static inside the thumbnail, so with the photo boxed to
           140px they dropped underneath it. Pin them to the top-left of the photo,
           the same place they sit on a product card. */
        .ps-product--wide .ps-product__thumbnail .ps-product__badges {
            position: absolute;
            top: 6px;
            left: 6px;
            z-index: 2;
        }
    }

    /* Task 3013 (Nastya): make the discount flag smaller. The theme gives every
       badge a fixed 80px box with 14px text; the percentage is 3-4 characters, so
       it only needs to be as wide as its content. Scoped to the discount badge so
       the label badges (Outlet, New, ...) keep their current size. */
    /* Nastya 6678: label badges (Outlet, New, Black Friday ...) get the same size as the discount flag. */
    .ps-product__badge.rootapi-product-item__label-sale,
    .ps-product__badges .ps-product__badge {
        width: auto;
        min-width: 0;
        padding: 2px 6px;
        font-size: 11px;
        line-height: 16px;
        border-radius: 3px;
    }

    /* Mega menu picture (Nastya 5625): it must end at the last menu row, not stretch the panel.
       The <img> is taken out of the flow so the text columns alone set the row height. */
    @media (min-width: 1200px) {
        .henrymoon-grid .henrymoon-grid-image {
            position: relative !important;
            flex: 0 0 400px !important;
            width: 400px !important;
            max-width: 400px !important;
            height: auto !important;
            max-height: none !important;
            min-height: 260px !important; /* a bit larger picture (Nastya #5638) */
            align-self: stretch !important;
            margin-bottom: 1.5rem; /* = the ul margin under the last row */
        }
        .henrymoon-grid .henrymoon-grid-image a {
            position: absolute;
            inset: 0;
            display: block;
        }
        .henrymoon-grid .henrymoon-grid-image img {
            position: absolute !important;
            inset: 0;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover;
        }
    }

    /* Task 3001 + 2001 (Nastya): mobile listing density and filter off-canvas.
       These used to live in views/ecommerce/includes/products-list.blade.php, but
       that <style> block never reached the browser: the page-speed optimizer keeps
       only some inline blocks, and that one was dropped after first paint — the
       "correct layout flashes, then reverts" report. The header block survives, so
       the rules live here. */
    @media (max-width: 767.98px) {
        /* Grid = 2 cards per row. The theme sets column-gap:24px on the row, so
           size the card for that gap: 2 * (50% - 12px) + 24px = 100%. */
        .ps-shopping-product > .row {
            justify-content: flex-start;
            margin-left: 0;
            margin-right: 0;
        }
        .ps-shopping-product > .row > .rootapi-product-item {
            flex: 0 0 calc(50% - 12px);
            max-width: calc(50% - 12px);
            padding-left: 0;
            padding-right: 0;
        }
        /* List view stays one per row. */
        .ps-shopping-product > .ps-product--wide {
            flex: 0 0 100%;
            max-width: 100%;
            width: 100%;
        }
    }

    @media (max-width: 991.98px) {
        /* List card: drop the empty band between image and price/add-to-cart. */
        .ps-product--wide .ps-product__content {
            min-height: 0;
        }
        .ps-product--wide .ps-product__thumbnail {
            margin-bottom: 12px;
        }
        .ps-product--wide .ps-product__container {
            padding: 12px;
        }

        /* Android Chrome's dynamic address bar makes 100vh taller than the visible
           viewport, pushing the filter panel off-screen; use dvh. */
        .ps-layout--shop .ps-layout__left {
            height: 100dvh;
        }
        /* Backdrop had z-index:-1, which on some Android builds drops it behind the
           page and leaves the panel invisible. Below the panel, above the page. */
        .ps-layout--shop .ps-layout__left.active .screen-darken {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }
        .ps-layout--shop .ps-layout__left.active .ps-layout__left-container {
            position: relative;
            z-index: 1;
        }
    }
