/* ============================================
   CART PAGE ENHANCEMENTS - MODERN DESIGN
   ============================================ */

/* Cart Table Modern Design */
.shop_cart_table {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.shop_cart_table .table {
    margin-bottom: 0;
}

.shop_cart_table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shop_cart_table thead th {
    padding: 1.25rem 1rem !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    color: white !important;
}

.shop_cart_table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.shop_cart_table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.shop_cart_table tbody td {
    padding: 1.5rem 1rem !important;
    vertical-align: middle;
    border: none !important;
}

/* Product Thumbnail */
.shop_cart_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.shop_cart_table .product-thumbnail img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Product Name */
.shop_cart_table .product-name a {
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shop_cart_table .product-name a:hover {
    color: #667eea;
    text-decoration: none;
}

/* Product Price */
.shop_cart_table .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

/* Quantity Controls - Modern Design */
.shop_cart_table .product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop_cart_table .product-quantity form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop_cart_table .product-quantity button {
    width: 36px;
    height: 36px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.shop_cart_table .product-quantity button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.shop_cart_table .product-quantity input.qty {
    width: 70px;
    height: 36px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s ease;
}

.shop_cart_table .product-quantity input.qty:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Subtotal */
.shop_cart_table .product-subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

/* Remove Button - Enhanced specificity */
/* Remove Button Column - Make it sticky for easier access */
.shop_cart_table .product-remove,
table tbody td.product-name[data-title="Устгах"] {
    position: sticky !important;
    right: 0 !important;
    background: white !important;
    z-index: 10 !important;
    padding: 1rem !important;
    min-width: 80px !important;
}

.shop_cart_table .product-remove::before,
table tbody td.product-name[data-title="Устгах"]::before {
    content: '' !important;
    position: absolute !important;
    left: -10px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 10px !important;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9)) !important;
    pointer-events: none !important;
}

.shop_cart_table .remove_button,
.shop_cart_table td .remove_button,
table tbody td .remove_button,
.product-name .remove_button,
.product-remove .remove_button {
    width: 45px !important;
    height: 45px !important;
    border: none !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    flex-shrink: 0 !important;
}

.shop_cart_table .remove_button:hover,
.shop_cart_table td .remove_button:hover,
table tbody td .remove_button:hover,
.product-name .remove_button:hover,
.product-remove .remove_button:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5) !important;
}

.shop_cart_table .remove_button i,
.shop_cart_table td .remove_button i,
table tbody td .remove_button i,
.product-name .remove_button i,
.product-remove .remove_button i {
    font-size: 1.2rem !important;
    color: white !important;
    line-height: 1 !important;
}

/* Empty Cart Message */
.shop_cart_table tbody:empty::after {
    content: "Таны сагс хоосон байна.";
    display: block;
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Cart Summary Sidebar - Modern Design */
.col-lg-4.shadow.bg-white.rounded {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08) !important;
    padding: 2rem !important;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.col-lg-4.shadow.bg-white.rounded .border {
    border: none !important;
    padding: 0 !important;
}

.col-lg-4.shadow.bg-white.rounded .heading_s1 h6 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.col-lg-4.shadow.bg-white.rounded .table {
    margin-bottom: 0;
}

.col-lg-4.shadow.bg-white.rounded .table td {
    padding: 1rem 0;
    border: none;
    font-size: 1rem;
}

.col-lg-4.shadow.bg-white.rounded .cart_total_label {
    color: #6b7280;
    font-weight: 600;
}

.col-lg-4.shadow.bg-white.rounded .cart_total_amount {
    text-align: right;
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
}

.col-lg-4.shadow.bg-white.rounded .cart_total_amount strong {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Delivery Information Section */
.shipping_calculator .heading_s1 h6 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.shipping_calculator .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.shipping_calculator .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.shipping_calculator select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* Buttons - Modern Design */
.btn-fill-line {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-fill-line:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-fill-line:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb;
    color: #9ca3af;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Warning Alert - Modern Design */
.alert.bg-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.alert.bg-warning h3 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert.bg-warning p {
    color: #78350f;
    margin-bottom: 1rem;
}

.alert.bg-warning .btn-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.alert.bg-warning .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Line Container */
.line-container {
    margin: 1.5rem 0;
}

.line {
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    height: 1px;
}

.text {
    color: #9ca3af;
    font-size: 0.9rem;
    background: white;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .shop_cart_table {
        margin-bottom: 1.5rem;
    }

    .shop_cart_table thead th {
        font-size: 0.85rem;
        padding: 1rem 0.5rem !important;
    }

    .shop_cart_table tbody td {
        padding: 1rem 0.5rem !important;
    }

    .shop_cart_table .product-thumbnail img {
        width: 60px;
        height: 60px;
    }

    .col-lg-4.shadow.bg-white.rounded {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

/* Empty State */
.shop_cart_table tbody:empty::before {
    content: "Таны сагс хоосон байна.";
    display: block;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 600;
}

