/* --- Cart Container --- */
.cart-container {
    width: 100%;
    max-width: 400px; /* Độ rộng chuẩn cho Mini Cart */
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 25px;
    margin: 0; /* Loại bỏ margin khi dùng trong dropdown */
}

/* --- Header --- */
.cart-header {
    margin-bottom: 20px;
}

.cart-title {   
    font-family: roboto;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* --- Cart Items List --- */
.cart-items-list {
    max-height: 400px; /* Giới hạn chiều cao nếu danh sách dài */
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px; /* Tránh thanh cuộn che nội dung */
}

/* Scrollbar đẹp hơn */
.cart-items-list::-webkit-scrollbar {
    width: 4px;
}
.cart-items-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Single Item */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    padding-right: 10px;
}

.btn-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: color 0.3s;
}

.btn-remove:hover {
    color: #ff4d4d;
}

.item-desc {
    font-size: 12px;
    color: #777;
    margin: 0 0 5px 0;
}

.item-variant {
    font-size: 13px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 500;
}

/* Actions: Price & Qty */
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-family: roboto;
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

/* Quantity Control (+ -) */
.quantity-control {
    display: flex;
    align-items: center;
    background-color: #f5f5f5; /* Màu nền xám nhạt */
    border-radius: 12px; /* Bo tròn hình viên thuốc */
    padding: 5px 10px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.qty-input {
    width: 30px;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

/* --- Footer --- */
.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.summary-value {
    font-family: roboto;
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

.tax-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

/* Buttons */
.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-cart {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #3e1515;
    color: #3e1515;
    border-radius: 12px; /* Bo tròn */
    transition: all 0.3s;
}

.btn-view-cart:hover {
    background-color: #f9f9f9;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(to right, #3e1515, #0f0505); /* Gradient tối */
    color: #fff;
    border: none;
    border-radius: 12px; /* Bo tròn */
    transition: all 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 21, 21, 0.3);
}
