/* =================================================
   COMMON HERO BANNER — Reusable Theme Component
   ================================================= */

/* Reset layout container padding & margins for hero banner pages */
body.has-hero-banner #page-wrapper,
body.has-hero-banner #page,
body.has-hero-banner #main-wrapper,
body.has-hero-banner #main,
body.has-hero-banner main,
body.has-hero-banner main>section,
.path-featured-latest #main-wrapper,
.path-featured-latest #main,
.path-featured-latest main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure only the main categories and brands listing pages are full-width, NOT the individual product pages with sidebars */
.path-shop-by-category #main-wrapper:has(.view-id-shop_by_category),
.path-shop-by-category #main:has(.view-id-shop_by_category),
.path-shop-by-category main:has(.view-id-shop_by_category),
.path-shop-by-brands #main-wrapper:has(.view-id-shop_by_brands),
.path-shop-by-brands #main:has(.view-id-shop_by_brands),
.path-shop-by-brands main:has(.view-id-shop_by_brands) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Base Full-Width Hero Banner Wrapper (100vw Edge-to-Edge) */
.hero-banner-wrapper,
.featured-latest-hero-container {
    width: 100vw;
    height: 500px;
    margin-top: 0;
    margin-bottom: 40px;
    padding: 0;
    display: block;
    clear: both;
    position: relative;
    overflow: hidden;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}

/* Height Modifiers */
.hero-banner-wrapper.hero-banner--sm,
.hero-banner--sm {
    height: 350px;
}

.hero-banner-wrapper.hero-banner--lg,
.hero-banner--lg {
    height: 600px;
}

/* Banner Image (Full Coverage, Crisp Aspect Ratio) */
.hero-banner-img,
.featured-latest-hero-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 0 !important;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

/* Responsive Scaling */
@media (max-width: 992px) {

    .hero-banner-wrapper,
    .featured-latest-hero-container {
        height: 360px;
    }

    .hero-banner-wrapper.hero-banner--sm,
    .hero-banner--sm {
        height: 280px;
    }

    .hero-banner-wrapper.hero-banner--lg,
    .hero-banner--lg {
        height: 450px;
    }
}

@media (max-width: 768px) {

    .hero-banner-wrapper,
    .featured-latest-hero-container {
        height: 240px;
        margin-bottom: 24px;
    }

    .hero-banner-wrapper.hero-banner--sm,
    .hero-banner--sm {
        height: 180px;
    }

    .hero-banner-wrapper.hero-banner--lg,
    .hero-banner--lg {
        height: 320px;
    }
}