body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filters-sidebar {
    flex: 0 0 250px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin: 0 0 10px 0;
    color: #555;
}

.shop-filter {
    margin: 8px 0;
}

.shop-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.shop-filter input[type="checkbox"] {
    cursor: pointer;
}

.main-content {
    flex: 1;
}

.search-container {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#search-query {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    padding: 15px;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-card a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.product-card a:hover {
    color: #0056b3;
}

.results-count {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
    font-weight: bold;
}

.search-time {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.stock-status-0 { color: #000000; } /* Stoc necunoscut - black */
.stock-status-1 { color: #008000; } /* In stoc - green */
.stock-status-2 { color: #0000FF; } /* In stoc limitat - blue */
.stock-status-3 { color: #800080; } /* In stoc furnizor - purple */
.stock-status-4 { color: #FFBF00; } /* In curs de aprovizionare - amber */
.stock-status-5 { color: #FF0000; } /* Stoc epuizat - red */

.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 500px;
}

.error-image {
    max-width: 300px;
    border-radius: 8px;
    margin: 1rem 0;
}

.hidden {
    display: none;
}

.error-content h2 {
    color: #ff4444;
    margin-bottom: 1rem;
}

.error-content button {
    margin-top: 1rem;
    background-color: #ff4444;
}

.error-content button:hover {
    background-color: #cc0000;
}
