/**
 * ==========================================================
 * ShopCore Hero Section
 * File : assets/css/hero.css
 * Purpose : Responsive Hero Slider + Dynamic Banners
 * ==========================================================
 */


/* ==========================================================
   Hero Section
========================================================== */

.shopcore-hero-section {
    width: 100%;
    display: block;
    background: #d6dde8a6;
    padding: 26px 0 22px 0;
}


/* ==========================================================
   Main Container
========================================================== */

.shopcore-hero-section .sc-container,
.shopcore-hero-section .shopcore-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ==========================================================
   Hero Grid
   Desktop:
   Slider = 2.3fr
   Banners = 1fr
========================================================== */

.shopcore-hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: stretch;
    box-sizing: border-box;
}


/* ==========================================================
   Hero Slider
========================================================== */

.shopcore-hero-slider {
    width: 100%;
    min-width: 0;
    /* position: relative; */
    overflow: hidden;
    border-radius: 12px;
}


/* ==========================================================
   Swiper
========================================================== */

.shopcoreHeroSwiper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}


/* ==========================================================
   Swiper Wrapper
========================================================== */

.shopcoreHeroSwiper .swiper-wrapper {
    display: flex;
}


/* ==========================================================
   Slide
========================================================== */

.shopcoreHeroSwiper .swiper-slide {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
}


/* ==========================================================
   Slider Link
========================================================== */

.shopcoreHeroSwiper .swiper-slide a {
    display: block;
    width: 100%;
}


/* ==========================================================
   Slider Image
========================================================== */

.shopcoreHeroSwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}


/* ==========================================================
   Right Banner Area
========================================================== */

.shopcore-hero-banners {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* ==========================================================
   Banner Item
========================================================== */

.shopcore-banner-item {
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}


/* ==========================================================
   Banner Link
========================================================== */

.shopcore-banner-item a {
    display: block;
    width: 100%;
    height: 100%;
}


/* ==========================================================
   Banner Image
========================================================== */

.shopcore-banner-item img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 12px;
}


/* ==========================================================
   Navigation Arrows
========================================================== */

.shopcoreHeroSwiper .swiper-button-prev,
.shopcoreHeroSwiper .swiper-button-next {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);

    color: #fff;

    transition: all 0.3s ease;
}


.shopcoreHeroSwiper .swiper-button-prev:hover,
.shopcoreHeroSwiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.70);
}


.shopcoreHeroSwiper .swiper-button-prev::after,
.shopcoreHeroSwiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}


/* ==========================================================
   Hide Navigation
========================================================== */

.shopcoreHeroSwiper .swiper-button-lock,
.shopcoreHeroSwiper .swiper-button-disabled {
    display: none !important;
}


/* ==========================================================
   Pagination
========================================================== */

.shopcoreHeroSwiper .swiper-pagination {
    bottom: 15px !important;
}


.shopcoreHeroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;

    background: #fff;

    opacity: 0.5;
}


.shopcoreHeroSwiper .swiper-pagination-bullet-active {
    width: 28px;

    border-radius: 20px;

    background: #ff3b30;

    opacity: 1;
}


.shopcoreHeroSwiper .swiper-pagination-lock {
    display: none !important;
}


/* ==========================================================
   TABLET
   768px - 1199px

   Slider
      ↓
   Banner 1 | Banner 2
========================================================== */

@media (max-width: 1199px) {

    .shopcore-hero-section {
        padding: 20px 0 16px 0;
    }

    .shopcore-hero-section .sc-container,
    .shopcore-hero-section .shopcore-container {
        padding-top: 0;
        padding-bottom: 0;
    }


    .shopcore-hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }


    /* Slider */

    .shopcore-hero-slider {
        width: 100%;
    }


    .shopcoreHeroSwiper .swiper-slide img {
        aspect-ratio: 16 / 7;
    }


    /* Banners */

    .shopcore-hero-banners {
        width: 100%;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-template-rows: none;

        gap: 16px;
    }


    .shopcore-banner-item {
        width: 100%;
    }


    .shopcore-banner-item a {
        height: auto;
    }


    .shopcore-banner-item img {
        width: 100%;
        height: auto;

        aspect-ratio: 16 / 7;

        object-fit: cover;
    }


    /* Navigation */

    .shopcoreHeroSwiper .swiper-button-prev,
    .shopcoreHeroSwiper .swiper-button-next {
        width: 42px;
        height: 42px;
    }


    .shopcoreHeroSwiper .swiper-button-prev::after,
    .shopcoreHeroSwiper .swiper-button-next::after {
        font-size: 16px;
    }

}


/* ==========================================================
   MOBILE
   0 - 767px

   Slider
      ↓
   Banner 1
      ↓
   Banner 2
========================================================== */

@media (max-width: 767px) {

    .shopcore-hero-section {
        padding: 14px 0 10px 0;
    }

    .shopcore-hero-section .sc-container,
    .shopcore-hero-section .shopcore-container {
        padding-top: 0;
        padding-bottom: 0;
    }


    .shopcore-hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    /* ======================================================
       Slider
    ====================================================== */

    .shopcore-hero-slider {
        width: 100%;
        border-radius: 8px;
    }


    .shopcoreHeroSwiper {
        border-radius: 8px;
    }


    .shopcoreHeroSwiper .swiper-slide img {
        width: 100%;
        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 8px;
    }


    /* ======================================================
       Banners
    ====================================================== */

    .shopcore-hero-banners {

        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows: none;

        gap: 10px;
    }


    .shopcore-banner-item {
        width: 100%;
        border-radius: 8px;
    }


    .shopcore-banner-item a {
        width: 100%;
        height: auto;
    }


    .shopcore-banner-item img {
        display: block;

        width: 100%;
        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 8px;
    }


    /* ======================================================
       Navigation
    ====================================================== */

    .shopcoreHeroSwiper .swiper-button-prev,
    .shopcoreHeroSwiper .swiper-button-next {
        width: 34px;
        height: 34px;
    }


    .shopcoreHeroSwiper .swiper-button-prev::after,
    .shopcoreHeroSwiper .swiper-button-next::after {
        font-size: 14px;
    }


    /* ======================================================
       Pagination
    ====================================================== */

    .shopcoreHeroSwiper .swiper-pagination {
        bottom: 8px !important;
    }


    .shopcoreHeroSwiper .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }


    .shopcoreHeroSwiper .swiper-pagination-bullet-active {
        width: 20px;
    }

}


/* ==========================================================
   MOBILE
   0 - 767px

   Same as Tablet:

   Slider
      ↓
   Banner 1 | Banner 2
========================================================== */

@media (max-width: 767px) {

    .shopcore-hero-section .sc-container,
    .shopcore-hero-section .shopcore-container {
        padding: 10px;
    }


    /* ======================================================
       Hero Grid
    ====================================================== */

    .shopcore-hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    /* ======================================================
       Slider
    ====================================================== */

    .shopcore-hero-slider {
        width: 100%;
        border-radius: 8px;
    }

    .shopcoreHeroSwiper {
        border-radius: 8px;
    }

    .shopcoreHeroSwiper .swiper-slide img {
        width: 100%;
        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 8px;
    }


    /* ======================================================
       Banners
       Keep 2 columns on mobile
    ====================================================== */

    .shopcore-hero-banners {
        width: 100%;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-template-rows: none;

        gap: 10px;
    }


    .shopcore-banner-item {
        width: 100%;
        min-width: 0;

        border-radius: 8px;
    }


    .shopcore-banner-item a {
        display: block;
        width: 100%;
        height: auto;
    }


    .shopcore-banner-item img {
        display: block;

        width: 100%;
        height: auto;

        aspect-ratio: 16 / 9;

        object-fit: cover;

        border-radius: 8px;
    }


    /* ======================================================
       Navigation
    ====================================================== */

    .shopcoreHeroSwiper .swiper-button-prev,
    .shopcoreHeroSwiper .swiper-button-next {
        width: 34px;
        height: 34px;
    }

    .shopcoreHeroSwiper .swiper-button-prev::after,
    .shopcoreHeroSwiper .swiper-button-next::after {
        font-size: 14px;
    }


    /* ======================================================
       Pagination
    ====================================================== */

    .shopcoreHeroSwiper .swiper-pagination {
        bottom: 8px !important;
    }

    .shopcoreHeroSwiper .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
    }

    .shopcoreHeroSwiper .swiper-pagination-bullet-active {
        width: 20px;
    }

}