﻿* {
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
    color: #222;
}

/* Header */

.header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    color: #c79a35;
    font-size: 28px;
    font-weight: 800;
}

/* Boxes */

.cart-box,
.summary {
    background: white;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Product */

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.image-box {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 20px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-desc {
    color: #777;
    font-size: 14px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.quantity-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

    .quantity button {
        width: 35px;
        height: 35px;
        border: 0;
        background: white;
        font-size: 18px;
    }

    .quantity span {
        width: 40px;
        text-align: center;
    }

.delete-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: white;
    color: #dc3545;
    font-size: 17px;
    cursor: pointer;
}

.price {
    color: #c79a35;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

/* Summary */

.summary {
    position: sticky;
    top: 20px;
}

.buy-total span {
    color: #777;
    font-size: 14px;
}

.total {
    color: #c79a35;
    font-size: 26px;
    font-weight: 800;
    margin: 12px 0;
}

.buy-text {
    color: #999;
    font-size: 12px;
    line-height: 2;
}

.checkout {
    width: 100%;
    background: #c79a35;
    color: white;
    border: 0;
    padding: 15px;
    border-radius: 15px;
    font-size: 17px;
    font-weight: bold;
}

/* Mobile */

@media (max-width: 768px) {
    .cart-box,
    .summary {
        padding: 15px;
    }

    .product-card {
        gap: 10px;
    }

    .image-box {
        width: 85px;
        height: 85px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-desc {
        font-size: 11px;
    }

    .product-actions {
        min-width: 95px;
        gap: 8px;
    }

    .quantity button {
        width: 25px;
        height: 28px;
        font-size: 14px;
    }

    .quantity span {
        width: 28px;
        font-size: 12px;
    }

    .delete-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .price {
        font-size: 11px;
    }

    .summary {
        position: static;
    }
}
