


/* Estilos generales del navbar */
.navbar {
    background: #101d0d;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Estilos para el menú desplegable en móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        padding: 2rem 1.5rem;
        background-color: #2c3e50;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        z-index: 1050;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .nav-item {
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 4px;
    }

    /* Fondo oscuro cuando el menú está abierto */
    .navbar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Botón de cerrar para el menú móvil */
.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Efecto hover para los items del menú */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateX(5px);
}

.nav-link.active {
    background-color: #0b1218 !important;
    color: white !important;
}

/* Logo y marca */
.navbar-brand {
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.03);
}

/* Botón del menú hamburguesa */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}



/* Search and filter section */
.input-group {
    margin-bottom: 1rem;
}

.btn-search {
    background: #ff6b00;
    color: white;
}

/* Category chips */
.category-chips-container {
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0 15px; /* Más padding abajo para espacio del scroll */
    position: relative;
}

.category-chips-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-chips {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 15px; /* Padding lateral para mejor visualización */
}

.category-chip {
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    flex-shrink: 0; /* Evita que se encojan los chips */
}

.category-chip:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.category-chip.active {
    background-color: #ff6b00 !important;
    color: white;
}

.scroll-button {
    min-width: 36px;
}

/* Product cards */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 15px;
    background: #f8f9fa;
    width: 100%;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.garantia {
    font-size: 14px;
    font-weight: bold;
    color: #ff8a1d;
    margin-top: 10px;
}

/* Sellers section */
.sellers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.seller-column {
    flex: 1;
    min-width: 150px;
    padding: 10px;
}

.seller-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.seller-name {
    margin: 8px 0;
    font-weight: 600;
    color: #333;
}

.seller-button {
    width: 100%;
    max-width: 250px;
    margin-top: 5px;
    white-space: normal;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #101d0d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 400px; /* Tamaño para desktop */
  height: auto;
  max-width: 100%; /* Asegura que no se salga de la pantalla en móviles */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
  #preloader img {
    width: 80vw; /* Usa el 80% del ancho de la pantalla en móviles */
    max-width: 300px; /* Máximo de 300px para no estirar demasiado el GIF */
  }
}

.loaded #preloader {
  opacity: 0;
  pointer-events: none;
}

/* Modal styles */
.modal-body img {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .product-card .card-img-top {
        height: 150px;
    }
    
    .sellers-container {
        flex-direction: column;
    }
    
    .seller-column {
        min-width: 100%;
    }
    
    .seller-button {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .category-chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .scroll-button {
        min-width: 30px;
        padding: 0.25rem;
    }
}