﻿/* =============================================
   wwwroot/css/products-section.css
   Premium Products Showcase Styles
   ============================================= */

/* ---------- Section Base ---------- */
.products-showcase-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* ---------- Header ---------- */
.section-header {
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(240, 147, 251, 0.12));
    color: #764ba2;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    color: #1a1a3e;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.golden-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
    margin-top: 1.5rem;
}

/* ---------- Category Card ---------- */
.category-showcase-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .category-showcase-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .category-showcase-card.gradient-purple::before {
        background: linear-gradient(135deg, #667eea, #764ba2);
    }

    .category-showcase-card.gradient-blue::before {
        background: linear-gradient(135deg, #4facfe, #00f2fe);
    }

    .category-showcase-card.gradient-green::before {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

    .category-showcase-card.gradient-gold::before {
        background: linear-gradient(135deg, #ffd93d, #ff6b6b);
    }

    .category-showcase-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
        border-color: rgba(102, 126, 234, 0.2);
    }

        .category-showcase-card:hover::before {
            transform: scaleX(1);
        }

    /* ---------- Card Header ---------- */
    .category-showcase-card .card-header {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding: 0;
        background: transparent;
        border: none;
    }

.category-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gradient-purple .category-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-blue .category-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.gradient-green .category-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.gradient-gold .category-icon {
    background: linear-gradient(135deg, #ffd93d, #ff6b6b);
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a3e;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.category-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-count-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Description ---------- */
.category-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* ---------- Features List ---------- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #e9ecef;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

    .feature-item i {
        color: #28a745;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

/* ---------- Sub-Categories ---------- */
.sub-categories {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #e9ecef;
}

.sub-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 5px 12px;
    background: #f8f9fc;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

    .sub-link i {
        font-size: 0.7rem;
        color: #667eea;
        transition: all 0.25s ease;
    }

    .sub-link:hover {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #ffffff;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

        .sub-link:hover i {
            color: #ffffff;
        }

/* ---------- Brands ---------- */
.brands-preview {
    margin-bottom: 1.25rem;
}

.brands-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.brand-tag {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

/* ---------- Card Footer / CTA ---------- */
.category-showcase-card .card-footer {
    margin-top: auto;
    padding: 0;
    background: transparent;
    border: none;
}

.btn-explore {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .btn-explore i {
        transition: transform 0.3s ease;
    }

    .btn-explore:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    }

        .btn-explore:hover i {
            transform: translateX(5px);
        }

/* ---------- Trust Badges ---------- */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04), rgba(240, 147, 251, 0.04));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .trust-item i {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #ffffff;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .trust-item strong {
        display: block;
        color: #1a1a3e;
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0.15rem;
    }

    .trust-item span {
        display: block;
        color: #6c757d;
        font-size: 0.8rem;
    }

/* ---------- Products CTA ---------- */
.products-cta {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

    .products-cta h4 {
        color: #1a1a3e;
        font-weight: 700;
        margin-bottom: 1rem;
    }

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #ffffff;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        color: #ffffff;
    }

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    border-radius: 50px;
    padding: 0.9rem 2.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background: #667eea;
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .category-showcase-card {
        padding: 1.5rem;
    }

    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

        .cta-buttons .btn {
            width: 100%;
            max-width: 300px;
        }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .product-count-badge {
        display: none;
    }

    .products-cta {
        padding: 2rem 1.25rem;
    }
}
