/* Enhanced Hero Carousel Styles */
.hero-carousel-enhanced {
    position: relative;
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 1s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }
.delay-4 { animation-delay: 0.8s; opacity: 0; }
.delay-5 { animation-delay: 1s; opacity: 0; }
.delay-6 { animation-delay: 1.2s; opacity: 0; }
.delay-7 { animation-delay: 1.4s; opacity: 0; }
.delay-8 { animation-delay: 1.6s; opacity: 0; }

/* Split Layout Styles */
.hero-slide-split {
    display: flex;
    height: 600px;
}

.split-content-left {
    position: relative;
    z-index: 2;
}

.split-images-right .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    height: 100%;
    padding: 10px;
}

.grid-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.grid-image:hover {
    transform: scale(1.05);
    z-index: 10;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.grid-image:hover .image-overlay {
    transform: translateY(0);
}

.image-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Offer Badge Styles */
.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.offer-badge-floating {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.mega-offer-badge {
    display: inline-block;
    position: relative;
    margin-bottom: 30px;
}

.mega-offer-badge .offer-text {
    display: inline-block;
    background: white;
    color: #ff6b6b;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.timer-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.timer-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.timer-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Category Showcase Styles */
.category-grid {
    margin: 40px 0;
}

.category-card-hero {
    display: block;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.category-card-hero:hover {
    color: white;
}

.category-card-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 5;
    border-radius: 16px;
}

.category-card-hero:hover::before {
    left: 100%;
}

.category-hero-bg {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.category-card-hero:hover .category-hero-bg {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: all 0.3s ease;
}

.category-card-hero:hover .category-hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.category-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px;
    text-align: center;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%
    );
}

.category-name {
    font-weight: 800;
    font-size: 16px;
    margin: 0 0 6px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.category-card-hero:hover .product-count {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Offer Grid Styles */
.offer-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    height: 100%;
}

.offer-product-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.offer-product-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.offer-product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Buttons Enhanced */
.btn-hero-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #667eea;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 13px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-hero-light {
    background: white;
    color: #667eea;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-hero-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-xl {
    padding: 18px 40px;
    font-size: 18px;
}

/* Parallax Effect */
.hero-bg-layer {
    transition: transform 0.5s ease-out;
}

/* Text Shadow for Better Readability */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls Enhanced */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Carousel Indicators Enhanced */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 30px;
    border-radius: 20px;
    background-color: white;
}

/* Category Cards Responsive */
@media (max-width: 991px) {
    .category-hero-bg {
        height: 120px;
    }
    
    .category-hero-content {
        padding: 15px 12px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .product-count {
        font-size: 11px;
        padding: 2px 6px;
    }
}

@media (max-width: 767px) {
    .category-hero-bg {
        height: 100px;
    }
    
    .category-hero-content {
        padding: 12px 8px;
    }
    
    .category-name {
        font-size: 13px;
        letter-spacing: 0.3px;
    }
    
    .product-count {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-slide-split {
        flex-direction: column;
        height: auto;
    }
    
    .split-content-left,
    .split-images-right {
        width: 100%;
    }
    
    .split-content-left {
        padding: 60px 20px !important;
    }
    
    .split-images-right {
        height: 400px;
    }
    
    .category-grid {
        margin: 20px 0;
    }
    
    .offer-products-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .timer-item {
        min-width: 70px;
        padding: 10px 15px;
    }
    
    .timer-value {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .hero-slide-standard,
    .hero-slide-categories,
    .hero-slide-offers {
        height: 500px !important;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .btn-xl {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}