/* ============================================
   MODERN HOME SECTIONS - STYLES
   Inspired by campaigns-modern.css
   ============================================ */

/* Featured Products Section */
.featured-products-section-modern {
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 20px;
}

.featured-products-header {
    background: linear-gradient(135deg, #E23FEA 0%, #8b5cf6 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.featured-products-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
}

.featured-products-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.featured-products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.featured-product-card-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.featured-product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.featured-product-image-wrapper-modern {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Ratio 4:3 */
    background: #f8fafc;
    overflow: hidden;
}

.featured-product-image-wrapper-modern img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card-modern:hover .featured-product-image-wrapper-modern img {
    transform: scale(1.05);
}

.featured-product-info-modern {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-product-name-modern {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-product-category-modern {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.featured-product-actions-modern {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.btn-featured-product {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #E23FEA, #8b5cf6);
    color: white;
    text-decoration: none;
}

.btn-featured-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 63, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Product Category Section - Enhanced Design */
.product-category-section-modern {
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 20px;
}

.product-category-header {
    background: linear-gradient(135deg, #E23FEA 0%, #8b5cf6 100%);
    color: white;
    padding: 50px 20px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(226, 63, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.product-category-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.product-category-header p {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.category-grid-modern-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.category-card-modern-home {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.category-card-modern-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(226, 63, 234, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.category-card-modern-home:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(226, 63, 234, 0.25);
    border-color: #E23FEA;
    text-decoration: none;
    color: inherit;
}

.category-image-wrapper-modern {
    position: relative;
    width: 100%;
    padding-top: 80%; /* Ratio 5:4 */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.category-image-wrapper-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(226, 63, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card-modern-home:hover .category-image-wrapper-modern::after {
    opacity: 1;
}

.category-image-wrapper-modern img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1);
}

.category-card-modern-home:hover .category-image-wrapper-modern img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.category-info-modern {
    padding: 24px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    z-index: 1;
}

.category-name-modern {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
    position: relative;
}

.category-card-modern-home:hover .category-name-modern {
    color: #E23FEA;
}

.category-name-modern::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #E23FEA, #8b5cf6);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.category-card-modern-home:hover .category-name-modern::after {
    transform: translateX(-50%) scaleX(1);
}

/* Empty state */
.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    grid-column: 1 / -1;
}

.empty-state-icon-modern {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state-modern h4 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 10px;
}

.empty-state-modern p {
    font-size: 16px;
    color: #64748b;
}

/* Lazy loading placeholder */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 991px) {
    .featured-products-section-modern,
    .product-category-section-modern {
        margin: 40px auto;
        padding: 0 15px;
    }

    .featured-products-header,
    .product-category-header {
        padding: 35px 20px;
        margin-bottom: 25px;
    }

    .featured-products-header h2,
    .product-category-header h2 {
        font-size: 28px;
    }

    .featured-products-header p,
    .product-category-header p {
        font-size: 15px;
    }

    .featured-products-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .category-grid-modern-home {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-products-section-modern,
    .product-category-section-modern {
        margin: 30px auto;
        padding: 0 12px;
    }

    .featured-products-header,
    .product-category-header {
        padding: 25px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .featured-products-header h2,
    .product-category-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .featured-products-header p,
    .product-category-header p {
        font-size: 14px;
    }

    .featured-products-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
        margin-bottom: 30px;
    }

    .category-grid-modern-home {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
        margin-bottom: 30px;
    }

    .featured-product-info-modern,
    .category-info-modern {
        padding: 14px;
    }

    .featured-product-name-modern {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .featured-product-category-modern {
        font-size: 12px;
    }

    .category-name-modern {
        font-size: 14px;
    }

    .btn-featured-product {
        padding: 8px 12px;
        font-size: 12px;
    }

    .featured-product-image-wrapper-modern {
        padding-top: 70%;
    }

    .category-image-wrapper-modern {
        padding-top: 75%;
    }

    .empty-state-modern {
        padding: 40px 15px;
    }

    .empty-state-icon-modern {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .empty-state-modern h4 {
        font-size: 20px;
    }

    .empty-state-modern p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .featured-products-section-modern,
    .product-category-section-modern {
        margin: 20px auto;
        padding: 0 10px;
    }

    .featured-products-header,
    .product-category-header {
        padding: 20px 12px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .featured-products-header h2,
    .product-category-header h2 {
        font-size: 20px;
    }

    .featured-products-header p,
    .product-category-header p {
        font-size: 13px;
    }

    .featured-products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-grid-modern-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-product-info-modern,
    .category-info-modern {
        padding: 12px;
    }

    .featured-product-name-modern,
    .category-name-modern {
        font-size: 13px;
    }

    .btn-featured-product {
        padding: 8px 10px;
        font-size: 11px;
    }

    .featured-product-image-wrapper-modern {
        padding-top: 65%;
    }

    .category-image-wrapper-modern {
        padding-top: 70%;
    }
}

