/*
|--------------------------------------------------------------------------
| MSN Čajevi — stranica proizvoda
|--------------------------------------------------------------------------
*/

.msn-products-intro {
    max-width: 760px;
    margin: 14px auto 0;
}

.msn-products-page {
    position: relative;
}

.msn-products-filter {
    position: sticky;
    top: 110px;
}

.msn-products-filter .canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msn-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
}

.msn-filter-search {
    position: relative;
}

.msn-filter-search input {
    width: 100%;
    height: 46px;
    padding: 0 48px 0 14px;
    border: 1px solid var(--line, #dedede);
    border-radius: 8px;
    background: var(--white, #fff);
}

.msn-filter-search button {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
}

.msn-products-filter .filter-group-check .list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.msn-products-filter .filter-group-check .label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.msn-products-filter .filter-group-check .count {
    flex-shrink: 0;
    color: var(--text-3, #8a8a8a);
}

.msn-price-filter__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.msn-price-filter__fields label {
    display: block;
}

.msn-price-filter__fields label > span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-2, #666);
    font-size: 13px;
}

.msn-price-filter__fields input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line, #dedede);
    border-radius: 8px;
    background: var(--white, #fff);
}

.msn-price-filter__currency {
    margin: 8px 0 0;
    color: var(--text-3, #8a8a8a);
    font-size: 12px;
}

.msn-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.msn-products-control {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.msn-products-result-count {
    margin-right: auto;
    color: var(--text-2, #666);
    font-size: 14px;
}

.msn-products-sort-form select {
    min-width: 220px;
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line, #dedede);
    border-radius: 8px;
    background-color: var(--white, #fff);
    cursor: pointer;
}

.msn-layout-controls {
    gap: 6px;
}

.msn-layout-controls li {
    display: block;
}

.msn-layout-controls .tf-view-layout-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line, #dedede);
    border-radius: 8px;
    background: transparent;
    transition: .2s ease;
}

.msn-layout-controls .tf-view-layout-switch.active,
.msn-layout-controls .tf-view-layout-switch:hover {
    border-color: var(--primary, #718c2f);
    background: var(--primary, #718c2f);
    color: #fff;
}

.msn-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line, #e4e4e4);
    border-radius: 10px;
}

.msn-active-filters__label {
    margin-right: 2px;
    font-size: 13px;
    font-weight: 600;
}

.msn-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(113, 140, 47, .11);
    color: var(--main, #1f1f1f);
    font-size: 12px;
    line-height: 1.3;
}

.msn-filter-chip i {
    font-size: 11px;
}

.msn-clear-all-filters {
    margin-left: auto;
    color: var(--primary, #718c2f);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

.msn-product-grid {
    align-items: stretch;
}

.msn-product-grid.msn-layout-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.msn-product-grid.msn-layout-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.msn-product-card {
    min-width: 0;
}

.msn-product-card .card-product_wrapper.square {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
}

.msn-product-card .product-img,
.msn-product-card .product-img img {
    width: 100%;
    height: 100%;
}

.msn-product-card .product-img img {
    object-fit: cover;
}

.msn-product-card .card-product_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.msn-product-category {
    display: inline-block;
    margin-bottom: 4px;
}

.msn-product-unit {
    margin: 4px 0 0;
}

.msn-product-description {
    display: none;
    margin: 10px 0 0;
    color: var(--text-2, #666);
    line-height: 1.6;
}

.msn-product-availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
}

.msn-product-availability__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.msn-product-availability.is-available {
    color: #4c741d;
}

.msn-product-availability.is-available .msn-product-availability__dot {
    background: #6d9934;
}

.msn-product-availability.is-unavailable {
    color: #a44a4a;
}

.msn-product-availability.is-unavailable .msn-product-availability__dot {
    background: #c85d5d;
}

.msn-out-badge {
    background: #6b6b6b !important;
    color: #fff !important;
}

.msn-list-details {
    display: none;
    margin-top: 18px;
}

/* List layout */
.msn-product-grid.msn-layout-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px;
}

.msn-product-grid.msn-layout-list .msn-product-card {
    display: grid;
    grid-template-columns: minmax(210px, 280px) 1fr;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line, #e4e4e4);
}

.msn-product-grid.msn-layout-list .card-product_wrapper.square {
    width: 100%;
}

.msn-product-grid.msn-layout-list .card-product_info {
    justify-content: center;
    padding: 12px 0;
}

.msn-product-grid.msn-layout-list .name-product {
    font-size: 24px;
    line-height: 1.3;
}

.msn-product-grid.msn-layout-list .msn-product-description,
.msn-product-grid.msn-layout-list .msn-list-details {
    display: block;
}

.msn-product-grid.msn-layout-list .msn-list-details {
    width: max-content;
}

.msn-icon-prev {
    display: inline-block;
    transform: rotate(180deg);
}

.msn-products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.msn-pagination-ellipsis {
    cursor: default;
}

.msn-products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 50px 20px;
    border: 1px solid var(--line, #e4e4e4);
    border-radius: 14px;
    text-align: center;
}

.msn-products-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(113, 140, 47, .12);
    color: var(--primary, #718c2f);
    font-size: 30px;
}

.msn-products-empty p {
    max-width: 500px;
    margin: 10px auto 22px;
}

.msn-products-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: none;
    background: rgba(0, 0, 0, .45);
}

body.msn-product-filter-open {
    overflow: hidden;
}

body.msn-product-filter-open .msn-products-filter-overlay {
    display: block;
}

@media (max-width: 1199.98px) {
    .msn-products-filter {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        width: min(390px, 92vw);
        height: 100vh;
        padding: 20px;
        overflow-y: auto;
        background: var(--white, #fff);
        transform: translateX(-105%);
        transition: transform .28s ease;
    }

    body.msn-product-filter-open .msn-products-filter {
        transform: translateX(0);
    }

    .msn-products-control {
        flex-wrap: wrap;
    }

    .msn-products-result-count {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .msn-products-sort-form {
        flex: 1;
    }

    .msn-products-sort-form select {
        width: 100%;
        min-width: 0;
    }

    .msn-layout-controls {
        display: none;
    }

    .msn-product-grid,
    .msn-product-grid.msn-layout-2,
    .msn-product-grid.msn-layout-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 10px;
    }

    .msn-product-card .product-action_list {
        display: none;
    }

    .msn-product-card .product-action_bot {
        display: none;
    }

    .msn-product-card .name-product {
        font-size: 14px;
        line-height: 1.45;
    }

    .msn-product-card .price-wrap {
        flex-wrap: wrap;
    }

    .msn-product-grid.msn-layout-list {
        grid-template-columns: 1fr !important;
    }

    .msn-product-grid.msn-layout-list .msn-product-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
    }

    .msn-product-grid.msn-layout-list .name-product {
        font-size: 17px;
    }

    .msn-product-grid.msn-layout-list .msn-product-description {
        display: none;
    }

    .msn-active-filters {
        align-items: flex-start;
    }

    .msn-clear-all-filters {
        width: 100%;
        margin: 5px 0 0;
    }
}

@media (max-width: 420px) {
    .msn-product-grid,
    .msn-product-grid.msn-layout-2,
    .msn-product-grid.msn-layout-3 {
        grid-template-columns: 1fr !important;
    }
}
/*
|--------------------------------------------------------------------------
| MSN Čajevi — Premium product cards
|--------------------------------------------------------------------------
| Dodati na kraj products.css fajla.
|--------------------------------------------------------------------------
*/

:root {
    --msn-product-card-bg: #ffffff;
    --msn-product-card-border: rgba(32, 55, 25, 0.12);
    --msn-product-card-border-hover: rgba(91, 132, 55, 0.45);

    --msn-product-card-text: #172015;
    --msn-product-card-muted: #7a8377;

    --msn-product-card-primary: #5f8d32;
    --msn-product-card-primary-dark: #3f671e;
    --msn-product-card-primary-soft: rgba(95, 141, 50, 0.11);

    --msn-product-card-danger: #d94141;
    --msn-product-card-danger-soft: rgba(217, 65, 65, 0.1);

    --msn-product-card-radius: 20px;

    --msn-product-card-shadow:
        0 8px 24px rgba(24, 39, 20, 0.06),
        0 2px 6px rgba(24, 39, 20, 0.04);

    --msn-product-card-shadow-hover:
        0 26px 55px rgba(24, 39, 20, 0.15),
        0 8px 18px rgba(24, 39, 20, 0.08);
}


/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.msn-product-grid {
    align-items: stretch;
    gap: 32px 28px !important;
}

.msn-product-grid .msn-product-card {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    border: 1px solid var(--msn-product-card-border);
    border-radius: var(--msn-product-card-radius);

    background: var(--msn-product-card-bg);

    box-shadow: var(--msn-product-card-shadow);

    overflow: hidden;

    transform: translateY(0);

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
}

.msn-product-grid .msn-product-card::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(111, 157, 68, 0.09),
            transparent 34%
        );

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.35s ease;
}

.msn-product-grid .msn-product-card:hover {
    border-color: var(--msn-product-card-border-hover);

    box-shadow: var(--msn-product-card-shadow-hover);

    transform: translateY(-8px);
}

.msn-product-grid .msn-product-card:hover::after {
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Image wrapper
|--------------------------------------------------------------------------
*/

.msn-product-card .card-product_wrapper.square {
    position: relative;

    flex-shrink: 0;

    width: 100%;
    aspect-ratio: 1 / 1;

    border-radius:
        calc(var(--msn-product-card-radius) - 1px)
        calc(var(--msn-product-card-radius) - 1px)
        0
        0;

    background: #eef2e9;

    overflow: hidden;
}

.msn-product-card .card-product_wrapper.square::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(6, 17, 5, 0.08) 0%,
            transparent 26%,
            transparent 68%,
            rgba(6, 17, 5, 0.28) 100%
        );

    opacity: 0.35;

    pointer-events: none;

    transition: opacity 0.35s ease;
}

.msn-product-card:hover .card-product_wrapper.square::before {
    opacity: 0.65;
}

.msn-product-card .product-img {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.msn-product-card .product-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.001);

    transition:
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease,
        opacity 0.45s ease;
}

.msn-product-card:hover .product-img .img-product {
    transform: scale(1.075);
}

.msn-product-card:hover .product-img .img-hover {
    transform: scale(1.075);
}


/*
|--------------------------------------------------------------------------
| Badges
|--------------------------------------------------------------------------
*/

.msn-product-card .product-badge_list {
    top: 14px;
    left: 14px;
    z-index: 5;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    max-width: calc(100% - 28px);
}

.msn-product-card .product-badge_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;
    padding: 5px 10px;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;

    color: #fff;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.045em;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.msn-product-card .product-badge_item.new {
    background:
        linear-gradient(
            135deg,
            #6fa73c,
            #4f8127
        );
}

.msn-product-card .product-badge_item.sale {
    background:
        linear-gradient(
            135deg,
            #ed5555,
            #c82f3a
        );
}

.msn-product-card .product-badge_item.msn-out-badge {
    background:
        linear-gradient(
            135deg,
            rgba(57, 62, 55, 0.92),
            rgba(27, 30, 26, 0.92)
        ) !important;

    color: #fff !important;
}


/*
|--------------------------------------------------------------------------
| Floating detail icon
|--------------------------------------------------------------------------
*/

.msn-product-card .product-action_list {
    top: 14px;
    right: 14px;
    z-index: 6;

    transform: translateX(12px);

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.msn-product-card:hover .product-action_list {
    transform: translateX(0);

    opacity: 1;
}

.msn-product-card .product-action_list .box-icon {
    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
    color: #25321f;

    box-shadow:
        0 9px 22px rgba(18, 28, 15, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.msn-product-card .product-action_list .box-icon:hover {
    border-color: var(--msn-product-card-primary);

    background: var(--msn-product-card-primary);
    color: #fff;

    transform: rotate(-6deg) scale(1.08);
}


/*
|--------------------------------------------------------------------------
| Image bottom button
|--------------------------------------------------------------------------
*/

.msn-product-card .product-action_bot {
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 6;

    transform: translateY(18px);

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.msn-product-card:hover .product-action_bot {
    transform: translateY(0);

    opacity: 1;
}

.msn-product-card .product-action_bot .tf-btn {
    min-height: 45px;

    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(248, 251, 245, 0.91)
        );

    color: #26351f;

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.015em;

    box-shadow:
        0 12px 26px rgba(10, 24, 8, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.msn-product-card .product-action_bot .tf-btn:hover {
    border-color: var(--msn-product-card-primary);

    background:
        linear-gradient(
            135deg,
            var(--msn-product-card-primary),
            var(--msn-product-card-primary-dark)
        );

    color: #fff;
}


/*
|--------------------------------------------------------------------------
| Product information
|--------------------------------------------------------------------------
*/

.msn-product-card .card-product_info {
    position: relative;

    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;

    min-width: 0;

    padding: 19px 19px 18px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 75%,
            #fbfcfa 100%
        );
}

.msn-product-card .card-product_info::before {
    content: "";

    position: absolute;
    top: 0;
    right: 19px;
    left: 19px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(73, 105, 49, 0.16),
            transparent
        );
}


/*
|--------------------------------------------------------------------------
| Category
|--------------------------------------------------------------------------
*/

.msn-product-card .msn-product-category {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    margin: 0 0 8px;

    color: var(--msn-product-card-primary) !important;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.msn-product-card .msn-product-category::before {
    content: "";

    width: 14px;
    height: 2px;
    margin-right: 7px;

    border-radius: 999px;

    background: var(--msn-product-card-primary);

    transition: width 0.25s ease;
}

.msn-product-card .msn-product-category:hover {
    color: var(--msn-product-card-primary-dark) !important;

    transform: translateX(2px);
}

.msn-product-card .msn-product-category:hover::before {
    width: 21px;
}


/*
|--------------------------------------------------------------------------
| Product title
|--------------------------------------------------------------------------
*/

.msn-product-card .name-product {
    display: -webkit-box;

    min-height: 50px;
    margin: 0;

    overflow: hidden;

    color: var(--msn-product-card-text);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.48;
    letter-spacing: -0.015em;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    transition: color 0.25s ease;
}

.msn-product-card:hover .name-product {
    color: var(--msn-product-card-primary-dark);
}


/*
|--------------------------------------------------------------------------
| Unit
|--------------------------------------------------------------------------
*/

.msn-product-card .msn-product-unit {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    min-height: 25px;
    margin: 9px 0 0;
    padding: 4px 9px;

    border: 1px solid rgba(80, 105, 65, 0.1);
    border-radius: 7px;

    background: #f5f7f2;
    color: #7e8879 !important;

    font-size: 11px;
    font-weight: 650;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Price
|--------------------------------------------------------------------------
*/

.msn-product-card .price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 7px 9px;

    width: 100%;
    margin-top: 15px;
    padding-top: 14px;

    border-top: 1px solid rgba(31, 52, 24, 0.08);
}

.msn-product-card .price-new {
    color: #d83737 !important;

    font-size: 18px;
    font-weight: 800 !important;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.msn-product-card .price-old {
    position: relative;

    color: #a7ada4 !important;

    font-size: 12px;
    font-weight: 550;
    line-height: 1.2;

    text-decoration: none !important;
}

.msn-product-card .price-old::after {
    content: "";

    position: absolute;
    top: 50%;
    right: -2px;
    left: -2px;

    height: 1px;

    background: #a7ada4;

    transform: rotate(-5deg);
}


/*
|--------------------------------------------------------------------------
| Availability
|--------------------------------------------------------------------------
*/

.msn-product-card .msn-product-availability {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    min-height: 28px;
    margin-top: 13px;
    padding: 5px 10px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.025em;
}

.msn-product-card .msn-product-availability__dot {
    position: relative;

    width: 7px;
    height: 7px;

    flex-shrink: 0;
}

.msn-product-card .msn-product-availability__dot::after {
    content: "";

    position: absolute;
    inset: -4px;

    border: 1px solid currentColor;
    border-radius: 50%;

    opacity: 0.3;
}

.msn-product-card .msn-product-availability.is-available {
    border-color: rgba(93, 143, 48, 0.18);

    background: var(--msn-product-card-primary-soft);
    color: #4f7b27;
}

.msn-product-card
.msn-product-availability.is-available
.msn-product-availability__dot {
    background: #66a033;

    box-shadow: 0 0 0 3px rgba(102, 160, 51, 0.13);
}

.msn-product-card .msn-product-availability.is-unavailable {
    border-color: rgba(203, 67, 67, 0.17);

    background: var(--msn-product-card-danger-soft);
    color: #b83f3f;
}

.msn-product-card
.msn-product-availability.is-unavailable
.msn-product-availability__dot {
    background: #cf5050;

    box-shadow: 0 0 0 3px rgba(207, 80, 80, 0.13);
}


/*
|--------------------------------------------------------------------------
| Out-of-stock image treatment
|--------------------------------------------------------------------------
*/

.msn-product-card:has(.msn-product-availability.is-unavailable)
.product-img img {
    filter: saturate(0.68) brightness(0.93);
}

.msn-product-card:has(.msn-product-availability.is-unavailable):hover
.product-img img {
    filter: saturate(0.88) brightness(0.96);
}


/*
|--------------------------------------------------------------------------
| List layout
|--------------------------------------------------------------------------
*/

.msn-product-grid.msn-layout-list {
    gap: 20px !important;
}

.msn-product-grid.msn-layout-list .msn-product-card {
    display: grid;

    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);

    gap: 0;

    padding: 0;

    border: 1px solid var(--msn-product-card-border);
    border-radius: var(--msn-product-card-radius);

    background: #fff;

    overflow: hidden;
}

.msn-product-grid.msn-layout-list .msn-product-card:hover {
    transform: translateY(-4px);
}

.msn-product-grid.msn-layout-list
.msn-product-card
.card-product_wrapper.square {
    min-height: 100%;

    border-radius:
        calc(var(--msn-product-card-radius) - 1px)
        0
        0
        calc(var(--msn-product-card-radius) - 1px);
}

.msn-product-grid.msn-layout-list .card-product_info {
    justify-content: center;

    padding: 30px 34px;
}

.msn-product-grid.msn-layout-list .name-product {
    min-height: auto;

    font-size: 25px;
    line-height: 1.3;

    -webkit-line-clamp: 2;
}

.msn-product-grid.msn-layout-list .msn-product-unit {
    margin-top: 12px;
}

.msn-product-grid.msn-layout-list .price-wrap {
    max-width: 420px;
}

.msn-product-grid.msn-layout-list .price-new {
    font-size: 22px;
}

.msn-product-grid.msn-layout-list .msn-product-description {
    display: -webkit-box;

    max-width: 720px;
    margin-top: 17px;

    overflow: hidden;

    color: #687065;

    font-size: 14px;
    line-height: 1.75;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.msn-product-grid.msn-layout-list .msn-list-details {
    width: fit-content;
    min-width: 170px;
    margin-top: 20px;

    border-radius: 10px;
}


/*
|--------------------------------------------------------------------------
| Responsive — tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .msn-product-grid {
        gap: 24px 18px !important;
    }

    .msn-product-card .card-product_info {
        padding: 17px 16px 16px;
    }

    .msn-product-card .name-product {
        min-height: 46px;

        font-size: 16px;
    }

    .msn-product-grid.msn-layout-list .msn-product-card {
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    }

    .msn-product-grid.msn-layout-list .card-product_info {
        padding: 24px;
    }

}


/*
|--------------------------------------------------------------------------
| Responsive — mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .msn-product-grid,
    .msn-product-grid.msn-layout-2,
    .msn-product-grid.msn-layout-3 {
        gap: 18px 10px !important;
    }

    .msn-product-grid .msn-product-card {
        border-radius: 14px;

        box-shadow:
            0 6px 18px rgba(24, 39, 20, 0.07),
            0 1px 4px rgba(24, 39, 20, 0.04);
    }

    .msn-product-grid .msn-product-card:hover {
        transform: translateY(-3px);
    }

    .msn-product-card .card-product_wrapper.square {
        border-radius: 13px 13px 0 0;
    }

    .msn-product-card .card-product_info {
        padding: 13px 12px 14px;
    }

    .msn-product-card .product-badge_list {
        top: 8px;
        left: 8px;

        gap: 4px;

        max-width: calc(100% - 16px);
    }

    .msn-product-card .product-badge_item {
        min-height: 22px;
        padding: 4px 7px;

        font-size: 8px;
    }

    .msn-product-card .msn-product-category {
        margin-bottom: 6px;

        font-size: 8px;
    }

    .msn-product-card .msn-product-category::before {
        width: 9px;
        margin-right: 5px;
    }

    .msn-product-card .name-product {
        min-height: 41px;

        font-size: 14px;
        line-height: 1.45;
    }

    .msn-product-card .msn-product-unit {
        min-height: 22px;
        margin-top: 7px;
        padding: 4px 7px;

        font-size: 9px;
    }

    .msn-product-card .price-wrap {
        gap: 5px;

        margin-top: 11px;
        padding-top: 10px;
    }

    .msn-product-card .price-new {
        font-size: 15px;
    }

    .msn-product-card .price-old {
        font-size: 10px;
    }

    .msn-product-card .msn-product-availability {
        min-height: 24px;
        margin-top: 10px;
        padding: 4px 7px;

        font-size: 8px;
    }

    .msn-product-card .msn-product-availability__dot {
        width: 6px;
        height: 6px;
    }

    .msn-product-card .product-action_list,
    .msn-product-card .product-action_bot {
        display: none;
    }

    .msn-product-grid.msn-layout-list .msn-product-card {
        grid-template-columns: 118px minmax(0, 1fr);

        border-radius: 14px;
    }

    .msn-product-grid.msn-layout-list
    .msn-product-card
    .card-product_wrapper.square {
        border-radius: 13px 0 0 13px;
    }

    .msn-product-grid.msn-layout-list .card-product_info {
        padding: 14px;
    }

    .msn-product-grid.msn-layout-list .name-product {
        font-size: 16px;
    }

    .msn-product-grid.msn-layout-list .msn-product-description {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| Very small screens
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .msn-product-grid,
    .msn-product-grid.msn-layout-2,
    .msn-product-grid.msn-layout-3 {
        gap: 20px !important;
    }

    .msn-product-card .card-product_info {
        padding: 17px;
    }

    .msn-product-card .name-product {
        min-height: auto;

        font-size: 17px;
    }

    .msn-product-card .price-new {
        font-size: 18px;
    }

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

}


/*
|--------------------------------------------------------------------------
| Reduced motion accessibility
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .msn-product-card,
    .msn-product-card::after,
    .msn-product-card img,
    .msn-product-card .product-action_list,
    .msn-product-card .product-action_bot,
    .msn-product-card .box-icon {
        transition: none !important;
    }

    .msn-product-card:hover {
        transform: none;
    }

}

.msn-product-short-description {
    display: -webkit-box;

    min-height: 44px;
    margin: 10px 0 0;

    overflow: hidden;

    color: #70786c;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.msn-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}

.msn-product-meta .msn-product-category {
    margin: 0;
}

.msn-product-meta .msn-product-unit {
    flex-shrink: 0;

    margin: 0;
}

.msn-product-purchase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    width: 100%;
    margin-top: auto;
    padding-top: 16px;

    border-top: 1px solid rgba(38, 61, 28, 0.09);
}

.msn-product-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border: 1px solid rgba(82, 126, 46, 0.2);
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #6fa440,
            #4f7d29
        );

    color: #fff;

    font-size: 23px;

    box-shadow:
        0 8px 18px rgba(73, 115, 38, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.msn-product-details-button:hover {
    color: #fff;

    box-shadow:
        0 12px 25px rgba(73, 115, 38, 0.3);

    transform: translateX(3px);
}

.msn-product-price-area {
    min-width: 0;
}

.msn-product-purchase-row .price-wrap {
    margin: 0;
    padding: 0;

    border: 0;
}

.msn-product-purchase-row .msn-product-availability {
    margin-top: 10px;
}

.msn-product-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 50%;
    left: 50%;
    z-index: 10;

    height: 3px;

    border-radius: 0 0 999px 999px;

    background:
        linear-gradient(
            90deg,
            #8eb861,
            #4f7c2b
        );

    transition:
        right 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.msn-product-card:hover::before {
    right: 22px;
    left: 22px;
}

.msn-product-card .card-product_info {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fdfefb 55%,
            #fafcf7 100%
        );
}

/*
|--------------------------------------------------------------------------
| Premium card markup — završna usklađivanja
|--------------------------------------------------------------------------
*/

.msn-product-meta--unit-only {
    justify-content: flex-end;
}

.msn-product-short-description:empty {
    display: none;
}

.msn-product-details-button .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 767.98px) {

    .msn-product-purchase-row {
        gap: 8px;
    }

    .msn-product-details-button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

}

@media (max-width: 420px) {

    .msn-product-details-button {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

}
