/*
 ViralNexa compact storefront layout patch.
 Append to the END of public_html/assets/css/style.css.
 Keeps the existing product/database logic unchanged.
*/

/* Header stays compact and search/cart remain visible */
body.theme-customer .topbar {
    width: 100%;
    min-height: 68px;
    padding: 10px 18px;
    gap: 14px;
}
body.theme-customer .topbar nav {
    flex: 0 0 auto;
    gap: 14px;
}
body.theme-customer .vn-header-search {
    max-width: 650px;
}
body.theme-customer .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Main hero: use the available desktop width without excessive gaps */
body.theme-customer .vn-home {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 12px;
}
body.theme-customer .vn-banner {
    min-height: 310px !important;
    margin: 12px 14px 0 !important;
    padding: 30px 28px !important;
    gap: 18px !important;
    border-radius: 20px !important;
}
body.theme-customer .vn-banner-copy {
    flex: 1 1 52% !important;
    max-width: 650px;
}
body.theme-customer .vn-banner h1 {
    max-width: 640px !important;
    font-size: clamp(34px, 3.4vw, 52px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.4px !important;
}
body.theme-customer .vn-banner p {
    max-width: 510px !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}
body.theme-customer .vn-eyebrow {
    font-size: 11px !important;
    letter-spacing: 2.2px !important;
}
body.theme-customer .vn-btn {
    min-height: 42px !important;
    padding: 11px 17px !important;
    font-size: 13px !important;
}
body.theme-customer .vn-benefits {
    gap: 14px !important;
    font-size: 12px !important;
}
body.theme-customer .vn-banner-art {
    flex: 0 1 44% !important;
    min-height: 260px !important;
}
body.theme-customer .vn-character {
    max-height: 300px !important;
    object-fit: contain !important;
    object-position: center bottom !important;
}
body.theme-customer .vn-float {
    padding: 10px 13px !important;
    font-size: 12px !important;
}

/* Feature strip and categories: balanced spacing */
body.theme-customer .vn-feature-strip {
    margin: 0 18px 22px !important;
    padding: 13px 18px !important;
    gap: 14px !important;
}
body.theme-customer .vn-feature strong {
    font-size: 13px !important;
}
body.theme-customer .vn-feature small {
    font-size: 11px !important;
}
body.theme-customer .vn-section {
    margin: 0 18px 24px !important;
}
body.theme-customer .vn-section-title {
    margin-bottom: 14px !important;
}
body.theme-customer .vn-section-title h2 {
    font-size: 23px !important;
}
body.theme-customer .vn-muted {
    font-size: 13px !important;
}
body.theme-customer .vn-category-row {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
}
body.theme-customer .vn-category {
    font-size: 12px !important;
    gap: 8px !important;
}
body.theme-customer .vn-category-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 27px !important;
}
body.theme-customer .vn-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
body.theme-customer .vn-product {
    padding: 11px !important;
    border-radius: 14px !important;
}
body.theme-customer .vn-product-image {
    min-height: 140px !important;
    font-size: 44px !important;
}
body.theme-customer .vn-product h3 {
    font-size: 14px !important;
}
body.theme-customer .vn-product-category {
    font-size: 11px !important;
}
body.theme-customer .vn-price {
    font-size: 16px !important;
}
body.theme-customer .vn-product .vn-btn {
    min-height: 38px !important;
    font-size: 12px !important;
}
body.theme-customer .vn-empty {
    padding: 22px !important;
}
body.theme-customer .vn-empty h3 {
    font-size: 17px !important;
}
body.theme-customer .vn-empty p {
    font-size: 13px !important;
}

/* Hide any old decorative phone mockup that overlaps the real hero */
body.theme-customer .phone-mockup,
body.theme-customer .mobile-mockup,
body.theme-customer .hero-phone,
body.theme-customer .vn-phone-mockup,
body.theme-customer .vn-mobile-mockup {
    display: none !important;
}

/* Tablet and phone: compact but usable */
@media (max-width: 900px) {
    body.theme-customer .topbar {
        padding: 10px 12px !important;
        gap: 9px !important;
    }
    body.theme-customer .vn-banner {
        min-height: 0 !important;
        margin: 9px 9px 0 !important;
        padding: 23px 17px 17px !important;
        gap: 8px !important;
    }
    body.theme-customer .vn-banner-copy {
        flex-basis: 58% !important;
    }
    body.theme-customer .vn-banner h1 {
        font-size: clamp(27px, 4.5vw, 39px) !important;
        letter-spacing: -.8px !important;
    }
    body.theme-customer .vn-banner p {
        font-size: 13px !important;
    }
    body.theme-customer .vn-banner-art {
        flex-basis: 42% !important;
        min-height: 180px !important;
    }
    body.theme-customer .vn-character {
        max-height: 210px !important;
    }
    body.theme-customer .vn-feature-strip {
        margin: 0 10px 18px !important;
        padding: 10px !important;
    }
    body.theme-customer .vn-section {
        margin: 0 10px 20px !important;
    }
    body.theme-customer .vn-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 560px) {
    body.theme-customer .vn-banner {
        align-items: center !important;
        padding: 18px 12px 12px !important;
    }
    body.theme-customer .vn-banner-copy {
        flex-basis: 61% !important;
    }
    body.theme-customer .vn-banner h1 {
        font-size: clamp(25px, 7vw, 32px) !important;
        line-height: 1.04 !important;
    }
    body.theme-customer .vn-eyebrow {
        font-size: 8px !important;
        letter-spacing: 1.3px !important;
    }
    body.theme-customer .vn-banner p {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
    body.theme-customer .vn-btn {
        min-height: 34px !important;
        padding: 8px 10px !important;
        font-size: 10px !important;
    }
    body.theme-customer .vn-benefits {
        gap: 5px !important;
        font-size: 8px !important;
    }
    body.theme-customer .vn-banner-art {
        flex-basis: 39% !important;
        min-height: 145px !important;
    }
    body.theme-customer .vn-character {
        max-height: 165px !important;
    }
    body.theme-customer .vn-float {
        padding: 6px 7px !important;
        font-size: 8px !important;
    }
    body.theme-customer .vn-feature-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 17px !important;
        padding: 9px 7px !important;
    }
    body.theme-customer .vn-feature {
        gap: 5px !important;
    }
    body.theme-customer .vn-feature-icon {
        flex-basis: 25px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 12px !important;
    }
    body.theme-customer .vn-feature strong {
        font-size: 9px !important;
    }
    body.theme-customer .vn-feature small {
        font-size: 8px !important;
    }
    body.theme-customer .vn-section-title h2 {
        font-size: 18px !important;
    }
    body.theme-customer .vn-category-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 8px !important;
    }
    body.theme-customer .vn-category-icon {
        width: 46px !important;
        height: 46px !important;
        font-size: 24px !important;
    }
    body.theme-customer .vn-category {
        font-size: 10px !important;
    }
    body.theme-customer .vn-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    body.theme-customer .vn-product-image {
        min-height: 105px !important;
        font-size: 38px !important;
    }
    body.theme-customer .vn-product h3 {
        font-size: 12px !important;
    }
    body.theme-customer .vn-price {
        font-size: 14px !important;
    }
}


/* FINAL RESPONSIVE OVERRIDES: append-only patch */
html, body {
    max-width: 100%;
}
body.theme-customer {
    overflow-x: hidden;
}
body.theme-customer .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1600px !important;
    padding-left: clamp(8px, 1.4vw, 22px) !important;
    padding-right: clamp(8px, 1.4vw, 22px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.theme-customer .vn-home {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}
body.theme-customer .vn-banner {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 12px 0 0 !important;
    min-height: 300px !important;
}
body.theme-customer .vn-feature-strip,
body.theme-customer .vn-section {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.theme-customer .vn-product-grid {
    width: 100%;
    min-width: 0;
}
body.theme-customer .vn-product,
body.theme-customer .vn-category,
body.theme-customer .vn-banner-copy,
body.theme-customer .vn-banner-art {
    min-width: 0;
}

/* Hide common names used by the old decorative phone overlay */
body.theme-customer .phone-mockup,
body.theme-customer .mobile-mockup,
body.theme-customer .hero-phone,
body.theme-customer .vn-phone-mockup,
body.theme-customer .vn-mobile-mockup,
body.theme-customer .vn-phone,
body.theme-customer .phone-frame,
body.theme-customer .hero-device,
body.theme-customer .device-mockup {
    display: none !important;
}

@media (min-width: 1100px) {
    body.theme-customer .vn-banner {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr);
        gap: 28px !important;
        padding: 32px clamp(24px, 2.2vw, 42px) !important;
    }
    body.theme-customer .vn-banner-art {
        min-height: 260px !important;
    }
    body.theme-customer .vn-character {
        max-height: 320px !important;
    }
}
@media (max-width: 900px) {
    body.theme-customer .vn-banner {
        margin-top: 8px !important;
        padding: 20px 14px 14px !important;
        min-height: 0 !important;
    }
    body.theme-customer .vn-feature-strip {
        margin-bottom: 16px !important;
    }
}
@media (max-width: 600px) {
    body.theme-customer .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    body.theme-customer .vn-banner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, .78fr) !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 17px 10px 12px !important;
        border-radius: 15px !important;
    }
    body.theme-customer .vn-banner-copy,
    body.theme-customer .vn-banner-art {
        width: auto !important;
        max-width: 100% !important;
    }
    body.theme-customer .vn-banner h1 {
        font-size: clamp(23px, 6.3vw, 31px) !important;
        line-height: 1.04 !important;
        letter-spacing: -.8px !important;
    }
    body.theme-customer .vn-banner p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }
    body.theme-customer .vn-banner-art {
        min-height: 130px !important;
    }
    body.theme-customer .vn-character {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 175px !important;
        object-fit: contain !important;
    }
    body.theme-customer .vn-float {
        max-width: 85px;
        padding: 5px 6px !important;
        font-size: 8px !important;
    }
    body.theme-customer .vn-category-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 6px !important;
    }
    body.theme-customer .vn-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    body.theme-customer .vn-product {
        padding: 8px !important;
    }
}
@media (max-width: 360px) {
    body.theme-customer .vn-banner {
        grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) !important;
    }
    body.theme-customer .vn-banner h1 {
        font-size: 22px !important;
    }
    body.theme-customer .vn-float {
        display: none !important;
    }
}

/* ===== Mobile-only cleanup: hero and benefit cards ===== */
@media (max-width: 600px) {
    body.theme-customer .topbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        min-height: 0;
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    body.theme-customer .topbar nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px !important;
    }

    body.theme-customer .vn-header-search {
        flex: 1 1 100%;
        width: 100%;
        max-width: none !important;
        order: 3;
    }

    body.theme-customer .vn-banner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        padding: 20px 14px 14px !important;
        margin-top: 8px !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    body.theme-customer .vn-banner-copy {
        grid-column: 1;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }

    body.theme-customer .vn-eyebrow {
        margin-bottom: 10px !important;
        font-size: 9px !important;
        line-height: 1.5 !important;
        letter-spacing: 1.4px !important;
    }

    body.theme-customer .vn-banner h1 {
        max-width: none !important;
        margin-bottom: 12px !important;
        font-size: clamp(27px, 7.2vw, 34px) !important;
        line-height: 1.04 !important;
        letter-spacing: -.9px !important;
        overflow-wrap: normal;
    }

    body.theme-customer .vn-banner p {
        max-width: none !important;
        margin-bottom: 14px !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    body.theme-customer .vn-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    body.theme-customer .vn-btn {
        min-height: 38px !important;
        padding: 10px 12px !important;
        font-size: 11px !important;
    }

    body.theme-customer .vn-benefits {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px !important;
        margin-top: 12px !important;
        font-size: 9px !important;
        line-height: 1.4;
    }

    /* The art becomes a normal layout: character first, six cards below */
    body.theme-customer .vn-banner-art {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        align-self: auto !important;
        grid-column: 1;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin-top: 12px !important;
        gap: 8px !important;
        overflow: visible !important;
        flex: none !important;
    }

    body.theme-customer .vn-banner-art::before {
        width: 78%;
        left: 11%;
        bottom: auto;
        top: 8px;
        aspect-ratio: 1;
    }

    body.theme-customer .vn-banner-art .vn-character {
        position: relative;
        order: -1;
        grid-column: 1 / -1;
        justify-self: center;
        align-self: end;
        display: block;
        width: min(72%, 270px) !important;
        max-width: 270px !important;
        height: auto !important;
        max-height: 245px !important;
        object-fit: contain !important;
        object-position: center bottom !important;
        z-index: 1;
    }

    body.theme-customer .vn-banner-art .vn-float {
        position: static !important;
        inset: auto !important;
        display: flex !important;
        align-self: stretch;
        width: 100%;
        max-width: none !important;
        min-width: 0;
        min-height: 52px;
        padding: 8px !important;
        gap: 7px !important;
        border-radius: 13px !important;
        white-space: normal !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        box-shadow: 0 4px 14px rgba(14,73,39,.08);
        z-index: 2;
    }

    body.theme-customer .vn-banner-art .vn-float .vn-float-icon {
        flex: 0 0 28px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    body.theme-customer .vn-banner-art .vn-float small {
        margin-top: 3px !important;
        font-size: 8px !important;
        line-height: 1.25;
    }

    body.theme-customer .vn-feature-strip-six {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.theme-customer .vn-category-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px 8px !important;
    }

    body.theme-customer .vn-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.theme-customer .vn-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 360px) {
    body.theme-customer .vn-banner {
        padding: 17px 10px 11px !important;
    }

    body.theme-customer .vn-banner h1 {
        font-size: 26px !important;
    }

    body.theme-customer .vn-banner-art {
        gap: 6px !important;
    }

    body.theme-customer .vn-banner-art .vn-character {
        width: min(78%, 235px) !important;
        max-height: 215px !important;
    }

    body.theme-customer .vn-banner-art .vn-float {
        padding: 7px 6px !important;
        gap: 5px !important;
        font-size: 9px !important;
    }
}



/* FINAL FIX: keep the hero character fully inside the banner and align categories */
body.theme-customer .vn-banner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr) !important;
    align-items: center !important; gap: clamp(18px, 2vw, 32px) !important;
    min-height: 320px !important; overflow: hidden !important; margin-bottom: 0 !important;
}
body.theme-customer .vn-banner-copy { align-self: center !important; }
body.theme-customer .vn-banner-art { height: 280px !important; min-height: 280px !important; max-height: 280px !important; align-self: center !important; margin: 0 !important; overflow: hidden !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-character { width: auto !important; height: 100% !important; max-width: 78% !important; max-height: 280px !important; object-fit: contain !important; object-position: center bottom !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float { max-width: 165px !important; padding: 8px 10px !important; font-size: 10px !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float-one { top: 3% !important; left: 0 !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float-two { top: 3% !important; right: 0 !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float-three { top: 38% !important; left: 0 !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float-four { top: 38% !important; right: 0 !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float-five { bottom: 2% !important; left: 0 !important; }
body.theme-customer .vn-banner-art body.theme-customer .vn-float-six { bottom: 2% !important; right: 0 !important; }
body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] { margin: 0 18px 22px !important; padding-top: 12px !important; }
body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] body.theme-customer .vn-category-row { grid-template-columns: repeat(6,minmax(0,1fr)) !important; align-items: start !important; justify-items: stretch !important; gap: 12px !important; margin: 0 !important; }
body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] body.theme-customer .vn-category { justify-content: flex-start !important; gap: 7px !important; min-height: 92px !important; padding: 0 5px 8px !important; line-height: 1.3 !important; }
body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] body.theme-customer .vn-category-icon { flex: 0 0 48px !important; width: 48px !important; height: 48px !important; margin: 0 auto !important; }
@media(max-width:900px) {
 body.theme-customer .vn-banner { grid-template-columns: minmax(0,1fr) minmax(260px,.8fr) !important; min-height: 285px !important; }
 body.theme-customer .vn-banner-art { height: 245px !important; min-height: 245px !important; max-height: 245px !important; }
 body.theme-customer .vn-banner-art body.theme-customer .vn-character { max-height: 245px !important; max-width: 76% !important; }
 body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] { margin: 0 10px 20px !important; padding-top: 10px !important; }
}
@media(max-width:600px) {
 body.theme-customer .vn-banner { grid-template-columns: minmax(0,1fr) !important; min-height: 0 !important; padding: 20px 14px 14px !important; }
 body.theme-customer .vn-banner-art { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; height: auto !important; max-height: none !important; min-height: 0 !important; margin-top: 12px !important; overflow: visible !important; gap: 8px !important; }
 body.theme-customer .vn-banner-art body.theme-customer .vn-character { grid-column: 1/-1 !important; justify-self: center !important; width: min(68%,230px) !important; height: auto !important; max-width: 230px !important; max-height: 220px !important; }
 body.theme-customer .vn-banner-art body.theme-customer .vn-float { position: static !important; inset: auto !important; width: 100% !important; max-width: none !important; min-height: 48px !important; }
 body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] { margin: 0 8px 18px !important; padding-top: 8px !important; }
 body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] body.theme-customer .vn-category-row { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 14px 8px !important; }
 body.theme-customer .vn-home > body.theme-customer .vn-section[aria-label="Product categories"] body.theme-customer .vn-category { min-height: 84px !important; }
}
