/*
|--------------------------------------------------------------------------
| MSN Čajevi — stranica proizvoda prema kategoriji
|--------------------------------------------------------------------------
| Ovaj fajl dopunjuje postojeći assets/css/products.css.
|--------------------------------------------------------------------------
*/

.msn-category-header {
    position: relative;
}

.msn-category-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    padding: 42px 46px;
    border: 1px solid rgba(74, 105, 50, 0.13);
    border-radius: 28px;
    background:
        radial-gradient(circle at 6% 0%, rgba(123, 164, 82, 0.13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fbfdf8 58%, #f4f8ef 100%);
    box-shadow:
        0 24px 60px rgba(30, 48, 24, 0.08),
        0 5px 16px rgba(30, 48, 24, 0.04);
    overflow: hidden;
}

.msn-category-header__inner::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(105, 151, 62, 0.07);
    pointer-events: none;
}

.msn-category-header__inner.has-image {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.msn-category-header__content,
.msn-category-header__image {
    position: relative;
    z-index: 1;
}

.msn-category-header .breadcrumbs {
    margin-bottom: 22px;
}

.msn-category-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #5f8d32;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.msn-category-header__eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #5f8d32;
}

.msn-category-header h1 {
    margin-bottom: 14px;
    color: #182416;
    letter-spacing: -0.025em;
}

.msn-category-header .msn-products-intro {
    max-width: 760px;
    margin: 0;
    line-height: 1.75;
}

.msn-category-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.msn-category-header__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(95, 141, 50, 0.17);
    border-radius: 999px;
    background: rgba(95, 141, 50, 0.08);
    color: #4e742b;
    font-size: 12px;
    font-weight: 700;
}

.msn-category-header__meta > span i {
    font-size: 18px;
}

.msn-category-header__meta > a {
    color: #24331f;
    font-size: 13px;
    font-weight: 700;
}

.msn-category-header__image {
    aspect-ratio: 4 / 3;
    min-height: 300px;
    border: 8px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: #eef3e9;
    box-shadow: 0 18px 44px rgba(35, 54, 29, 0.17);
    overflow: hidden;
}

.msn-category-header__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(15, 28, 11, 0.16));
    pointer-events: none;
}

.msn-category-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.msn-category-header__inner:hover .msn-category-header__image img {
    transform: scale(1.035);
}

.msn-category-links .list-item .label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: inherit;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.msn-category-links .list-item .label:hover {
    border-color: rgba(95, 141, 50, 0.15);
    background: rgba(95, 141, 50, 0.07);
    color: #4f7c29;
    transform: translateX(2px);
}

.msn-category-links .list-item.is-current .label {
    border-color: rgba(95, 141, 50, 0.22);
    background: rgba(95, 141, 50, 0.11);
    color: #4f7c29;
    font-weight: 700;
}

.msn-category-links .list-item.is-current .cate-text::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #67a139;
    box-shadow: 0 0 0 4px rgba(103, 161, 57, 0.12);
    vertical-align: 1px;
}

.msn-category-links .count {
    flex-shrink: 0;
    color: #9ba398;
    font-size: 12px;
}

@media (max-width: 1199.98px) {
    .msn-category-header__inner.has-image {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    }

    .msn-category-header__inner {
        padding: 34px;
    }

    .msn-category-header__image {
        min-height: 260px;
    }
}

@media (max-width: 991.98px) {
    .msn-category-header__inner,
    .msn-category-header__inner.has-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .msn-category-header__image {
        max-width: 620px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .msn-category-header__inner {
        gap: 25px;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .msn-category-header .breadcrumbs {
        margin-bottom: 17px;
    }

    .msn-category-header__eyebrow {
        font-size: 9px;
    }

    .msn-category-header__image {
        min-height: 220px;
        border-width: 5px;
        border-radius: 17px;
    }
}

@media (max-width: 479.98px) {
    .msn-category-header__inner {
        padding: 22px 17px;
    }

    .msn-category-header__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .msn-category-header__image {
        min-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msn-category-header__image img,
    .msn-category-links .label {
        transition: none !important;
    }
}
