/* =========================================================
   VZUTA_UA — CHECKOUT.CSS
   checkout / success page
   ========================================================= */

.checkout-page{
    background:#f6f6f6;
    padding:54px 0 90px;
}

.checkout-page .container{
    max-width:1320px;
}

.checkout-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}

.checkout-head h1{
    margin:0;
    color:#111;
    font-size:36px;
    font-weight:900;
    line-height:1.15;
}

.checkout-head a{
    color:#111;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    border-bottom:1px solid #111;
}

.checkout-error{
    margin-bottom:18px;
    padding:15px 18px;
    background:#fff1f1;
    border:1px solid #ffd0d0;
    border-radius:14px;
    color:#b00020;
    font-size:14px;
    font-weight:700;
}

.checkout-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:28px;
    align-items:start;
    width:100%;
}

.checkout-left{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.checkout-summary{
    position:sticky;
    top:90px;
}

.checkout-card{
    width:100%;
    background:#fff;
    border:1px solid #ededed;
    border-radius:20px;
    padding:24px;
    box-shadow:0 12px 34px rgba(0,0,0,.045);
}

.checkout-card h2{
    margin:0 0 20px;
    color:#111;
    font-size:20px;
    font-weight:900;
    line-height:1.25;
}

.checkout-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.checkout-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.checkout-field.full{
    grid-column:1 / -1;
}

.checkout-field label{
    color:#555;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.2px;
}

.checkout-field input,
.checkout-field textarea{
    width:100%;
    min-height:52px;
    border:1px solid #e1e1e1;
    border-radius:14px;
    background:#fafafa;
    padding:0 16px;
    color:#111;
    font-size:15px;
    outline:none;
    transition:.22s ease;
}

.checkout-field textarea{
    min-height:104px;
    padding-top:15px;
    resize:vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus{
    border-color:#111;
    background:#fff;
    box-shadow:0 0 0 4px rgba(0,0,0,.04);
}

.field-error{
    color:#b00020;
    font-size:12px;
    font-weight:700;
}

.checkout-options{
    display:grid;
    gap:12px;
}

.checkout-option{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:16px;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:16px;
    transition:.22s ease;
}

.checkout-option:hover{
    background:#fff;
    border-color:#111;
}

.checkout-option input{
    margin-top:3px;
    accent-color:#111;
}

.checkout-option strong{
    display:block;
    margin-bottom:4px;
    color:#111;
    font-size:15px;
    font-weight:900;
}

.checkout-option span{
    display:block;
    color:#666;
    font-size:13px;
    line-height:1.45;
}

.checkout-delivery-box{
    display:none;
    margin-top:16px;
}

.checkout-delivery-box.active{
    display:block;
}

.promo-row{
    display:grid;
    grid-template-columns:1fr 150px;
    gap:12px;
    align-items:end;
}

.promo-row button{
    height:52px;
    border:0;
    border-radius:14px;
    background:#111;
    color:#fff;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
}

.checkout-product{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:12px;
    padding:14px 0;
    border-top:1px solid #eee;
}

.checkout-product:first-of-type{
    border-top:0;
    padding-top:0;
}

.checkout-product img{
    width:72px;
    height:92px;
    border-radius:12px;
    object-fit:cover;
    background:#f3f3f3;
}

.checkout-product a{
    display:block;
    margin-bottom:6px;
    color:#111;
    font-size:14px;
    font-weight:900;
    line-height:1.25;
}

.checkout-product p{
    margin:3px 0;
    color:#666;
    font-size:13px;
    line-height:1.25;
}

.checkout-product-price{
    white-space:nowrap;
    color:#111;
    font-size:14px;
    font-weight:900;
}

.checkout-total{
    margin-top:6px;
    padding-top:16px;
    border-top:1px solid #eee;
    display:grid;
    gap:12px;
}

.checkout-total-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    color:#555;
    font-size:15px;
}

.checkout-total-row strong{
    color:#111;
    font-weight:900;
}

.checkout-total-row.final{
    margin-top:6px;
    padding-top:16px;
    border-top:1px solid #eee;
    color:#111;
    font-size:18px;
    font-weight:900;
}

.checkout-total-row.final strong{
    font-size:22px;
}

.checkout-submit{
    width:100%;
    height:54px;
    margin-top:20px;
    border:0;
    border-radius:14px;
    background:#111;
    color:#fff;
    font-size:14px;
    font-weight:900;
    text-transform:uppercase;
}

.checkout-note{
    margin:14px 0 0;
    color:#777;
    font-size:12px;
    line-height:1.55;
}

/* success page */

.order-success-page{
    background:#f6f6f6;
    padding:70px 0 110px;
    min-height:calc(100vh - 66px);
}

.order-success-card{
    max-width:620px;
    margin:0 auto;
    background:#fff;
    padding:46px;
    border:1px solid #ededed;
    border-radius:22px;
    text-align:center;
    box-shadow:0 14px 40px rgba(0,0,0,.055);
}

.success-icon{
    width:64px;
    height:64px;
    margin:0 auto 24px;
    border-radius:50%;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    font-weight:900;
}

.order-success-card h1{
    margin:0 0 14px;
    color:#111;
    font-size:34px;
    font-weight:900;
    line-height:1.15;
}

.success-text{
    max-width:440px;
    margin:0 auto 28px;
    color:#666;
    font-size:15px;
    line-height:1.55;
}

.order-number{
    margin-bottom:28px;
    padding:16px 18px;
    background:#fafafa;
    border:1px solid #ededed;
    border-radius:16px;
    color:#111;
    font-size:15px;
    font-weight:800;
}

.order-info{
    margin-bottom:28px;
    text-align:left;
}

.order-info-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:15px 0;
    border-bottom:1px solid #eee;
    font-size:15px;
}

.order-info-row span{
    color:#777;
}

.order-info-row strong{
    color:#111;
    font-weight:900;
    text-align:right;
}

.success-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.success-home-btn,
.success-catalog-btn{
    height:54px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
}

.success-home-btn{
    background:#111;
    color:#fff;
}

.success-catalog-btn{
    background:#f2f2f2;
    color:#111;
}
/* =========================================================
   VZUTA_UA — STEP FIX: CATALOG + CHECKOUT
   Додай у самий низ checkout.css або створи файл fixes.css і підключи перед mobile.css.
   ========================================================= */

/* CATALOG: щоб контент не виглядав притиснутим і не залазив під меню */
.catalog-page-with-filters .container,
.catalog .container,
.search-results-page .container,
.favorites-page .container{
    max-width:1320px;
}

.catalog-page-with-filters .products-grid,
.catalog-results .products-grid,
.search-results-page .products-grid,
.favorites-page .products-grid{
    align-items:start;
}

/* CHECKOUT: нормальна сітка оформлення */
.checkout-page .container{
    max-width:1320px;
}

.checkout-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 390px;
    gap:28px;
    align-items:start;
}

.checkout-left{
    grid-column:1;
    width:100%;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.checkout-summary{
    grid-column:2;
    width:100%;
    min-width:0;
    position:sticky;
    top:90px;
}

/* якщо форма випадково опинилась у правій колонці */
.checkout-summary .checkout-card{
    width:100%;
}

/* порожня біла смуга/поле зверху */
.checkout-page form > .checkout-card:empty,
.checkout-left > .checkout-card:empty{
    display:none;
}

@media (max-width:768px){
    .checkout-grid{
        display:block;
    }

    .checkout-left,
    .checkout-summary{
        grid-column:auto;
        width:100%;
        position:static;
    }

    .checkout-summary{
        margin-top:18px;
    }
}
