/* Wrapper */
.product-collection-wrapper {
    padding: 30px;
}

/* Grid Layout */
.collection-products {
    display: inherit;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Item Card */
.collection-product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    text-align: center;
    margin-left: 15px;
}

.collection-product-item:hover {
    transform: translateY(-4px);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hover Triangle Ribbons - Common */
.hover-ribbon {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    padding: 10px;
    color: #fff;
    opacity: 0;
    transform: translate(0, 0);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Top Right Triangle Ribbon */
.top-ribbon {
    top: 0;
    right: 0;
    transform: translate(100%, -100%);
    background: #5c2631;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    align-items: flex-start;
    justify-content: flex-end;
}

/* Bottom Left Triangle Ribbon */
.bottom-ribbon {
    bottom: 0;
    left: 0;
    transform: translate(-100%, 100%);
    background: #f2dfb4;
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    align-items: flex-end;
    justify-content: flex-start;
    color: #5c2631;
}

/* Show Triangles on Hover */
.collection-product-item:hover .top-ribbon,
.collection-product-item:hover .bottom-ribbon {
    transform: translate(0, 0);
    opacity: 1;
}

/* Icons inside ribbons */
.hover-ribbon .hover-icon {
    font-size: 16px;
    line-height: 1;
}

/* Product Title */
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    padding: 15px;
    margin: 0;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
}

.e-font-icon-svg {
    width: 32px;
}

/* Responsive tweaks (optional) */
@media screen and (max-width: 768px) {
    .collection-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.slick-dots {
    display: flex;
    list-style: none;
    margin: auto;
    width: max-content;
    gap: 10px;
    margin-top: 50px;
}

.slick-dots .slick-active>button {

    background: #492432
}

.slick-dots li button {
    background: transparent;
    border-radius: 50%;
    color: transparent;
    width: 15px;
    height: 15px;
    font-size: 0;
    padding: inherit;
    border-color: #492432;
    background: #492432;
}

.slick-dots li {
    width: auto;
}

.slick-dots ul li.slick-active button {
    background: #d1bb8b;
}

.slick-prev.slick-arrow,
.slick-next.slick-arrow {
    background: transparent;
    color: transparent;
    border-radius: 50%;
    font-size: 0;
    padding: 18px;
    border-color: #492432;
    position: absolute;
    z-index: 999;
    top: 40%;
    width: auto;
    left: -60px;
}

.slick-prev.slick-arrow::before {
    content: "\e87d";
    font-family: "eicons";
    display: inline-block;
    width: 20px;
    height: 20px;
    color: #492432;
    font-size: 15px;

}

.slick-next.slick-arrow::before {
    content: "\e87e";
    font-family: "eicons";
    display: inline-block;
    width: 20px;
    height: 20px;
    color:#492432 ;
    font-size: 15px;

}

.slick-next.slick-arrow {
    left: -60px;
}

.slick-prev.slick-arrow {
    left: 100%;
}

.slick-track {
    left: 0px !important;
}
/* Tablet & Mobile Carousel Alignment */
@media (max-width: 1024px) {
    .slick-carousel .slick-slide {
        text-align: center;
        padding: 10px;
    }

    .slick-carousel .slick-slide img {
        margin: 0 auto;
        max-width: 100%;
        height: auto;
    }

    .slick-carousel .slick-slide h3,
    .slick-carousel .slick-slide p {
        text-align: center;
        word-break: break-word;
    }
}
/* Tablet & Mobile text/image alignment */
@media (max-width: 1024px) {
    .collection-products .collection-product-item {
        text-align: center;
        padding: 15px;
    }

    .collection-products .collection-product-item img {
        display: block;
        margin: 0 auto 10px auto;
        max-width: 100%;
        height: auto;
    }

    .collection-products .product-title {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}

/* Mobile only - adjust spacing if arrows show */
@media (max-width: 768px) {
    .slick-prev, .slick-next {
        top: 45%;
        z-index: 5;
    }
    .slick-prev {
        left: -5px;
    }
    .slick-next {
        right: -5px;
    }
}
/* Tablet & mobile: show ribbons permanently */
@media (max-width: 1024px) {
    .collection-products .top-ribbon {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important; /* prevent any hover animation */
    }

    /* Disable hover-only behavior */
    .collection-products .collection-product-item:hover .top-ribbon {
        opacity: 1 !important;
        transform: none !important;
    }
}


