/* These are general header override Changes.*/
.section-header.shopify-section-group-header-group {
    z-index: 10000;
}

.gradient-background {
  background: linear-gradient(90deg, #181C18 0%, rgba(24, 28, 24, 0) 100%);
}

.zIndexTo1 {
    z-index: 1 !important;
}
.header{
    grid-template-columns: auto 1fr auto;
    gap: 10px;

    padding-top: 16px;
    padding-bottom: 16px;

    @media screen and (min-width: 990px){
        padding-top: 16px;
        padding-bottom: 16px;
    }
}
.header__icons{
    gap: 14px;
}
.header__icon{
    &, svg{
        width: 20px;
    }

    &:hover{
        .icon{
            transform: scale(1.2);
        }
    }
}
.header__menu-item{
    position: relative;

    span{
        font-size: 16px;
        text-decoration: none;
        color: var(--dark-headings);

        &.header__active-menu-item{
            color: var(--eco-blue);
        }
    }


    .icon-caret{
        width: 16px;
        height: 10px;
        right: -0.1rem;
        top: calc(50% - 0.4rem);
    }
    
    a{
        color: var(--dark-headings);
        text-decoration: none;
    }

    &::after{
        content: "";
        position: absolute;
        top: 100%;
        width: 100%;
        height: 100%;
    }
}

.header__icon--menu{
    .custom-burger{
        width: 35px;
        height: 31px;
        padding: 8px;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    
        span{
            display: block;
            height: 1px;
            background-color: #3F68E0;
            border-top: 3px solid #3F68E0;
        }
    }

    .icon-close{
        color: #3F68E0;
    }
}

.new-header-drawer{
    .new-menu-drawer{
        padding: 0 11px;
        padding-bottom: 80px;
    }

    .menu-drawer__close-button{
        font-weight: 700;
        font-size: 18px;
        line-height: 120%;
        color: var(--dark-headings);
        margin-bottom: 20px;
    }
    img{
        width: 100%;
    }
    .mega-menu__images-list-container {
        padding: 21px 13px;
        background-color: #F3F3F3;
        border-radius: 16px;
    }

    .mega-menu__image-item{
        &:not(:first-child){
            margin-top: 24px;
        }
    }
    .mega-menu__image-text{
        font-weight: 700;
        font-size: 18px;
        line-height: 120%;
        color: var(--dark-headings);
        margin-top: 24px;
        display: flex;
        align-items: center;
        gap: 11px;
    }
    span.mega-menu__arrow-next{
        line-height: normal;
        font-size: 0;
    }
    .mega-menu__link--level-2{
        padding: 0;
    }

}


/* For Account dropdown */
.account-modal-container{
    position: relative;
}
#header-account-icon-main{
    cursor: pointer;
}
.account-menu-options{
    position: absolute;
    background-color: var(--light-headings);
    width: 100%;
    // right: calc(100% - 80px);
    left: 0;
    top: 65px;


    transition: max-height 0.4s ease;
    overflow: hidden;
    display: block;
    max-height: 0;
    opacity: 1;
    transform: none;
    
    &.accordion-open {
        border-top: 1px solid #e0e0e0;
        max-height: 500px; /* Adjust based on content height */
    }

    span{
        color: var(--dark-headings);
        text-decoration: none;
    }

    ul{
        margin: 0;
        padding: 0;
    }
    li{
        margin: 0;
        padding: 0;
        list-style-type: none;
        padding: 8px 10px;
    }
    .customer-name{
        padding: 12px 10px;
        border-bottom: 1px solid #E9EAEB;
    }
    .customer-logout{
        border-top: 1px solid #E9EAEB;
    }
    a{
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    @media screen and (min-width: 990px) {
        // display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
        max-height: none;
        visibility: hidden;
        pointer-events: none;
    

        width: 248px;
        top: calc(100% + 15px);
        left: unset;
        right: calc(10% - 60px);
        border-radius: 10px;
        padding: 6px;

        &.show{
            // display: block;
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
            pointer-events: auto;
        }
    }
}

@media screen and (max-width: 989px) {

    .header__heading, .header__heading-link {
      text-align: left;
      justify-self: flex-start;
    }
}

@media screen and (min-width: 990px) {
    .list-menu--inline{
        gap: 40px
    }

    .header--middle-left {
      grid-template-columns: auto 1fr auto;

      .header__inline-menu{
        justify-self: flex-end;
      }
    }
  }
/* End of general header override Changes. */



/* ====== New Mega Menu With Images ===== */
.mega-menu__images-list{
    .mega-menu__images-headings{
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .mega-menu__heading{
        font-family: var(--font-body-family);
        font-weight: 700;
        font-size: 20px;
        margin: 0;
    }
    .view-all_link{
        color: #FCFCFC;
        padding: 7px 12px 7px 16px;
        border-radius: 32px;
        background-color: #3F68E0;
        justify-content: center;
        gap: 11px;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.1s ease;
        font-size: 16px;

        svg path{
            stroke: #FCFCFC;
        }

        &:hover{
            transform: scale(1.05);
        }
    }

    .mega-menu__images-list-container{
        display: flex;
        gap:24px;
    }
    .mega-menu__image-item{
        max-width: 310px;    
    }
    .mega-menu__image-link{
        padding: 0;
    }

    .mega-menu__image--image-container{
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 24px;
    }
    .mega-menu__image{
        object-fit: cover;
    }
    .mega-menu__image-text{
        font-weight: 700;
        font-size: 20px;
    }
    .mega-menu__arrow-next{
        margin-left: 11px;
    }
}




/* ====== New Carousel Image Banner ===== */
.carousel-image-banner{

    .carousel-container{
        position: relative;
    }
    .flickity-container{
        height: 80vh;
    }

    .slider-shell{
        width: 100%;
        height: 80vh;
    }

    .banner{
        height: 100%;
    }

    .banner__content{
        margin-left: 0;
    }
    .banner__heading{
        font-size: 36px;
        line-height: 110%;
        font-weight: 500;
        margin-bottom: 16px;
    }

    .banner__text{
        font-weight: 500;
        font-size: 16.5px;
        line-height: 145%;
        letter-spacing: 0%;        
    }
    .banner__media{
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .banner__box>*+.banner__buttons{
        margin-top: 32px;
    }

    .slider-navigation-container{
        position: absolute;
        bottom: 60px;
        left: 24px;
        display: flex;
        align-items: center;

    }

    .flickity-buttons {
        background: no-repeat;
        border: none;
        cursor: pointer;
        padding: 8px 12px;
    }

    .custom-dots {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12.5px 16px;

        .dot {
            background-color: #FCFCFC;
            border: none;
            width: 7px;
            height: 7px;
            border-radius: 100%;
            padding: 0;
            opacity: 40%;
            cursor: pointer;
    
            &.is-selected {
                opacity: 100%;
            }
        }
    }

    @media (max-width: 749px) {
        .banner__content{
            align-items: flex-start;
        }

        .button{
            width: 100%;
        }
    }

    @media (min-width: 750px) {
        .banner__heading{
            font-size: 48px;
        }
    
        .banner__text{
            font-size: 18px;      
        }
        .slider-navigation-container{
            bottom: 80px;
            left: 64px;
        }
        
    }
}


/* ====== Global Styles for Buttons ===== */
.button{
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    padding: 12px 19px;
    border-radius: 32px;
    border: 1px solid #3F68E0;
    transition: all 1s ease;
    background-color: #3F68E0;
    min-height: auto;

    span{
        line-height: 0;
        display: inline-block;
        margin-left: 11px;
        transition: all .3s ease;
    }

    &::after{
        content: none;
    }
    &.button--primary{
        svg{
            path{
                stroke: #FCFCFC;
            }
        }
    }
    &.button--secondary{
        background-color: #FCFCFC;
        color: #181C18;
        border: 1px solid #FCFCFC;
    }

    &:disabled {
        background: rgba(224, 224, 224, 1);
        color: var(--dark-paragraphs);
        border: none;

        svg{
            path{
                stroke: var(--dark-paragraphs);
            }
        }
    }

    &:hover,&.button--primary:hover,&.button--secondary:hover{
        background-color: #181C18;
        color: #FCFCFC;
        border-color: #3F68E0;
        
        &:not(:disabled), &:not(.main-product-atc){
            span:not(.no-transform){
                margin-left: 18px;
            }
        }
        svg{
            path{
                stroke: #3F68E0;
            }
        }
    }
} 




/* ====== Global Styles for Breadcrumbs ===== */
nav.breadcrumb{
    margin-bottom: 36px;

    a{
        text-decoration: none;
        color: inherit;
    }
    .breadcrumb__list{
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 8px;
    }

    .breadcrumb__item, .breadcrumb__separator{
        display: block;
        color: var(--light-gray-text);
    }

    .breadcrumb__separator{
        width: 24px;
        height: 24px;

        svg{
            width: 100%;
            height: 100%;
        }
    }

    .breadcrumb__item{
        font-weight: 500;
        font-size: 16.5px;
        line-height: 145%;

        &.breadcrumb__item--active{
            color: var(--dark-headings);
        }
    }
}

/* ====== Global Components styling override ===== */
.slider-button:disabled {
    opacity: 0.5;
}






/* ====== Global Cart Drawer Styling OVerride ===== */
.cart-count-bubble{
    top: 1px;
    bottom: unset;
    left: 10px;
    width: 25px;
    border-radius: 32px;
    font-weight: 500;
    font-size: 10px;
    background-color: var(--eco-blue);
}

#CartDrawer{
    .drawer__inner{
        padding: 0;
        border: 0;

        @media (max-width: 749px) {
            width: 100%;
            max-width: 100%;
        }
    }
    .drawer__header{
        padding: 24px;
        background-color: #181C18;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .drawer__heading {
        color: #FCFCFC;
        font-family: Manrope;
        font-weight: 700;
        font-size: 18px;
        margin: 0;
    }
    .drawer__close{
        position: unset;
        min-width: auto;
        min-height: auto;
        line-height: 0;
    }
    .cart-items{
        .cart-item__quantity{
            grid-column: 3 / 9;
            padding-left: 0;
            align-self: center;
        }
    } 
    .cart-item{
        grid-template: repeat(2, auto) / repeat(8, 1fr);
    }
    .cart-item__media {
        grid-column: 1 / 3;
    }
    .cart-item__details {
        width: auto;
        padding-left: 0;
        grid-column: 3 / 9;
    }
    .quantity{
        width: 100px;
        height: 40px;
        min-height: auto;

        &::after{
            border-radius: 32px;
        }
    }
    .quantity__input{
        padding: 0;

        &:focus, &:focus-visible{
            background-color: none;
            z-index: unset;
        }
    }
    .quantity__button{
        width: 30px;

        .svg-wrapper{
            width: 20px;
        }
    }

    .cart-remove-button{
        cursor: pointer;
        background-color: transparent;
        border: none;
        padding: 0;
    }

    .drawer__footer{
        padding: 24px;
    }

    .totals{
        .totals__total, .totals__total-value{
            font-family: var(--font-body-family);
            font-weight: 700;
            font-size: 18px;
            line-height: 140%;
        }
    }
}