/* Cart Page Styles */
.cart-page {
    background-color: #f5f5f5;
    padding: 30px 0;
    min-height: 70vh;
}

.cart-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.page-header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    color: #777;
    font-size: 14px;
}

.cart-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-items-section {
    flex: 1;
    min-width: 300px;
}

.cart-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.item-specs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.spec-item {
    font-size: 13px;
    color: #666;
}

.spec-item i {
    margin-left: 5px;
    color: #ef394e;
}

.item-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
}

.action-btn:hover {
    color: #ef394e;
}

.delete-btn:hover {
    color: #d32f2f;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 5px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #ef394e;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #ef394e;
    color: white;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: bold;
}

.item-price {
    text-align: left;
    min-width: 150px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.discount-badge {
    display: inline-block;
    background: #ef394e;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Cart Summary */
.cart-summary {
    width: 350px;
    flex-shrink: 0;
}

.cart-summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-weight: bold;
    color: #333;
}

.discount-row .summary-value {
    color: #ef394e;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #eee;
    font-size: 16px;
    font-weight: bold;
}

.total-price {
    color: #ef394e;
    font-size: 20px;
}

.checkout-btn {
    width: 100%;
    background: #ef394e;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.3);
}

.checkout-btn i {
    margin-left: 8px;
}

.shipping-info {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.shipping-info i {
    font-size: 24px;
    color: #4caf50;
    margin-bottom: 8px;
}

.shipping-info p {
    margin: 0;
    font-size: 13px;
    color: #2e7d32;
}

.trust-badges {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.badge-item i {
    font-size: 20px;
    color: #ef394e;
}

/* Empty Cart */
.empty-cart-message {
    background: white;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
}

.empty-cart-message i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart-message h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart-message p {
    color: #777;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: #ef394e;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .cart-summary {
        width: 100%;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .item-price {
        width: 100%;
        text-align: right;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .item-specs {
        flex-direction: column;
        gap: 5px;
    }
}
