/* =========================================================
   E-SHOP: CHECKOUT / ZHRNUTIE (KROK 2)
   ========================================================= */

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

.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;
}

.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 {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

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

.shoppingCartSectionWrapp .head .navigation {
    background-color: #f8f9fa;
    padding: 16px 32px;
    max-width: 540px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

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

.shoppingCartSectionWrapp .head .navigation .line {
    position: absolute;
    top: 16px;
    width: 80%;
    height: 2px;
    left: 10%;
    background-color: #e5e7eb;
    z-index: 1;
}

.shoppingCartSectionWrapp .head .navigation .items .item {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-secondary, #6b7280);
}

.shoppingCartSectionWrapp .head .navigation .items .item .number {
    background-color: white;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.shoppingCartSectionWrapp .head .navigation .items .item.active { color: var(--text-primary, #111827); }
.shoppingCartSectionWrapp .head .navigation .items .item.active .number {
    border-color: var(--primary-color, #F39200);
    background-color: var(--primary-color, #F39200);
}

.shoppingCartSectionWrapp .head .target {
    font-size: 14px;
    padding: 16px 24px;
    background-color: #eff6ff;
    color: #1e3a8a;
    border-radius: 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

/* 3. POKLADŇA / CHECKOUT - MODERNÝ VZHĽAD */
.checkout .titleMain,
.shoppingCartSectionWrapp .notEmpty .shoppingCartSection .checkout .titleMain {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* =========================================================
   ZJEDNOTENÁ INFORMAČNÁ KARTA (CHECKOUT)
   ========================================================= */

.unified-info-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
    padding: 24px;
    gap: 24px;
}

.unified-info-card .info-item {
    flex: 1; /* Každý stĺpec zaberie presne 1/3 miesta */
    display: flex;
    flex-direction: column;
}

.unified-info-card .divider {
    width: 1px;
    background-color: #f3f4f6;
    flex-shrink: 0;
}

.unified-info-card .item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-primary, #111827);
}

.unified-info-card .item-header svg {
    color: var(--primary-color, #F39200);
    flex-shrink: 0;
}

.unified-info-card .item-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.unified-info-card .item-body p {
    margin: 4px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.unified-info-card .item-body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #111827;
}

.unified-info-card .item-body .text-muted {
    color: #9ca3af;
}
.checkoutGiftBadge{
    max-height: min-content;
    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;
}

.checkoutNameBadge{
    align-items: center;
}

/* RESPONZIVITA - Pre mobilné zariadenia zmeníme rozloženie pod seba */
@media screen and (max-width: 767px) {
    .unified-info-card {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    /* Čiara sa na mobile zmení z vertikálnej na horizontálnu */
    .unified-info-card .divider {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
}



/* Moderný Checkout Zoznam Produktov */
.modern-products-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.modern-products-card .title-header {
    background: #f9fafb;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-products-card .title-header h2 { font-size: 20px; margin: 0; font-weight: 600; }
.modern-products-card .title-header .badge {
    background: #f39200;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.modern-product-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 24px;
    margin: 0;
}

.modern-product-row:last-child { border-bottom: none; }
.modern-product-row .img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f4f6;
}

.modern-product-row .img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.modern-product-row .info-main { flex: 1 1 auto; min-width: 0; }
.modern-product-row .info-main h3 {  font-size: 13px; line-height: 1.3; max-width: 100%; }
.modern-product-row .info-main h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modern-product-row .info-main h3 a { text-decoration: none; color: #111827; transition: color 0.2s; }
.modern-product-row .info-main h3 a:hover { color: var(--primary-color, #F39200); }

.descWrapp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ean-badge { font-size: 12px; color: #9ca3af; background: #f3f4f6; padding: 2px 8px; border-radius: 4px; }
.gratis-badge { font-size: 12px; color: #059669; background: #d1fae5; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

.modern-product-row .info-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.amount-badge {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 8px;
    min-width: auto;
    text-align: center;
    white-space: nowrap;
}

.priceWrapp h4 { font-size: 14px; font-weight: 700; margin: 0; color: #111827; min-width: auto; text-align: right; white-space: nowrap; }
.gratis-price { color: #059669 !important; }

/* 4. SUMARIZÁCIA A PRAVÝ PANEL (MODERNÁ KARTA) */
.sumarization {
    max-width: 400px;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding-top: 16px;
    background-color: white;
    height: fit-content;
    top: 110px;
    position: sticky;
}

.modern-summary-card {
    flex-shrink: 0;
    width: 380px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.modern-summary-card h2 {
    font-size: 22px;
    font-weight: 700;
    padding: 24px 24px 16px 24px;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.modern-summary-card .mainSum { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.modern-summary-card .divider { height: 1px; background-color: #e5e7eb; margin: 8px 0; }
.modern-summary-card .sumRow { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #4b5563; }
.modern-summary-card .sumRow .name { display: flex; gap: 3px; align-items: center; font-weight: 400; line-height: 140%; }
.modern-summary-card .sumRow .value { font-weight: 600; color: #111827; font-family: 'VolteSemibold', 'sans-serif';}
.modern-summary-card .sumRow.loyalty .value { color: #059669; }
.modern-summary-card .footSum { background-color: #f9fafb; padding: 24px; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 12px; border-bottom-right-radius: 12px; border-bottom-left-radius: 12px; }
.modern-summary-card .total-wrap { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.modern-summary-card .total-wrap .desc { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px 0; }
.modern-summary-card .total-price-box { text-align: right; }
.modern-summary-card .total-price-box h4 { font-size: 28px; font-weight: 800; color: var(--primary-color, #F39200); margin: 0 0 4px 0; line-height: 1; text-align: right;}
.modern-summary-card .total-price-box .price-no-vat { font-size: 13px; color: #9ca3af; margin: 0; text-align: right;}

.modern-summary-card .order-action button,
.modern-summary-card .order-action input[type="submit"] {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    background-color: var(--surface-green);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern-summary-card .setting { display: flex; justify-content: space-between; align-items: center; cursor: pointer;}
.modern-summary-card .datePicker { display: none; padding-top: 16px;}
.modern-summary-card .datePicker.show { display: block; }
.modern-summary-card .datePicker .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center;}
.modern-summary-card .datePicker .days p { cursor: pointer; padding: 6px; border-radius: 50%; font-size: 14px;}
.modern-summary-card .datePicker .days p.active { background: var(--primary-color); color: white; }

/* 5. RESPONZIVITA (CHECKOUT) */
@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: center;
        gap: 24px;
    }
}

@media screen and (max-width: 1100px) {
    .modern-summary-card {
        width: 100%;
        max-width: 824px;
        position: relative;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .modern-summary-card h2 {
        display: none; 
    }

    .modern-summary-card .mainSum {
        padding: 0 16px; 
    }
}

 

@media screen and (max-width: 767px) {
    /* JEDEN riadok — zhodný so štýlom košíka (obrázok+názov vľavo, množstvo+cena vpravo) */
    .modern-product-row {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 12px 16px;
        position: relative;
    }

    .modern-product-row .img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .modern-product-row .info-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .modern-product-row .info-main h3 {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.3;
        margin: 0px;
    }

    .modern-product-row .info-side {
        margin-left: auto;
        flex-shrink: 0;
        gap: 8px;
    }

    .amount-badge {
        min-width: auto;
        padding: 4px 8px;
        font-size: 12px;
    }

    .priceWrapp h4 {
        font-size: 14px;
        min-width: auto;
    }
    
    .shoppingCartSectionWrapp .head {
        flex-direction: column;
    }
    
    .shoppingCartSectionWrapp .head .navigation,
    .shoppingCartSectionWrapp .head .target {
        max-width: 100%;
    }
}