/* =========================================
   E-COMMERCE WEBSITE
   BANNER SECTION
   CSS VERSION: 1.2.3
========================================= */


/* =========================================
   BANNER SECTION
========================================= */

.gecom-banner-section {
    width: 100%;
    padding: 20px 0;

    background: var(--sit-gxcom-white);

    box-sizing: border-box;
}


/* =========================================
   BANNER SLIDER
========================================= */

.gecom-banner-slider {
    position: relative;

    width: 94%;
    max-width: 1400px;

    margin: 0 auto;

    overflow: hidden;

    background: var(--sit-gxcom-white);

    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

    /*
       Important:
       Height auto রাখা হয়েছে
       যাতে image crop না হয়।
    */
    line-height: 0;
}


/* =========================================
   BANNER SLIDE
========================================= */

.gecom-banner-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;

    z-index: 1;
}


/*
   First slide normal flow-তে থাকবে
   যাতে slider-এর height image অনুযায়ী হয়।
*/

.gecom-banner-slide:first-child {
    position: relative;
}


/* Active Slide */

.gecom-banner-slide.active {
    opacity: 1;
    visibility: visible;

    z-index: 2;
}


/* =========================================
   BANNER IMAGE
========================================= */

.gecom-banner-slide img {
    display: block;

    width: 100%;
    height: auto;

    /*
       কোনো crop হবে না
       image-এর original ratio বজায় থাকবে
    */
    object-fit: contain;

    object-position: center;

    max-width: 100%;

    background: var(--sit-gxcom-white);

    user-select: none;

    -webkit-user-drag: none;
}


/* =========================================
   PREVIOUS / NEXT BUTTON
========================================= */

.gecom-banner-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);

    color: #222222;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    cursor: pointer;

    z-index: 20;

    box-shadow: 0 4px 15px var(--sit-sadhow-col);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


/* Previous Button */

.gecom-banner-prev {
    left: 18px;
}


/* Next Button */

.gecom-banner-next {
    right: 18px;
}


/* Arrow Hover */

.gecom-banner-arrow:hover {
    background: var(--sit-gxcom-deep-dark);
    color: var(--sit-gxcom-white);
    transform: translateY(-50%) scale(1.06);
}


/* Arrow Click */

.gecom-banner-arrow:active {
    transform: translateY(-50%) scale(0.96);
}


/* =========================================
   DOTS
========================================= */

.gecom-banner-dots {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    z-index: 20;
}


/* Dot */

.gecom-banner-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.75);

    cursor: pointer;

    box-shadow: 0 1px 5px var(--sit-sadhow-col);

    transition:
        width 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


/* Active Dot */

.gecom-banner-dot.active {
    width: 25px;

    border-radius: 20px;

    background: var(--sit-gxcom-deep-dark);
}


/* Dot Hover */

.gecom-banner-dot:hover {
    transform: scale(1.15);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .gecom-banner-section {
        padding: 16px 0;
    }


    .gecom-banner-slider {
        width: 94%;

        border-radius: 15px;
    }


    .gecom-banner-arrow {
        width: 42px;
        height: 42px;

        font-size: 15px;
    }


    .gecom-banner-prev {
        left: 14px;
    }


    .gecom-banner-next {
        right: 14px;
    }


    .gecom-banner-dots {
        bottom: 12px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .gecom-banner-section {
        padding: 12px 0;
    }


    .gecom-banner-slider {
        width: 94%;

        border-radius: 12px;
    }


    .gecom-banner-arrow {
        width: 36px;
        height: 36px;

        font-size: 13px;
    }


    .gecom-banner-prev {
        left: 9px;
    }


    .gecom-banner-next {
        right: 9px;
    }


    .gecom-banner-dots {
        bottom: 9px;

        gap: 6px;
    }


    .gecom-banner-dot {
        width: 7px;
        height: 7px;
    }


    .gecom-banner-dot.active {
        width: 20px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .gecom-banner-section {
        padding: 15px 0;
    }


    .gecom-banner-slider {
        width: 94%;

        border-radius: 10px;
    }


    .gecom-banner-arrow {
        width: 32px;
        height: 32px;

        font-size: 12px;
    }


    .gecom-banner-prev {
        left: 7px;
    }


    .gecom-banner-next {
        right: 7px;
    }


    .gecom-banner-dots {
        bottom: 7px;

        gap: 5px;
    }


    .gecom-banner-dot {
        width: 6px;
        height: 6px;
    }


    .gecom-banner-dot.active {
        width: 18px;
    }

}


/* =========================================
   EXTRA SMALL DEVICES
========================================= */

@media (max-width: 360px) {

    .gecom-banner-section {
        padding: 6px 0;
    }


    .gecom-banner-slider {
        width: 94%;

        border-radius: 8px;
    }


    .gecom-banner-arrow {
        width: 29px;
        height: 29px;

        font-size: 11px;
    }


    .gecom-banner-prev {
        left: 5px;
    }


    .gecom-banner-next {
        right: 5px;
    }


    .gecom-banner-dots {
        bottom: 6px;
    }

}


/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .gecom-banner-slide {
        transition: none;
    }


    .gecom-banner-arrow,
    .gecom-banner-dot {
        transition: none;
    }

}