/* AEM Labs Limited - CSS Module: Slideshow */
/* ======================================== */

.featured-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    padding: 30px 0 10px;
}

.slideshow-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    height: 330px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1;
    gap: 40px;
}

.slide-text {
    flex: 0 0 auto;
    z-index: 3;
    max-width: 50%;
}

.slide-text h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
}

.slide-text p {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.8;
    text-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
}

.slide-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    background-size: 300% 100% !important;
    background-position: 0% 0% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slide-btn:hover {
    background-position: 100% 0% !important;
    transform: translateY(-2px) !important;
}

.slide:nth-child(1) .slide-content {
    background: #f4e3ff;
}

.slide:nth-child(1) .slide-btn {
    background: linear-gradient(270deg, #6907c5, #4f0694, #6907c5, #4f0694);
}

.slide:nth-child(2) .slide-content {
    background: #ffd2d2;
}

.slide:nth-child(2) .slide-btn {
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
}

.slide:nth-child(3) .slide-content {
    background: #ffc0a3;
}

.slide:nth-child(3) .slide-btn {
    background: linear-gradient(270deg, #ff6b00, #d64545, #ff6b00, #d64545);
}

.slideshow-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.slideshow-navigation .nav-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.slideshow-navigation .nav-btn:hover {
    opacity: 1;
}

.slideshow-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #222;
    transform: scale(1.2);
}

/* Products Cards */
.slide-products {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.slideshow-product-card {
    flex: 0 0 auto;
    width: 160px;
    display: flex;
    flex-direction: column;
}

.slideshow-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: rgb(238, 236, 236);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slideshow-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slideshow-product-card:hover .slideshow-product-image img {
    transform: scale(1.05);
}

.slideshow-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.slideshow-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.slideshow-badge.discount {
    background: linear-gradient(135deg, var(--accent-color) 0%, #6907c5 100%);
    color: white;
}

.slideshow-badge.popular {
    background: #ff9500;
    color: white;
}

.slideshow-badge.new {
    background: #00b894;
    color: white;
}

.slideshow-product-details {
    position: relative;
}

.slideshow-product-title {
    font-size: 13px;
    margin: 0;
    color: #222;
    line-height: 1.4;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
}

.slideshow-product-link {
    text-decoration: none;
    color: #222;
}

.slideshow-product-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.slideshow-product-image button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-position 0.6s ease;
    z-index: 2;
}

.slideshow-product-image button:hover {
    background-position: 100% 0%;
    transform: scale(1.1);
}

/* Category Cards */
.slide-categories {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

.slideshow-category-card {
    flex: 0 0 auto;
    width: 160px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.slideshow-category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: rgb(238, 236, 236);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slideshow-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slideshow-category-card:hover .slideshow-category-image img {
    transform: scale(1.05);
}

.slideshow-category-title {
    text-align: center;
}

.slideshow-category-title h4 {
    font-size: 14px;
    margin: 0;
    color: #222;
    line-height: 1.4;
    font-weight: 600;
}

.slideshow-category-card:hover .slideshow-category-title h4 {
    color: var(--accent-color);
}

/* Slide With Image */
.slide-image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    aspect-ratio: 12 / 6;
}

.slide-image-container img {
    width: 100%;
    max-width: 500px;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media screen and (max-width: 1440px) {
    .featured-slideshow {
        padding: 30px 0 0;
    }

    .slideshow-container {
        width: 95%;
        height: 275px;
    }

    .slide-content {
        padding: 0 4%;
    }

    .slideshow-navigation {
        bottom: 16px;
    }

    /* Product Cards */
    .slideshow-product-card {
        width: 150px;
    }

    /* Slide With Image */
    .slide-image-container img {
        width: 400px;
    }

    /* Category Cards */
    .slide:nth-child(3) .slide-text {
        max-width: 35%;
    }

    .slideshow-category-card {
        width: 140px;
    }
}

@media screen and (max-width: 992px) {
    .slide-content {
        gap: 20px;
        padding: 0 3%;
    }

    .slide-text h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .slide-text p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .slide-btn {
        padding: 8px 18px;
    }

    /* Product Cards */
    .slide:nth-child(1) .slide-text {
        max-width: 40%;
    }

    .slide-products {
        gap: 12px;
    }

    .slideshow-product-card {
        width: 120px;
    }

    .slideshow-product-image button {
        bottom: 6px;
        right: 6px;
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    /* Slide With Image */
    .slide-image-container img {
        width: 350px;
    }

    /* Category Cards */
    .slide:nth-child(3) .slide-text {
        max-width: 40%;
    }

    .slide-categories {
        gap: 12px;
    }

    .slideshow-category-card {
        width: 120px;
    }
}

@media screen and (max-width: 768px) {
    .featured-slideshow {
        padding: 20px 0 0;
    }

    /* Slide With Image */
    .slide-image-container img {
        width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .slideshow-container {
        height: auto;
        min-height: 180px;
    }

    .slide-content {
        padding: 5%;
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
    }

    .slide-text {
        max-width: 100% !important;
    }

    .slide-text h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .slide-text p {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .slide-btn {
        padding: 6px 16px;
        font-size: 11px;
        border-radius: 8px;
    }

    .slide-products,
    .slide-categories,
    .slide-image-container {
        display: none;
        justify-content: center;
        width: 100%;
    }

    .slideshow-navigation {
        position: absolute;
        justify-content: flex-end;
        bottom: 15px;
        left: -10px;
        width: 100%;
        margin-top: 0;
        gap: 10px
    }

    .slideshow-navigation .nav-btn {
        font-size: 18px;
    }

    .slideshow-dots {
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}
