/* Product Hover Styles - Enhanced with Colorful Backgrounds and Corner Images */

/* Product Scroller Styles */
.product-scroller {
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
}

.product-scroller.active {
    cursor: grabbing;
}

.product-scroller::-webkit-scrollbar {
    display: none;
}

.product-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-set {
    gap: 30px;
    min-width: fit-content;
    flex-shrink: 0;
    display: flex;
}

.product-card {
    transition: transform 0.3s ease;
    width: 300px;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card-inner {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Product Hover Content */
.product-hover-content {
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.product-card-inner:hover .product-hover-content {
    opacity: 1;
}

/* Product Hover Cards with Gradient Backgrounds */
.product-hover-card {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: visible;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* Gradient Background Classes */
.bg-gradient-green {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 50%, #FFCC80 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.bg-gradient-red {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 50%, #F48FB1 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 50%, #CE93D8 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Corner Images */
.corner-images {
    z-index: 15;
    transition: transform 0.3s ease;
}

.corner-images img {
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.product-card-inner:hover .corner-images {
    transform: scale(1.1);
}

.product-card-inner:hover .corner-images:nth-child(1) {
    animation: bounceInLeft 0.6s ease 0.2s both;
}

.product-card-inner:hover .corner-images:nth-child(2) {
    animation: bounceInRight 0.6s ease 0.3s both;
}

/* Bounce Animations */
@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateX(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateX(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Text Animation and Styling */
.product-hover-content .product-title,
.product-hover-content .product-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-hover-content .product-title h4 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.product-hover-content .product-description p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 15px !important;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-card-inner:hover .product-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.product-card-inner:hover .product-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Subtle Pattern Overlay */
.product-hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        width: 280px;
    }
    
    .product-set {
        gap: 20px;
    }
    
    .product-hover-card {
        padding: 15px !important;
    }
    
    .product-hover-content .product-title h4 {
        font-size: 20px !important;
        padding: 0 5px !important;
    }
    
    .product-hover-content .product-description p {
        font-size: 12px !important;
        padding: 0 10px !important;
        max-height: 50px;
        -webkit-line-clamp: 2;
    }
    
    .corner-images img {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 250px;
    }
    
    .product-set {
        gap: 15px;
    }
    
    .product-hover-card {
        padding: 10px !important;
    }
    
    .product-hover-content .product-title h4 {
        font-size: 18px !important;
        padding: 0 5px !important;
    }
    
    .product-hover-content .product-description p {
        font-size: 11px !important;
        padding: 0 8px !important;
        max-height: 45px;
        -webkit-line-clamp: 2;
    }
    
    .corner-images img {
        width: 35px !important;
        height: 35px !important;
    }
}
