/* Cart Page Styles */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.cart-header .back-btn { font-size: 18px; color: #333; }
.cart-header .header-title { font-size: 17px; font-weight: 600; }
.cart-header .header-actions { font-size: 14px; color: #333; }

.cart-content {
    background: #f8f9fa;
    padding-bottom: 20px;
}

/* Cart Groups */
.cart-group {
    background: #fff;
    border-radius: 12px;
    margin: 12px;
    padding: 12px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.group-header i { color: #27ae60; }
.group-check, .item-check {
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-item:last-child { margin-bottom: 0; }

.item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-spec {
    font-size: 11px;
    color: #999;
    background: #f9f9f9;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-bottom .price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
}

.qty-ctrl {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qty-ctrl button {
    width: 24px;
    height: 24px;
    background: #f9f9f9;
    border: none;
    font-size: 14px;
    color: #666;
}

.qty-ctrl input {
    width: 30px;
    border: none;
    text-align: center;
    font-size: 12px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

/* Recommendations */
.cart-recommends {
    padding: 12px;
}

.recomm-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.recomm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.recomm-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.recomm-card img { 
    width: 80%; 
    aspect-ratio: 1; 
    object-fit: contain; 
    border-radius: 8px;
    margin-bottom: 8px;
}

.c-info { 
    width: 100%;
    padding: 0 12px; 
    text-align: left;
}

.c-info .name { 
    font-size: 11px; 
    color: #333; 
    margin-bottom: 4px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.c-info .price { font-size: 14px; font-weight: 700; color: #e74c3c; }

/* Checkout Bar */
.checkout-bar {
    height: 60px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 100;
    flex-shrink: 0;
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.checkout-info {
    flex: 1;
    text-align: right;
}

.total-price {
    font-size: 13px;
    color: #333;
}

.total-price .currency { color: #e74c3c; font-weight: 700; }
.total-price .val { color: #e74c3c; font-size: 18px; font-weight: 700; }

.discount {
    font-size: 10px;
    color: #e74c3c;
}

.checkout-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}
