.aeres-wishlist-compare-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--acp-line-2, #d7dee9);
    border-radius: var(--acp-radius-sm, 10px);
    background: #fff;
    box-shadow: 0 6px 18px rgba(11, 29, 64, 0.06);
}

.aeres-wishlist-compare-bar__info {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--acp-ink, #0b1d40);
}

.aeres-wishlist-compare-bar__info #aeres-wishlist-selected-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--acp-accent, #1c4f86);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.aeres-wishlist-compare-bar__max {
    font-size: 12px;
    font-weight: 500;
    color: var(--acp-ink-3, #8794aa);
}

/* Izgled dolazi iskljucivo iz .action-btn, kao i kod susjednih gumba.
   Prije su ovdje stajala #id pravila iz ljepljive trake (zuta pozadina,
   14px, visina 40) koja su nadjacavala .action-btn jer je specificnost
   #id veca od klase — pa je gumb odskakao od Ocisti i Preuzmi PDF. */


/* Obican omotac, bez vlastitog grida.
   Kartice crta podlozak kategorije, koji ima svoj grid (.aeres-loadmore-target,
   repeat(auto-fit, minmax(280px, 320px))). Kad je ovdje stajao jos jedan grid
   od 240px, cijeli se podlozak nasao u jednoj celiji i kartice su bile stisnute
   te uze nego u kategoriji. */
.aeres-wishlist-grid {
    display: block;
}

.aeres-wishlist-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
    border: 1px solid var(--acp-line, #e5e7eb);
    border-radius: var(--acp-radius, 16px);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s;
}

.aeres-wishlist-item:hover {
    border-color: var(--acp-line-2, #d7dee9);
    box-shadow: 0 8px 24px rgba(11, 29, 64, 0.08);
    transform: translateY(-2px);
}

.aeres-wishlist-item--disabled {
    opacity: 0.55;
}

.aeres-wishlist-item--selected {
    border-color: var(--acp-accent, #1c4f86);
    box-shadow: 0 0 0 1px var(--acp-accent, #1c4f86) inset;
}

.aeres-wishlist-checkbox {
    position: absolute;
    /* Kvacica je stajala preko logotipa proizvodaca: logotip je u redu ispod
       nje i sezao je skroz do desnog ruba. Podignuta je uz sam vrh kartice. */
    top: 4px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

/* Uz podizanje, redu s logotipom se rezervira mjesto s desna — da logotip
   ne moze skliznuti pod kvacicu ni kad je kartica uza ili logotip siri. */
.aeres-wishlist-item .aeres-image-footer {
    padding-right: 34px;
}

.aeres-wishlist-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.aeres-wishlist-checkbox__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--acp-line-2, #d7dee9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 29, 64, 0.12);
    transition: background-color 0.15s, border-color 0.15s;
}

.aeres-wishlist-checkbox__mark::after {
    content: "";
    width: 12px;
    height: 7px;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) translate(1px, -2px);
    opacity: 0;
    transition: opacity 0.15s;
}

.aeres-wishlist-checkbox input:checked + .aeres-wishlist-checkbox__mark {
    border-color: var(--acp-accent, #1c4f86);
    background: var(--acp-accent, #1c4f86);
}

.aeres-wishlist-checkbox input:checked + .aeres-wishlist-checkbox__mark::after {
    opacity: 1;
}

.aeres-wishlist-checkbox input:focus-visible + .aeres-wishlist-checkbox__mark {
    outline: 2px solid var(--acp-accent-2, #1c84ff);
    outline-offset: 2px;
}

.aeres-wishlist-checkbox input:disabled + .aeres-wishlist-checkbox__mark {
    opacity: 0.4;
    cursor: not-allowed;
}

.aeres-wishlist-item .vm-product-media-container {
    margin: 0;
}

.aeres-wishlist-item .aeres-card-media {
    position: relative;
    display: block;
    padding: 6px 0 2px;
}

.aeres-wishlist-item .browseProductImage {
    display: block;
    width: 100%;
    height: 170px;
    margin: 0 auto;
    object-fit: contain;
}

.aeres-wishlist-item .naziv_module_vm h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.aeres-wishlist-item .naziv_module_vm a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--acp-ink, #0b1d40);
    text-decoration: none;
}

.aeres-wishlist-item .naziv_module_vm a:hover,
.aeres-wishlist-item .naziv_module_vm a:focus-visible {
    color: var(--acp-accent-2, #1c84ff);
    text-decoration: underline;
}

.aeres-wishlist-item .dostupnost-i-dostava-vertikalno {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aeres-wishlist-item .informacije-subtext-message {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--acp-ink-2, #5b6b86);
}

.aeres-wishlist-item .category-view-price {
    margin-top: auto;
}

.aeres-wishlist-item .ams-price-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Izgled dolazi iz .action-btn i .aeres-compare-remove — isti gumb
   "Ukloni" koji se koristi u usporedbi. Ovdje se samo siri na punu
   sirinu kartice. */
.aeres-wishlist-remove-btn {
    width: 100%;
    justify-content: center;
}


.aeres-bss-brand-overlay--wishlist {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30%;
    max-width: 60px;
    height: auto;
    object-fit: contain;
    object-position: right top;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

@media (max-width: 900px) {
    /* Raspored na uzim ekranima drzi podlozak kategorije — ovdje se ne dira. */

    .aeres-wishlist-item .browseProductImage {
        height: 140px;
    }
}

@media (max-width: 700px) {
    .aeres-wishlist-compare-bar {
        padding: 10px 12px;
    }

    #aeres-wishlist-compare-btn {
        flex: 1 1 auto;
    }

    .aeres-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .aeres-wishlist-item {
        padding: 12px 10px 14px;
        gap: 8px;
    }

    .aeres-wishlist-item .browseProductImage {
        height: 118px;
    }

    .aeres-wishlist-item .naziv_module_vm h3 {
        font-size: 12.5px;
    }

    .aeres-wishlist-checkbox__mark {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aeres-wishlist-item {
        transition: none;
    }

    .aeres-wishlist-item:hover {
        transform: none;
    }
}

/* Potvrdni okvir ide u gornji DESNI kut kartice. */
.aeres-wishlist-checkbox {
    left: auto;
    right: 10px;
}

/* Pet proizvoda u redu.
   Podlozak kategorije koristi auto-fit s gornjom granicom od 320px, pa na
   ovoj sirini stane samo 4. Lista zelja trazi tocno 5, pa se broj stupaca
   zadaje izravno; minmax(0,1fr) sprjecava da dugi nazivi rasire stupac. */
@media (min-width: 1100px) {
    .aeres-wishlist-grid .aeres-loadmore-target {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.aeres-compare-head__akcije {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.aeres-compare-head__uputa {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: #4b5563;
    text-align: right;
}

@media (max-width: 680px) {
    .aeres-compare-head__akcije {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .aeres-compare-head__akcije .action-btn {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 8px;
        gap: 6px;
        justify-content: center;
        font-size: 13px;
        white-space: nowrap;
    }

    .aeres-compare-head__akcije .action-btn img {
        width: 18px;
        height: 18px;
    }

    .aeres-compare-head__akcije .aeres-sire-samo {
        display: none;
    }

    .aeres-compare-head__uputa {
        text-align: left;
    }
}

.aeres-compare-head__akcije .action-btn img {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.aeres-wishlist-usporedi:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.aeres-wishlist-item .naziv_module_vm a {
    display: block;
    -webkit-line-clamp: none;
    -webkit-box-orient: initial;
    overflow: visible;
    text-overflow: clip;
    height: auto;
    max-height: none;
}
