:has( > label[for="searchInput"]) {
    display: flex;
    flex-direction: column;
}

#searchInput {
    color: black;
    opacity: 1;
    border-radius: 2em !important;
    padding-left: 1.5em;
}

#searchForm {
    display: flex;
    flex-direction: column;
    color: white;
    gap: 2em;
}

#searchForm button[type=submit]{
    margin: 0 1em 0 0;
}

:has( > #searchForm) {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#searchForm label {
    color: white;
}

#searchForm :has( > img[src$="luigisbox.png"]) {
    position: absolute;
    top: 0;
    right: 11em;
    display: flex;
    gap: 1em;
    align-items: center;
    opacity: 0.5;
}

#searchForm img[src$="luigisbox.png"] {
    filter: invert(1) grayscale(1);
    height: 1.7em;
}

#sortFilter {
    display: flex;
    gap: 1em;
    align-items: center;
    flex-wrap: wrap;
}

#sortFilter button {
    height: 3em;
    font-size: 0.9em;
    white-space: nowrap;
    margin: 0;
    padding-left: 1em;
    padding-right: 1em;
}

#sortFilter :has( > button) {
    display: flex;
    gap: 0.3em;
    flex-wrap: wrap;
}

#sortFilter > * {
    display: flex;
    align-items: center;
    gap: 1em;
}

:has( > #searchInput) {
    display: flex;
    gap: 1em;
}

#search-results {
    color: black;
    display: flex;
    flex-direction: column;
    gap: 1em;
    background: white;
    border-radius: 2em;
}

#search-results p {
    margin-top: 0.8em;
}

.product-listing > * {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .product-listing > * {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1700px) {
    .product-listing > * {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.product-listing > * > * {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 0.5em;
    margin: 1em;
    padding: 0.4em;
}

.product-listing a {
    text-decoration: none;
}

:has( > .dostupnost) {
    display: none;
}

.font-medium {
    font-weight: 700;
}

.product-buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 1em;
}

.product-buttons > * {
    margin: 0;
}

button[onclick^="addToFavorite"] {
    display: none;
}

a.buy-button {
    background-image: url('/assets/img/icons/cart5.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

[data-skid] > * {
    font-size: 0.89em;
}

.product-price {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 0.8em;
}

.product-item {
    display: none;
}

.loading {
    place-items: center;
    filter: invert(1);
    display: grid;
}

:has(#search-results[data-non-empty]) .loading {
    filter: none;
}



