/* Cart Page Styles */

/* Cart Table Service Rows */
.cart-item-service {
    background-color: #f8f9fa;
}

.cart-item-service td {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: none;
}

.cart-item-service .product-name {
    color: #5D666F;
    font-size: 14px;
}

.service-indent {
    color: #adb5bd;
    font-weight: bold;
    margin-right: 5px;
}

.cart-item-service .product-price,
.cart-item-service .product-quantity,
.cart-item-service .product-subtotal {
    color: #5D666F;
    font-size: 14px;
}

/* Empty Cart Animation */
.empty-cart-container {
    padding: 80px 20px;
    text-align: center;
}

.empty-cart-icon {
    font-size: 120px;
    color: #e0e0e0;
    margin-bottom: 30px;
    animation: emptyCartBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes emptyCartBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.empty-cart-container h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1C2539;
    margin-bottom: 15px;
}

.empty-cart-container p {
    font-size: 16px;
    color: #5D666F;
    margin-bottom: 30px;
}

.empty-cart-container .rts-btn {
    padding: 14px 32px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.empty-cart-container .rts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 40, 45, 0.3);
}

/* Cart Item Improvements */
.cart-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #20282D;
    transform: translateY(-2px);
}

.cart-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.cart-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1C2539;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cart-item h4 a {
    color: #1C2539;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.cart-item h4 a:hover {
    color: #20282D;
    text-decoration: underline;
}

/* Quantity Controls */
.quantity-controls {
    margin-bottom: 20px;
}

.quantity-controls label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1C2539;
    font-size: 14px;
}

.quantity-controls .input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 160px;
    margin: 0 auto;
}

.quantity-controls .btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #1C2539;
    cursor: pointer;
    flex-shrink: 0;
}

.quantity-controls .btn:hover {
    background: #20282D;
    color: white;
    border-color: #20282D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 40, 45, 0.25);
}

.quantity-controls .btn:active {
    transform: translateY(0);
}

.quantity-controls .form-control {
    width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 8px;
    background: #ffffff;
    color: #1C2539;
}

.quantity-controls .form-control:focus {
    border-color: #20282D;
    box-shadow: 0 0 0 3px rgba(32, 40, 45, 0.1);
    outline: none;
    background: #fafafa;
}

/* Item Total */
.item-total {
    font-size: 24px;
    font-weight: 700;
    color: #20282D;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Remove Button */
.btn-danger {
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #dc3545;
    background: #dc3545;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-danger:active {
    transform: translateY(0);
}

/* Selected Services */
.selected-services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
}

.selected-services strong {
    display: block;
    margin-bottom: 10px;
    color: #1C2539;
    font-size: 15px;
    font-weight: 600;
}

.selected-services ul {
    margin: 0;
    padding-left: 20px;
}

.selected-services li {
    font-size: 14px;
    color: #5D666F;
    margin-bottom: 8px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-services li .badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Sticky Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-summary h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1C2539;
    padding-bottom: 20px;
    border-bottom: 3px solid #20282D;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.summary-item {
    font-size: 16px;
    color: #5D666F;
    padding: 12px 0;
    font-weight: 500;
}

.summary-item strong {
    color: #1C2539;
    font-weight: 600;
}

#totalDisplay {
    color: #20282D;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Coupon Section */
.coupon-section {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.coupon-section h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1C2539;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-section h5::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #20282D;
}

.coupon-section .input-group {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.coupon-section .form-control {
    flex: 1;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
}

.coupon-section .form-control:focus {
    border-color: #20282D;
    box-shadow: 0 0 0 3px rgba(32, 40, 45, 0.1);
    outline: none;
    background: #ffffff;
}

.coupon-section .btn-primary {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    border: 2px solid #20282D;
    background: #20282D;
    color: white;
}

.coupon-section .btn-primary:hover {
    background: #151a1d;
    border-color: #151a1d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 40, 45, 0.35);
    color: white;
}

.coupon-section .btn-danger {
    margin-top: 10px;
    width: 100%;
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-toast.success {
    border-left: 4px solid #3EB75E;
}

.cart-toast.error {
    border-left: 4px solid #FF0003;
}

.cart-toast.warning {
    border-left: 4px solid #FFA500;
}

.cart-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cart-toast.success .cart-toast-icon {
    color: #3EB75E;
}

.cart-toast.error .cart-toast-icon {
    color: #FF0003;
}

.cart-toast.warning .cart-toast-icon {
    color: #FFA500;
}

.cart-toast-message {
    flex: 1;
    font-size: 14px;
    color: #1C2539;
    font-weight: 500;
}

.cart-toast-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #5D666F;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cart-toast-close:hover {
    color: #1C2539;
}

/* Delete Confirmation Modal */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.delete-modal.show {
    display: flex;
}

.delete-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.delete-modal-icon {
    font-size: 64px;
    color: #FF0003;
    text-align: center;
    margin-bottom: 20px;
}

.delete-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1C2539;
    text-align: center;
    margin-bottom: 15px;
}

.delete-modal-message {
    font-size: 16px;
    color: #5D666F;
    text-align: center;
    margin-bottom: 30px;
}

.delete-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-modal-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 120px;
}

.delete-modal-actions .btn-secondary {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #1C2539;
}

.delete-modal-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.delete-modal-actions .btn-danger {
    background: #FF0003;
    border: 2px solid #FF0003;
    color: white;
}

.delete-modal-actions .btn-danger:hover {
    background: #cc0002;
    border-color: #cc0002;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 3, 0.3);
}

/* General Cart Page Improvements */
.cart-items {
    padding: 0;
}

.cart-item .row {
    align-items: center;
}

.cart-item .col-md-3:first-child {
    padding-right: 15px;
}

.cart-item .col-md-6 {
    padding-left: 20px;
    padding-right: 20px;
}

.cart-item .col-md-3:last-child {
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

@media (max-width: 991px) {
    .cart-item .col-md-3:last-child {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-top: 20px;
        margin-top: 20px;
        padding-left: 15px;
    }
}

/* Price Display */
.cart-item .text-muted {
    font-size: 15px;
    color: #5D666F;
    margin-bottom: 8px;
}

.cart-item .text-muted strong {
    color: #1C2539;
    font-weight: 600;
}

/* Action Buttons Styling */
.rts-btn.btn-primary {
    transition: all 0.2s ease;
}

.rts-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 40, 45, 0.35);
}

.btn-outline-secondary {
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: #20282D;
    border-color: #20282D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 40, 45, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-summary {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
    
    .cart-item img {
        height: 150px;
    }
    
    .empty-cart-icon {
        font-size: 80px;
    }
    
    .cart-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .quantity-controls .input-group {
        max-width: 100%;
        justify-content: center;
    }
    
    .cart-item .col-md-3:last-child {
        text-align: center;
    }
    
    .item-total {
        text-align: center;
    }
}

