.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    min-height: 70vh;
    max-height: 80vh;
    object-fit: cover;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.categories-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 20px 20px 0px 20px;
}

.categories-container header {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 0px;
    padding: 10px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Four columns */
    gap: 20px;
    /* Space between items */
    padding: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.category {
    text-align: center;

    padding: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.category:hover {
    transform: scale(1.1);
}

.category-img-label{
    display: inline-grid;
}

.category img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    transition: border-radius 0.3s ease;
}

.category-label {
    font-size: 20px;
    font-weight: 600;
    color: #000 !important;
}

.category a {
    text-decoration: none;
    color: #000 !important;
}

.skin-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.skin-container header {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}


.skin-tone-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.skin-tone-nav a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 4px;
    position: relative;
}

/* Hover underline */
.skin-tone-nav a:hover {
    border-bottom: 2px solid #000;
    text-decoration: none;
    color: #000;
}

/* Active (selected) underline */
.skin-tone-nav a.skin-active {
    border-bottom: 2px solid #000;
    font-weight: 600;
}


.skin-product-list {
    display: none;
    /* Hide all product lists by default */
    opacity: 0;
    /* Start hidden and transparent */
    transition: opacity 0.5s ease-in-out;
    /* Smooth transition */
}

.skin-product-list.skin-active {
    display: flex;
    /* Display only the active product list */
    opacity: 1;
    /* Fade in */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay the animation for each subsequent child */
.skin-product-list.skin-active .product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.skin-product-list.skin-active .product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skin-product-list.skin-active .product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.skin-product-list.skin-active .product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.skin-product-list.skin-active .product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.skin-product-list.skin-active .product-card:nth-child(6) {
    animation-delay: 0.6s;
}

.skin-product-list.skin-active .product-card:nth-child(7) {
    animation-delay: 0.7s;
}

.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.product-card a {
    text-decoration: none !important;
    color: #000 !important;
}

.disabled {
    text-decoration: line-through;
}


.products-slider-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.slick-next:before,
.slick-prev:before {
    display: none;
}

.card {
    border: none;
}

.slick-dots {
    display: none !important;
}

.card-body {
    padding: 0px !important;
}

.col-lg-12 {
    max-width: 280px;
    justify-content: center !important;
}

.col-lg-12 img {
    max-width: 280px;
    max-height: 410px;
}

.card-slider-container-main header {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.banner-main {
    margin: 20px 0px;
}

.banner-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.banner-row img {
    width: 50%;
    height: auto;
    flex: 1 1 50%;
}


.instagram-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}


.instagram-container header {
    font-size: 2em;
    margin-bottom: 20px;
}

.instagram-images {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.instagram-item {
    position: relative;
    width: calc(25% - 10px);
    /* Four items per row with gap */
    overflow: hidden;
    height: 280px;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-item .instagram-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-icon {
    opacity: 1;
}

.instagram-icon {
    font-size: 20px;
    color: #fff;
}


@media screen and (max-width: 768px) {
    .banner-row img {
        width: 50%;
        flex: 1 1 50%;
    }

    .slide img {
        max-height: 60vh;
        height: auto;
        object-fit: fill;
    }

    .categories {
        display: flex;
        max-width: 1400px;
        overflow-x: auto;
        gap: 20px;
        margin-top: 15px;
        flex-wrap: nowrap;
        /* Prevent wrapping to keep items in a single line */
        justify-content: flex-start;
        /* Align items at the start */
        padding: 0;
        list-style: none;
    }

    .categories::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for WebKit browsers */
        width: 0;
    }

    .category {
        text-align: center;
        flex: 0 0 auto;
        /* Disable flex grow and shrink */
        max-height: auto;
        max-width: 94px;
        min-height: 70px;

        transition: all 0.3s ease;
    }


    .category img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        /* Circles on tablet and smaller screens */
    }

    .category-label {
        font-size: 9px;
        font-weight: 600;
        color: #000 !important;
    }
    .category a{
        color: #000 !important;
    }

    .skin-product-item {
        flex-wrap: wrap;
        /* Adjust for the desired number of items per row */
        border: 1px solid #ccc;
        border-radius: 5px;
        max-width: 120px;
        max-height: 210px;
        min-width: 100px;
        min-height: 200px;
        margin-bottom: 10px;
        box-sizing: border-box;
        /* Ensure padding and border are included in the width calculation */
    }

    .instagram-item {
        width: calc(33.333% - 10px);
        /* Three items per row */
        height: 200px;
    }

    .for768 {
        display: none;
    }
}

@media screen and (max-width: 540px) {
    .categories-container header {
        font-size: 20px;
        font-weight: bold;
        color: #333;
        text-align: center;
        margin-bottom: 0px;
        padding: 10px 10px 0px 10px;
    }

    .skin-container header {
        font-size: 20px;
        font-weight: bold;
        color: #333;
        text-align: center;
        margin-bottom: 20px;
        padding: 10px;
    }
    .card-slider-container-main {
        margin-bottom: -35px;
    }   
    .card-slider-container-main header {
        font-size: 20px;
        font-weight: bold;
        color: #333;
        text-align: center;
        margin: 20px 0px 10px 0px;
        padding: 10px;
    }

    .single-banner-container{
        margin-bottom: -10px;
    }
    .instagram-container header {
        font-size: 24px;
        margin-bottom: 20px;
    }


    .categories {
        display: flex;
        max-width: 1400px;
        overflow-x: auto;
        gap: 10px;
        margin-top: 15px;
        flex-wrap: nowrap;
        /* Prevent wrapping to keep items in a single line */
        justify-content: flex-start;
        /* Align items at the start */
        padding: 0;
        list-style: none;
    }
}

@media (max-width: 480px) {
    .instagram-item {
        width: calc(50% - 10px);
        /* Two items per row */
        height: 150px;
    }

    .for480 {
        display: none;
    }
}