.subheader {
    width: 100%;
    min-height: 50px;
    border-right: 1px solid var(--bg-main-menu);
    border-bottom: 1px solid var(--bg-main-menu);
    display: flex;

    @media (max-width: 936px) {
        display: none;
    }
}

.open-sidebar-button {
    width: auto;
    height: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    /*transition: all 2s ease-out;*/

    & .filter-arrow {
        display: flex;
        width: 1.4rem;

        svg {
            fill: var(--primary);
        }

        &.rotate {
            transform: rotate(180deg);
        }
    }
}

.subheader-content {
    flex: 1;
}

.products-grid {
    margin: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px var(--shadow);
}

.product-card-content {
    /*flex: 1;*/
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .7rem;
}

.product-title {
    font-size: 1.2rem;
    flex-grow: 1;
}

.product-tag {
    flex-grow: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-description {
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-price-block {
    display: flex;
    flex-direction: column;
    gap: .5rem;

    .old-price-block {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: .9rem;

        .discount-badge {
            padding: .1rem .5rem;
            border-radius: 1rem;
            background-color: var(--bg-badge);
            font-weight: 600;
            color: #fff;
        }
    }

    .price {
        font-weight: 600;
        font-size: 1.2rem;

        span {
            font-size: 1rem;
        }
    }
}


.product-button {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.product-button:hover {
    background-color: #005ecc;
}

/* Responsive */
@media (max-width: 600px) {
    .product-image {
        height: 140px;
    }
}