/* ========================================
   E-COMMERCE PAGE STYLES
   ======================================== */

/* CSS Variable Fallbacks (if not defined in main.css) */
:root {
    --rainbow-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899, #06B6D4);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --primary-purple: #8B5CF6;
}

/* Section Title & Subtitle (fallback styles) */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light, #64748b);
}

/* Section Badge Fallback */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(22, 163, 74, 0.1));
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-purple, #8B5CF6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gradient Text */
.gradient-text-main {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Styles */
.btn-gradient {
    background: var(--rainbow-gradient);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-size: 200% auto;
    display: inline-block;
    text-decoration: none;
}

.btn-gradient:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-xl {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-light.btn-xl {
    background: white;
    color: var(--text-dark, #1e293b);
    font-weight: 700;
}

.btn-light.btn-xl:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

/* Problem Hero Section */
.ecom-problem-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.problem-headline {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.problem-headline .highlight-text {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.problem-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.problem-point:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.problem-point i {
    font-size: 1.5rem;
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Funnel Illustration */
.funnel-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.funnel-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.funnel-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.funnel-step:hover .funnel-icon {
    background: var(--rainbow-gradient);
    color: white;
    transform: scale(1.1);
}

.funnel-step.active .funnel-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

.funnel-step.success .funnel-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.funnel-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Sales Flow Section - Enhanced */
.sales-flow-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.sales-flow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 3rem 0;
}

.sales-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-width: 150px;
}

.sales-flow-step::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sales-flow-step:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sales-flow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.2);
}

.flow-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #14b8a6;
    transition: all 0.3s ease;
}

.sales-flow-step:hover .flow-icon {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9, #6366f1);
    color: white;
    transform: scale(1.1);
}

.sales-flow-step.success .flow-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.flow-label {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.flow-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.flow-connector {
    color: #14b8a6;
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Flow Stat Cards */
.flow-stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.1);
    transition: all 0.3s ease;
}

.flow-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
}

.flow-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.flow-stat-label {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Optimize Section (Split Layout) */
.optimize-section {
    background: #fff;
}

.sticky-title-wrapper {
    position: sticky;
    top: 100px;
}

.optimize-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.optimize-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.optimize-card:hover {
    background: white;
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
    transform: translateX(10px);
}

.optimize-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.optimize-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.optimize-content p {
    color: var(--text-light);
    margin: 0;
}

/* Comparison Section */
.comparison-card {
    padding: 2rem;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.comparison-card.standard {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.comparison-card.premium {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.comparison-header i {
    font-size: 2rem;
}

.comparison-card.standard .comparison-header i {
    color: #94a3b8;
}

.comparison-card.premium .comparison-header i {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comparison-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-card.standard .comparison-list li i {
    color: #94a3b8;
}

.comparison-card.premium .comparison-list li i {
    color: #10b981;
}

/* Stats Section */
.stats-section-ecom {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.stat-card-ecom {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card-ecom:hover {
    transform: translateY(-10px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.15);
}

.stat-card-ecom .stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-card-ecom .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0 0.25rem;
}

.stat-card-ecom .stat-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Target Audience Section */
.target-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.target-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
}

.target-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.target-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.target-card p {
    color: var(--text-light);
    margin: 0;
}

/* E-Commerce CTA */
.cta-ecommerce {
    background: var(--rainbow-gradient);
    position: relative;
    overflow: hidden;
}

.cta-ecommerce::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.highlight-cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Product Showcase Mockup */
.product-showcase-mockup img {
    width: 100%;
    height: auto;
    border-radius: 0 0 16px 16px;
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .problem-headline {
        font-size: 2rem;
    }

    .sticky-title-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .sales-flow-wrapper {
        gap: 0.75rem;
    }

    .sales-flow-step {
        padding: 1rem;
    }

    .flow-connector {
        display: none;
    }
}

@media (max-width: 767px) {
    .problem-headline {
        font-size: 1.5rem;
    }

    .funnel-illustration {
        flex-direction: column;
        padding: 1.5rem;
    }

    .funnel-arrow {
        transform: rotate(90deg);
    }

    .optimize-card {
        flex-direction: column;
        text-align: center;
    }

    .optimize-icon {
        margin: 0 auto;
    }

    .stat-card-ecom .stat-number {
        font-size: 2.5rem;
    }
}