/**
 * ====================================================================
 * MEJORAS PARA EL CARRITO DE COMPRAS
 * Estilos para botón de eliminar y mejoras visuales
 * ====================================================================
 */

/* ====================================================================
   ARREGLO DEL HEADER Y BREADCRUMB
   ==================================================================== */

/* Ajustar topbar para que no se solape */
.top-bar {
    position: relative;
    z-index: 100;
    background: #222;
    padding: 10px 0;
}

.top-bar .left-top-bar,
.top-bar .right-top-bar {
    font-size: 13px;
    line-height: 1.5;
}

.top-bar .right-top-bar a {
    padding: 8px 15px !important;
    font-size: 13px;
    white-space: nowrap;
}

/* Ajustar menú principal */
.wrap-menu-desktop {
    position: relative;
    z-index: 99;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mejorar breadcrumb */
.breadcrumb-modern {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-modern .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-modern .breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #333;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Evitar que el texto se solape */
.container-menu-desktop {
    position: relative;
    z-index: 100;
}

/* Asegurar que el logo no se solape */
.logo {
    display: flex;
    align-items: center;
    z-index: 101;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* ====================================================================
   BOTÓN DE ELIMINAR PRODUCTO
   ==================================================================== */

/* Botón de eliminar producto */
.btn-delete-product {
    background: #ff4444;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(255, 68, 68, 0.3);
}

.btn-delete-product:hover {
    background: #cc0000;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 68, 68, 0.5);
}

.btn-delete-product:active {
    transform: scale(0.95);
}

.btn-delete-product i {
    font-size: 20px;
}

/* Columna de eliminar */
.table-shopping-cart .column-6 {
    width: 80px;
    text-align: center;
    padding: 15px;
}

/* Mejorar apariencia de la tabla */
.table-shopping-cart tr.table_row {
    transition: background-color 0.3s ease;
}

.table-shopping-cart tr.table_row:hover {
    background-color: #f8f9fa;
}

/* Animación al eliminar */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.table_row.removing {
    animation: fadeOut 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-delete-product {
        width: 35px;
        height: 35px;
    }
    
    .btn-delete-product i {
        font-size: 18px;
    }
    
    .table-shopping-cart .column-6 {
        width: 60px;
        padding: 10px;
    }
}

/* Tooltip para el botón */
.btn-delete-product[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Mejorar imagen del producto */
.how-itemcart1 {
    cursor: default;
}

.how-itemcart1 img {
    transition: transform 0.3s ease;
}

.table_row:hover .how-itemcart1 img {
    transform: scale(1.05);
}
