/* Premium Hero Product Slider Styles */
.hero-product-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #e8f5e9 100%);
    box-shadow: 0 15px 50px rgba(40, 167, 69, 0.15), 
                0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.slider-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    position: absolute;
    width: 100%;
    animation: slideUpSmooth 25s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes slideUpSmooth {
    0% {
        transform: translateY(100%) translateZ(0);
    }
    100% {
        transform: translateY(-100%) translateZ(0);
    }
}

/* Premium Product Card Styles for Slider */
.slider-product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    margin: 15px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.08),
                0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(40, 167, 69, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.slider-product-card:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.15),
                0 8px 20px rgba(0,0,0,0.1);
    border-color: #28a745;
}

.slider-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-product-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.slider-product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slider-product-card:hover::after {
    opacity: 1;
}

.slider-product-image {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    float: left;
    margin-right: 18px;
    border: 3px solid rgba(40, 167, 69, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.slider-product-card:hover .slider-product-image {
    border-color: #28a745;
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.slider-product-info {
    overflow: hidden;
}

.slider-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-product-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.slider-product-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-product-category {
    display: inline-block;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Enhanced Image Container */
.slider-product-image-container {
    position: relative;
    float: left;
    margin-right: 15px;
}

.slider-product-overlay {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Image loading states */
.slider-product-image {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.slider-product-image.loaded {
    opacity: 1;
}

.slider-product-image.lazy-load {
    opacity: 0.5;
    filter: blur(2px);
}

.slider-product-image.placeholder-image {
    opacity: 0.7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.slider-product-card:hover .slider-product-image {
    border-color: #28a745;
    transform: scale(1.05);
}

/* Product Actions */
.slider-product-actions {
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-product-card:hover .slider-product-actions {
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.slider-control-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #28a745;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-control-btn:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.slider-control-btn:active {
    transform: scale(0.95);
}

/* Slider Indicator */
.slider-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Loading State */
.slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
    color: #6c757d;
}

.slider-loading .spinner-border {
    margin-bottom: 15px;
}

/* Empty State */
.slider-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
    color: #6c757d;
    text-align: center;
    padding: 40px 20px;
}

.slider-empty-icon {
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.slider-empty-icon i {
    font-size: 3rem;
    opacity: 0.7;
}

.slider-empty h5 {
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.slider-empty p {
    margin-bottom: 20px;
    max-width: 350px;
    line-height: 1.5;
}

.slider-empty-actions {
    margin-bottom: 15px;
}

.slider-empty-info {
    max-width: 400px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-product-slider {
        height: 350px;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .slider-product-card {
        margin: 10px;
        padding: 15px;
    }
    
    .slider-product-image {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .slider-product-name {
        font-size: 1rem;
    }
    
    .slider-product-description {
        font-size: 0.85rem;
    }
    
    .slider-controls {
        top: 10px;
        right: 10px;
    }
    
    .slider-control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .slider-indicator {
        bottom: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-product-slider {
        height: 300px;
    }
    
    .slider-product-card {
        margin: 8px;
        padding: 12px;
    }
    
    .slider-product-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .slider-product-name {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .slider-product-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .slider-product-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Touch Gestures Support */
@media (max-width: 768px) {
    .hero-product-slider {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    .slider-track {
        transition: transform 0.3s ease;
    }
    
    /* Pause animation on touch */
    .slider-track.touch-active {
        animation-play-state: paused;
    }
}

/* Performance Optimizations */
.hero-product-slider * {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* GPU Acceleration for smooth animations */
.slider-track {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.slider-product-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    contain: layout style paint;
}

/* Smooth infinite loop animation - Vertical (Desktop) */
@keyframes slideUpInfinite {
    0% {
        transform: translate3d(0, 100%, 0);
    }
    100% {
        transform: translate3d(0, -100%, 0);
    }
}

/* Horizontal animation for mobile */
@keyframes slideHorizontal {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.slider-track.infinite-scroll {
    animation: slideUpInfinite 20s linear infinite;
}

/* Premium Mobile: Vertical animation with smooth transitions */
@media (max-width: 768px) {
    .hero-product-slider {
        height: 400px !important;
        min-height: 400px !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.12) !important;
        position: relative !important;
    }
    
    .hero-product-slider .slider-container {
        overflow: hidden !important;
        height: 100% !important;
        position: relative !important;
        width: 100% !important;
    }
    
    .hero-product-slider .slider-track {
        animation: slideUpInfinite 25s linear infinite !important;
        animation-play-state: running !important;
        position: absolute !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
    }
    
    .hero-product-slider .slider-track.infinite-scroll {
        animation: slideUpInfinite 25s linear infinite !important;
    }
    
    .hero-product-slider .slider-track.paused {
        animation-play-state: paused !important;
    }
    
    .hero-product-slider .slider-product-card {
        display: block !important;
        margin: 12px auto !important;
        padding: 16px !important;
        width: calc(100% - 32px) !important;
        max-width: 92% !important;
        border-radius: 14px !important;
        background: white !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    .hero-product-slider .slider-product-image-container {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    
    .hero-product-slider .slider-product-image {
        width: 100% !important;
        height: 150px !important;
        border-radius: 12px !important;
        object-fit: cover !important;
        border-width: 2px !important;
    }
    
    .hero-product-slider .slider-product-info {
        width: 100% !important;
    }
    
    .hero-product-slider .slider-product-name {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
    }
    
    .hero-product-slider .slider-product-description {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    .hero-product-slider .slider-product-badge {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
    }
    
    /* Mobile skeleton cards */
    .hero-product-slider .loading-card {
        display: block !important;
    }
    
    .hero-product-slider .loading-image {
        height: 150px !important;
    }
}

/* Enhanced easing for smoother motion */
.slider-track.smooth-ease {
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pause animation with smooth transition */
.slider-track.paused {
    animation-play-state: paused;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Touch interaction feedback */
.slider-track.touch-dragging {
    transition: transform 0.1s ease-out;
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Momentum scrolling for touch devices */
.hero-product-slider.touch-enabled {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Variable speed animation based on content */
.slider-track.speed-slow {
    animation-duration: 30s;
}

.slider-track.speed-normal {
    animation-duration: 20s;
}

.slider-track.speed-fast {
    animation-duration: 15s;
}

/* Accessibility Improvements */
.slider-control-btn:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.slider-product-card:focus-within {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .slider-track {
        animation: none;
    }
    
    .slider-product-card,
    .slider-product-image,
    .slider-control-btn {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .slider-product-card {
        border: 2px solid #000;
    }
    
    .slider-product-name {
        color: #000;
    }
    
    .slider-control-btn {
        border: 2px solid #000;
    }
}


/* Beautiful Interactive Empty State */
.hero-empty-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    overflow: hidden;
    z-index: 100;
}

.empty-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(32, 201, 151, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.empty-main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.empty-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.icon-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #28a745;
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
}

.main-icon i {
    font-size: 3rem;
    color: white;
}

.empty-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.empty-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: #28a745;
}

.stat-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.empty-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
    color: white;
}

.cta-outline {
    background: white;
    color: #28a745;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-outline:hover {
    background: #28a745;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Mobile Responsive Empty State */
@media (max-width: 768px) {
    .empty-main-content {
        padding: 1.5rem;
    }
    
    .empty-icon-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }
    
    .icon-pulse-ring {
        width: 90px;
        height: 90px;
    }
    
    .main-icon {
        width: 70px;
        height: 70px;
    }
    
    .main-icon i {
        font-size: 2.2rem;
    }
    
    .empty-heading {
        font-size: 1.5rem;
    }
    
    .empty-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .empty-stats {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-item span {
        font-size: 0.8rem;
    }
    
    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* Premium Loading State */
.slider-loading-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e3f2fd 100%);
}

.loading-animation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.loading-circle {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-circle:nth-child(1) {
    animation-delay: 0s;
}

.loading-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2) translateY(-20px);
        opacity: 1;
    }
}

.loading-text {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

.loading-subtext {
    color: #718096;
    font-size: 1rem;
    animation: fadeInOut 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   LOADING SKELETON CARDS
   ======================================== */

/* Loading skeleton animation for product cards */
.loading-card {
    opacity: 0.8;
    pointer-events: none;
    animation: fadeIn 0.3s ease-in;
}

.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(200, 200, 200, 0.2) 0%,
        rgba(200, 200, 200, 0.4) 50%,
        rgba(200, 200, 200, 0.2) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.loading-image {
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
    background: linear-gradient(
        90deg,
        rgba(220, 220, 220, 0.3) 0%,
        rgba(240, 240, 240, 0.5) 50%,
        rgba(220, 220, 220, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-title {
    width: 80%;
    height: 20px;
    margin-bottom: 10px;
}

.loading-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.loading-text.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

/* Fade in animation when real products load */
.slider-product-card:not(.loading-card) {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure loading cards have proper structure */
.loading-card .slider-product-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.loading-card .slider-product-info {
    padding: 0 8px;
}

/* Mobile responsive skeleton */
@media (max-width: 768px) {
    .loading-image {
        height: 150px;
    }
    
    .loading-title {
        height: 16px;
    }
    
    .loading-text {
        height: 12px;
    }
}

/* ======================================== */

/* ========================================
   VERTICAL SCROLL ANIMATION
   ======================================== */

@keyframes slideUpInfinite {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Alternative smooth animation */
@keyframes slideUpSmooth {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ======================================== */
