/* =====================================================
   ESTILOS DEL CARRITO DE COMPRAS - DISEÑO PROFESIONAL
   ===================================================== */

/* Variables de color */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #0d47a1;
    --success-color: #25d366;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #2c3e50;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
    --white: #ffffff;
}

/* Container principal del carrito */
.cart-container {
    background-color: var(--light-gray);
    min-height: calc(100vh - 200px);
}

/* Título principal */
.cart-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

/* Breadcrumb personalizado */
.cart-breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.cart-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--text-muted);
}

.cart-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-breadcrumb .breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* ===== TABLA DE PRODUCTOS ===== */
.cart-table-section {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-table-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.cart-table-header > div {
    text-align: center;
}

.cart-table-header > div:first-child,
.cart-table-header > div:nth-child(2) {
    text-align: left;
}

/* Items del carrito */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr 60px;
    gap: 1rem;
    align-items: center;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

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

/* Imagen del producto */
.cart-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.1);
}

/* Información del producto */
.cart-item-info {
    text-align: left;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-name:hover {
    color: var(--primary-color);
}

.cart-item-price-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Precio unitario */
.cart-item-price {
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

/* Control de cantidad */
.cart-item-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background-color: var(--light-gray);
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 50px;
    height: 35px;
    border: none;
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.quantity-input:focus {
    outline: none;
}

/* Subtotal del item */
.cart-item-subtotal {
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Botón eliminar */
.cart-item-remove {
    text-align: center;
}

.btn-remove-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    background-color: var(--danger-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* ===== RESUMEN DEL PEDIDO ===== */
.cart-summary {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.cart-summary-header {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
}

.cart-summary-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-summary-body {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-value {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.summary-total {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.summary-total .summary-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.summary-total .summary-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Botones del resumen */
.cart-summary-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.btn-checkout i {
    font-size: 1.1rem;
}

.btn-whatsapp {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: var(--success-color);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-continue-shopping {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.btn-continue-shopping:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-clear-cart {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--danger-color);
    background-color: var(--white);
    color: var(--danger-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-cart:hover {
    background-color: var(--danger-color);
    color: var(--white);
}

/* ===== CARRITO VACÍO ===== */
.empty-cart-container {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-cart-container h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-cart-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-start-shopping {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-start-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

/* ===== ALERTAS Y MENSAJES ===== */
.cart-alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInDown 0.3s ease;
}

.cart-alert i {
    font-size: 1.3rem;
}

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

/* ===== SPINNER DE CARGA ===== */
.quantity-spinner {
    margin-left: 0.5rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .cart-summary {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .cart-table-header {
        display: none;
    }

    .cart-item {
        display: block;
        padding: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        float: left;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    .cart-item-info {
        margin-bottom: 1rem;
        min-height: 80px;
    }

    .cart-item-name {
        font-size: 1.1rem;
    }

    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        text-align: left;
    }

    .cart-item-price::before {
        content: "Precio: ";
        color: var(--text-muted);
        font-weight: normal;
    }

    .cart-item-quantity::before {
        content: "Cantidad: ";
        color: var(--text-muted);
        font-weight: normal;
    }

    .cart-item-subtotal::before {
        content: "Subtotal: ";
        color: var(--text-muted);
        font-weight: normal;
    }

    .cart-item-remove {
        text-align: right;
        margin-top: 1rem;
    }

    .cart-page-title {
        font-size: 1.5rem;
    }

    .quantity-controls {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .cart-container {
        padding: 1rem 0;
    }

    .cart-table-section,
    .cart-summary {
        border-radius: 5px;
    }

    .btn-checkout,
    .btn-whatsapp {
        font-size: 0.95rem;
        padding: 0.85rem;
    }

    .empty-cart-container {
        padding: 3rem 1rem;
    }

    .empty-cart-icon {
        font-size: 4rem;
    }

    .empty-cart-container h3 {
        font-size: 1.5rem;
    }

    .empty-cart-container p {
        font-size: 1rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cart-item {
    animation: fadeIn 0.3s ease;
}

/* ===== ESTADO DISABLED ===== */
.btn-checkout:disabled,
.btn-whatsapp:disabled,
.btn-clear-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-checkout:disabled:hover,
.btn-whatsapp:disabled:hover,
.btn-clear-cart:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== MODAL DE CONFIRMACIÓN ===== */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 10px 10px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* ===== CUPONES Y DESCUENTOS ===== */
.coupon-section {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}

.btn-apply-coupon {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: var(--success-color);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-coupon:hover {
    background-color: #128c7e;
}

/* =====================================================
   ESTILOS DEL MINI-CART (NAVBAR DROPDOWN)
   ===================================================== */

/* Container del mini-cart */
#cart-dropdown-wrapper {
    position: relative;
}

#mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

#cart-dropdown-wrapper.show #mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header del mini-cart */
.mini-cart-header {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 10px 10px 0 0;
}

.mini-cart-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.mini-cart-item-count {
    font-weight: 700;
}

/* Body del mini-cart */
.mini-cart-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

/* Custom scrollbar */
.mini-cart-body::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mini-cart-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Items del mini-cart */
.mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.mini-cart-item:hover {
    background-color: #f8f9fa;
}

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

.mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.mini-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-cart-item-details h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-cart-item-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Mensaje de carrito vacío */
#mini-cart-empty-message {
    display: none;
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Footer del mini-cart */
.mini-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 2px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.mini-cart-total {
    font-size: 1.25rem;
    color: #1e88e5;
}

.mini-cart-footer .btn {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mini-cart-footer .btn-primary {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    border: none;
}

.mini-cart-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

/* Badge del carrito en el navbar */
#cart-item-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    line-height: 20px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

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

/* Icono del carrito en el navbar */
#cart-icon-link {
    position: relative;
    padding: 0.5rem 1rem;
}

#cart-icon-link i {
    font-size: 1.2rem;
}

/* Responsive para mini-cart */
@media (max-width: 576px) {
    #mini-cart-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }

    .mini-cart-body {
        max-height: 250px;
    }

    .mini-cart-item img {
        width: 50px;
        height: 50px;
    }

    .mini-cart-item-details h6 {
        font-size: 0.85rem;
    }
}

/* Animación de entrada del badge */
@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#cart-item-count:not(:empty) {
    animation: slideInBadge 0.3s ease;
}

/* Hover effect en el icono del carrito */
#cart-icon-link:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Flecha indicadora (opcional) */
/* =====================================================
   MINI CART DROPDOWN - VERSIÓN OPTIMIZADA
   ===================================================== */

/* Container principal */
#cart-dropdown-wrapper {
    position: relative;
}

#mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    margin-top: 0.5rem;
    overflow: hidden;
}

#cart-dropdown-wrapper.show #mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Flecha indicadora */
#mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.1);
}

/* Header del mini-cart */
.mini-cart-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mini-cart-header h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-cart-header .mini-cart-item-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Body del mini-cart */
.mini-cart-body {
    max-height: 350px;
    overflow-y: auto;
    background: #fafafa;
}

/* Scrollbar personalizado */
.mini-cart-body::-webkit-scrollbar {
    width: 5px;
}

.mini-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.mini-cart-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Items del mini-cart */
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.mini-cart-item:hover {
    background-color: #f8f9fa;
}

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

/* Imagen del producto - OPTIMIZADA */
.mini-cart-item-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 3px;
}

/* Información del producto */
.mini-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-item-price {
    font-size: 0.75rem;
    color: #1e88e5;
    font-weight: 600;
    margin: 0;
}

.mini-cart-item-quantity {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
}

/* Botón eliminar (opcional) */
.mini-cart-item-remove {
    align-self: flex-start;
    margin-top: 5px;
}

.btn-remove-mini {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-radius: 4px;
}

.btn-remove-mini:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

/* Carrito vacío */
.mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.mini-cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.3;
    display: block;
}

.mini-cart-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer del mini-cart */
.mini-cart-footer {
    padding: 12px 15px;
    background: #fff;
    border-top: 2px solid #f0f0f0;
}

.mini-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.mini-cart-total-row span:first-child {
    color: #666;
    font-weight: 500;
}

.mini-cart-total {
    color: #1e88e5;
    font-size: 1.2rem;
}

/* Acciones del footer */
.mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-cart-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.mini-cart-actions .btn-outline-primary {
    border: 1.5px solid #1e88e5;
    color: #1e88e5;
}

.mini-cart-actions .btn-outline-primary:hover {
    background: #1e88e5;
    color: #fff;
    transform: translateY(-1px);
}

.mini-cart-actions .btn-primary {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    border: none;
}

.mini-cart-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* Badge del carrito en navbar */
#cart-item-count {
    animation: pulse 2s infinite;
}

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

/* Hover effect en el ícono */
#cart-icon-link:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Loading state */
.mini-cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #999;
}

.mini-cart-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive */
@media (max-width: 576px) {
    #mini-cart-dropdown {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        border-radius: 0;
        margin-top: 0;
        transform: translateX(100%);
    }
    
    #cart-dropdown-wrapper.show #mini-cart-dropdown {
        transform: translateX(0);
    }
    
    #mini-cart-dropdown::before {
        display: none;
    }
    
    .mini-cart-body {
        max-height: calc(100vh - 160px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

