/* Estilos para cada tarjeta de categoría */
.text-center-cats{
   margin-right: -20px;;
}
.cate-bx{
   margin-right: -20px;;
   width: 160px;
}
.swiper-slide-cats{
   margin-right:15px !important;
   width: 110px !important;
}
.card-cats {
   width: 100px; /* Ancho mínimo de cada tarjeta */
   text-align: center;
   border: 1px solid #e0e0e0;
   border-radius: 10px;
   transition: transform 0.3s ease;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   flex-shrink: 0; /* Previene que se encoja */
   margin-right: -50px;
}

.card-cats:hover {
   transform: translateY(-5px);
   box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Estilos para el cuerpo de la tarjeta */
.card-body-cats {
   padding: 0.75rem;
}

/* Estilos para la imagen */
.card-body-cats img {
   width: 100%;
   height: 100px;
   object-fit: contain;
   margin-bottom: 5px;
}

/*** SECCION DE CATEGORIAS Y CARDS DE PRODUCTOS***/
/* Estilos para categoría activa */
.swiper-slide.active-category > .card-cats {
   border: 2px solid #FC8019;
   border-radius: 10px;
}

/* Transición suave para items */
#pills-grid [data-category] {
   transition: all 0.5s ease;
}
/* Efecto principal de animación */
#pills-grid [data-category] {
   position: relative;
   opacity: 0;
   transform: scale(0.5);
   animation: expandIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
   transition: all 0.3s ease;
}

/* Keyframes para el efecto de expansión */
@keyframes expandIn {
   0% {
       opacity: 0;
       transform: scale(0.5) rotate(-5deg);
       filter: blur(2px);
   }
   100% {
       opacity: 1;
       transform: scale(1) rotate(0);
       filter: blur(0);
   }
}

/* Efecto al pasar el mouse */
#pills-grid [data-category]:hover {
   transform: translateY(-5px) scale(1.02);
   box-shadow: 0 12px 24px rgba(0,0,0,0.15);
   z-index: 2;
}

/* Efecto al hacer clic */
#pills-grid [data-category]:active {
   transform: scale(0.98);
}

/* Efecto de salida (para cuando se filtra) */
#pills-grid [data-category].filter-out {
   animation: collapseOut 0.4s cubic-bezier(0.755, 0.05, 0.855, 0.06) forwards;
}

@keyframes collapseOut {
   0% {
       opacity: 1;
       transform: scale(1);
   }
   100% {
       opacity: 0;
       transform: scale(0) rotate(15deg);
       margin: 0;
       padding: 0;
       height: 0;
   }
}
/***  FIN DE SECCION DE CATEGORIAS Y CARDS DE PRODUCTOS***/

/*** SECCION DE CARRITO ***/
/* Estilos del Carrito */
.cart-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: #333;
    padding: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: #FC8019;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FC8019;
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
}

.cart-dropdown {
    position: absolute;
    top: 60px; /* Ajustado para estar justo debajo del ícono */
    right: 0;
    width: 350px;
    max-height: 70vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    overflow-y: auto; /* Para permitir scroll si hay muchos items */
}

.cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilos internos del dropdown */
.cart-header {
   padding: 15px;
   border-bottom: 1px solid #eee;
   position:relative;
}
/* Estilos para el icono de cerrar */
.close-cart {
   position: absolute;
   right: 15px;
   top: 50%;
   transform: translateY(-50%);
   color: #666;
   transition: color 0.3s ease;
   font-size: 1.2rem;
}
.close-cart:hover {
   color: #ff4444;
   text-decoration: none;
}


.cart-items-container {
   padding: 15px;
   overflow-y: auto;
   max-height: 50vh;
}

.cart-item {
   display: flex;
   gap: 15px;
   padding: 10px 0;
   border-bottom: 1px solid #f5f5f5;
}

.cart-item img {
   width: 60px;
   height: 60px;
   object-fit: cover;
   border-radius: 8px;
}

.cart-item-info {
   flex-grow: 1;
}

.cart-item-title {
   font-size: 14px;
   margin-bottom: 5px;
}

.cart-item-price {
   color: #FC8019;
   font-weight: bold;
   font-size: 14px;
}

.cart-footer {
   padding: 15px;
   background: #f9f9f9;
   border-top: 1px solid #eee;
}

.cart-total {
   display: flex;
   justify-content: space-between;
   margin-bottom: 15px;
   font-weight: bold;
   font-size: 16px;
}

.btn-checkout {
   width: 100%;
   background: #FC8019;
   border: none;
   padding: 8px;
}
/* Estilos para el botón mini */
.btn-mini {
   width: 25px;
   height: 25px;
   padding: 0;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   /*position: absolute;
   top: 5px;
   right: 5px;*/
   line-height: 1;
   margin-top: 18px;
   font-size: 12px;
   cursor: pointer;
   transition: all 0.2s ease;
}

.qty-btn {
   width: 25px;
   height: 25px;
   border-radius: 50%;
   border: 1px solid #ddd;
   background: #fff;
   cursor: pointer;
   /*display: flex;*/
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
}

.qty-btn:hover {
   background: #f8f9fa;
   border-color: #FC8019;
   color: #FC8019;
}

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

.cantidad {
   min-width: 30px;
   text-align: center;
   font-weight: bold;
}

.card-body-prod{
   padding: 0.6rem !important;
}
/*** FIN DE SECCION DE CARRITO ***/

/** SECCION DE BANNER **/
.banner-bx {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semiobscuro */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.overlay-content {
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

.overlay-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.overlay-text {
   color:#f5f5f5;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.overlay-btn {
    background-color: #ff5722; /* Color de ejemplo, cámbialo según tu diseño */
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.overlay-btn:hover {
    background-color: #e64a19; /* Color más oscuro al pasar el mouse */
}
/** FIN DE SECCION DE BANNER **/

/** SECCION DE PASSWORD **/
.toggle-password {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    cursor: pointer;
}
.toggle-password.fa-eye {
    margin-right: 1px;
}
.pass-group {
    position: relative;
}
/** FIN DE SECCION DE PASSWORD **/

.hr-adicionales{
  margin: 0.6rem 0;
  color: inherit;
  background-color: currentColor;
  border: 0;
  opacity: 0.25;
}
.card-footer-product{
   padding: 1rem 1.2rem 1rem
}
/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .cart-container {
        top: 60px; /* Ajuste para móviles */
        right: 15px;
    }
    
    .cart-dropdown {
        width: 300px;
        max-width: 90vw; /* Asegura que no se salga de la pantalla */
        right: 0;
        left: auto; /* Anula cualquier left que pueda estar afectando */
    }
    .cart-item-title {
      font-size: 12px;
   }
    /* Opcional: Si prefieres que ocupe el ancho completo en móviles muy pequeños */
    @media (max-width: 480px) {
        .cart-dropdown {
            width: 300px;
            right: 0;
        }
    }
}