/**
 * Estilos para el Carrito de Compras - EntreDivas
 */

/* Modal del Carrito */
.shoppingCartModal .modal-content {
    height: 100vh;
    border-radius: 0;
}

.shoppingCartModal .modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 20px;
}

.shoppingCartModal h3 {
    font-family: var(--heading-font-family);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e91e63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenido del Carrito */
.products-cart-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart p {
    font-family: var(--text-font-family);
    font-size: 16px;
    color: #888;
    margin: 0;
}

/* Item del Carrito */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s;
}

.cart-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-content h4 {
    font-family: var(--heading-font-family);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-price .old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.cart-item-price .price {
    font-size: 16px;
    font-weight: 600;
    color: #e91e63;
}

/* Cantidad */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.qty-btn:hover {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

.qty-btn i {
    font-size: 14px;
}

.cart-item-quantity input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.cart-item-subtotal {
    font-size: 13px;
    color: #666;
    font-family: var(--text-font-family);
}

.cart-item-subtotal strong {
    color: #333;
}

/* Botón Eliminar */
.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.cart-item-remove:hover {
    background: #e91e63;
    color: #fff;
    transform: scale(1.1);
}

.cart-item-remove i {
    font-size: 18px;
}

/* Total del Carrito */
.products-cart-subtotal {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #e91e63;
    margin-bottom: 15px;
    font-family: var(--text-font-family);
    font-size: 16px;
}

.cart-total-row strong {
    font-size: 20px;
    color: #e91e63;
}

/* Botones del Carrito */
.products-cart-btn {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    margin-bottom: 10px !important;
}

.clear-cart-btn {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.clear-cart-btn:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
}

.w-100 {
    width: 100% !important;
}

.mt-2 {
    margin-top: 10px !important;
}

/* Notificaciones del Carrito */
.cart-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s ease;
    font-family: var(--text-font-family);
}

.cart-notification.show {
    right: 20px;
}

.cart-notification.success {
    border-left: 4px solid #28a745;
}

.cart-notification.info {
    border-left: 4px solid #17a2b8;
}

.cart-notification i {
    font-size: 24px;
    flex-shrink: 0;
}

.cart-notification.success i {
    color: #28a745;
}

.cart-notification.info i {
    color: #17a2b8;
}

.cart-notification span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* Scrollbar personalizado para el carrito */
.products-cart-content::-webkit-scrollbar {
    width: 6px;
}

.products-cart-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-cart-content::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 10px;
}

.products-cart-content::-webkit-scrollbar-thumb:hover {
    background: #c2185b;
}

/* Botón Agregar al Carrito en Product Cards */
.add-to-cart-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: var(--text-font-family);
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .cart-item {
        padding: 15px;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-content h4 {
        font-size: 13px;
    }
    
    .cart-item-price .price {
        font-size: 14px;
    }
    
    .cart-notification {
        min-width: 280px;
    }
}

