/* Clean Quote Styles */

:root {
    --quote-primary: #007bff;
    --quote-success: #28a745;
    --quote-danger: #dc3545;
    --quote-warning: #ffc107;
    --quote-info: #17a2b8;
    --quote-white: #ffffff;
    --quote-light: #f8f9fa;
    --quote-dark: #343a40;
    --quote-border: #dee2e6;
    --quote-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Main page styling */
.oe_website_sale {
    background-color: var(--quote-light);
    min-height: 100vh;
}

/* Page title */
.oe_website_sale h3 {
    color: var(--quote-dark);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Cart container */
.oe_cart {
    background: var(--quote-white);
    border-radius: 0.375rem;
    box-shadow: var(--quote-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Empty cart alert */
.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--quote-primary-dark);
    border-radius: var(--quote-border-radius);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

/* Modern table styling */
.table {
    background: var(--quote-white);
    border-radius: var(--quote-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--quote-shadow-sm);
    border: 1px solid var(--quote-gray-200);
}

.table thead th {
    background: var(--quote-gray-50);
    border-bottom: 2px solid var(--quote-gray-200);
    color: var(--quote-gray-900);
    font-weight: 600;
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
}

.table tbody tr {
    border-bottom: 1px solid var(--quote-gray-100);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--quote-gray-50);
}

.table tbody tr:last-child {
    border-bottom: none;
    background-color: var(--quote-gray-50);
    font-weight: 600;
}

.table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-top: none;
}

/* Product image styling */
.td-img {
    width: 80px;
}

.o_image_64_max {
    max-width: 64px;
    max-height: 64px;
    border-radius: var(--quote-border-radius);
    box-shadow: var(--quote-shadow-sm);
}

/* Product name styling */
.td-product_name {
    min-width: 250px;
}

.product_name_link {
    color: var(--quote-gray-900);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.product_name_link:hover {
    color: var(--quote-primary);
    text-decoration: none;
}

/* Quantity controls */
.css_quantity {
    max-width: 150px;
    margin: 0 auto;
}

.css_quantity .btn {
    background: var(--quote-gray-100);
    border: 1px solid var(--quote-gray-200);
    color: var(--quote-gray-600);
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.css_quantity .btn:hover {
    background: var(--quote-primary);
    border-color: var(--quote-primary);
    color: white;
    transform: translateY(-1px);
}

.css_quantity .form-control {
    text-align: center;
    font-weight: 600;
    border-top: 1px solid var(--quote-gray-200);
    border-bottom: 1px solid var(--quote-gray-200);
}

/* Price styling */
.td-unit-price {
    font-weight: 600;
    color: var(--quote-gray-900);
    font-size: 1rem;
}

.table tbody tr:last-child .td-unit-price {
    color: var(--quote-primary);
    font-size: 1.125rem;
}

/* Action buttons */
.td-action {
    width: 60px;
    text-align: center;
}

.delete_from_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--quote-danger);
    transition: all 0.2s ease;
    text-decoration: none;
}

.delete_from_cart:hover {
    background: var(--quote-danger);
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

/* Navigation buttons */
.btn-primary {
    background: var(--quote-primary);
    border: 1px solid var(--quote-primary);
    border-radius: var(--quote-border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--quote-primary-dark);
    border-color: var(--quote-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Alert styling for quantity messages */
.qty_message .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--quote-danger);
    border-radius: var(--quote-border-radius);
    font-size: 0.875rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .oe_cart {
        padding: 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: var(--quote-border-radius);
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .td-product_name {
        min-width: 200px;
    }
    
    .css_quantity {
        max-width: 120px;
    }
}

/* Enhanced product details */
.product-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.product-details {
    padding: 0.5rem 0;
}

.product-details .text-muted {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Price styling enhancements */
.price-wrapper,
.subtotal-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.currency-symbol {
    font-size: 0.875rem;
    color: var(--quote-gray-600);
}

/* Cart total row styling */
.cart-total-row {
    background: linear-gradient(135deg, var(--quote-gray-50), var(--quote-gray-100)) !important;
    border-top: 2px solid var(--quote-primary) !important;
}

.cart-total-row td {
    padding: 1.5rem 1rem !important;
    border-top: none !important;
}

.total-label {
    color: var(--quote-gray-900);
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
}

.grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--quote-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.grand-total .currency-symbol {
    font-size: 1rem;
    color: var(--quote-primary);
}

/* Modern cart wrapper */
.modern-cart-wrapper {
    position: relative;
}

.modern-cart-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: var(--quote-border-radius-lg);
    z-index: -1;
    opacity: 0.5;
}

/* Enhanced empty cart styling */
.alert-info i {
    opacity: 0.6;
}

.alert-info h5 {
    color: var(--quote-primary-dark);
    font-weight: 600;
}

/* Table header icons */
.table thead th i {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Animation for smooth interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.table tbody tr {
    animation: fadeInUp 0.3s ease forwards;
}

.table tbody tr:nth-child(odd) {
    animation-delay: 0.1s;
}

.table tbody tr:nth-child(even) {
    animation-delay: 0.2s;
}

.cart-total-row {
    animation: pulse 2s ease-in-out infinite;
}

/* Clean delivery card */
.delivery_partner_card {
    border: 1px solid var(--quote-border);
    border-radius: 0.375rem;
    box-shadow: var(--quote-shadow);
}

.delivery_partner_card .card-body {
    padding: 2rem;
}

/* Simple form styling */
.form-control {
    border: 1px solid var(--quote-border);
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--quote-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styling */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 400;
}

.btn-primary {
    background-color: var(--quote-primary);
    border-color: var(--quote-primary);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-info {
    background-color: var(--quote-info);
    border-color: var(--quote-info);
}

/* Labels */
.col-form-label {
    font-weight: 500;
    color: var(--quote-dark);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .oe_cart {
        padding: 1rem;
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: 0.25rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .td-product_name {
        min-width: 150px;
    }
    
    .css_quantity {
        max-width: 120px;
    }
    
    .delivery_partner_card .card-body {
        padding: 1rem;
    }
}