/* Modern Products Section - Compact */
.products-section {
    padding: 2.5rem 0
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-header-content {
    flex: 1;
    min-width: 250px
}

.section-badge {
    display: inline-block;
    padding: .3rem .7rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .5rem;
}

.section-title-modern {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--text-main);
    line-height: 1.2;
}

.section-subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 400px;
}

.section-header-modern .btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    font-size: .85rem;
    padding: .6rem 1.2rem;
}

.section-header-modern .btn svg {
    transition: transform .3s ease
}

.section-header-modern .btn:hover svg {
    transform: translateX(4px)
}

/* Product Grid - 5 columns on desktop */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.product-card-modern {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: all .3s ease;
}

.product-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-color: var(--primary);
}

.product-badge-sale {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    padding: .2rem .5rem;
    border-radius: var(--radius-full);
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-subtle);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card-modern:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
    pointer-events: auto
}

.product-quick-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transform: translateY(6px);
    opacity: 0;
    transition: all .3s ease;
    text-decoration: none;
    z-index: 3;
}

.product-quick-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-main)
}

.product-card-modern:hover .product-quick-btn {
    transform: translateY(0);
    opacity: 1;
}

.product-quick-btn:hover {
    background: var(--primary)
}

.product-quick-btn:hover svg {
    color: #fff
}

.product-info-modern {
    padding: .75rem;
    position: relative;
    z-index: 2
}

.product-title-modern {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .4rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title-modern a {
    color: var(--text-main);
    text-decoration: none;
    transition: color .2s ease;
}

.product-title-modern a:hover {
    color: var(--primary)
}

.product-price-modern {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.price-current {
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary)
}

.price-old {
    font-size: .75rem;
    color: var(--text-muted);
    text-decoration: line-through
}

.product-form-modern {
    margin: 0
}

.product-form-modern .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .45rem .75rem;
    font-size: .75rem;
}

@media(max-width:991px) {
    .products-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: .85rem
    }
}

@media(max-width:767px) {
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem
    }

    .products-section {
        padding: 2rem 0
    }

    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1rem
    }

    .product-info-modern {
        padding: .6rem
    }

    .product-title-modern {
        font-size: .75rem
    }

    .price-current {
        font-size: .8rem
    }
}