/* ===============================
   CART PAGE – COMPACT DESIGN
   ManoEglutė
=============================== */

.cart-wrapper {
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}

.cart-wrapper h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* ======= TABLE ======= */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.cart-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

.cart-item td {
    padding: 16px 18px;
    vertical-align: middle;
}

/* ======= IMAGE ======= */
.ci-image img {
    width: 85px;
    height: auto;
    border-radius: 10px;
}

/* ======= INFO ======= */
.ci-info {
    padding-left: 8px;
}

.ci-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.ci-title:hover {
    color: #d32528;
}

.ci-price {
    font-size: 17px;
    font-weight: 600;
    color: #d32528;
    margin-bottom: 6px;
}

/* Quantity */
.ci-qty input {
    width: 48px !important;
    height: 36px !important;
    padding: 0 !important;
    text-align: center;
    border-radius: 8px !important;
    border: 1px solid #cfcfcf !important;
    font-size: 15px;
}

/* Remove */
.ci-remove {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #d32528;
    text-decoration: none;
}

.ci-remove:hover {
    text-decoration: underline;
}

/* ======= PRICE RIGHT ======= */
.ci-subtotal {
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    color: #000;
}

/* ===============================
   SUMMARY (TOTALS)
=============================== */
.cart-summary {
    margin-top: 35px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-total {
    font-size: 24px;
    font-weight: 700;
    color: #d32528;
    margin-bottom: 20px;
}

/* Checkout button */
.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #d32528;
    color: #fff !important;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-checkout:hover {
    background: #b51f22;
}

/* ===============================
   EMPTY CART
=============================== */
.cart-empty-wrapper {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty-wrapper .empty-icon {
    font-size: 60px;
    margin-bottom: 12px;
}

.btn-return {
    margin-top: 16px;
    background: #d32528;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}

.btn-return:hover {
    background: #b51f22;
}
/* ===============================
   MOBILE VERSION — STACKED ITEMS
=============================== */
@media (max-width: 768px) {

    /* каждый элемент корзины — вертикальный блок */
    .cart-item {
        display: block;
        padding: 0;
    }

    /* картинка сверху, по центру */
    .ci-image {
        text-align: center;
        padding-top: 15px;
    }

    .ci-image img {
        width: 120px !important;
        margin-bottom: 10px;
    }

    /* инфо-блок целиком под фото */
    .ci-info {
        text-align: center;
        padding: 0 15px 15px;
    }

    .ci-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .ci-price {
        font-size: 17px;
        margin-top: 5px;
    }

    .ci-qty {
        margin: 12px 0;
    }

    .ci-remove {
        display: block;
        margin-top: 8px;
    }

    /* subtotal переносим вниз, под инфо-блок */
    .ci-subtotal {
        text-align: center;
        margin-top: 10px;
        padding-bottom: 15px;
        font-size: 20px;
    }

    /* уменьшаем боковые отступы всей корзины */
    .cart-wrapper {
        padding: 10px 12px;
        margin: 15px auto 50px;
    }

    /* компактный итог */
    .cart-summary {
        padding: 18px 18px;
    }

    .btn-checkout {
        font-size: 17px;
        padding: 12px;
    }
}
/* ===============================
   MOBILE — STYLE LIKE PRODUCT CARD
=============================== */
@media (max-width: 768px) {

    /* каждая строка — карточка как на товаре */
    .cart-item {
        display: grid;
        grid-template-columns: 90px 1fr 70px; /* фото / текст / итог */
        align-items: start;
        gap: 12px;
        padding: 15px;
    }

    /* фото слева */
    .ci-image {
        padding: 0 !important;
        text-align: left;
    }

    .ci-image img {
        width: 80px !important;
        height: auto;
        border-radius: 10px;
    }

    /* текстовый блок */
    .ci-info {
        text-align: left;
        padding: 0 !important;
    }

    .ci-title {
        font-size: 16px !important;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .ci-price {
        font-size: 15px !important;
        font-weight: 600;
        margin-bottom: 6px;
        color: #d32528;
    }

    /* список характеристик */
    .ci-info ul {
        margin: 0;
        padding-left: 16px;
        margin-bottom: 10px;
    }

    .ci-info li {
        font-size: 13px;
        line-height: 1.25;
    }

    /* количество */
    .ci-qty {
        margin: 5px 0 8px;
    }

    .ci-qty input {
        width: 42px !important;
        height: 34px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    /* удалить */
    .ci-remove {
        font-size: 13px;
        margin-top: 4px;
    }

    /* ИТОГ справа (как на товарной странице) */
    .ci-subtotal {
        font-size: 16px;
        font-weight: 600;
        text-align: right;
        padding-top: 2px;
        white-space: nowrap;
    }

    /* вся корзина компактнее */
    .cart-wrapper {
        padding: 10px;
        margin: 10px auto 40px;
    }
}
