/**
 * WooFood Featured Product Styles
 * Hero/Banner style showcase design
 */

.woofood-featured-product-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--woofood-primary-color, #ff6b35) 0%, var(--woofood-accent-color, #e74c3c) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure wrapper has height when slider is inside */
.woofood-featured-product-wrapper .woofood-featured-product-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
}

/* Background Image */
.woofood-featured-product-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay */
.woofood-featured-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Content Container */
.woofood-featured-product-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.woofood-featured-product-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
.woofood-featured-product-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.woofood-featured-product-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--woofood-primary-color, #ff6b35);
    margin: 0 0 1.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* CTA Button */
.woofood-featured-product-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--woofood-button-text-color, #ffffff);
    background: var(--woofood-primary-color, #ff6b35);
    border: 2px solid var(--woofood-primary-color, #ff6b35);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.woofood-featured-product-button:hover {
    background: var(--woofood-accent-color, #e74c3c);
    border-color: var(--woofood-accent-color, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--woofood-button-text-color, #ffffff);
}

.woofood-featured-product-button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .woofood-featured-product-wrapper {
        min-height: 400px;
    }
    
    .woofood-featured-product-content {
        padding: 40px 15px;
    }
    
    .woofood-featured-product-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .woofood-featured-product-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .woofood-featured-product-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .woofood-featured-product-content {
        padding: 80px 40px;
    }
}

/* No Products Message */
.woofood-featured-product-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.woofood-featured-product-no-products p {
    margin: 0;
}

/* Slider Styles */
.woofood-featured-product-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 100%;
    overflow: hidden;
}

.woofood-featured-product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 500px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.woofood-featured-product-slide.active {
    opacity: 1;
    z-index: 1;
}

.woofood-featured-product-single {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Dots */
.woofood-featured-product-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.woofood-featured-product-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    outline: none;
}

.woofood-featured-product-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.3);
}

.woofood-featured-product-dot.active {
    background: var(--woofood-primary-color, #ff6b35);
    border-color: var(--woofood-primary-color, #ff6b35);
    width: 32px;
    border-radius: 6px;
}

/* Navigation Arrows */
.woofood-featured-product-prev,
.woofood-featured-product-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.woofood-featured-product-prev:hover,
.woofood-featured-product-next:hover {
    background: var(--woofood-primary-color, #ff6b35);
    border-color: var(--woofood-primary-color, #ff6b35);
    transform: translateY(-50%) scale(1.1);
}

.woofood-featured-product-prev {
    left: 20px;
}

.woofood-featured-product-next {
    right: 20px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .woofood-featured-product-prev,
    .woofood-featured-product-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .woofood-featured-product-prev {
        left: 10px;
    }
    
    .woofood-featured-product-next {
        right: 10px;
    }
    
    .woofood-featured-product-dots {
        bottom: 20px;
    }
}

/* RTL Support */
.rtl .woofood-featured-product-prev {
    left: auto;
    right: 20px;
}

.rtl .woofood-featured-product-next {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    .rtl .woofood-featured-product-prev {
        right: 10px;
    }
    
    .rtl .woofood-featured-product-next {
        left: 10px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .woofood-featured-product-wrapper * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .woofood-featured-product-slide {
        transition: none;
    }
}
