.product-carousel-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.product-carousel-swiper {
    position: relative;
    overflow: hidden;
}

.product-carousel-item {
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 0.667;
    overflow: hidden;
    /*border-radius: 8px 8px 0 0;*/
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image-container .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .product-carousel-item:hover .hover-image {
        opacity: 1;
    }
    
    .product-carousel-item:hover .main-image {
        opacity: 0;
    }
}

.product-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Poppins', Arial, sans-serif;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    order: 1;
}

.product-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    order: 2;
    flex-grow: 1;
}

.product-title a {
    color: #333;
    text-decoration: none;
    line-height: 1.3;
}

.product-title a:hover {
    color: #720015;
}

.add-to-cart-container {
    position: absolute;
    top: 66%;
    left: 40%;
    transform: translate(-30%, 20px); /* Starts 20px below final position */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.add-to-cart-container img {
    margin-right:5px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.product-carousel-item:hover .add-to-cart-container {
    opacity: 1;
    transform: translate(-30%, 0); /* Slides up to final position */
}

.add-to-cart-btn,
.read-more-btn {
    background-color: #720015;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.add-to-cart-btn:hover,
.read-more-btn:hover {
    background-color: #000;
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Desktop Navigation */
.desktop-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.desktop-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.swiper-button-next.desktop-nav {
    right: 10px;
}

.swiper-button-prev.desktop-nav {
    right: 50px;
}

.swiper-button-next.desktop-nav::after,
.swiper-button-prev.desktop-nav::after {
    font-size: 12px;
    font-weight: bold;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: relative;
    margin-top: 15px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #720015;
}

.card {
    position: relative;
    overflow: hidden;
}

.add-to-cart {
    position: absolute;
    top: 10px; /* Position at top of image */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .add-to-cart {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-price,
    .product-title {
        font-size: 14px;
    }
    
    .add-to-cart-btn,
    .read-more-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Loading state */
.product-carousel-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
