
/* CATALOGO DE AUTOS */
.subcategory{
  color: var(--color-black);
  font-family: 'Montserrat', sans-serif !important;
}

.subcategory h2{
  font-family: 'Montserrat', sans-serif !important;
}


.subcategory h3{
  font-family: 'Montserrat', sans-serif !important;
}

/* Oculta el texto por defecto */
.texto-sesion {
  display: none;
  margin-left: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Cuando el menú está abierto en mobile, muestra el texto */
@media (max-width: 900px) {
  .nav-links.menu-open .texto-sesion {
    display: inline;
    opacity: 1;
    animation: fadeIn 0.3s;
    margin-left: 20px !important;
  }
}

/* Animación minimalista */
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-10px);}
  to { opacity: 1; transform: translateX(0);}
}


/* Minimalismo y centrado para catálogo admin */

#barra-busqueda {
  font-family: 'Montserrat', sans-serif !important;
  width: 100%;
  background: white;
  padding: 24px 18px 12px 18px;
  border-radius: 16px;
  /*box-shadow: 0 2px 12px rgba(44,44,44,0.06);*/
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

#input-busqueda {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

#buscar-input {
  flex: 1;
  max-width: 320px;
  padding: 10px 16px;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px 0 0 8px;
  font-size: 1.3rem;
  outline: none;
  transition: border-color 0.2s;
  background: #f8f8f8;
}

#buscar-input:focus {
  border-color: #b91127;
}

#buscar-btn {
  
  padding: 0 18px;
  background: var(--color-primary);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  height: 37.5px;
}

#buscar-btn:hover {
  background: #b91127;
  transform: scale(1.07);
}

#buscar-btn i {
  font-size: 1.2rem;
  color: white !important;
}

.add{
  background: #43b66c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.add:hover{
  background: #1a7239;
  transform: scale(1.07);
}


/* Categorías y marcas */
.categorias-contenedor,
.marcas-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.categorias-contenedor .categoria-btn,
.marcas-contenedor .marca-btn {
  background: #f8f8f8;
  color: var(--color-bg);
  
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(44,44,44,0.04);
}

.categorias-contenedor .categoria-btn.active,
.marcas-contenedor .marca-btn.active {
  background: #b91127;
  color: #fff;
  border-color: #b91127;
  box-shadow: 0 2px 8px rgba(185,17,39,0.09);
}

.categorias-contenedor .categoria-btn:hover,
.marcas-contenedor .marca-btn:hover {

  color: #fff;
}


/* Contenedor de productos */
#productos {
  background-color: white !important;
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

/* Categoría */
.category {
  background: white;
  border-radius: 14px;
  /*box-shadow: 0 2px 12px rgba(44,44,44,0.07);*/
  padding: 18px 22px;
  margin-bottom: 18px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.category h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* Botones de categoría */
.contenedorBotonesCat {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.contenedorBotonesCat .add {
  background: #43b66c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contenedorBotonesCat .add:hover {
  background: #2f2f8f;
  transform: scale(1.07);
}

.contenedorBotonesCat .edit {
  background: #2f2f8f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contenedorBotonesCat .edit:hover {
  background: #43b66c;
  transform: scale(1.07);
}

.contenedorBotonesCat .delete {
  background: #fff;
  color: #b91127;
  border: 1.5px solid #b91127;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.contenedorBotonesCat .delete:hover {
  background: #b91127;
  color: #fff;
  transform: scale(1.07);
}

/* Subcategoría */
.subcategory {
  background: white;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subcategory h3 {
  color: var(--color-bg);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

/* Botones de subcategoría */
.contenedorBotonesSub {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}

.contenedorBotonesSub .add {
  background: #43b66c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contenedorBotonesSub .add:hover {
  background: var(--color-primary);
  transform: scale(1.07);
}

.contenedorBotonesSub .edit {
  background: #2f2f8f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contenedorBotonesSub .edit:hover {
  background: #43b66c;
  transform: scale(1.07);
}

.contenedorBotonesSub .delete {
  background: #fff;
  color: #b91127;
  border: 1.5px solid #b91127;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.contenedorBotonesSub .delete:hover {
  background: #b91127;
  color: #fff;
  transform: scale(1.07);
}

/* Fila de productos */
.products-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  justify-content: center;
}

/* Card de producto */
.product-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36, 36, 36, 0.267);
  padding: 0 0;
  width: 320px;
  min-width: 260px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* <-- Esto es clave */
  gap: 8px;
  align-items: center;
  min-height: 480px; /* Ajusta según el contenido de tus cards */

}

.product-index {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
}

/* Info de producto */
.product-info {
  font-size: 1rem;
  color: var(--color-bg);
  padding: 4px 0;
  text-align: left;
  width: 100%;
}

.product-info strong {
  margin-bottom: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  line-height: 28px;
}

.producto_descripcion {
  font-size: 1.48rem;
  color: var(--color-black);
  text-align:left;
  margin-left: 20px;
}

.producto_descripcion_modal {
  font-size: 1.48rem;
  color: var(--blanco);
  text-align:left;
}

.divPrecio {
  font-size: 2rem;
  color: var(--color-black);
  font-weight: bold;
  text-align: center;
}

.divPrioridad label,
.divOculto label {
  font-size: 1.48rem;
  color: var(--blanco);
  margin-left: 20px;
  margin-bottom: 20px;
}

/* Botones de producto */
.product-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px;
}

.product-buttons .add {
  background: #43b66c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-buttons .add:hover {
  background: #2f2f8f;
  transform: scale(1.07);
}

.product-buttons .edit {
  background: #2f2f8f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-buttons .edit:hover {
  background: #43b66c;
  transform: scale(1.07);
}

.product-buttons .delete {
  background: #fff;
  color: #b91127;
  border: 1.5px solid #b91127;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.product-buttons .delete:hover {
  background: #b91127;
  color: #fff;
  transform: scale(1.07);
}

/* Responsive */
@media (max-width: 768px) {
  #barra-busqueda {
    padding: 14px 8px 8px 8px;
    border-radius: 10px;
  }
  .category, .subcategory {
    padding: 10px 6px;
    max-width: 98vw;
  }
  .products-row {
    gap: 10px;  
  }
  

  .product-container {
    /* width: 98vw; */
    min-width: 180px;
    width: 90%;
    padding: 0 0;
  }
}

/* Imagen tarjeta */
.product-cover-image{
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
  background: #f8f8f8;
}

/* Carrusel de imagenes Modal */
.carousel-producto {
  position: relative;
  overflow: hidden; /* muy importante para que no se vean las otras imágenes */
  width: 90%;
  margin: 0 auto;
}

.carousel-producto .carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-producto .carousel-image {
  min-width: 100%;
  box-sizing: border-box;
  display: block;
}

/* Flechas dentro del carrusel de producto */
.carousel-producto .carousel-control {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2; /* que queden por encima de las imágenes */
}

.carousel-producto .carousel-control.prev { left: 0; }
.carousel-producto .carousel-control.next { right: 0; }
/* ===== Overlay del modal ===== */
/* Bootstrap usa .modal: le sumamos .mcl-modal para ganar especificidad */
.modal.mcl-modal.hidden { display: none !important; }

.modal.mcl-modal {
  display: none;                 /* se activa a 'flex' desde JS */
  position: fixed !important;    /* ignora posicionamiento de Bootstrap */
  z-index: 2000 !important;      /* > a los z-index de Bootstrap */
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto !important;     /* si el contenido excede */
  background-color: rgba(0, 0, 0, 0.6) !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 16px;
  padding-top: 80px;
}

@media (min-width: 768px) {
  .modal.mcl-modal {
    align-items: center !important;
    padding-top: 16px;
  }
}

/* ===== Caja del modal ===== */
.modal-content.mcl-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 95%;
  max-width: 1000px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;   
  border: none !important;
  margin: 0;
}

/* Layout responsive dentro del modal */
@media (min-width: 768px) {
  .modal-content.mcl-modal-content { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Título */
.product-nombre{
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  font-size: 3rem;
  margin: 8px 0;
}

/* Precio destacado (modal) */
.divPrecio-modal {
  font-size: 4rem;
  color: var(--blanco);
  font-weight: 800;
  margin-top: 4px;
  text-align: right;
  margin-right: 20px;
}

/* Botón "Ver más" (card) */
.ver-mas-btn{
  width: 150px;
  height: 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background-color: var(--color-primary) !important; 
  color: #fff;
}
.ver-mas-btn:hover{
  background-color: var(--color-bg) !important;
  transform: scale(1.02);
  transition: all 100ms;
  color: var(--blanco);
}

/* Botón de cerrar (X) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: var(--blanco);
  cursor: pointer;
}
.close-btn:hover { color: #e74c3c; }

/* Suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Carrusel dentro del modal (si lo usás) */
.modal.mcl-modal .carousel-producto { 
  margin-bottom: .75rem; 
  margin-top: 30px;
}

@media (min-width: 768px) {
   .modal.mcl-modal .carousel-producto { 
  margin-top: 0;
}
}
.modal.mcl-modal .carousel-control { z-index: 2; } /* flechas por encima de la imagen */





/* ====== LAYOUT DEL MODAL (2 columnas) ====== */
/* ====== LAYOUT DEL MODAL ====== */
.mcl-modal .mcl-modal-content{
  display: grid;
  grid-template-columns: 1fr;  /* mobile: una sola columna */
  gap: 18px;
  padding: 16px;
  background-color: var(--color-bg) ;          /* opcional */
  border-radius: 14px;
}

/* a partir de 768px → 2 columnas */
@media (min-width: 768px){
  .mcl-modal .mcl-modal-content{
    /* grid-template-columns: minmax(420px, 1fr) minmax(320px, 520px); */
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

/* ====== CARRUSEL ====== */
.carousel-producto{
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background-color:var(--color-bg) ;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.carousel-images{
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.carousel-image{
  width: 100%;
  min-width: 100%;           
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}



/* ====== FLECHAS ====== */
.carousel-control{
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(2px);
  transition: background .2s, transform .1s;
}
.carousel-control:hover{ background: rgba(0,0,0,.65); }
.carousel-control:active{ transform: translateY(-50%) scale(.96); }
.carousel-control.prev{ left: 10px; }
.carousel-control.next{ right: 10px; }

/* ====== MINIATURAS ====== */
.carousel-thumbs{
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px 2px;
}
.carousel-thumb{
  width: 76px; height: 58px;
  object-fit: cover;
  border-radius: 8px;
  opacity: .6;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: opacity .2s, outline-color .2s, transform .12s;
}
.carousel-thumb:hover{ opacity: .85; transform: translateY(-1px); }
.carousel-thumb.active{
  opacity: 1;
  outline-color: #00b4ff;
}

/* ====== ESTADO SIN IMÁGENES ====== */
.carousel-empty{
  width: 100%;
  height: 180px; /* Altura fija para todas las imágenes y el placeholder */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #f8f8f8;
}

/* ====== DETALLES ====== */
.mcl-modal .product-nombre{ font-size: 3rem; }
.mcl-modal .divPrecio-modal{
  font-weight: 700;
  font-size: 3rem;
  margin-top: 8px;
}

/* Botón WhatsApp en la card */
.wpp-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  gap: 8px;
  background: var(--color-bg);
  color: #fff !important;
  border: none;
  border-radius: 5px;
  width: 50px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  margin-left: 2px;
}
.wpp-contact-btn i {
  font-size: 2.2rem;
}
.wpp-contact-btn:hover, .wpp-contact-btn-modal:hover {
  background: #43b66c;
  color: #fff !important;
  transform: scale(1.05);
}

.wpp-contact-btn-modal{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff !important;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  margin-left: 2px;
  font-size: 0.9rem;
  text-align: center;
  width: 90%;
}

.modal-buttons{
  text-align: center;
}

/* Cards del index.html */
/* Featured grid para index */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr; /* Menos ancho a la grande, más a las chicas */
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 40px auto;
}

.featured-card {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36, 36, 36, 0.411) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  opacity: 0;
  transform: translateX(-50px);
  animation: none;
}
.featured-card.show { opacity: 1; transform: none; transition: all 0.6s; }

.featured-card .card-img-wrap {
  width: 100%;
  height: 800px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 
.featured-card .card-body {
  padding: 22px 28px 18px 28px;
  color: var(--color-black);
}

.featured-card .card-body b{
  font-weight: bold !important;
  font-size: 1.8rem;
  color: #444;
}

.featured-card .card-body p{
  font-weight: 500;
  font-size: 1.8rem;
  color: #444;
}

.featured-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.featured-card .card-precio {
  font-size: 2.5rem;
  color: var(--color-black);
  font-weight: bold;
  margin: 10px 0 0 0;
  text-align: center;
}




/* Mini cards */
.mini-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(36, 36, 36, 0.411) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  opacity: 0;
  transform: translateY(50px);
  animation: none;
  cursor: pointer;
}
.mini-card.show { opacity: 1; transform: none; transition: all 0.6s; }

.mini-card .card-img-wrap {
  width: 100%;
  height: 350px !important;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card .card-body {
  padding: 14px 16px 10px 16px;
  color: var(--color-black);
}
.mini-card h3 {
  font-size: 2rem !important;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.mini-card .card-body p b{
  font-size: 1.4rem;
  font-weight: bold;
  color: #444 !important;
}
.mini-card .card-body p{
  font-weight: 500;
  font-size: 1.4rem;
}

.mini-card .card-precio {
  font-size: 1.1rem;
  color: var(--color-black);
  font-weight: bold;
  margin: 8px 0 0 0;
  text-align: center;
  font-size: 1.8rem;
}


/* Responsive */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    margin-left: 30px;
    margin-right: 30px;
  }
  .featured-card {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
  }

  .featured-card .card-img-wrap   {
    height: 450px !important;
  }
  .mini-card:nth-child(2) { grid-row: 1; grid-column: 2; }
  .mini-card:nth-child(3) { grid-row: 2; grid-column: 2; }
  .mini-card:nth-child(4) { grid-row: 3; grid-column: 1; }
  .mini-card:nth-child(5) { grid-row: 3; grid-column: 2; }
  .mini-card .card-img-wrap {
  cursor: pointer;
  width: 100%;
  height: 450px !important;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  }
  .featured-card .card-body {
  padding: 22px 28px 18px 28px;
  color: var(--color-black);
}

.featured-card .card-body b{
  font-size: 1.4rem;
}

.featured-card .card-body p{
  font-size: 1.4rem;
}

.featured-card h3 {
  font-size: 2rem;
}
.featured-card .card-precio {
  font-size: 1.8rem;;
}

}
@media (max-width: 600px) {
  .featured-grid {
    display: flex;
    flex-direction: column;
  }
  .featured-card, .mini-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .featured-card .card-img-wrap { height: 180px; }
  .mini-card .card-img-wrap { height: 100px; }
}


/* -------- Pantallas para manipular el catalogo (admin) -------- */

.swal2-input-label{
  font-size: 1.5rem !important;
}

.swal2-input::placeholder {
  color: #333; /* Más oscuro */
  opacity: 1;  /* Asegura que se vea igual en todos los navegadores */
  font-weight: 500; /* Opcional, si lo querés más marcado */
}

#mcl-images-preview, #mcl-images-preview-new{
  gap: 25px !important;
}

.swal2-popup{
  width: 90%;
}

@media (min-width: 768px) {
  .swal2-popup{
    width: 50%;
  }
   
}
.swal2-input{
  width: 90%;
  border: var(--color-bg) 1.5px solid !important;
}



#mcl-description, #mcl-description-edit{
  width: 90%;
  height: 200px;
  padding: 8px;
  font-size: 1.4rem;
}

.swal2-html-container{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}



.swal2-styled{
  font-size: 1.4rem !important;
  padding: 8px 24px !important;
  border-radius: 8px !important;
}



/* FILTROS */
.categorias-contenedor,
.marcas-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 14px 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, #b30c23 100%);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(44,44,44,0.10);
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.categorias-contenedor {
  border-radius: 8px; /* o el valor que prefieras */
  margin-bottom: 0px !important;
}

.marcas-contenedor {
  background: linear-gradient(90deg, #a8081d 0%, #920417 100%);
  margin-top: 0;
  border-radius: 0 0 8px 8px;
}

.categoria-btn,
.marca-btn {
  background: rgba(255,255,255,0.92);
  color: #b91127;
  border: 2px solid #fff;
  border-radius: 8px !important;
  padding: 8px 28px;
  font-size: 1.08rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: 
    background 0.18s, 
    color 0.18s, 
    border-color 0.18s, 
    box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(44,44,44,0.06);
  outline: none;
  letter-spacing: 0.5px;
}

.categoria-btn.selected,
.marca-btn.selected {
  background: var(--color-black);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(185,17,39,0.13);
}

.marca-btn.selected{
    border: none;
}

.categoria-btn:hover,
.marca-btn:hover {
  background: var(--color-black);
  color: #fff;
  border-color: #7a0515;
}



@media (max-width: 600px) {
  .categorias-contenedor,
  .marcas-contenedor {
    gap: 7px;
    padding: 7px 0;
  }
  .categoria-btn,
  .marca-btn {
    font-size: 0.98rem;
    padding: 7px 14px;
  }
}

.categorias-contenedor.sin-radius-abajo {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Scroll para descripciones largas en mobile */
@media (max-width: 768px) {
  .producto_descripcion_modal {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    /* Estilo del scrollbar para mejor apariencia */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
  }
  
  /* Para navegadores WebKit (Chrome, Safari) */
  .producto_descripcion_modal::-webkit-scrollbar {
    width: 6px;
  }
  
  .producto_descripcion_modal::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .producto_descripcion_modal::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
  }
  
  .producto_descripcion_modal::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.7);
  }
}