/* WalStore v2.2 — final responsive containment + icons + desktop categories.
   Loaded after the commerce theme. Does not change SEO/routes/data. */

html,
body.vp-site-body {
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
}
@supports (overflow: clip) {
    html,
    body.vp-site-body { overflow-x: clip !important; }
}

.vp-main-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Header cart: use the SVG already present in the Blade markup; no JS dependency. */
.vp-header-cart-btn .wc-header-cart-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.vp-header-cart-btn .wc-header-cart-svg svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: none !important;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* DESKTOP: one clean category row; each label belongs to its own icon and stays on one line. */
@media (min-width: 992px) {
    .vp-homepage .vp-home-peek-hero .vp-slider-category-strip,
    .vp-homepage .vp-home-peek-hero .vp-slider-category-strip.is-scrollable {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto 14px !important;
        padding: 10px 8px 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }
    .vp-homepage .vp-home-peek-hero .vp-slider-category-strip::-webkit-scrollbar { display: none !important; }
    .vp-homepage .vp-home-peek-hero .vp-slider-category {
        flex: 0 0 112px !important;
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
    .vp-homepage .vp-home-peek-hero .vp-slider-category-icon {
        flex: 0 0 64px !important;
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        border-radius: 50% !important;
    }
    .vp-homepage .vp-home-peek-hero .vp-slider-category-icon img,
    .vp-homepage .vp-home-peek-hero .vp-slider-category-icon svg {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    .vp-homepage .vp-home-peek-hero .vp-slider-category strong {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

@media (max-width: 991px) {
    /* Do not use 100vw/100dvw for page width; those can disagree with the layout viewport. */
    html,
    body.vp-site-body,
    .vp-main-shell,
    .vp-product-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overscroll-behavior-x: none !important;
    }

    /* Reset any old theme translation/margin that can shift the complete product canvas sideways. */
    .vp-product-page,
    .vp-product-page > .vp-container,
    .vp-product-page > .vp-container-wide,
    .vp-product-page > .vp-container.vp-container-wide,
    .vp-product-detail,
    .vp-product-gallery,
    .vp-product-summary,
    .vp-product-panels,
    .vp-product-panels > .vp-panel,
    .nova-buy-info-card,
    .nova-product-info-wrap,
    .nova-product-info-card {
        transform: none !important;
        translate: none !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vp-product-page > .vp-container,
    .vp-product-page > .vp-container-wide,
    .vp-product-page > .vp-container.vp-container-wide {
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .vp-product-detail {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        gap: 16px !important;
        overflow: hidden !important;
    }
    .vp-product-detail > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Breadcrumbs wrap instead of creating another horizontal scroller. */
    .vp-product-page .vp-breadcrumbs {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    .vp-main-image,
    #zoomContainer,
    .vp-gallery-carousel,
    .vp-thumb-strip {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .vp-main-image,
    #zoomContainer,
    .vp-gallery-carousel { overflow: hidden !important; }
    .vp-thumb-strip {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Bottom nav is owned by the actual viewport: edges define width, not vw/dvw math. */
    .vp-mobile-bottom-nav {
        position: fixed !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        overflow: hidden !important;
    }
    .vp-mobile-bottom-nav > a,
    .vp-mobile-bottom-nav > button {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Real WhatsApp-style support glyph even if the configured theme icon is blank/broken. */
    .vp-mobile-bottom-nav a[href*="wa.me"] .vp-mobile-nav-icon {
        display: none !important;
    }
    .vp-mobile-bottom-nav a[href*="wa.me"]::before {
        content: "" !important;
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        margin: 0 auto 2px !important;
        background: var(--vp-mobile-nav-whatsapp, #25d366) !important;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a9.7 9.7 0 0 0-8.33 14.67L2.5 21.5l4.96-1.14A9.75 9.75 0 1 0 12 2Zm0 17.55a7.74 7.74 0 0 1-3.95-1.08l-.28-.17-2.94.68.7-2.86-.18-.3A7.72 7.72 0 1 1 12 19.55Zm4.23-5.77c-.23-.12-1.36-.67-1.57-.75-.21-.08-.36-.12-.52.12-.15.23-.59.75-.72.9-.13.16-.27.18-.5.06-.23-.11-.97-.36-1.85-1.14-.68-.61-1.15-1.37-1.28-1.6-.13-.23-.01-.35.1-.47.1-.1.23-.27.35-.4.11-.14.15-.24.23-.4.08-.15.04-.29-.02-.4-.06-.12-.52-1.25-.71-1.72-.19-.45-.38-.39-.52-.4h-.44c-.15 0-.4.06-.61.29-.21.23-.8.78-.8 1.9 0 1.12.82 2.2.93 2.35.12.16 1.6 2.44 3.87 3.42.54.23.96.37 1.29.47.54.17 1.03.15 1.42.09.43-.07 1.36-.56 1.55-1.1.19-.54.19-1 .13-1.1-.05-.1-.21-.16-.44-.27Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a9.7 9.7 0 0 0-8.33 14.67L2.5 21.5l4.96-1.14A9.75 9.75 0 1 0 12 2Zm0 17.55a7.74 7.74 0 0 1-3.95-1.08l-.28-.17-2.94.68.7-2.86-.18-.3A7.72 7.72 0 1 1 12 19.55Zm4.23-5.77c-.23-.12-1.36-.67-1.57-.75-.21-.08-.36-.12-.52.12-.15.23-.59.75-.72.9-.13.16-.27.18-.5.06-.23-.11-.97-.36-1.85-1.14-.68-.61-1.15-1.37-1.28-1.6-.13-.23-.01-.35.1-.47.1-.1.23-.27.35-.4.11-.14.15-.24.23-.4.08-.15.04-.29-.02-.4-.06-.12-.52-1.25-.71-1.72-.19-.45-.38-.39-.52-.4h-.44c-.15 0-.4.06-.61.29-.21.23-.8.78-.8 1.9 0 1.12.82 2.2.93 2.35.12.16 1.6 2.44 3.87 3.42.54.23.96.37 1.29.47.54.17 1.03.15 1.42.09.43-.07 1.36-.56 1.55-1.1.19-.54.19-1 .13-1.1-.05-.1-.21-.16-.44-.27Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
    }

    /* Header cart always visible. */
    .vp-header-cart-btn .wc-header-cart-svg {
        display: inline-flex !important;
        color: #fff !important;
    }
}

@media (max-width: 380px) {
    .vp-mobile-bottom-nav { left: 4px !important; right: 4px !important; }
    .vp-product-page > .vp-container,
    .vp-product-page > .vp-container-wide,
    .vp-product-page > .vp-container.vp-container-wide {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
