/* =========================================================
   E-SHOP: NÁKUPNÝ KOŠÍK (KROK 1) - REFAKTOROVANÉ
   ========================================================= */
.product.is-reduced-alert {
    background-color: #fffaf0;
    border: 2px solid #F39200;
    border-radius: 8px;
    position: relative;
    padding-top: 35px;
    transition: all 0.3s ease;
}



.product-reduced-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #F39200;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding:3px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.cart-changes-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    animation: fadeInModal 0.4s forwards;
}

.cart-changes-modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    animation: slideUpModal 0.4s forwards;
}

.cart-changes-modal .modal-icon {
    width: 50px;
    height: 50px;
    background: #fff3e0;
    color: #F39200;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.btn-acknowledge-changes {
    display: inline-block;
    background: #F39200;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-acknowledge-changes:hover { background: #e08600; color: #fff; }

@keyframes fadeInModal { to { opacity: 1; } }
@keyframes slideUpModal { to { transform: translateY(0); } }


/* =========================================================
   1. ZÁKLADNÉ ROZLOŽENIE A OBALY
   ========================================================= */
.shoppingCartSectionWrapp {
    min-height: 480px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 67px;
    font-family: 'Volte', sans-serif;
}

.shoppingCartSectionWrapp .empty,
.shoppingCartSectionWrapp .successful {
    max-width: 388px;
    margin: 0 auto;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.shoppingCartSectionWrapp .empty h1 { font-size: 32px; }
.shoppingCartSectionWrapp .empty .primary-btn,
.shoppingCartSectionWrapp .successful .primary-btn { margin-top: 12px; }
.shoppingCartSectionWrapp .successful h1 { max-width: 373px; margin: 0 auto; }
.shoppingCartSectionWrapp .successful p { max-width: 205px; margin: 0 auto; }

.shoppingCartSectionWrapp .notEmpty {
    max-width: 1280px;
    display: flex;
    gap: 56px;
    margin: 40px auto 0 auto;
    align-items: flex-start;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection {
    width: 100%;
    flex: 1;
    max-width: 824px;
}

/* Tlačidlá "Späť" */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .back {
    color: var(--text-primary);
    margin-top: 30px;
    cursor: pointer;
    text-decoration: underline;
    display: flex;
    gap: 5px;
    align-items: center;
    width: fit-content;
}

.shoppingCartSectionWrapp .backMobile { display: none; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.back-link:hover { color: var(--primary-color, #111827); }


/* =========================================================
   2. HLAVIČKY A NAVIGÁCIA (KROKY)
   ========================================================= */
.shoppingCartSectionWrapp .head,
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation {
    background-color: var(--surface-smoke);
    padding: 12px 24px;
    max-width: 540px;
    width: 100%;
    border-radius: 12px;
    box-shadow: none;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .line {
    position: absolute;
    top: 16px;
    width: 84%;
    height: 1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--border-primary);
    z-index: 10;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item {
    z-index: 11;
    position: relative;
    align-items: center;
    gap: 7px;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    color: currentColor;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item span {
    background-color: white;
    width: 32px;
    height: 32px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    border: 1px solid var(--border-primary);
    font-size: 16px;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item p { font-size: 14px; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item.active p,
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item.active span {
    font-family: 'VolteSemibold', 'sans-serif';
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item.active span {
    border: 2px solid var(--primary-color);
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item.backAvalible { cursor: pointer; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .navigation .items .item.backAvalible p { text-decoration: underline; }

/* Zobrazenie min. sumy a targetov */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .target,
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .target {
    font-size: 14px;
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    background-color: var(--blue-200);
    border-radius: 12px;
    max-width: 268px;
    width: 100%;
    text-align: center;
    color: initial;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .target { display: none; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .target p { max-width: 182px; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .head .target span { font-family: 'VolteSemibold', 'sans-serif'; }


/* =========================================================
   3. ZOZNAM PRODUKTOV V KOŠÍKU
   ========================================================= */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title h2 { font-size: 26px; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title p {
    width: 21px;
    height: 21px;
    border-radius: 999px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VolteSemibold', 'sans-serif';
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title .remove {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    background-color: #fff;
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title .remove svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* :active = tap feedback (dotyk); :hover len pre myš (inak „sticky" pri skrolovaní) */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title .remove:active {
    color: var(--surface-red);
    border-color: rgba(229, 48, 18, 0.4);
    background-color: rgba(229, 48, 18, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .title .remove:hover {
        color: var(--surface-red);
        border-color: rgba(229, 48, 18, 0.4);
        background-color: rgba(229, 48, 18, 0.06);
    }
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
    border-bottom: 1px solid var(--border-primary);
    text-align: left;
    margin-bottom: 5px;
    position: relative; /* kotva pre plávajúci krížik .remove-cross-btn */

    justify-content: space-around;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .img {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    overflow: hidden;
    text-align: center;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .first {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .first h3 {
    font-size: 14px;
    margin-bottom: 0px;
    line-height: 1.3;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .first h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .first h3 a:hover { color: var(--primary-color); }

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex-shrink: 0; 
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Counter (modern-amount) — desktop/tablet. FIXNÁ šírka (nie len max-width): nesmie sa meniť
   podľa hodnoty, inak sa pri zmene čísla posúva cena/krížik a obsah „skáče". Pokryje 2 fixné
   +/- tlačidlá + číslo + jednotku (predtým 100px = úzke → tlačidlá sa stláčali). */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .modern-amount {
    width: 136px;
    max-width: 136px;
    height: 36px;
}
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .btn-modern-counter {
    width: 30px;
}
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .autoGrowInput {
    font-size: 14px;
}

/* Počet kusov */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount {
    width: 115px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount span.btn-counter {
    width: 32px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount .unit-text {
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
    font-family: 'VolteSemibold', 'sans-serif';
}

/* AutoGrow Input a Cena */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount .autoGrow {
    width: 35px !important;
    display: flex;
    justify-content: center;
}
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount .autoGrowText { display: none !important; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount .autoGrowInput {
    width: 100% !important;
    position: static !important; 
    
    border: none;
    background: transparent;
    padding: 0;
    font-family: 'VolteSemibold', 'sans-serif';
    font-size: 14px;
    color: var(--text-primary);
    -moz-appearance: textfield;
}
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount .autoGrowInput::-webkit-outer-spin-button,
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .amount .autoGrowInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unit-info{ padding: 5px; }

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .priceWrapp {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: static !important; 
    margin: 0 !important;
    transform: none !important;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .priceWrapp h4 {
    font-size: 18px;
    font-family: 'VolteSemibold', 'sans-serif';
    margin-bottom: 2px;
    white-space: nowrap;
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .priceWrapp .vat-info {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Krížik (X) na odstránenie položky — jednotný dizajn s minikošíkom (.remove-cross-btn) */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .remove-cross-btn {
    position: absolute;
    top: -2px;
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 5;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* len naša červená výplň, žiadny natívny sivý box */
}

/* :active = zámerný tap feedback (dotyk); :hover len pre myš (inak „sticky" pri skrolovaní) */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .remove-cross-btn:active {
    transform: scale(1.1);
    background-color: var(--surface-red);
    border-color: var(--surface-red);
}

.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .remove-cross-btn:active svg path {
    stroke: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .remove-cross-btn:hover {
        transform: scale(1.1);
        background-color: var(--surface-red);
        border-color: var(--surface-red);
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .remove-cross-btn:hover svg path {
        stroke: #ffffff;
    }
}

/* Rezerva vpravo, aby krížik neprekrýval cenu */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second {
    padding-right: 28px;
}


/* =========================================================
   4. DARČEKY A ZĽAVOVÉ KUPÓNY
   ========================================================= */
.gift-badge {
    background-color: #F39200;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 12px;
    text-transform: uppercase;
    vertical-align: middle;
    display: inline-block;
}

/* --- Zobrazenie darčekov v košíku (Block A) --- */
.gift-badge-discount {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
}

.gift-badge-discount svg {
    margin-right: 4px;
    flex-shrink: 0;
}

.controlWrapp.gift-control {
    min-width: 50px;
}

/* --- Výber darčekov (Block B) --- */
.gift-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gift-selector-title {
    margin: 0;
    color: #374151;
}

.gift-selector-subtitle {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.gift-selector-subtitle strong {
    color: #F39200;
}

.gift-toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.gift-toggle-btn.is-highlighted {
    color: #F39200;
}

.gift-toggle-btn:hover {
    color: #d97700;
}

/* Upozornenia (Alerts) */
.gift-alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gift-alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.gift-alert-info {
    background-color: #E0F2FE;
    color: #0369A1;
    border-left: 4px solid #0EA5E9;
}

.gift-selector-instruction {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

/* Položky darčekov (Karty) */
.gift-card.is-empty {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

.btn-select-indicator {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-radius: 6px;
    font-weight: bold;
    background: #f3f4f6;
    color: #374151;
}

.gift-card.is-current .btn-select-indicator {
    background: transparent;
    color: #6b7280;
}

/* Tlačidlo na potvrdenie */
.confirm-gift-action {
    text-align: center;
}

.btn-confirm-gift {
    background-color: #F39200;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-confirm-gift:hover {
    background-color: #e68a00;
}

.gift-price { color: #F39200 !important; font-weight: 800 !important; margin: 0; white-space: nowrap; }
.gift-qty-text { font-size: 15px; font-weight: 700; color: #374151; white-space: nowrap; }

.gift-selector-block {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}
.gift-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 15px;
}
.gift-carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 5px;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.gift-carousel-track::-webkit-scrollbar { display: none; }

.gift-card {
    flex: 0 0 180px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.gift-card:hover { border-color: #F39200; box-shadow: 0 4px 12px rgba(243, 146, 0, 0.15); }
.gift-card.is-selected { border-color: #F39200; background-color: #fffaf0; }
.gift-card.is-current { border-color: #d1d5db; background-color: #f3f4f6; cursor: not-allowed; opacity: 0.6; }
.gift-card img { max-width: 100%; height: auto; margin-bottom: 12px; border-radius: 6px; width: 70px; }
.gift-card h3 { font-size: 0.9rem; color: #374151; margin-bottom: 15px; line-height: 1.3; }

.current-selection-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b7280;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.carousel-arrow {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #374151;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 2;
    transition: all 0.2s;
}
.carousel-arrow:hover { background: #F39200; color: #ffffff; border-color: #F39200; }
.carousel-arrow.left { left: -15px; }
.carousel-arrow.right { right: -15px; }

/* Zľavové Kupóny */
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp { margin-top: 30px; max-width: 312px; width: 100%; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp h5 { font-size: 14px; line-height: 140%; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp .discountVoucher {
    padding: 8px 8px 8px 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    height: 46px;
}
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp .discountVoucher input { background-color: transparent; border: none; outline: none; }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp .discountVoucher .use {
    padding: 0px 12px;
    height: 100%;
    border-radius: 4px;
    background-color: var(--border-primary);
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-family: 'VolteSemibold', 'sans-serif';
}
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp .discountVoucher input:valid + .use { background-color: var(--surface-green); }
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .discountVoucherWrapp .discountVoucher:focus-within {
    border: 1px solid var(--primary-color);
    outline: 3px solid rgba(243, 146, 0, 0.30);
}


/* =========================================================
   5. SUMARIZÁCIA A AKORDEÓN (Pravý panel)
   ========================================================= */
.shoppingCartSectionWrapp .notEmpty .sumarization {
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding-top: 20px;
    background-color: white;
    height: fit-content;
    position: sticky;
    top: 110px;
    margin-top: 37px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;
}

.summary-header h2 {
    font-weight: 600;
    font-size: 26px;
    margin: 0;
    line-height: 140%;
}

.summary-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* Info, že sa obsah (dátum doručenia, darčeky) skrýva — len v akordeóne (tablet/mobil) */
.summary-hint {
    display: none;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.3;
}

.summary-toggle-icon {
    display: none; /* Na desktope skryté */
    color: #F39200;
    transition: transform 0.3s ease;
}

.summary-toggle-icon.is-open { transform: rotate(180deg); }

.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 0 24px;
}

/* Progress Bary pre zľavy */
.discount-progress-wrapper {
    margin: 20px 24px;
    padding-top: 20px;
    border-top: 1px dashed #e5e7eb;
}

.discount-progress-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #374151; text-transform: uppercase; letter-spacing: 0.5px; }
.discount-progress-item { margin-bottom: 16px; }
.discount-progress-item:last-child { margin-bottom: 0; }

.discount-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap; 
    gap: 4px 12px;
    margin-bottom: 8px;
    line-height: 1.3;
}
.discount-name { font-weight: 600; color: #1f2937; font-size: 13px; }
.discount-status { font-weight: 500; color: #6b7280; font-size: 12px; margin-left: auto; }
.discount-status.text-success { color: #10b981; }

.progress-segments { display: flex; gap: 4px; height: 8px; width: 100%; }
.progress-segments .segment {
    flex: 1; 
    background-color: #f3f4f6;
    border-radius: 4px;
    transition: background-color 0.4s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.progress-segments .segment.filled { background-color: #F39200; }
.progress-segments .segment.filled.success { background-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.progress-bar-bg { height: 8px; background-color: #f3f4f6; border-radius: 4px; width: 100%; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
.progress-bar-fill { height: 100%; background-color: #F39200; border-radius: 4px; animation: fillProgressAnim 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.progress-bar-fill.success-fill { background-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

/* Základ (bez DPH) — presunuté do pätky ku cene "Na úhradu" (kompaktné) */
.sum-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}
.sum-details p { margin: 0; }

/* Pätka sumarizácie (Miesto pôvodného footSum) */
.summary-footer {
    background-color: var(--surface-smoke, #f9fafb);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-primary, #e5e7eb);
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.sum-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sum-total .desc { font-weight: 600; color: #374151; margin: 0; }
.sum-total h4 { margin: 0; color: #F39200; font-size: 26px; font-weight: 700; }

.summary-footer .next {
    background-color: var(--surface-green);
    padding: 14px 24px;
    border-radius: 999px; /* pilulka — jednotné CTA naprieč eshopom */
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: white;
    font-family: 'VolteSemibold', 'sans-serif';
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    border: none;
    box-shadow: 0 2px 6px rgba(101, 178, 46, 0.25);
    transition: filter 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.summary-footer .next:hover { filter: brightness(0.95); }
.summary-footer .next:active { transform: scale(0.98); }
.summary-footer .next.disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* Kalendár / Dátum dodania v sumarizácii */
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting { display: flex; justify-content: space-between; position: relative; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting .name { display: flex; gap: 3px; align-items: center; font-size: 16px; font-weight: 400; line-height: 140%; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting .date { font-family: 'VolteSemibold', 'sans-serif'; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting svg { min-width: 12px; min-height: 12px; transition: transform 0.2s ease-in-out; }
#datePickerOpenClose.isActive svg { transform: rotate(180deg); }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting .aditInfoWrapp { position: absolute; bottom: calc(15px + 12px); max-width: 268px; width: 100%; z-index: 10; display: none; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting svg:hover + .aditInfoWrapp { display: block; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting .aditInfoWrapp .aditInfo { background-color: #343332; color: white; font-size: 12px; padding: 16px; text-align: center; border-radius: 12px; padding-top: 12px; line-height: normal; z-index: 12; position: relative; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .setting .aditInfoWrapp .triangel { width: 39.523px; height: 39.523px; transform: rotate(45deg); background-color: #343332; position: absolute; z-index: 11; bottom: 0px; right: 55px; border-radius: 4px; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .datePicker { padding-top: 6px; padding-bottom: 4px; display: none; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .datePicker.show { display: block; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .datePicker .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin: 0 auto; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .datePicker .days p { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.shoppingCartSectionWrapp .notEmpty .sumarization .mainSum .datePicker .days p.active { background-color: var(--primary-color); color: white; border-radius: 999px; }


.vat-warning-box {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}
.vat-warning-box.error-border {
    border: 2px solid red;
}
.vat-warning-label {
    font-weight: 600;
    color: #856404;
}

/* =========================================================
   6. OVERLAYS A FIXY
   ========================================================= */
/* Globálny overlay „Aktualizujem košík…" na stránke košíka ODSTRÁNENÝ (2026-09-12):
   .is-updating prepínal position:static→relative → prehliadač vypol scroll anchoring → skok stránky.
   Stav načítania = per-riadkový .js-cart-ui-sync.is-recalculating (basic.css). Minikošík má vlastný (§8). */
.is-date-loading { cursor: wait !important; transition: opacity 0.2s ease-in-out; }
.is-date-loading * { pointer-events: none !important; }

@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes fillProgressAnim { from { width: 0%; } to { width: var(--target-width); } }


/* =========================================================
   7. RESPONZÍVNY DIZAJN (Media Queries)
   ========================================================= */
@media screen and (max-width: 1280px) {
    .shoppingCartSectionWrapp { padding: 20px 16px; padding-bottom: 100px; }
}

@media screen and (max-width: 1150px) {
    .shoppingCartSectionWrapp .notEmpty {
        flex-direction: column;
        align-items: stretch; 
        gap: 0; 
        position: relative;
    }

    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection {
        max-width: 100%;
        margin-bottom: 24px; 
    }

    /* AKORDEÓN (MOBIL A TABLET) */
    .shoppingCartSectionWrapp .notEmpty .sumarization {
        position: sticky;
        top: auto !important;
        bottom: 0;
        z-index: 99;
        padding-top: 15px; 
        max-width: 100%;
        width: 100%;
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15); /* Pekný tieň vysunutia */
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        background-color: white;
    }
    
    .summary-footer {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .js-summary-toggle { cursor: pointer; padding-bottom: 5px; }
    .summary-toggle-icon { display: flex; } /* Zobrazí ikonu rozbalenia */
    .summary-hint { display: block; } /* Info, že sa obsah skrýva za šípkou */
    .summary-header h2 { font-size: 20px; } /* kompaktnejšia hlavička v akordeóne */

    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .back { display: none; }

    .shoppingCartSectionWrapp .backMobile {
        color: var(--text-primary);
        margin-top: 30px;
        cursor: pointer;
        text-decoration: underline;
        display: flex;
        gap: 5px;
        align-items: center;
        margin: 0 auto;
        width: fit-content;
        margin-top: 16px;
    }
}

/* =========================================================================
   TABLET + MOBIL (≤1024px): IDENTICKÝ dizajn ako minikošík (CartSummaryControl)
   Položka = karta; názov vľavo, vpravo stĺpec s CENOU hore a INPUTOM pod ňou.
   Desktop (≥1025px) ostáva nezmenený.
   ========================================================================= */
@media screen and (max-width: 1024px) {
    /* Karta položky (zhodná s .item v minikošíku) */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px !important;
        margin: 0 0 8px 0 !important;
        background-color: #ffffff !important;
        border: 1px solid var(--border-primary) !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* Oddeľovacia čiara medzi položkami sa pri kartách nepoužíva */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .line {
        display: none !important;
    }

    /* Obrázok */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .img {
        width: 60px !important;
        height: 60px !important;
        margin: 0 !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    /* Názov = .main */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .first {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .first h3 {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Pravý stĺpec = .right-column: CENA hore, INPUT pod ňou, zarovnané vpravo */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second {
        flex: 0 0 auto !important;
        width: auto !important;
        border-top: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 6px !important;
        width: auto !important;
        margin: 0 !important;
    }
    /* poradie: cena (1) NAD inputom (2) */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .priceWrapp {
        order: 1 !important;
        align-items: flex-end !important;
        text-align: right !important;
        margin: 0 !important;
        min-width: 0 !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .modern-product-counter-wrapper {
        order: 2 !important;
    }
    /* Darček: "Zadarmo" hore (order 1 cez .priceWrapp), počet kusov pod ňou */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product.gift-product .second .controlWrapp .gift-qty-text {
        order: 2 !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .priceWrapp h4 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .priceWrapp .vat-info {
        font-size: 12px !important;
    }

    /* Counter — FIXNÁ šírka (nie len max-width), nech sa pri zmene čísla nič neposúva.
       Dosť široké pre fixné +/- tlačidlá + číslo + jednotku (bolo 100px = úzke). */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .modern-amount {
        width: 136px !important;
        max-width: 136px !important;
        height: 33px !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .btn-modern-counter {
        width: 32px !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .btn-modern-counter img {
        width: 12px !important;
    }
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .second .controlWrapp .autoGrowInput {
        font-size: 14px !important;
    }

    /* Krížik = IDENTICKÝ s minikošíkom: kruh v rohu karty */
    .shoppingCartSectionWrapp .notEmpty .shoppingCartSection .shoppingCart .products .product .remove-cross-btn {
        top: -8px !important;
        right: -8px !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* Badge "Znížené / Vypredané" */
    .product-reduced-badge {
        font-size: 10px !important;
        padding: 2px !important;
    }
}

app-modal:not(:defined) { display: none; }
app-modal                { display: contents; }

.app-modal__dialog {
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    max-width: 100vw;
    max-height: calc(100vh - 40px);
    overflow: visible;
}

/* Engines with <dialog> but no showModal()/top-layer (old Safari / iOS WebViews): app-modal falls
   back to a non-modal open, which isn't viewport-centered and gets no native ::backdrop. Keep the
   blocking confirmation centred and dimmed (spread shadow stands in for the backdrop). */
.app-modal__dialog--fallback {
    position: fixed;
    inset: 0;
    z-index: 9999;
    box-shadow: 0 0 0 100vmax rgba(28, 25, 23, 0.55);
}

.app-modal__dialog::backdrop {
    background: rgba(28, 25, 23, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: ddOverlayIn 0.28s ease forwards;
}

.app-modal__dialog.is-closing,
.app-modal__dialog.is-closing::backdrop {
    animation: none;
    opacity: 0;
    transition: opacity var(--app-modal-fade, 200ms) ease;
}


.dd-modal {
    position: relative;
    width: min(440px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px -16px rgba(17, 24, 39, 0.45), 0 8px 20px -8px rgba(0, 0, 0, 0.12);
    transform-origin: center;
    animation: ddCardIn 0.42s cubic-bezier(0.21, 1, 0.27, 1) forwards;
    font-family: 'Volte', system-ui, sans-serif;
}

.dd-modal__header {
    padding: 36px 30px 28px;
    text-align: center;
    background: radial-gradient(120% 140% at 50% -10%, #FFEAD5 0%, #FFF7ED 55%, #FFFFFF 100%);
}

.dd-modal__icon {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #F39200;
    box-shadow: 0 10px 24px -6px rgba(243, 146, 0, 0.5), inset 0 0 0 1px rgba(243, 146, 0, 0.12);
    animation: ddIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.dd-modal__body {
    padding: 30px 34px 34px;
    text-align: center;
}

.dd-modal__title {
    margin: 0 0 14px;
    font-family: 'VolteSemibold', 'Volte', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.dd-modal__sub {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #6b7280;
}

.dd-modal__old {
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.dd-modal__new {
    position: relative;
    margin: 0 0 28px;
    padding: 24px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEAD5 100%);
    border: 1px solid rgba(243, 146, 0, 0.28);
}

.dd-modal__new-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B45309;
}

.dd-modal__new-date {
    display: block;
    font-family: 'VolteSemibold', 'Volte', sans-serif;
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 700;
    color: #B45309;
    white-space: nowrap;
}

.dd-modal__reassure {
    margin: 0 0 28px;
    font-size: 1.02rem;
    line-height: 1.6;
    font-weight: 600;
    color: #1f2937;
}

.dd-modal__btn {
    display: block;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    background: #F39200;
    color: #fff;
    font-family: 'VolteSemibold', 'Volte', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px -6px rgba(243, 146, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dd-modal__btn:hover {
    background: #e08600;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -6px rgba(243, 146, 0, 0.7);
}

.dd-modal__btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px -6px rgba(243, 146, 0, 0.6);
}

.dd-modal__change {
    display: inline-block;
    margin: 16px auto 0;
    padding: 6px 8px;
    background: none;
    border: none;
    color: #F39200;
    font-family: 'Volte', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.dd-modal__change:hover {
    color: #B45309;
}

.dd-modal__btn:focus-visible,
.dd-modal__change:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

@keyframes ddOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ddCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ddIconPop {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .dd-modal__header   { padding: 30px 22px 22px; }
    .dd-modal__body     { padding: 26px 24px 30px; }
    .dd-modal__title    { font-size: 1.25rem; }
    .dd-modal__new-date { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .app-modal__dialog::backdrop,
    .dd-modal,
    .dd-modal__icon { animation: none; }
}


/* ==========================================================================
   MINI KOŠÍK - GLOBÁLNE STAVY A ANIMÁCIE
   ========================================================================== */

/* Otvorený stav minikošíka rieši výhradne _modals.css (.cartSectionWrappTop.is-open).
   Pôvodné legacy pravidlo (body.cart-is-open / .cartSectionWrappTopShow /
   transform: translate(-50%,0)) bolo odstránené — kolidovalo s JS pozicovaním. */

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   HLAVNÝ WRAPPER KOŠÍKA
   ========================================================================== */

.headWrapp .cartSectionWrappTop .cartWrapp {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.40);
    position: relative;
    margin: 4px 0 0 auto;
    max-width: 387px;
    overflow: hidden;
}

@media screen and (max-width: 1280px) {
    .headWrapp .cartSectionWrappTop .cartWrapp { margin-right: 10px; }
}
@media screen and (max-width: 400px) {
    .headWrapp .cartSectionWrappTop .cartWrapp { margin-left: 10px; }
}

/* --- LOADING OVERLAY ---
   POZN.: position NEnastavujeme — .cartWrapp už má position:relative (desktop)
   resp. position:absolute (tablet/mobile bottom sheet). Prepísanie na relative by
   na mobile vytrhlo sheet z bottom:0 ukotvenia → vyskočil by hore a po dokončení
   spadol dole. Overlay ::after sa kotví na existujúci containing block .cartWrapp. */
.headWrapp .cartSectionWrappTop.is-updating .cartWrapp {
    pointer-events: none;
}

.headWrapp .cartSectionWrappTop.is-updating .cartWrapp::after {
    content: "Aktualizujem košík...";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VolteSemibold', 'sans-serif';
    font-size: 16px;
    color: var(--text-primary);
    animation: fadeInOverlay 0.2s ease-in-out;
}

/* ==========================================================================
   HLAVIČKA A ZOZNAM V KOŠÍKU
   ========================================================================== */

.headWrapp .cartSectionWrappTop .cartWrapp .title {
    font-size: 16px;
}
/* Vyprázdniť košík — pilulkové tlačidlo, jednotné so stránkou košíka */
#cartWrappTop a.clear-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1;
    color: var(--text-secondary);
    background-color: #fff;
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

#cartWrappTop a.clear-cart-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* :active = tap feedback (dotyk); :hover len pre myš (inak „sticky" pri skrolovaní) */
#cartWrappTop a.clear-cart-btn:active {
    color: var(--surface-red);
    border-color: rgba(229, 48, 18, 0.4);
    background-color: rgba(229, 48, 18, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    #cartWrappTop a.clear-cart-btn:hover {
        color: var(--surface-red);
        border-color: rgba(229, 48, 18, 0.4);
        background-color: rgba(229, 48, 18, 0.06);
    }
}

.cart-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    background-color: var(--surface-smoke);
    padding: 10px;
}

/* --- TLAČIDLO VYPRÁZDNIŤ KOŠÍK (Nová trieda) --- */
.empty-cart-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.headWrapp .cartSectionWrappTop .cartWrapp .cartList {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    padding: 10px; 
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.headWrapp .cartSectionWrappTop .cartWrapp .cartList .line { 
    display: none; 
}

/* ==========================================================================
   JEDNOTLIVÁ POLOŽKA (ITEM)
   ========================================================================== */

.headWrapp .cartSectionWrappTop .cartWrapp .item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #ffffff;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* --- TLAČIDLO VYMAZANIA (KRÍŽIK) --- */
.headWrapp .cartSectionWrappTop .cartWrapp .item .remove-cross-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* len naša červená výplň, žiadny natívny sivý box */
}

/* Touch/click feedback (mobil + tablet, kde hover nefunguje) — krížik sčervenie aj pri ťuknutí */
.headWrapp .cartSectionWrappTop .cartWrapp .item .remove-cross-btn:active {
    transform: scale(1.1);
    background-color: var(--surface-red, #dc2626);
    border-color: var(--surface-red, #dc2626);
}
.headWrapp .cartSectionWrappTop .cartWrapp .item .remove-cross-btn:active svg path {
    stroke: #ffffff;
}

/* --- OBRÁZOK A OBSAH POLOŽKY --- */
.headWrapp .cartSectionWrappTop .cartWrapp .item .img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .img img { 
    object-fit: cover; 
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;   /* dovolí názvu zalomiť/skrátiť namiesto fixného 140px stropu */
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .main h3 {
    font-size: 13px;
    line-height: 1.2;
    margin: 0;
    font-family: 'VolteSemibold', 'sans-serif';
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .main .product-title-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .main .product-title-main .badge-gift {
    font-size: 10px;
    font-weight: bold;
    background: #F39200;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

/* --- CENA A INFO V PRAVOM STĹPCI --- */
.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .price {
    max-width: 130px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .price p {
    font-size: 13px;
    color: var(--text-primary);
    margin: 0;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .price p.price-no-vat {
    font-weight: bold;
    margin-bottom: 2px;
    color: var(--text-primary); 
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .price p.price-vat {
    font-size: 12px;
    color: var(--text-secondary);
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .price span {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-secondary);
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* FIXNÁ šírka počítadla v minikošíku → pravý stĺpec sa pri zmene čísla neprerendruje,
   takže názov produktu vľavo (.main) už NESKÁČE. (Predtým autoGrow menil šírku podľa
   hodnoty.) Zmestí 2 tlačidlá + číslo (~"105,6") + jednotku. */
.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .modern-amount {
    width: 128px;
    max-width: 128px;
    margin: 0;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions svg,
.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .amount span {
    cursor: pointer;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .amount,
.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .cartWrapp .amountWrapp {
    width: 100px;
    height: 33px;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .cartWrapp .cart {
    display: none;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .gift-static-amount {
    font-weight: bold;
    color: #374151;
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.headWrapp .cartSectionWrappTop .cartWrapp .item .content .right-column .actions .gift-static-amount .gift-unit {
    margin-left: 3px;
    font-weight: normal;
    font-size: 0.9em;
    color: #6b7280;
}

/* ==========================================================================
   PÄTIČKA KOŠÍKA
   ========================================================================== */

.headWrapp .cartSectionWrappTop .cartWrapp .cartFoot {
    background-color: var(--surface-smoke);
    width: 100%;
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- ROZPIS CENY (Celkom s DPH / bez DPH) --- */
.cartFoot-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cartFoot-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cartFoot-row--total .cartFoot-label {
    font-size: 15px;
    font-family: 'VolteSemibold', 'sans-serif';
    color: var(--text-primary);
}

.cartFoot-row--total .cartFoot-value {
    font-size: 22px;
    font-family: 'VolteSemibold', 'sans-serif';
    color: var(--text-primary);
    white-space: nowrap;
}

.cartFoot-row--novat .cartFoot-label,
.cartFoot-row--novat .cartFoot-value {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* --- TLAČIDLÁ (pilulkový dizajn) --- */
.cartFoot-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cartFoot-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-family: 'VolteSemibold', 'sans-serif';
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cartFoot-btn--primary {
    background-color: var(--surface-green);
    color: var(--text-white);
}

.cartFoot-btn--primary svg {
    stroke: currentColor;
}

.cartFoot-btn--secondary {
    background-color: var(--text-white);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

@media (hover: hover) and (pointer: fine) {
    .cartFoot-btn--primary:hover {
        background-color: #58A028;   /* tmavšia zelená */
    }
    .cartFoot-btn--secondary:hover {
        background: rgba(243, 146, 0, 0.08);
        border-color: rgba(243, 146, 0, 0.4);
    }
}

/* ==========================================================================
   KATEGÓRIE V MINI KOŠÍKU A DROPDOWN
   ========================================================================== */

/* Rovnaký jazyk ako šípka pilulky Informácie (navbar-v2.css): zatvorené ▼, otvorené ▲, 0.25s ease.
   ⚠️ SVG je chevron DOLE — základ nesmie mať rotate(180), inak animuje naopak než ostatné triggery.
   Bez !important — bump animácia v modals.css je zúžená na ikonu, šípku už neprebíja. */
.cart-dropdown-arrow {
    min-width: 12px;
    min-height: 12px;
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
    transform-origin: center;
    transform: rotate(0deg);
}

/* Šípka sa otočí keď je košík otvorený — naviazané na reálny open-stav:
   aria-expanded na triggeri (nastavuje ModalManager) + :has fallback na panel. */
#cartDropdownTrigger[aria-expanded="true"] .cart-dropdown-arrow,
*:has(> .cartSectionWrappTop.is-open) .cart-dropdown-arrow {
    transform: rotate(180deg);
}


/* ==========================================================================
   HOVER EFEKTY (IBA PRE ZARIADENIA S MYŠOU - OCHRANA PRED DOTYKOM)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    
    /* Hover na položku v košíku */
    .headWrapp .cartSectionWrappTop .cartWrapp .item:hover {
        border-color: var(--text-primary);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }

    /* Hover na vymazanie položky (krížik) */
    .headWrapp .cartSectionWrappTop .cartWrapp .item .remove-cross-btn:hover {
        transform: scale(1.1);
        background-color: var(--surface-red, #dc2626); /* Defaultná červená ak chýba premenná */
        border-color: var(--surface-red, #dc2626);
        color: white;
    }
    .headWrapp .cartSectionWrappTop .cartWrapp .item .remove-cross-btn:hover svg path {
        stroke: #ffffff;
    }

    /* Hover na kategórie (Nový jemný shadow hover) */
    .cart-category-header:hover {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        border-color: var(--text-primary, #999); /* Jemné stmavnutie okraja */
        transform: translateY(-1px); /* Jemný posun pre lepší 3D feel */
    }

    /* Hover na tlačidlo "Vyprázdniť košík" (Nová trieda) */
    .empty-cart-btn:hover {
        background-color: var(--surface-red, #dc2626);
        border-color: var(--surface-red, #dc2626);
        color: white;
    }

}

/* Výzva pre anonyma v košíku = .guest-notice (basic.css §11, markup Common/guestNotice.latte). */
