/* Korpa — izgled po mockupu. Funkcije ostaju iste. */
@media (min-width: 1025px) {
    body.is-cart-page.cats-sidebar-open main {
        padding-left: 0;
        padding-right: 0;
    }
    body.is-cart-page.cats-sidebar-open .footer { margin-left: 0; }
    body.is-cart-page .footer--mockup .footer-main {
        max-width: 1120px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

body.is-cart-page,
body.is-cart-page main,
body.is-cart-page .cart-page {
    background: #fff;
}
.cart-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 72px;
    box-sizing: border-box;
    color: #111;
    background: #fff;
}
.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}
.cart-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.cart-head-ico {
    display: inline-flex;
    width: 28px;
    height: 28px;
    color: #111;
}
.cart-head-ico svg { width: 28px; height: 28px; }
.cart-page h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.cart-head-count {
    margin: 2px 0 0;
    color: #8b9198;
    font-size: 13px;
}
.cart-continue-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.cart-continue-shop svg { width: 14px; height: 14px; }
.cart-continue-shop:hover { background: #222; color: #fff; }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 18px;
    align-items: start;
}
.cart-main,
.cart-form,
.cart-items { min-width: 0; }

.cart-items,
.cart-summary,
.cart-item,
.cart-item-qty,
.cart-qty-btn,
.cart-item-remove,
.cart-checkout-lock {
    background: #fff;
}
.cart-items {
    border: 1px solid #eceef1;
    border-radius: 16px;
    padding: 8px 16px 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
        "img info controls"
        "img price total";
    gap: 6px 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid #f0f1f3;
}
.cart-item:last-of-type { border-bottom: 0; }
.cart-item-image {
    grid-area: img;
    width: 88px;
    height: 88px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-item-info { grid-area: info; min-width: 0; }
.cart-item-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: #111;
}
.cart-item-title .item-display-product,
.cart-item-title .item-display-variation { display: block; }
.cart-item-title .item-display-variation { font-weight: 700; }
.cart-item-meta {
    margin: 0;
    color: #8b9198;
    font-size: 13px;
}
.cart-item-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    color: #16a34a;
    font-size: 13px;
    font-weight: 650;
}
.cart-item-price {
    grid-area: price;
    margin: 8px 0 0;
    color: var(--ozr-accent, #0095d2);
    font-size: 18px;
    font-weight: 800;
}
.cart-item-controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.cart-qty-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 40px;
    padding: 0;
    line-height: 1;
    text-align: center;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.cart-page .cart-item-qty .form-input--qty {
    flex-shrink: 0;
    min-width: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-radius: 0;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
}
.cart-page .cart-item-qty .form-input--qty::-webkit-outer-spin-button,
.cart-page .cart-item-qty .form-input--qty::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}
.cart-item-remove {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
}
.cart-item-remove:hover { color: #b91c1c; border-color: #fecaca; }
.cart-item-total {
    grid-area: total;
    text-align: right;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    align-self: end;
}
.cart-item-total p { margin: 0; }

.cart-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f1f3;
}
.cart-trust-item {
    text-align: center;
    color: #6b7280;
}
.cart-trust-item svg {
    width: 22px;
    height: 22px;
    margin: 0 auto 6px;
    display: block;
    color: #9aa0a6;
}
.cart-trust-item strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #374151;
}
.cart-trust-item span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.cart-summary {
    border: 1px solid #eceef1;
    border-radius: 16px;
    padding: 18px 16px 16px;
    position: sticky;
    top: calc(var(--site-chrome-top, 72px) + 12px);
}
.cart-page .coupon-box {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.cart-page .coupon-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.cart-page .coupon-box-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.coupon-box-crown {
    display: inline-flex;
    color: var(--ozr-accent, #0095d2);
}
.coupon-box-crown svg { width: 18px; height: 18px; }
.coupon-box-tier {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}
.coupon-box-tier strong { color: #111; }
.cart-loyalty-panel {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon copy next"
        "bar bar bar";
    gap: 6px 10px;
    margin: 0 0 12px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: #111;
    color: #fff;
}
.cart-loyalty-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--ozr-accent, #0095d2);
    border-radius: 10px;
    color: var(--ozr-accent, #0095d2);
}
.cart-loyalty-icon svg { width: 22px; height: 22px; }
.cart-loyalty-copy { grid-area: copy; min-width: 0; }
.cart-loyalty-points {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}
.cart-loyalty-rate {
    margin: 2px 0 0;
    font-size: 13px;
    color: #d1d5db;
}
.cart-loyalty-next {
    grid-area: next;
    margin: 0;
    text-align: right;
    font-size: 11px;
    line-height: 1.35;
    color: #9ca3af;
}
.cart-loyalty-bar {
    grid-area: bar;
    height: 6px;
    margin-top: 6px;
    border-radius: 99px;
    background: #2a2a2a;
    overflow: hidden;
}
.cart-loyalty-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--ozr-accent, #0095d2);
}
.cart-page .btn-coupon,
.cart-page .btn-coupon--full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--ozr-accent, #0095d2);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cart-page .btn-coupon:hover,
.cart-page .btn-coupon--full:hover {
    background: var(--ozr-accent-hover, #007fb5);
    color: #fff;
}
.cart-page .coupon-applied {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #166534;
    font-size: 14px;
    font-weight: 650;
}
.cart-page .coupon-remove-btn {
    color: #166534;
    font-weight: 800;
    text-decoration: underline;
}
.cart-review h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cart-page .order-totals {
    gap: 10px;
    margin: 0 0 16px;
}
.cart-page .order-totals-row {
    font-size: 14px;
    color: #4b5563;
}
.cart-page .order-totals-row--gross { display: none; }
.cart-page .order-totals-row--discount,
.cart-page .order-totals-row--discount span:last-child {
    color: #16a34a;
    font-weight: 700;
}
.cart-page .order-totals-row--total {
    margin-top: 8px;
    padding-top: 14px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.cart-page .order-totals-row--total strong {
    color: var(--ozr-accent, #0095d2);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: none;
}
.cart-summary-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.cart-page .btn-cart-checkout,
.cart-page .btn-primary.btn-cart-checkout {
    flex: 1;
    width: auto;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--ozr-accent, #0095d2);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.cart-page .btn-cart-checkout:hover,
.cart-page .btn-primary.btn-cart-checkout:hover {
    background: var(--ozr-accent-hover, #007fb5);
    color: #fff;
}
.cart-checkout-lock {
    width: 50px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #9aa0a6;
    background: #fff;
}
.cart-checkout-lock svg { width: 18px; height: 18px; }
.cart-secure-note {
    margin: 12px 0 0;
    text-align: center;
    color: #9aa0a6;
    font-size: 12px;
}

@media (max-width: 860px) {
    .cart-page { padding: 12px 12px 80px; }
    .cart-layout { grid-template-columns: 1fr; gap: 14px; }
    .cart-summary { position: static; }
    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "img info"
            "img controls"
            "price total";
    }
    .cart-item-image { width: 72px; height: 72px; }
    .cart-item-controls { justify-content: flex-start; }
    .cart-item-price { font-size: 16px; }
    .cart-trust { grid-template-columns: 1fr 1fr 1fr; }
    .cart-page h1 { font-size: 24px; }
}

@media (max-width: 420px) {
    .cart-trust-item strong { font-size: 9px; }
    .cart-continue-shop { padding: 0 10px; font-size: 11px; }
}

.cart-mobile-only { display: none; }
@media (max-width: 767px) {

    body.is-cart-page { background: #fff; padding-top: 0 !important; }
    .is-cart-page main { padding-top: 0 !important; margin-top: 0; }
    .is-cart-page .site-chrome-backdrop { display: none; }
    .is-cart-page .site-chrome-sticky { position: sticky; top: 0; z-index: 1002; background: #fff; }
    .is-cart-page .promo-bar { position: relative !important; inset: auto; margin: 0 12px; width: auto; background: #f2f3f5; color: #575b66; height: auto; min-height: 24px; padding: 5px; }
    .is-cart-page .promo-bar p, .is-cart-page .promo-bar span, .is-cart-page .promo-bar a { color: #575b66 !important; font-size: 10px; }
    body.is-cart-page .header { position: relative !important; inset: auto; border: 0 !important; box-shadow: none; background: #fff !important; }
    .is-cart-page .header-shell { background: #fff !important; padding: 0; }
    body.is-cart-page .header .header-row--primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'logo actions'; gap: 10px; padding: 8px 18px; background: #fff !important; min-height: 0; }
    .is-cart-page .header-leading, .is-cart-page .header-row--categories { display: none !important; }
    body.is-cart-page .header .header-row--primary .logo-brand { grid-area: logo; padding: 0 !important; justify-self: start; align-items: flex-start; }
    .is-cart-page .header .logo-brand > .logo { transform: none; margin: 0; max-width: 160px; width: 100%; min-height: 40px; }
    .is-cart-page .header .logo-brand .logo-image { width: 100%; height: auto; max-height: 44px; object-fit: contain; filter: none; }
    body.is-cart-page .header .header-row--primary .nav-actions { grid-area: actions; display: flex; gap: 6px; align-items: center; }
    .is-cart-page .header .nav-action-link { color: #000 !important; background: none !important; border: 0; min-width: 30px; padding: 3px; }
    .is-cart-page .header .pd-reference-search { display: inline-flex; align-items: center; justify-content: center; }
    .is-cart-page .header .nav-action-link svg { width: 24px; height: 24px; stroke: #000 !important; color: #000 !important; }
    .is-cart-page .header .nav-action-label, .is-cart-page .header .header-phone { display: none !important; }
    .is-cart-page .header .cart-badge { background: #0095d2; color: #fff; border: 0; }
    .is-cart-page .header:not(.header-search-open) .header-search { display: none !important; }
    .is-cart-page .header.header-search-open .header-search { grid-column: 1 / -1; position: relative; display: block !important; }

 .cart-mobile-only { display: block; }
 .cart-page { padding: 8px 16px 24px; }
 .cart-head { margin-bottom: 8px; }
 .cart-head-ico, .cart-desktop-title, .cart-head-count, .cart-head > .cart-continue-shop, .cart-shipping-desktop, .cart-trust { display: none; }
 .cart-page h1 { font-size: 24px; text-transform: none; line-height: 1.2; letter-spacing: -.5px; }
 .cart-title-dot { color: #0095d2; }
 .cart-intro { font-size: 13px; color: #666973; margin: 5px 0 0; }
 .cart-layout { gap: 0; }
 .cart-items { border: 0; border-radius: 0; padding: 0; }
 .cart-item { position: relative; grid-template-columns: 76px minmax(0,1fr) 120px; grid-template-areas: 'img info controls'; align-items: center; gap: 10px; padding: 13px 0; min-height: 90px; }
 .cart-item-image { width: 76px; height: 76px; border-radius: 9px; background: #f5f5f7; }
 .cart-item-title { font-size: 12px; line-height: 1.25; font-weight: 700; }
 .cart-item-meta { font-size: 10px; }
 .cart-item-stock { font-size: 10px; margin-top: 3px; }
 .cart-item-price { position: absolute; top: 13px; right: 0; margin: 0; font-size: 13px; color: #080808; text-align: right; max-width: 100px; }
 .cart-item-price .price-original { display: block; color: #777c87; font-size: 10px; }
 .cart-item-price .price-discounted, .cart-item-price .price-deal { color: #080808; }
 .cart-item-controls { margin-top: 28px; gap: 16px; justify-content: flex-end; }
 .cart-item-total { display: none; }
 .cart-item-qty { border: 0; border-radius: 8px; background: #f5f5f7; }
 .cart-qty-btn { width: 24px; height: 32px; font-size: 17px; font-weight: 400; color: #626772; background: #f5f5f7; }
 .cart-page .cart-item-qty .form-input--qty { width: 24px; height: 32px; font-size: 13px; font-weight: 400; border: 0; }
 .cart-item-remove { display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;border:0;padding:8px;border-radius:6px;color:#383b42; }
 .cart-item-remove svg { display:block;width:14px;height:14px;flex-shrink:0; }
 .cart-summary { display: flex; flex-direction: column; gap: 9px; padding: 0; border: 0; border-radius: 0; }
 .cart-shipping-mobile { order: 4; }
 .cart-shipping-mobile .cart-shipping-progress { display: flex; flex-direction: column-reverse; gap: 6px; padding: 12px; margin: 0; background: #f5f5f7; border: 0; border-radius: 10px; }
 .cart-shipping-mobile .cart-shipping-progress-text { margin: 0; font-size: 12px; color: #111; }
 .cart-shipping-mobile .cart-shipping-progress-track { width: 100%; height: 5px; background: #dfe1e6; border-radius: 5px; overflow: hidden; }
 .cart-shipping-mobile .cart-shipping-progress-fill { display: block; height: 100%; background: #0095d2; }
 .cart-review { order: 1; background: #f5f5f7; border-radius: 12px; padding: 13px; }
 .cart-review h2 { font-size: 14px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
 .cart-page .order-totals { gap: 5px; margin: 0; }
 .cart-page .order-totals-row { font-size: 12px; }
 .cart-page .order-totals-row--discount span:last-child { color: #0095d2; }
 .cart-page .order-totals-row--total { padding-top: 8px; margin-top: 5px; text-transform: none; letter-spacing: 0; font-size: 14px; }
 .cart-page .order-totals-row--total strong { font-size: 17px; color: #080808; }
 .cart-tax-note { margin: 4px 0 0; font-size: 10px; color: #858a96; }
 .cart-page .coupon-box { order: 2; margin: 0; background: none; }
 .cart-page .coupon-box-head { display: none; }
 .cart-page .loyalty-code-hint { font-size: 10px; margin: 3px 0 7px; }
 .cart-page .coupon-form-row { display: flex; gap: 6px; }
 .cart-page .coupon-form-row input { min-width: 0; flex: 1; width: 0; height: 36px; border: 1px solid #e0e2e8; border-radius: 8px; background: white; padding: 8px; font-size: 12px; }
 .cart-page .btn-coupon { width: auto; min-height: 36px; padding: 8px 16px; border: 1px solid #373b42; border-radius: 8px; background: #fff; color: #111; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
 .cart-summary-actions { order: 3; }
 .cart-checkout-lock { display: none; }
 .cart-page .btn-primary.btn-cart-checkout { min-height: 42px; font-size: 15px; text-transform: none; letter-spacing: 0; border-radius: 9px; background: #0095d2; }
 .cart-secure-note { order: 5; margin: 0; font-size: 10px; }
 .cart-bottom-continue { order: 6; text-align: center; color: #555862; font-size: 11px; text-decoration: underline; }
 .is-cart-page .mobile-home-dock [aria-current] svg { fill: none; stroke: #0095d2; }
}

@media (max-width: 767px) { .cart-item-brand { color: #858a96; font-size: 10px; margin: 0 0 3px; text-transform: uppercase; } .cart-item-info { overflow-wrap: anywhere; } }
/* Loyalty points and next-tier progress use the cart's light gray palette. */
.cart-page .cart-loyalty-panel {
    background: #f5f5f7;
    color: #111;
}
.cart-page .cart-loyalty-rate { color: #555b66; }
.cart-page .cart-loyalty-next { color: #737783; }
.cart-page .cart-loyalty-bar { background: #dfe1e6; }

.cart-page .btn-coupon--full {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #30343b;
}
.cart-page .btn-coupon--full:hover,
.cart-page .btn-coupon--full:focus-visible {
    background: #d1d5db;
    border-color: #9ca3af;
    color: #111;
}

.cart-page .cart-item-sale-notice {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.cart-page .coupon-price-new, .cart-page .coupon-price-old { display: block; }
.cart-page .coupon-price-new { color: #b42318; font-weight: 700; }
.cart-page .coupon-price-old { color: #858a96; font-size: 12px; text-decoration: line-through; }
.cart-page .coupon-line-prices { display: flex; flex-direction: column; gap: 3px; }
.cart-page .coupon-line-prices small { font-size: 10px; color: #666973; }

/* Use desktop space for the cart and the shared checkout shell. */
@media (min-width: 1025px) {
    body.is-cart-page main { width: 100%; max-width: none; }
    body.is-cart-page .cart-page { max-width: 1600px; padding: 16px 32px 40px; }
    .cart-page .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 24px; }
    .cart-page .cart-head { margin-bottom: 14px; }
    .cart-page .cart-item { padding: 12px 0; }
    .cart-page .cart-summary { padding: 16px; }
}
@media (min-width: 1280px) {
    .cart-page .cart-item {
        grid-template-columns: 72px minmax(0, 1fr) minmax(90px, 120px) auto minmax(80px, 100px);
        grid-template-areas: "img info price controls total";
        align-items: center;
        gap: 12px;
    }
    .cart-page .cart-item-image { width: 72px; height: 72px; }
    .cart-page .cart-item-price { margin: 0; font-size: 16px; }
    .cart-page .cart-item-total { align-self: center; }
}

/* Keep cart product names within two lines. */
.cart-item-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}

/* Compact cart item names. */
.cart-item-title{font-size:13px}
@media(max-width:767px){.cart-item-title{font-size:11px}}

/* Hide available-stock labels in the phone cart; retain sold-out notices. */
@media(max-width:767px){
 .cart-item-stock[data-sold-out="false"]{display:none!important}
}
