/* ========================================
   Modern Homepage Layout
   ======================================== */

/* Hero Banner */
.hero-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-content .btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-content .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Quick Categories Bar */
.quick-categories {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-categories-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.quick-categories-wrapper::-webkit-scrollbar {
    height: 6px;
}

.quick-categories-wrapper::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 3px;
}

.quick-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: var(--neutral-50);
    border-radius: 12px;
    min-width: 120px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quick-category:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.quick-category-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Deals Section */
.deals-section {
    padding: 40px 0;
    background: var(--neutral-50);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Products Carousel */
.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.carousel-product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.carousel-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.carousel-product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: white;
}

.carousel-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.carousel-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.carousel-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.carousel-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.carousel-product-btn {
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.carousel-product-btn:hover {
    background: var(--primary-dark);
}

/* Featured Categories Grid */
.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.featured-category-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
}

.featured-category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.featured-category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.featured-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.featured-category-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.featured-category-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Banner Promo Section */
.banner-promo {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 60px 0;
    margin: 40px 0;
    text-align: center;
    color: white;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.banner-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.banner-promo::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.banner-promo-content {
    position: relative;
    z-index: 1;
}

.banner-promo h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.banner-promo p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.banner-promo .btn-promo {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #f5576c;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.banner-promo .btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Trust Badges */
.trust-badges {
    padding: 40px 0;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-badge {
    padding: 20px;
}

.trust-badge-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.trust-badge-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.trust-badge-desc {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .products-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-category {
        min-width: 100px;
        padding: 12px 15px;
    }

    .banner-promo h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .products-carousel {
        grid-template-columns: 1fr;
    }

    .featured-categories-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}
