*{
    scrollbar-width: thin;
}
.products-section {
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 100px);
}
.products-section h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
    color: #333;
    flex-shrink: 0;
}
.products-container-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
#productsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 10px 12px;
    border-radius: 12px;
}
.product-card-public {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.product-card-public:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.out-of-stock-badge-public {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(244, 67, 54, 0.95);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}
.product-card-public:hover .product-image img {
    transform: scale(1.1);
}
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}
.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    display: none;
}
.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.product-price {
    font-size: 28px;
    color: #212121;
}
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.no-products-message p {
    font-size: 18px;
    color: #999;
    margin: 0;
}
@media (max-width: 768px) {
    #productsContainer {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    .products-section h1 {
        font-size: 28px;
        margin-bottom: 0px;
    }
    .product-title {
        font-size: 18px;
    }
    .product-price {
        font-size: 24px;
    }
    .product-image {
        height: 180px;
    }
}
@media (max-width: 480px) {
    #productsContainer {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        padding: 6px 0;
    }
    .products-section {
        padding: 6px 10px;
    }
    .product-image {
        height: 140px;
    }
}
.filter-controls-container {
    padding: 12px;
    position: relative;
}
.mobile-filter-buttons {
    display: none;
    gap: 10px;
}
.mobile-filter-btn,
.mobile-sort-btn {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.mobile-filter-btn:hover,
.mobile-sort-btn:hover {
    border-color: #444;
    color: #444;
}
.mobile-filter-btn.active,
.mobile-sort-btn.active {
    background: #444;
    border-color: #444;
    color: white;
}
.mobile-filter-btn svg,
.mobile-sort-btn svg {
    stroke: currentColor;
}
.filter-controls,
.sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.sort-controls {
    margin-top: 10px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}
.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    width: 100%;
    min-width: 200px;
    user-select: none;
}

.custom-select-trigger {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #ccc;
}

.custom-select.open .custom-select-trigger {
    border-color: #444;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-trigger svg {
    transition: transform 0.3s ease;
    color: #666;
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #444;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-select.open .custom-options {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.custom-option {
    padding: 10px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.custom-option:hover {
    background-color: #f5f5f5;
}

.custom-option.selected {
    background-color: #ddd;
    color: #444;
    font-weight: 500;
}

.custom-option:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Keep existing input styles */
.filter-group input[type="number"] {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #444;
}

.price-filter {
    min-width: 250px;
}
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-inputs input[type="number"] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}
.price-separator {
    color: #999;
    font-weight: bold;
}
@media (max-width: 768px) {
    .filter-controls-container {
        padding: 10px 0 !important;
    }
    .mobile-filter-buttons {
        display: flex;
    }
    .filter-controls,
    .sort-controls {
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        position: absolute;
        top: 60px;
        left: 10px;
        right: 10px;
        z-index: 100;
        animation: slideDown 0.3s ease;
    }
    .filter-controls.active,
    .sort-controls.active {
        display: flex;
    }
    .sort-controls {
        margin-top: 0;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .filter-group {
        min-width: 100%;
        width: 100%;
    }
    .price-filter {
        min-width: 100%;
        width: 100%;
    }
    .filter-group select,
    .filter-group input[type="number"] {
        width: 100%;
        max-width: 100%;
    }
    .price-inputs {
        width: 100%;
    }
}
@media (min-width: 769px) {
    .mobile-filter-buttons {
        display: flex;
    }
    .filter-controls,
    .sort-controls {
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        position: absolute;
        top: 60px;
        left: 10px;
        right: 10px;
        z-index: 100;
        animation: slideDown 0.3s ease;
    }
    .filter-controls.active,
    .sort-controls.active {
        display: flex;
    }
}
@media (min-width: 769px) {
    .products-section {
        margin-top: 50px;
        height: calc(100dvh - 160px);
    }
}
@media (max-width: 768px) {
    .products-section {
        height: calc(100dvh - 105px);
        margin-top: 80px;
    }
}