/* ============================================
   HOMEPAGE SECTIONS COMPLETE REDESIGN
   Modern Cards, Advanced UI, Best Practices
   ============================================ */

:root {
    --section-purple: #9333ea;
    --section-purple-light: #a855f7;
    --section-purple-lighter: #c084fc;
    --section-purple-pale: #f3e8ff;
    --section-white: #ffffff;
    --section-gray-50: #f9fafb;
    --section-gray-100: #f3f4f6;
    --section-gray-600: #6b7280;
    --section-gray-900: #111827;
    --section-blue: #3b82f6;
    --section-green: #10b981;
    --section-orange: #f59e0b;
}

/* ============================================
   FEATURES SECTION - MODERN CARDS WITH ICONS
   ============================================ */

.features-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #ffffff 0%, var(--section-gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(147, 51, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.2);
    border-color: var(--section-purple-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--section-purple), var(--section-purple-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--section-gray-900);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--section-gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   STATS SECTION - MODERN COUNTER CARDS
   ============================================ */

.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--section-purple) 0%, var(--section-purple-light) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* ============================================
   TRENDING PRODUCTS - MODERN CARD GRID
   ============================================ */

.trending-products-modern {
    padding: 100px 20px;
    background: white;
    position: relative;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 50px;
    color: var(--section-purple);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--section-gray-900);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-title-modern .gradient-text {
    background: linear-gradient(135deg, var(--section-purple), var(--section-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description-modern {
    font-size: 1.1rem;
    color: var(--section-gray-600);
    line-height: 1.7;
}

/* Product Grid with Advanced Cards */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin-inline: auto;
    justify-content: center;
    justify-items: center;
}

.product-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(147, 51, 234, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, var(--section-purple-lighter), var(--section-purple-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.product-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 64px rgba(147, 51, 234, 0.2),
                0 8px 24px rgba(147, 51, 234, 0.15),
                0 0 0 1px rgba(147, 51, 234, 0.1);
}

.product-card-modern:hover::before {
    opacity: 1;
}

/* Product Badge */
.product-badge-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    backdrop-filter: blur(16px) saturate(180%);
    animation: badge-pulse 2s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.product-badge-modern.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.product-badge-modern.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.product-badge-modern.sale {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.product-badge-modern.trending {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Product Image */
.product-image-modern {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
                                rgba(147, 51, 234, 0) 0%,
                                rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.product-card-modern:hover .product-image-modern::before {
    opacity: 1;
}

.product-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) saturate(1);
}

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) saturate(1.2);
}

/* Product Overlay Actions */
.product-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
                                rgba(0, 0, 0, 0) 0%,
                                rgba(0, 0, 0, 0.4) 50%,
                                rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.product-card-modern:hover .product-overlay-modern {
    opacity: 1;
}

.product-quick-actions {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.product-card-modern:hover .product-quick-actions {
    transform: translateY(0);
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(147, 51, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--section-purple);
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--section-purple), var(--section-purple-light));
    color: white;
    transform: scale(1.15) translateY(-3px);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

/* Product Content */
.product-content-modern {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-modern {
    font-size: 0.8rem;
    color: var(--section-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title-modern {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--section-gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card-modern:hover .product-title-modern {
    color: var(--section-purple);
}

.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars-modern {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-count-modern {
    font-size: 0.85rem;
    color: var(--section-gray-600);
}

.product-features-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag-modern {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--section-purple-pale), rgba(233, 213, 255, 0.8));
    color: var(--section-purple);
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(147, 51, 234, 0.15);
    transition: all 0.3s ease;
}

.feature-tag-modern:hover {
    background: linear-gradient(135deg, var(--section-purple), var(--section-purple-light));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.product-price-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.price-current-modern {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--section-purple), var(--section-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.price-original-modern {
    font-size: 1.1rem;
    color: var(--section-gray-500);
    text-decoration: line-through;
    opacity: 0.7;
}

.price-discount-modern {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: discount-glow 2s ease-in-out infinite;
}

@keyframes discount-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.product-actions-modern {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-add-cart-modern {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, var(--section-purple) 0%, var(--section-purple-light) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-add-cart-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                                transparent,
                                rgba(255, 255, 255, 0.3),
                                transparent);
    transition: left 0.5s ease;
}

.btn-add-cart-modern:hover::before {
    left: 100%;
}

.btn-add-cart-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(147, 51, 234, 0.35),
                0 4px 12px rgba(147, 51, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-add-cart-modern:active {
    transform: translateY(-1px);
}

.btn-wishlist-modern {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(247, 247, 247, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(147, 51, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--section-gray-600);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-wishlist-modern:hover {
    background: var(--section-purple-pale);
    color: var(--section-purple);
    border-color: var(--section-purple);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.2);
}

.btn-wishlist-modern:active {
    transform: translateY(-1px) scale(1);
}

/* WhatsApp Button - Replaces Wishlist */
.btn-whatsapp-modern {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-modern:hover {
    background: linear-gradient(135deg, #1faa52, #0f7a5f);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-modern:active {
    transform: translateY(-1px) scale(1);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--section-gray-50) 0%, white 100%);
    position: relative;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
}

/* Connection Line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--section-purple-lighter), var(--section-purple), var(--section-purple-lighter));
    z-index: 0;
}

.step-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 2px solid var(--section-gray-100);
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--section-purple);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15);
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--section-purple), var(--section-purple-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--section-purple-lighter);
    top: -8px;
    left: -8px;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--section-gray-900);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--section-gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION - MODERN BANNER
   ============================================ */

.cta-section-modern {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--section-purple) 0%, var(--section-purple-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn-primary {
    background: white;
    color: var(--section-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .features-grid,
    .stats-grid,
    .products-grid-modern,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header-modern {
        margin-bottom: 40px;
    }

    .steps-container::before {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .product-actions-modern {
        flex-direction: column;
    }

    .btn-wishlist-modern {
        width: 100%;
    }
}
