
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: #222;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4%;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}



#open-filters {
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    text-align: left !important;
    display: flex;
    justify-content: flex-start !important;
}


#close-filters,
#reset-filters {
    padding: 10px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    
}

.btn-filter-custom {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #333; /* Upravte barvu podle svého webu */
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Mezera mezi slovem, číslem a pluskem */
}

.btn-filter-custom:hover {
    opacity: 0.7;
}

.filter-plus {
    font-weight: 350; /* Tenčí nebo tlustší plusko podle vkusu */
    font-size: 1.3rem;
    line-height: 1;
}
.main {
    padding: 24px 4%;
}

.toolbar {
    margin-bottom: 20px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgb(0 0 0 / 45%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.filter-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1001;
    width: min(350px, 88vw);
    padding: 24px;
    overflow-y: auto;
    background: white;
    box-shadow: 8px 0 30px rgb(0 0 0 / 10%);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
}

.filter-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-header h2 {
    margin: 0;
}

.filter-panel > label,
.filter-panel > input,
.filter-panel > select {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    
}

.filter-panel > input,
.filter-panel > select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.filter-panel fieldset {
    margin: 18px 0;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.checkbox {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    margin: 10px 0;
}

.checkbox input {
    width: 17px;
    height: 17px;
}

#reset-filters {
    width: 100%;
}

.products {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 20px;
}

.product-card {
    overflow: hidden;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

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

.product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: white;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    margin: 8px 0;
}

.brand-name,
.category-name {
    color: #666;
    font-size: 0.9rem;
}

.price {
    font-size: 1.15rem;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .filter-panel,
    .overlay {
        transition: none;
    }
}