:root {
  --orange-100: #FFE8D6;
  --orange-200: #FABD8C;
  --orange-300: #F79256;
  --orange-400: #EF6C00;
  --orange-500: #BF360C;

  --gray-800: #343a40;
  --light-bg: #f8f9fa;

  --primary-color: var(--orange-400);
  --primary-hover: var(--orange-500);
}

/* Global */
body {
  background-color: var(--light-bg);
}

.container {
  max-width: 800px;
}

/* Top Navigation */
.top-bar {
  background-color: var(--primary-color) !important;
  color: white;
}

.top-bar img {
  width: 30px;
  height: 30px;
}


/* input de busqueda*/
/* Search Box Styles */
/* Search Styles */
.search-container {
    transition: all 0.3s ease;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: none;
}

/* para borrar */

/* Agrega esto a tu :root o donde tengas tus estilos */

.btn-orange {
    background-color: var(--orange-500);
    color: white;
}

.btn-orange:hover {
    background-color: var(--orange-400);
    color: white;
}

.search-bar .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(239, 108, 0, 0.25);
    border-color: var(--orange-300);
}



/* Carousel */
.carousel-inner img {
  height: 250px;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 5px;
}

.mt-6 {
  margin-top: 3.5rem !important;
}


/* Category Tabs */
/* .category-tabs .nav-link {
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  color: var(--gray-800);
  background-color: var(--orange-100);
  transition: background-color 0.3s ease;
}

.category-tabs .nav-link.active,
.category-tabs .nav-link:hover {
  background-color: var(--primary-color);
  color: white;
} */

/* Cards */
/* .card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 16px;
  color: var(--gray-800);
}

.card-text {
  font-size: 14px;
  color: #6c757d;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
} */

/* Bottom Navbar */
.bottom-nav {
  background-color: var(--primary-color) !important;
}

.bottom-nav a {
  font-size: 12px;
  color: white;
  text-align: center;
}

.bottom-nav a i {
  font-size: 18px;
  color: white;
}

.bottom-nav a:hover {
  text-decoration: none;
  color: white;
}

/* ///////////////////////////////////////////Category Tabs Container  funciona*/
/* /////////////////////////////////////////// Category Tabs Container */
/* /////////////////////////////////////////// Category Tabs Container */
.category-tabs-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
}

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

.category-tabs-container.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  width: max-content; /* Permite que el contenido defina el ancho */
  padding-bottom: 10px; /* Espacio para el scroll */
}

.category-tabs .nav-item {
  flex-shrink: 0; /* Evita que los items se reduzcan */
  margin: 0 5px; /* Espacio entre items */
}

.category-tabs .nav-link {
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  color: var(--gray-800);
  background-color: var(--orange-100);
  white-space: nowrap; /* Evita que el texto se divida en varias líneas */
  transition: background-color 0.3s ease;
}

.category-tabs .nav-link.active,
.category-tabs .nav-link:hover {
  background-color: var(--primary-color);
  color: white;
}


/* /////////////////////////////////////////// Subcategorías (Stories Scroll) */
.stories-wrapper {
  width: 100%;
  position: relative;
}

.stories-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
}

.stories-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.stories-scroll.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}


/* /////////////////////////////////////////// Story Items */
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

.story-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-border {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2px;
}

.story-border.active {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.story-item:first-child .story-border {
  background: #ddd; /* "Tu historia" sin borde de color */
}

.story-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  background: white;
}

.story-item small {
  font-size: 12px;
  color: #333;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Hover effect */
.story-item:hover .story-image {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

  /* orba*/
  /* Mejora para el desplazamiento con rueda del mouse */

/* Mejor feedback visual al arrastrar */

  /*  /////////////////////////////////////////////////card*/

  /* .product-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 1rem;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  padding: 1rem;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  /*-webkit-line-clamp: 2;*/
  /* -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.product-card-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-weight: 700;
  color: var(--orange-500);
  margin: 0.5rem 0;
}

.product-card-rating {
  color: var(--orange-400);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.product-card-rating .text-muted {
  color: #6c757d !important;
  font-size: 0.7rem;
}

.product-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--orange-500);
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
}

.product-card-wishlist {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  color: #dc3545;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-card-btn {
  background-color: var(--orange-400);
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.product-card-btn:hover {
  background-color: var(--orange-500);
  transform: translateY(-1px);
}

.product-card-cart {
  color: var(--orange-400);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.product-card-cart:hover {
  color: var(--orange-500);
}  */




/* MEJORAS PARA LAS PRODUCT CARDS  borrar aqui */   
/* .product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  margin-bottom: 1.5rem;
  background: white;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.product-card-img-container {
  position: relative;
  overflow: hidden;
}

.product-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  /*-webkit-line-clamp: 2;*/
  /* -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
  line-height: 1.3;
} */
/* 
.product-card-text {
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-card-price-container {
  display: flex;
  flex-direction: column;
  margin: 0.6rem 0;
}

.product-card-price {
  font-weight: 700;
  color: var(--orange-500);
  font-size: 1rem;
}

.product-card-old-price {
  font-size: 0.75rem;
  color: #adb5bd;
  text-decoration: line-through;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.product-card-stars {
  color: var(--orange-400);
  font-size: 0.85rem;
  letter-spacing: -1px;
}

.product-card-review-count {
  font-size: 0.7rem;
  color: #6c757d;
}

.product-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background-color: var(--orange-500);
  color: white;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
  z-index: 2;
}

.product-card-wishlist {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  color: white;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.product-card-wishlist:hover {
  background-color: rgba(220, 53, 69, 0.8);
}

.product-card-wishlist.active {
  background-color: #dc3545;
}

.product-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.product-card-btn {
  background-color: var(--orange-400);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: white;
  flex-grow: 1;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.product-card-btn:hover {
  background-color: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(239, 108, 0, 0.3);
}

.product-card-btn-cart {
  background: white;
  color: var(--orange-400);
  border: 1px solid var(--orange-200);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-card-btn-cart:hover {
  background: var(--orange-100);
  color: var(--orange-500);
  transform: scale(1.1);
}

.product-card-stock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e9ecef;
}

.product-card-stock-bar {
  height: 100%;
  background: var(--orange-400);
  width: 80%;
  border-radius: 0 2px 2px 0;
}

/* Efecto de "agotándose" */
/* .product-card[data-stock="low"] .product-card-stock-bar {
  background: #ffc107;
  width: 30%;
}

.product-card[data-stock="low"] .product-card-price-container::after {
  content: "Últimas unidades";
  color: #dc3545;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.2rem;
}  */

/* ESTILOS OPTIMIZADOS PARA MÓVILES - TIPO TEMU */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    background: white;
}

.product-card-img-container {
    position: relative;
    padding-top: 100%; /* Relación de aspecto 1:1 */
    overflow: hidden;
    background-color: var(--light-bg);
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* TIPOGRAFÍA REDUCIDA PARA MÓVILES */
.product-card-title {
    font-size: 13px;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-800);
}

.product-card-text {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.product-card-stars {
    color: var(--orange-400);
    font-size: 10px;
    margin-right: 4px;
}

.product-card-review-count {
    font-size: 10px;
    color: #6c757d;
}

.product-card-price-container {
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 14px;
    font-weight: bold;
    color: var(--orange-500);
}

.product-card-old-price {
    font-size: 11px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-left: 4px;
}

/* BOTONES OPTIMIZADOS */
.product-card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: 6px;
}

.product-card-btn {
    background-color: var(--orange-400);
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.product-card-btn:hover {
    background-color: var(--orange-500);
    color: white;
}

.product-card-btn-cart {
    background-color: white;
    color: var(--orange-400);
    border: 1px solid var(--orange-200);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.product-card-btn-cart:hover:not(:disabled) {
    background-color: var(--orange-100);
    color: var(--orange-500);
}

.product-card-btn-cart:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* BADGES Y WISHLIST */
.product-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #ff4444;
    color: rgb(255, 255, 255);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.product-card-wishlist {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
}

/* STOCK INDICATOR */
.product-card-stock {
    padding: 5px 10px;
    background-color: var(--light-bg);
    border-top: 1px solid #e9ecef;
}

.product-card-stock-bar {
    height: 3px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-bottom: 3px;
    overflow: hidden;
}

.product-card-stock-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 70%;
    background-color: #28a745;
}

.product-card-stock small {
    font-size: 10px;
    color: #6c757d;
}

/* STOCK BAJO */
.product-card[data-stock="low"] .product-card-stock-bar::after {
    background-color: #dc3545;
    width: 20%;
}

/* MEJORAS PARA TABLETS Y ESCRITORIO */
@media (min-width: 768px) {
    .product-card-title {
        font-size: 14px;
    }
    
    .product-card-text,
    .product-card-review-count,
    .product-card-old-price {
        font-size: 12px;
    }
    
    .product-card-price {
        font-size: 16px;
    }
    
    .product-card-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .product-card-btn-cart {
        width: 36px;
        height: 36px;
    }
}

/* ESTILOS SKELETON (MANTENIDOS) */
.skeleton-card {
    opacity: 0.6;
    pointer-events: none;
}
.skeleton {
    background: #f0f0f0;
    min-height: 250px;
    border-radius: 0.5rem;
}
.skeleton-img {
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    height: 180px;
    border-radius: 0.5rem 0.5rem 0 0;
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-text {
    height: 16px;
    margin: 8px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}



































/*estilos para busqueda de categorias*/

     .dropdown-scrollable::-webkit-scrollbar {
            width: 6px;
        }
        .dropdown-scrollable::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        .dropdown-scrollable::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }
        .dropdown-scrollable::-webkit-scrollbar-thumb:hover {
            background: var(--primary-hover);
        }
        .dropdown-menu {
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        .form-check-label {
            cursor: pointer;
            transition: color 0.2s;
        }
        .form-check-label:hover {
            color: var(--primary-color);
        }






        /*///////////////////////////////////////  button de usuario del menu*/
         .dropdown-menu {
        border: none;
        border-radius: 10px;
        min-width: 220px;
        background-color: white;
        margin-top: 10px;
    }
    
    .dropdown-item {
        padding: 8px 16px;
        border-radius: 6px;
        /*margin: 2px 8px;*/
        font-size: 0.9rem;
        color: var(--gray-800);
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background-color: var(--orange-100);
        color: var(--orange-500);
    }
    
    .dropdown-header {
        font-size: 0.8rem;
        color: var(--orange-500);
        font-weight: 600;
    }
    
    .dropdown-toggle::after {
        display: none;
    }
    
    .dropdown-toggle {
        padding: 8px;
        border-radius: 50%;
        transition: background-color 0.2s;

     
    }
    
    /*
    .dropdown-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    */
    .dropdown-divider {
        border-color: rgba(0, 0, 0, 0.05);
    }





     /*///////////////////////////////////////  button del corazon para toast*/
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-bottom: 1rem;
    min-width: 300px;
    transition: all 0.3s ease;
}

.auth-toast {
    min-width: 350px;
}

.toast-header {
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-body {
    border-radius: 0 0 12px 12px;
    padding: 1rem;
}

.auth-toast .toast-body {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

/* Animaciones personalizadas */
.toast.show {
    animation: slideInRight 0.3s ease-out;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Barra de progreso para el tiempo restante */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-400), var(--orange-300));
    animation: progressBar linear forwards;
}

.toast-progress.auth {
    animation-duration: 8s;
}

.toast-progress.success {
    animation-duration: 4s;
}

.toast-progress.error {
    animation-duration: 6s;
}

.toast-progress.warning {
    animation-duration: 5s;
}

.toast-progress.info {
    animation-duration: 4s;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* Botones en toast */
.auth-toast .btn {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.auth-toast .btn-primary {
    background-color: var(--orange-400);
    border-color: var(--orange-400);
}

.auth-toast .btn-primary:hover {
    background-color: var(--orange-500);
    border-color: var(--orange-500);
    transform: translateY(-1px);
}

.auth-toast .btn-outline-primary {
    color: var(--orange-400);
    border-color: var(--orange-400);
}

.auth-toast .btn-outline-primary:hover {
    background-color: var(--orange-400);
    border-color: var(--orange-400);
    color: white;
}

/* Responsive */
@media (max-width: 576px) {
    .toast-container {
        padding: 1rem;
        width: 100%;
    }
    
    .toast, .auth-toast {
        min-width: unset;
        width: 100%;
    }
}
