/* Homepage Styles */

.homepage {
    padding: 0;
}

/* Hero Section - Enhanced with Background Pattern */
.homepage-hero {
    background: 
        linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 168, 107, 0.85) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/><path d="M0,300 Q300,200 600,300 T1200,300" stroke="rgba(255,255,255,0.08)" stroke-width="2" fill="none"/></svg>');
    background-size: cover, cover, cover, cover;
    background-position: center, center, center, center;
    padding: var(--spacing-xl) 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.homepage-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
    backdrop-filter: blur(0.5px);
}

.homepage-hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: var(--font-size-small);
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 18px;
}

.badge-text {
    font-size: 13px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.hero-description {
    font-size: var(--font-size-large);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 6px;
    font-size: var(--font-size-large);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-hero.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-hero.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Homepage Sections - Enhanced with Decorative Elements */
    .homepage-section {
        padding: 0;
        margin-bottom: 0;
        position: relative;
        overflow: hidden;
    }
    
    /* Mobile spacing improvements */
    @media (max-width: 768px) {
        .homepage-section {
            padding: var(--spacing-lg) 0;
        }
        
        .section-products {
            padding: var(--spacing-md) 0;
        }
    }

.homepage-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.homepage-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(33, 33, 33, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.homepage-section .container {
    position: relative;
    z-index: 1;
}

.section-hero {
    padding: var(--spacing-xl) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.section-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.section-hero .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    color: #ffffff;
}

.section-icon {
    font-size: 72px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: iconPulse 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.section-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.section-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -2;
}

.section-header:hover .section-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.section-header:hover .section-icon::before {
    opacity: 1;
    width: 140px;
    height: 140px;
}

.section-header:hover .section-icon::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(360deg);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.08) translateY(-8px);
    }
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-description {
    font-size: var(--font-size-large);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Backgrounds */
.section-bathroom .section-hero {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(0, 168, 107, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23e0f2f1" width="1200" height="400"/></svg>');
}

.section-kitchen .section-hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 102, 153, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23fff3e0" width="1200" height="400"/></svg>');
}

.section-water .section-hero {
    background: linear-gradient(135deg, rgba(0, 102, 153, 0.9), rgba(0, 153, 204, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23e3f2fd" width="1200" height="400"/></svg>');
}

.section-lock .section-hero {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.9), rgba(66, 66, 66, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f5f5f5" width="1200" height="400"/></svg>');
}

.section-electrical .section-hero {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 160, 0, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23fffde7" width="1200" height="400"/></svg>');
}

/* Section Products - Enhanced */
.section-products {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
    position: relative;
}

.section-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-products::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: var(--spacing-lg);
    padding: 0 20px;
}

/* Product Card - Enhanced Modern Design */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(33, 33, 33, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

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

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    z-index: 2;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.product-card:hover .product-image-wrapper::after {
    opacity: 1;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
}

.product-card:hover .product-image {
    transform: scale(1.15);
    filter: brightness(1.05);
}

.price-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .product-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--secondary-color);
        margin: 0 0 12px 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 44px;
    }
    
    /* Mobile typography improvements */
    @media (max-width: 768px) {
        .product-title {
            font-size: 15px;
            line-height: 1.5;
            min-height: auto;
        }
    }

.product-price {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    align-items: stretch;
}

.btn-add-cart {
    flex: 1;
    min-width: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-add-cart:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
}

.btn-wishlist {
    width: 44px;
    min-width: 44px;
    height: auto;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-wishlist span {
    font-size: 18px;
    line-height: 1;
    display: block;
}

.btn-wishlist:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-compare-custom {
    width: auto;
    min-width: 70px;
    height: auto;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-compare-custom:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.compare-icon {
    font-size: 16px;
    line-height: 1;
    display: block;
}

.compare-text {
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
    font-size: var(--font-size-large);
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-section-cta {
    display: inline-block;
    padding: 14px 32px;
    background-color: #003366;
    color: #ffffff;
    border-radius: 6px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-section-cta:hover {
    background-color: #001a33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Why Choose Us Section */
/* Why Choose Us Section - Enhanced */
.homepage-why-choose {
    padding: var(--spacing-xl) 0;
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 193, 7, 0.02) 20px,
            rgba(255, 193, 7, 0.02) 40px
        );
    position: relative;
    overflow: hidden;
}

.homepage-why-choose::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.homepage-why-choose::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(33, 33, 33, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.homepage-why-choose .container {
    position: relative;
    z-index: 1;
}

.homepage-why-choose .section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.homepage-why-choose .section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.homepage-why-choose .section-description {
    font-size: var(--font-size-large);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.why-choose-item {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.why-choose-item:nth-child(1) { animation-delay: 0.1s; }
.why-choose-item:nth-child(2) { animation-delay: 0.2s; }
.why-choose-item:nth-child(3) { animation-delay: 0.3s; }
.why-choose-item:nth-child(4) { animation-delay: 0.4s; }

.why-choose-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.why-choose-item:hover::before {
    left: 100%;
}

.why-choose-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.why-choose-item > * {
    position: relative;
    z-index: 1;
}

.why-choose-icon {
    font-size: 56px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.why-choose-item:hover .why-choose-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 16px rgba(255, 193, 7, 0.4));
}

.why-choose-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.why-choose-text {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.6;
}

/* Statistics Section - Enhanced */
.homepage-statistics {
    padding: var(--spacing-xl) 0;
    background: 
        linear-gradient(135deg, #003366 0%, #0066cc 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: cover, cover, cover;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.homepage-statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.homepage-statistics .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(255, 193, 7, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 80px;
    width: 100%;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.4s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 0 4px 20px rgba(255, 193, 7, 0.6);
}

.stat-item:hover .stat-number::after {
    width: 80px;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
}

.stat-label {
    font-size: var(--font-size-large);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brands Section */
.homepage-brands {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    overflow: hidden;
}

.homepage-brands .section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.homepage-brands .section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.homepage-brands .section-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.brands-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: var(--spacing-lg);
    animation: scroll-brands 30s linear infinite;
    width: fit-content;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-card {
    background: #ffffff;
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.brand-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.brand-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.brand-name {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .section-icon {
        font-size: 48px;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive for Product Actions */
@media (max-width: 768px) {
    .product-actions {
        gap: var(--spacing-sm);
    }
    
    .btn-add-cart {
        font-size: 13px;
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .btn-wishlist {
        width: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .btn-compare-custom {
        min-width: 70px;
        min-height: 48px;
        padding: 10px 12px;
    }
    
    .compare-text {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        min-height: 400px;
        padding: var(--spacing-lg) 0;
    }
    
    /* Tối ưu performance: Tắt decorative elements trên mobile */
    .homepage-hero::before,
    .homepage-hero::after {
        display: none;
    }
    
    .homepage-section::before,
    .homepage-section::after {
        display: none;
    }
    
    .section-hero::after {
        display: none;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: var(--font-size-large);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: var(--font-size-base);
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }

    .section-icon {
        font-size: 40px;
        animation: none; /* Tắt animation trên mobile để tối ưu performance */
    }
    
    .hero-badges {
        gap: var(--spacing-sm);
    }
    
    .trust-badge {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .badge-text {
        font-size: 12px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .brand-card {
        min-width: 150px;
        height: 100px;
    }
}

