html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.header-logo .logo-main {
    width: 96px;
    height: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .header-logo .logo-main {
        width: 100px;
    }
}

/* Títulos y líneas decorativas */
.custom-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
}

.title-line {
    width: 60px;
    height: 3px;
    background: #ff6e7f;
    margin: 15px auto;
    border-radius: 10px;
}

/* Tarjeta de Favorito */
.fav-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

    .fav-card:hover {
        transform: translateY(-5px);
    }

.fav-thumb {
    position: relative;
    overflow: hidden;
}

    .fav-thumb img {
        transition: transform 0.5s ease;
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.fav-card:hover .fav-thumb img {
    transform: scale(1.1);
}

/* Botón quitar (X) */
.btn-remove-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ff6e7f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
}

    .btn-remove-overlay:hover {
        background: #ff6e7f;
        color: #fff;
    }

/* Botón Ver Detalle (Aparece al hover) */
.btn-view-details {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    transition: 0.3s;
    text-decoration: none;
    font-size: 13px;
}

.fav-card:hover .btn-view-details {
    bottom: 0;
}

.fav-info {
    padding: 15px;
}

.fav-title {
    font-size: 15px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 600;
}

.fav-price {
    color: #ff6e7f;
    font-weight: 700;
    font-size: 18px;
}

/* Estado vacío */
.icon-circle {
    width: 100px;
    height: 100px;
    background: #fff5f6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6e7f;
    font-size: 40px;
}

/*CARRITO CUPON */
/* Estilo para el contenedor del cupón */
.apply-coupon-wrap {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* El botón de Aplicar */
.btn-coupon {
    background-color: #ff6565; /* El ROSA de tu marca */
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-block;
    width: 100%;
}

    /* Efecto al pasar el mouse */
    .btn-coupon:hover {
        background-color: #231942;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    /* Efecto al hacer clic */
    .btn-coupon:active {
        transform: translateY(0);
    }

/* Mejora para el input de texto */
.apply-coupon-wrap .form-control {
    border: 2px solid #eee;
    height: 50px;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

    .apply-coupon-wrap .form-control:focus {
        border-color: #ff6565;
        box-shadow: none;
    }
#row-descuento {
    background-color: #fff4f4; /* Un fondo rosado muy suave para resaltar el ahorro */
    transition: all 0.5s ease;
}
/* Estilo del contenedor de cantidad (Pastilla) */
.quantity-wrapper {
    background: #f1f3f5;
    border-radius: 50px;
    padding: 4px 10px;
    display: inline-flex;
    border: 1px solid #e9ecef;
}

.btn-qty-minus, .btn-qty-plus {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    color: #495057;
}

    .btn-qty-minus:hover:not([disabled]), .btn-qty-plus:hover {
        background-color: #dc3545; /* Dorado */
        color: white;
    }

.qty-display {
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

/* Estilo del botón eliminar */
.btn-delete-item {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
    padding: 5px;
}

    .btn-delete-item:hover {
        color: #dc3545; /* Rojo al pasar el mouse */
        transform: scale(1.15);
    }

/* Ajuste de la tabla */
.cart-item {
    transition: background 0.2s;
}

    .cart-item:hover {
        background-color: #fafafa;
    }
/*FIN CARRITO CUPON*/

/*DETALLE CARRITO BOTON SEGUIR COMPRANDO*/
/* Botón Seguir Comprando Sutil */
.btn-seguir-comprando {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    font-size: 0.8rem;
    background-color: #fbfbfb;
    color: #888;
    border: 1px solid #eee;
    padding: 5px 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

    /* Efecto Hover Sutil */
    .btn-seguir-comprando:hover {
        background-color: #f0f0f0;
        color: #333;
        border-color: #ddd;
        transform: translateX(-3px);
        text-decoration: none; /* Asegura que no aparezca el subrayado de link */
    }

    /* Ajuste del icono dentro del botón */
    .btn-seguir-comprando i {
        font-size: 0.7rem;
        margin-right: 8px;
    }
/*FIN BOTON SEGUIR COMPRANDO*/

/*BOTON CONTINUAR PASO FINAL DETALLE CARRITO*/
/* Botón Principal de Pedido */
.btn-place-order {
    background-color: #222; /* Color oscuro profesional */
    color: #fff;
    border: none;
    border-radius: 4px; /* Redondeo sutil coincidente */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .btn-place-order i {
        width: 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    /* Evitamos que el hover de movimiento siga activo mientras carga */
    .btn-place-order[style*="pointer-events: none"]:hover {
        transform: none;
        box-shadow: none;
    }
    /* Efecto Hover de Movimiento hacia la derecha */
    .btn-place-order:hover {
        background-color: #ff6565; /* Tu dorado de marca */
        color: #fff;
        transform: translateX(5px); /* Se mueve sutilmente hacia adelante */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

        /* Animación opcional para el icono dentro del botón */
        .btn-place-order:hover i {
            transform: translateX(3px);
            transition: transform 0.3s ease;
        }
/*FIN BOTON CONTINUAR DETALLE CARRITO*/

/*MEJORA VISUAL TARJETA ARTICULOS*/
/* Botón de favoritos minimalista al lado del título */
/* --- CONTENEDOR PRINCIPAL DE ACCIONES --- */
.actions-wrapper {
    display: flex;
    flex-direction: column; /* Móvil: Uno abajo del otro por defecto */
    gap: 10px;
    width: 100%;
}

/* --- SELECTOR DE CANTIDAD (PASTILLA) --- */
.quantity-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f1f1;
    border-radius: 6px;
    height: 40px; /* Un poco más alto para facilitar el toque en móviles */
    width: 100%; /* Ocupa el 100% en móvil */
    border: 1px solid #ddd;
    padding: 0 15px;
}

.qty-span-text {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #222 !important;
    user-select: none;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    width: 30px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BOTÓN AGREGAR --- */
.btn-add-small {
    background: #222;
    color: white;
    border: none;
    height: 40px; /* Misma altura que la cantidad para simetría */
    border-radius: 6px;
    width: 100%; /* Ocupa el 100% en móvil */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-add-small:hover {
        background: #ff6565;
    }
/* Sincronización de altura y diseño en el Modal */
.product-details-pro-qty .quantity-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    height: 44px; /* Altura fija para ambos */
    padding: 0 10px;
}

#qv-btn-cart {
    height: 44px; /* Misma altura que la cantidad */
    border-radius: 4px;
    font-size: 0.8rem; /* Tamaño de fuente adaptable */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 5px;
    text-transform: uppercase;
}

/* Ajuste para pantallas muy pequeñas (celulares chicos) */
@media (max-width: 380px) {
    #qv-btn-cart {
        font-size: 0.7rem; /* Achicamos la letra para que no se corte */
    }

    .qty-span-text {
        font-size: 0.9rem;
    }
}
/* --- BOTÓN VISTA RÁPIDA (SIEMPRE ABAJO) --- */
.btn-quick-minimal {
    width: 100%;
    background: none;
    border: 1px solid #eee;
    color: #999;
    font-size: 0.75rem;
    padding: 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    transition: all 0.3s;
}

    .btn-quick-minimal:hover {
        background: #f9f9f9;
        color: #333;
        border-color: #ddd;
    }

/* --- FAVORITOS (AL LADO DEL TÍTULO) --- */
.btn-fav-minimal {
    background: none;
    border: none;
    padding: 0 0 0 5px;
    font-size: 1.1rem;
    color: #ccc;
    transition: transform 0.2s;
}

    .btn-fav-minimal:hover {
        transform: scale(1.1);
    }

.product-info .name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

    .product-info .name a:hover {
        color: #dcb14a;
    }

/* --- AJUSTES PARA PANTALLAS GRANDES (PC / TABLET) --- */
@media (min-width: 768px) {
    .actions-wrapper {
        flex-direction: row; /* Desktop: Vuelven a estar uno al lado del otro */
    }
}

/* -- COOKIE BANNER --*/
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.95); /* Gris muy oscuro con transparencia */
    color: white;
    padding: 20px 0;
    z-index: 9999; /* Siempre por encima de todo */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

.cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.btn-cookie {
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-aceptar {
    background-color: #ff6565; /* El amarillo de tu marca */
    color: #000;
}

    .btn-aceptar:hover {
        background-color: #dc3545;
    }

.btn-rechazar {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

    .btn-rechazar:hover {
        background-color: rgba(255,255,255,0.1);
    }

/* Animación de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-text {
        text-align: center;
        font-size: 13px;
    }
}

/*STOCK BAJO Y AVISO*/
/* Botón Avisarme cuando no hay stock */
.btn-notify-full {
    width: 100%;
    background-color: #333;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-notify-full:hover {
        background-color: #ff6565; /* Color rosa de tu tienda */
        transform: translateY(-2px);
    }

/* Animación para el badge de "Solo X unidades" */
.pulse-stock {
    animation: pulse-red 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/*CSS PARA CONTADOR DE CANTIDAD EN DETALLE*/

/* Contenedor principal */
.contenedor-acciones-det {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 30px !important; /* Espacio amplio entre elementos */
    width: 100% !important;
}

/* 1. CORAZÓN CIRCULAR CORREGIDO */
#corazon-detalle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important; /* Círculo perfecto */
    border: 1.5px solid #e85255 !important; /* Mismo rojo que la píldora */
    background-color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

    #corazon-detalle i {
        font-size: 18px !important;
        color: #e85255 !important; /* Color del icono */
    }

    #corazon-detalle:hover {
        background-color: #fff5f5 !important;
    }

/* 2. ESTILO PÍLDORA */
.pildora-cantidad {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #e85255 !important;
    border-radius: 50px !important;
    height: 50px !important;
    width: 135px !important;
    background: white !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.btn-pildora {
    border: none !important;
    background: none !important;
    width: 42px !important;
    height: 100% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.numero-pildora {
    flex: 1 !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 16px !important;
    color: #333 !important;
    height: 25px !important; /* Separador vertical */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
}

/* 3. BOTÓN AÑADIR */
.boton-anadir-det {
    height: 50px !important;
    background-color: #ff6a6a !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0 35px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    flex-grow: 1 !important; /* Ocupa el espacio restante */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
}

    .boton-anadir-det:hover {
        background-color: #e85255 !important;
    }

/* Responsive */
@media (max-width: 576px) {
    .contenedor-acciones-det {
        gap: 15px !important;
    }

    .pildora-cantidad {
        width: 110px !important;
    }

    .boton-anadir-det {
        padding: 0 15px !important;
        font-size: 12px !important;
    }
}


