/**
 * Epic Key Homepage V2 Styles
 * Modern, attractive design with Moroccan flair
 */

/* ============================
   HERO SECTION V2
   ============================ */

.hero-section-v2 {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.hero-slider .owl-nav button {
    background: rgba(255, 255, 255, 0.9) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slider .owl-nav button:hover {
    background: #00b96b !important;
    color: white !important;
    transform: scale(1.1);
}

.hero-slide {
    min-height: 600px;
    display: flex !important;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.hero-content {
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-price {
    margin-bottom: 30px;
}

.price-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero.btn-primary {
    background: white;
    color: #2c3e50;
}

.btn-hero.btn-primary:hover {
    background: #00b96b;
    border-color: #00b96b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-hero.btn-outline {
    background: transparent;
    color: white;
}

.btn-hero.btn-outline:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-image-wrapper {
    position: relative;
    padding: 40px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    z-index: 3;
}

/* ============================
   FEATURES SECTION
   ============================ */

.features-section {
    margin: 60px 0;
}

.feature-card {
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
    margin: 0;
}

/* ============================
   CATEGORY SHOWCASE
   ============================ */

.category-showcase-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #6c757d;
}

.category-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 185, 107, 0.2);
    border-bottom: 4px solid #00b96b;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #00b96b 0%, #00a85f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.product-count {
    font-size: 14px;
    color: #6c757d;
}

/* ============================
   FLASH SALE BANNER
   ============================ */

.flash-sale-section {
    margin: 60px 0;
}

.flash-sale-banner {
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.3);
}

.flash-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #f5576c;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.flash-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.flash-description {
    font-size: 18px;
    color: white;
    opacity: 0.95;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: white;
    opacity: 0.9;
    text-transform: uppercase;
}

.btn-flash {
    background: white;
    color: #f5576c;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-flash:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: #f5576c;
}

/* ============================
   PRODUCT CARDS
   ============================ */

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.product-card .discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    font-size: 16px;
}

.stock-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #ff6b6b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2c3e50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background: #00b96b;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: #00b96b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    flex: 1;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #00b96b;
}

.product-price-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: #00b96b;
}

.btn-add-to-cart {
    width: 100%;
    background: #00b96b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background: #00a85f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 185, 107, 0.3);
}

/* ============================
   TESTIMONIALS
   ============================ */

.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 15px;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: #2c3e50;
    font-size: 16px;
}

.testimonial-author span {
    color: #999;
    font-size: 14px;
}

/* ============================
   NEWSLETTER
   ============================ */

.newsletter-section {
    padding: 80px 0;
}

.newsletter-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: 18px;
    margin-bottom: 0;
}

.newsletter-form .input-group {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 20px 30px;
    font-size: 16px;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.btn-newsletter {
    background: #00b96b;
    color: white;
    border: none;
    padding: 20px 40px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: #00a85f;
    color: white;
}

/* ============================
   STATS SECTION
   ============================ */

.stats-section {
    padding: 60px 0;
}

.stat-card {
    padding: 40px 20px;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #00b96b;
    margin: 15px 0;
}

.stat-label {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .flash-title {
        font-size: 32px;
    }
    
    .newsletter-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .flash-sale-banner {
        padding: 30px 20px;
    }
    
    .countdown-timer {
        margin: 20px 0;
    }
    
    .product-image {
        height: 200px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .flash-title {
        font-size: 24px;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-form .form-control,
    .btn-newsletter {
        border-radius: 15px !important;
    }
}
