/* =========================================================
   MERCH Product List Widget — v2.1.0
   Tema: Unbounded font, #000 + rgb(208,238,48) akcent
   ========================================================= */


/* =========================================================
   Tražilica
   ========================================================= */

/* Desktop: tražilica u istom redu desno od pillova */
.merch-product-list__toolbar {
    display: block;
}

.merch-search-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.merch-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
}

.merch-search-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #fff;
    pointer-events: none;
    flex-shrink: 0;
}

.merch-search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 42px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: Unbounded, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    outline: none;
    transition: background .15s;
    -webkit-appearance: none;
    appearance: none;
}

.merch-search-input::placeholder {
    color: rgba(255,255,255,0.45);
    font-family: Unbounded, sans-serif;
    font-size: 11px;
}

/* Ukloni nativni X u Chrome/Safari */
.merch-search-input::-webkit-search-cancel-button,
.merch-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.merch-search-input:focus {
    background: #111;
}

.merch-search-clear {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
    transition: color .12s;
}

.merch-search-clear:hover {
    color: #fff;
}

/* ----- Toolbar ----- */
.merch-product-list__toolbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding: 12px 0 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #E3E3E3;
}

/* ----- Pill row ----- */
.merch-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    margin-bottom: -1px;
}

/* ----- Filter item wrapper — desktop: relative za apsolutni dropdown ----- */
.merch-filter-item {
    position: relative;
    display: inline-flex;
}

/* ----- Pill button ----- */
.merch-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-bottom: 1px solid #E3E3E3;
    border-radius: 0;
    background: transparent;
    font-family: Unbounded, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

.merch-filter-pill:hover {
    background: rgb(208,238,48);
}

.merch-filter-pill.is-open {
    border: 1px solid #E3E3E3;
    border-bottom-color: #fff;
    background: #fff;
}

.merch-filter-pill.is-active {
    background: #000;
    color: #fff;
    border-color: #000;
    border-bottom-color: #000;
}

.merch-filter-pill.is-active:hover {
    background: #111;
}

.merch-filter-pill.is-active.is-open {
    border-bottom-color: #fff;
    background: #000;
    color: #fff;
}

.merch-filter-pill .merch-pill-arrow {
    font-size: 8px;
    transition: transform .2s;
    display: inline-block;
    opacity: .5;
}

.merch-filter-pill.is-open .merch-pill-arrow {
    transform: rotate(180deg);
}

/* ----- Reset gumb ----- */
.merch-filter-reset {
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-bottom: 1px solid #E3E3E3;
    border-radius: 0;
    background: transparent;
    font-family: Unbounded, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #808080;
    cursor: pointer;
    transition: color .15s, background .15s;
    margin-left: 4px;
}

.merch-filter-reset:hover {
    color: #000;
    background: rgb(208,238,48);
}

/* ----- Dropdown — apsolutno ispod pilla ----- */
.merch-filter-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    max-width: 520px;
    z-index: 100;
    overflow: hidden;
    max-height: 0;
    transition: max-height .22s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
    border-top: none;
    box-sizing: border-box;
    background: #fff;
}

.merch-filter-dropdown.is-open {
    max-height: 320px;
    border-color: #E3E3E3;
    border-top: none;
}

.merch-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px;
}

/* ----- Option chips ----- */
.merch-filter-option {
    padding: 8px 16px;
    border-radius: 0;
    border: 1px solid #E3E3E3;
    background: #fff;
    font-family: Unbounded, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}

.merch-filter-option:hover {
    background: rgb(208,238,48);
    border-color: rgb(208,238,48);
}

.merch-filter-option.is-selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ----- Count ----- */
.merch-product-list__count {
    font-family: Unbounded, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #808080;
    margin-bottom: 20px;
}

/* ----- Grid ----- */
.merch-product-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ----- Card ----- */
.merch-product-card {
    border: 1px solid #E3E3E3;
    background: #fff;
    height: 100%;
}

.merch-product-card__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f7f7f7;
    display: block;
}

.merch-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.merch-product-card:hover .merch-product-card__image img {
    transform: scale(1.04);
}

.merch-product-card__content {
    padding: 14px;
}

.merch-product-card__title {
    font-family: Unbounded, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.merch-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.merch-product-card__title a:hover {
    color: #000;
    text-decoration: underline;
}

.merch-product-card__meta {
    font-family: Unbounded, sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.merch-product-card__price {
    font-family: Unbounded, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

/* ----- Empty / No results ----- */
.merch-product-list__empty,
.merch-product-list__no-results {
    padding: 32px 0;
    font-family: Unbounded, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: #808080;
}

/* ----- Load More ----- */
.merch-load-more-wrap {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 8px;
}

.merch-load-more-btn {
    display: inline-block;
    height: 48px;
    padding: 0 48px;
    border: 1.5px solid #000;
    border-radius: 0;
    background: #fff;
    font-family: Unbounded, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.merch-load-more-btn:hover {
    background: rgb(208,238,48);
    border-color: rgb(208,238,48);
    color: #000;
}

.merch-load-more-btn:disabled {
    opacity: .5;
    cursor: wait;
}

/* =========================================================
   Mobile — accordion lista
   ========================================================= */
@media (max-width: 767px) {

    .merch-product-list__toolbar {
        position: static;
        border-bottom: 1px solid #E3E3E3;
        padding: 0;
        margin-bottom: 12px;
    }

    .merch-filter-bar {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        margin-bottom: 0;
    }

    .merch-filter-item {
        display: block;
        width: 100%;
        position: static;
    }

    .merch-filter-pill {
        width: 100%;
        justify-content: space-between;
        font-size: 11px;
        padding: 0 16px;
        height: 50px;
        border: none !important;
        border-bottom: 1px solid #E3E3E3 !important;
        background: #fff;
    }

    .merch-filter-pill:hover {
        background: rgb(208,238,48);
    }

    .merch-filter-pill.is-open {
        background: rgb(208,238,48);
        border-bottom: 2px solid #000 !important;
    }

    .merch-filter-pill.is-active {
        background: #000;
        color: #fff;
        border-bottom: 1px solid #333 !important;
    }

    .merch-filter-pill.is-active:hover {
        background: #111;
    }

    .merch-filter-pill.is-active.is-open {
        background: #111;
        border-bottom: 2px solid rgb(208,238,48) !important;
    }

    .merch-filter-reset {
        width: 100%;
        text-align: left;
        height: 48px;
        padding: 0 16px;
        font-size: 11px;
        border: none !important;
        border-bottom: 1px solid #E3E3E3 !important;
        margin-left: 0;
    }

    .merch-filter-reset:hover {
        background: rgb(208,238,48);
        color: #000;
    }

    .merch-filter-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border: none !important;
        border-bottom: 1px solid #E3E3E3 !important;
        background: #fafafa;
    }

    .merch-product-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .merch-load-more-btn {
        width: 100%;
        padding: 0;
    }

    /* Tražilica — mobile: puna širina, iznad pillova */
    .merch-search-wrap {
        justify-content: stretch;
        margin-bottom: 0;
        padding: 12px 0 0;
    }

    .merch-search-box {
        width: 100%;
    }

    .merch-search-input {
        width: 100%;
        height: 50px;
        font-size: 12px;
    }


}
