:root {
    --orange-100: #FFE8D6;
    --orange-200: #FABD8C;
    --orange-300: #F79256;
    --orange-400: #EF6C00;
    --orange-500: #BF360C;
    --gray-800: #343a40;
    --light-bg: #f8f9fa;
    --primary-color: var(--orange-400);
    --primary-hover: var(--orange-500);
}

/* Estilos generales del carrito */
.container.py-4 {
    background-color: var(--light-bg);
    min-height: 100vh;
}

/* Header del carrito */
.d-flex.justify-content-between.align-items-center.mb-4 {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.h3.mb-0 {
    color: var(--gray-800);
    font-weight: 700;
}

.h3.mb-0 .bi-cart3 {
    color: var(--primary-color);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
}

/* Botón vaciar carrito */
.btn-outline-danger {
    border: 2px solid;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Card de carrito vacío */
.card.border-0.shadow-sm {
    border-radius: 16px;
    background: linear-gradient(135deg, white, var(--orange-100));
    border: 1px solid var(--orange-200);
}

.card.border-0.shadow-sm .bi-cart-x {
    color: var(--orange-300) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 108, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), var(--orange-500));
}

/* Card de productos */
.card.border-0.shadow-sm {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header.bg-white {
    background: linear-gradient(135deg, white, var(--orange-50)) !important;
    border-bottom: 2px solid var(--orange-200);
    padding: 1.25rem;
}

.card-header h5 {
    color: var(--gray-800);
    font-weight: 700;
    margin: 0;
}

/* Items del carrito */
.cart-item {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4 !important;
}

.cart-item:hover {
    background-color: var(--orange-100);
    transform: translateX(4px);
}

.cart-item:last-child {
    border-bottom: none !important;
}

/* Imágenes de productos */
.img-fluid.rounded {
    border: 2px solid var(--orange-200);
    transition: all 0.3s ease;
}

.img-fluid.rounded:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Controles de cantidad */
.btn-outline-secondary {
    border: 2px solid #dee2e6;
    color: var(--gray-800);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover:not(:disabled) {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.form-control.form-control-sm {
    border: 2px solid #e9ecef;
    font-weight: 600;
    color: var(--gray-800);
}

.form-control.form-control-sm:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 108, 0, 0.25);
}

/* Precios */
.text-primary {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Barra de progreso envío gratis */
.card-body .progress {
    border-radius: 10px;
    background-color: var(--orange-100);
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, var(--orange-300), var(--primary-color)) !important;
    border-radius: 10px;
}

/* Cupón de descuento */
.form-label.fw-bold {
    color: var(--gray-800);
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 108, 0, 0.25);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.alert.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #28a745;
    border-radius: 8px;
}

.alert.alert-success .bi-check-circle-fill {
    color: #28a745;
}

/* Resumen del pedido */
.card.sticky-top {
    border-radius: 16px;
    border: 2px solid var(--orange-200);
}

.border-bottom {
    border-color: var(--orange-200) !important;
}

.h4.text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botones de acción */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: 700;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Mensaje de envío */
.bg-light {
    background: linear-gradient(135deg, var(--orange-100), var(--orange-200)) !important;
    border: 1px solid var(--orange-300);
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 1px solid #28a745;
}

/* Estados deshabilitados */
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Efectos de hover generales */
.btn {
    transition: all 0.3s ease;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container.py-4 {
        padding: 1rem !important;
    }

    .cart-item .row {
        margin-bottom: 1rem;
    }

    .cart-item .col-2,
    .cart-item .col-4,
    .cart-item .col-2 {
        margin-bottom: 0.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animaciones sutiles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}