/* ========== PC / ESCRITORIO (base) ========== */


/* ========== TABLET (768px - 1023px) ========== */
@media screen and (max-width: 1023px) {
    .offcanvas {  
        /* ajusta según necesites */
    }
    .navbar {
        /* ajusta según necesites */
    }
    #contenido-nivel {
        /* ajusta según necesites */
    }
}

/* ========== MÓVIL (hasta 767px) ========== */
@media screen and (max-width: 767px) {
    .offcanvas.offcanvas-start {  
        width: auto;
        right: 15px;
        left: 15px;
        top: 15px;
        height: max-content;
        padding: 20px 13px;
        border-radius: 20px;
    }
    .offcanvas-header .btn-close{
        margin: 0;
    }
    .offcanvas-header{
        justify-content: space-between;
    }
    .navbar {
        min-height: auto;
        border-radius: 20px;
        margin: 7px 5px;
        padding: 0;
        max-height: 70px;
    }
    #contenido-nivel{
    overflow: overlay;
        max-height: 61vh;  
    }
    .shop-filters{
            overflow: overlay;
    max-height: 60vh;
    }
}

.navegacion-por-niveles {
    height: 100%;
    overflow-y: auto;
}

.categoria-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.categoria-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.categoria-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateX(5px);
}

.categoria-imagen {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.categoria-item:hover .categoria-imagen img {
    transform: scale(1.1);
}

.categoria-info {
    flex: 1;
    min-width: 0;
}

.categoria-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categoria-info small {
    color: #6c757d;
    font-size: 12px;
}

.categoria-item i {
    color: #007bff;
    font-size: 14px;
}

.subcategoria-item {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.subcategoria-item:hover {
    background: #007bff;
    color: white !important;
    border-color: #007bff;
    transform: translateX(5px);
}

.subcategoria-item:hover h6,
.subcategoria-item:hover small {
    color: white !important;
}

.subcategoria-item i {
    color: #6c757d;
    font-size: 14px;
    transition: color 0.3s ease;
}

.subcategoria-item:hover i {
    color: white !important;
}

.btn-volver-custom {
    transition: all 0.3s ease;
}

.btn-volver-custom:hover {
    transform: translateX(-3px);
}

/* Scrollbar personalizado */
.navegacion-por-niveles::-webkit-scrollbar {
    width: 6px;
}

.navegacion-por-niveles::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.navegacion-por-niveles::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.navegacion-por-niveles::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Iconos específicos por categoría */
.categoria-card[data-padre-id*="bandej"] .categoria-icon i,
.categoria-card[data-padre-id*="envas"] .categoria-icon i {
    content: "\f5c8" !important; /* bi-box */
}

.categoria-card[data-padre-id*="bols"] .categoria-icon i,
.categoria-card[data-padre-id*="funda"] .categoria-icon i {
    content: "\f5e1" !important; /* bi-bag */
}

.categoria-card[data-padre-id*="jabo"] .categoria-icon i {
    content: "\f4dd" !important; /* bi-droplet */
}

.categoria-card[data-padre-id*="limpi"] .categoria-icon i {
    content: "\f5da" !important; /* bi-star */
}


/* Estilos para carrusel de categorías con Cover Flow */
.category-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: scale(1.05);
}

.category-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  padding: 20px;
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.category-content {
  width: 100%;
  text-align: center;
}

.category-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-link {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Barra de scroll personalizada */
.categories-scrollbar {
  margin-top: 20px;
  height: 8px;
  background: #f1f1f1;
  border-radius: 4px;
  position: relative;
}

.categories-scrollbar-track {
  height: 100%;
  border-radius: 4px;
  background: #e0e0e0;
}

/* Swiper scrollbar thumb */
.categories-scrollbar-track::-webkit-scrollbar {
  height: 8px;
}

.categories-scrollbar-track::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 4px;
}

.categories-scrollbar-track::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 4px;
  cursor: grab;
}

.categories-scrollbar-track::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-image-container {
    width: 160px;
    height: 160px;
  }

  .category-title {
    font-size: 16px;
  }

  .category-link {
    font-size: 12px;
    padding: 4px 8px;
  }
}


.footer-social-link {
display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social-link:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-3px);
}

/* Colores específicos para redes sociales */
.footer-social-link:nth-child(1):hover {
  background-color: #1877f2; /* Facebook */
}

.footer-social-link:nth-child(2):hover {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); /* Instagram */
}

.footer-social-link:nth-child(3):hover {
  background-color: #25d366; /* WhatsApp */
}

.footer-social-link:nth-child(4):hover {
  background-color: #000000; /* TikTok */
}

/* Estilos adicionales para el footer */
.footer-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #007bff;
}

.footer-contact {
  color: #6c757d;
}

.footer-contact p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact i {
  color: #007bff;
  width: 16px;
}

/* Estilos para desplegables del footer */
.footer-dropdown-title {
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
  font-weight: 600;
}

.footer-dropdown-title:hover {
  color: #007bff;
}

.footer-dropdown-title i {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.footer-dropdown[aria-expanded="true"] .footer-dropdown-title i {
  transform: rotate(180deg);
}

.footer-dropdown .collapse {
  margin-top: 10px;
}

.footer-dropdown .list-unstyled {
  padding-left: 20px;
}

.marquee-container {
         overflow: hidden;
         position: relative;
         flex-grow: 1;
         white-space: nowrap;
      }

      .marquee-text {
         display: inline-block;
         white-space: nowrap;
         padding-left: 100%;
         animation: marquee 15s linear infinite;
         font-weight: 500;
         color: #fff;
      }

      @keyframes marquee {
         0% {
            transform: translateX(0%);
         }
         100% {
            transform: translateX(-100%);
         }
      }

/* Estilos para sección de colecciones destacadas */
.collection-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
}

.collection-card:hover {
  transform: scale(1.02);
}

.collection-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.collection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.collection-card:hover .collection-image {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.collection-content {
  text-align: center;
  color: white;
}

.collection-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.collection-link {
  color: white;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.collection-link:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .collection-image-container {
    height: 200px;
  }

  .collection-title {
    font-size: 20px;
  }

  .collection-link {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Mantener estructura de columnas igual en móvil */
@media (max-width: 767px) {
  .featured-collections .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .featured-collections .g-4 > * {
    margin-bottom: 1rem !important;
  }
}