.product-filter-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove focus outline on click */
*:focus-visible {
    outline: none;
}

/* Flex Container */
.filter-grid-flex {
    display: flex;
    gap: 2rem;
    width: 100%;
    position: relative;
    align-items: flex-start;
}

/* Filter Sidebar Header (mobile overlay) */
.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.filter-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
}

.filter-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.25rem;
    line-height: 1;
}

.filter-sidebar-close:hover {
    opacity: 0.6;
}

/* Filter Sidebar - Mobile */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.filter-sidebar.collapsed {
    transform: translateX(0);
}

/* Overlay backdrop */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.filter-overlay.active {
    display: block;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-section:first-child {
    padding-top: 0;
}

.filter-section:last-child {
    border-bottom: none;
}

/* Filter Title — with collapse indicator */
.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.01em;
}

.filter-title::after {
    content: '–';
    font-size: 1.1rem;
    color: #999;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Show the checkbox */
.filter-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #1a1a1a;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: auto;
    appearance: auto;
}

/* Label — horizontal layout with checkbox */
.filter-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.2rem 0;
    border: none;
    background: transparent;
    color: #444;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: inherit;
    user-select: none;
    text-align: left;
}

.filter-label:hover {
    color: #1a1a1a;
    opacity: 1;
}

.filter-label:has(.filter-checkbox:checked) {
    background: transparent;
    color: #1a1a1a;
    font-weight: 500;
}

/* Toggle Button — filter icon with text */
.filter-toggle {
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: auto;
    height: auto;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}

.filter-toggle:hover {
    opacity: 0.7;
}

.filter-toggle .filter-icon {
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
}

.filter-toggle .filter-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* Products Container */
.products-container {
    flex: 1;
    min-width: 0;
}

.product-count {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
}

/* Product Cards */
.product-card {
    background: transparent;
    border: 1px solid #f5f5f5;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    margin-left: -1px;
    transition: border-color 0.4s;
}

.product-card:hover {
    box-shadow: none;
    transform: none;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.main-image,
.hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .main-image {
    transform: scale(1.05);
}

.product-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-title {
    font-weight: 500;
    color: #000;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-align: center;
}

.product-pricing {
    margin: 8px 0;
    font-weight: bold;
}

.product-price,
.product-discount-price,
.product-original-price {
    font-size: 16px;
}

.product-price {
    color: #333;
}

.product-discount-price {
    color: #e74c3c;
    margin-left: 8px;
}

.product-original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 14px;
}

.product-link {
    color: #666;
    font-weight: 400;
    font-size: 0.875rem;
    margin-top: auto;
}

.product-card.hidden {
    display: none;
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    grid-column: 1 / -1;
}

/* Tablet */
@media (min-width: 768px) {
    .filter-sidebar-header {
        display: none;
    }

    .filter-overlay {
        display: none !important;
    }

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

    .filter-sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 250px;
        max-width: none;
        height: auto;
        align-self: flex-start;
        background: transparent;
        z-index: auto;
        transform: none;
        transition: width 0.3s ease, margin 0.3s ease;
        padding: 0 1.5rem 0 0;
        overflow-y: visible;
        box-shadow: none;
        margin-left: 0;
        flex-shrink: 0;
    }

    .filter-sidebar.collapsed {
        width: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}