/* ═══════════════════════════════════════════════════════════════
   CUSTOM FRONTEND — Sistema de Ventas Mayorista
═══════════════════════════════════════════════════════════════ */

/* ─── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.contenedor-principal {
  /*max-width: 1320px;*/
}

/* ─── Marquesina ────────────────────────────────────────────── */
.top-bar {
  background-color: #222222;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll var(--marquee-vel, 20s) linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ─── Header ────────────────────────────────────────────────── */
.header-principal {
  background-color: white;
  box-shadow: 2px 2px 2px #ddd;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.header-icon-link {
  color: #825847;
  text-decoration: none;
}
.header-icon-link:hover {
  color: #d8127d;
}


.logotipo-img {
  width: 100%;
  max-width: 150px;
}

/* ─── Campo de búsqueda ─────────────────────────────────────── */
.campo-busqueda {
  border-radius: 4px;
  padding: 0.6rem 1rem;
  border: solid 1px;
  font-weight: 500;
  color: #999;
}

/* ─── Menú de navegación ────────────────────────────────────── */
.custom-nav-link {
  color: #825847 !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 2rem 1em !important;
}

.custom-nav-link:hover {
  color: #cccccc !important;
}

.nav-item-separated {
  border-right: 1px solid #777;
  display: flex;
  align-items: center;
}

.nav-item-separated:last-child {
  border-right: none;
}

/* Desktop */
@media (min-width: 992px) {
  .custom-nav-link {
    padding: 1rem 2rem 1rem 2rem!important;
  }
  .nav-item-separated {
    border-right: 1px solid #777;
    display: flex;
    align-items: center;
  }
  .nav-item-separated:last-child {
    border-right: none;
  }
}

/* Mobile */
@media (max-width: 991px) {
  .custom-nav-link {
    padding: 1rem 0 !important;
  }
  .nav-item-separated {
    border-bottom: 1px solid #444444;
    width: 100%;
    background-color: #FFF;
  }
  .nav-item-separated:last-child {
    border-bottom: none;
  }
  .mobile-menu-container {
    background-color: #545454;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 0.3rem 0;
  }
  .top-bar {
    font-size: 0.75rem;
    padding: 0.5rem 1rem !important;
  }
  .navbar{
    min-height: auto!important;
    margin-bottom: auto!important;
  }
}

/* ─── Producto: carrito inline ──────────────────────────────── */
.carrito-single-contenedor {
  background-color: #f4f5f5;
  max-width: 450px;
  border-radius: 8px;
}

.carrito-single-contenedor span {
  font-size: 0.8em;
}

.carrito-single-selector-color {
  width: 35px;
  height: 35px;
  background-color: #d89b6b;
}

.carrito-single-btn-carrito {
  background-color: #018305;
  font-size: 0.8em;
  border: none;
}

.carrito-single-btn-carrito:hover {
  background-color: #13ca19;
}

.control-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#boton-sumar-single,
#boton-restar-single {
  font-size: 1.5em;
}

/* ─── Sección demo (wrapper swiper y galería) ───────────────── */
.demo-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   SLIDER PRINCIPAL DEL PRODUCTO (#s2)
═══════════════════════════════════════════════════════════════ */
#s2 .product-viewer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

#s2 .swiper-main {
  flex: 1 1 340px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

#s2 .swiper-main .swiper-slide {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

#s2 .swiper-main .swiper-slide img {
  width: 100%;
  aspect-ratio: 1/1.3;
  object-fit: contain;
  background: #f8fafc;
  display: block;
  transition: transform .3s;
}

#s2 .swiper-main .swiper-slide:hover img {
  transform: scale(1.07);
}

#s2 .swiper-main .swiper-slide .s2-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 18, 125, .25);
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

#s2 .swiper-main .swiper-slide:hover .s2-zoom-icon {
  opacity: 1;
}

#s2 .swiper-thumbs {
  flex: 0 0 100%;
  margin-top: .5rem;
}

#s2 .swiper-thumbs .swiper-slide {
  width: 70px !important;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}

#s2 .swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #d8127d;
}

#s2 .swiper-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   GALERÍA GRID CON LIGHTBOX (#s5)
═══════════════════════════════════════════════════════════════ */
#s5 .grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

#s5 .grid-gallery .thumb {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1/1.3;
}

#s5 .grid-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

#s5 .grid-gallery .thumb:hover img {
  transform: scale(1.07);
}

#s5 .grid-gallery .thumb .zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 18, 125, .35);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity .25s;
}

#s5 .grid-gallery .thumb:hover .zoom-icon {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

#lightbox .lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}

#lightbox .lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

#lightbox .lb-nav:hover {
  background: rgba(255, 255, 255, .35);
}

#lightbox .lb-prev { left: -52px; }
#lightbox .lb-next { right: -52px; }

/* ─── Swiper: navegación y paginación ───────────────────────── */
.swiper-button-next,
.swiper-button-prev {
  --swiper-navigation-color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.swiper-pagination-bullet-active {
  background: #d8127d !important;
}

/* ═══════════════════════════════════════════════════════════════
   MENÚ: categoría activa
═══════════════════════════════════════════════════════════════ */
.custom-nav-link.active-cat {
  color: #ff5a98 !important;
  border-bottom: 2px solid #ff5a98;
}

/* ═══════════════════════════════════════════════════════════════
   MENÚ: dropdown de categorías (rubros / subrubros)
═══════════════════════════════════════════════════════════════ */
.nav-cat-dropdown {
  position: static !important; /* para que el panel ocupe el ancho del header */
}

#menu-principal {
  position: relative;
}

.cat-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1050;
  background: #1e1e2e;
  border-top: 2px solid #d8127d;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  padding: 1.25rem 1.5rem;
}

.cat-dropdown-panel.open {
  display: block;
}

.cat-dropdown-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.cat-dropdown-col {
  min-width: 140px;
}

.cat-dropdown-rubro {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #444;
  transition: color .2s;
}

.cat-dropdown-rubro:hover {
  color: #d8127d;
}

.cat-dropdown-subs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-dropdown-subs li a {
  display: block;
  color: #cccccc;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.18rem 0;
  transition: color .2s;
}

.cat-dropdown-subs li a:hover {
  color: #00e5ff;
}

/* Mobile: panel en flujo normal */
@media (max-width: 991px) {
  .cat-dropdown-panel {
    position: static;
    border-top: none;
    border-left: 3px solid #d8127d;
    box-shadow: none;
    background: #2a2a2a;
    padding: 0.75rem 1rem;
    margin: 0 0 0.5rem 0;
  }
  .cat-dropdown-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CATÁLOGO DE PRODUCTOS (inicio.php)
═══════════════════════════════════════════════════════════════ */
.tienda-cat-titulo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d8127d;
  text-transform: uppercase;
  border-left: 5px solid #d8127d;
  padding-left: 14px;
}

.tienda-sin-productos {
  text-align: center;
  color: #888;
  padding: 60px 20px;
  font-size: 1.1rem;
}

/* Tarjeta de producto */
.tienda-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}

.tienda-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.tienda-card-img-link {
  display: block;
  overflow: hidden;
  padding: 8px;
  background-color: #f7f8f8;
  max-height: 516px;
}

.tienda-card-img {
  width: 100%;
  aspect-ratio: 1/1.3;
  object-fit: cover;
  max-height: 500px;
  background-color: #f7f8f8;
  transition: transform .3s;
}

.tienda-card:hover .tienda-card-img {
  transform: scale(1.05);
}

.tienda-card-noimg {
  width: 100%;
  aspect-ratio: 1/1.3;
  background: #f4f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 3rem;
}

.tienda-card-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1e1e;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tienda-card-detalle {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tienda-card-precio {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8127d;
}

.tienda-card-precio-iva {
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
  margin-left: 4px;
}

.tienda-card-btn {
  background-color: #d8127d;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  transition: background-color .2s;
}

.tienda-card-btn:hover {
  background-color: #b00e68;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING (index.php)
═══════════════════════════════════════════════════════════════ */
.landing-row {
  margin: 0;
  padding: 0;
  /*padding-top: 3rem;*/
  width: 100%;
}

.landing-col {
  margin-bottom: 1rem;
}

.banners {
  margin-bottom: 1rem;
}

@media screen and (max-width: 575px) {
  .banners {
    margin: 10px;
  }
}

.landing-empty-item {
  min-height: 80px;
}

.landing-image-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.landing-image-item {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.landing-html-item {
  width: 100%;
}

.landing-empty-state {
  text-align: center;
  color: #7a7a7a;
  border: 1px dashed #d0d5dd;
  border-radius: 10px;
  padding: 18px;
  margin: 12px 0 24px;
  background: #fafafa;
}

.landing-footer-superior {
  border-top: 1px solid #e5e7eb;
  background: #f7f8fa;
  margin-top: 20px;
}

.landing-preview-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c8d7ff;
  background: #edf3ff;
  color: #1f3b75;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.landing-footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.landing-footer-html,
.landing-footer-col {
  color: #4b5563;
  font-size: 0.95rem;
}

/* ─── Galería de productos en publicidades ───────────────────── */
.pub-galeria-card { overflow: hidden; }
.pub-galeria-card h5 { color: #1e1e1e; font-size: 0.9rem; }
.pub-galeria-precio { display: block; text-align: center; font-size: 1.2em; font-weight: 700; color: #1e1e1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 2px 0; max-width: 100%; }
.pub-galeria-comprar { display: block; text-align: center; font-size: 0.65rem; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: 0.3px; padding: 0 2px 2px; }
.pub-galeria-swiper { width: 100%; overflow: hidden; padding-bottom: 8px; }
.pub-galeria-swiper .swiper-slide { width: 140px;height: 180px;border-radius: 8px;/* overflow: hidden; */flex-shrink: 0;border: solid 1px #c1c1c1;}
.pub-galeria-swiper .swiper-slide a { display: flex; flex-direction: column; width: 100%; height: 100%;text-decoration: none; }
.pub-galeria-swiper .swiper-slide img { width: 100%; height: calc(100% - 38px); object-fit: cover; transition: transform 0.25s ease; display: block; flex-shrink: 0; }
.pub-galeria-swiper .swiper-slide:hover img { transform: scale(1.07); }
.pub-galeria-swiper .swiper-button-next,
.pub-galeria-swiper .swiper-button-prev { color: #fff; background: rgba(0,0,0,.35); width: 28px; height: 28px; border-radius: 50%; }
.pub-galeria-swiper .swiper-button-next::after,
.pub-galeria-swiper .swiper-button-prev::after { font-size: 12px; }
.pub-galeria-empty { display: flex; align-items: center; justify-content: center; color: #718096; font-size: 0.85rem; }

.landing-footer-col a {
  color: #4b5563;
  text-decoration: none;
}

.landing-footer-col a:hover {
  color: #111827;
  text-decoration: underline;
}
.div.swiper-slide{overflow: visible!important;}
/*OVERRIDES*/
.pub-galeria-precio{overflow: visible;font-size: 1.2em;}
.pub-galeria-comprar{font-size: 0.8em;background-color: #d8127d;color: white;padding: 7px;width: 90%;border-radius: 7px;}
.pub-galeria-swiper .swiper-slide{height: auto;}
.pub-galeria-swiper .swiper-slide a {display: flex;flex-direction: column;align-items: center;height: 100%;}
.pub-galeria-swiper .swiper-slide a img {width: 100%;height: 200px;object-fit: cover;display: block;border-radius: 7px 7px 0px 0px;}
.pub-galeria-titulo{font-size: 0.8em;text-align: center;font-weight: 600;text-transform: uppercase;line-height: 0.9em;color: #825847;}
.pub-galeria-nombre{display:block;text-align:center;font-size:0.72em;font-weight:600;color:#1e1e1e;line-height:1.2;padding:2px 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.pub-galeria-codigo{display:block;text-align:center;font-size:0.65em;color:#6c757d;padding:0 4px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
        .pub-galeria-swiper .swiper-slide a .pub-galeria-precio,
        .pub-galeria-swiper .swiper-slide a .pub-galeria-comprar {
            display: block;
            text-align: center;
            flex-shrink: 0;
          }

/* ═══════════════════════════════════════════════════════════════
   ICONOS DESTACADOS
═══════════════════════════════════════════════════════════════ */
.icono-destacado {
  text-align: center;
  border-right: 2px solid #CCC;
  padding: 20px;
}

.icono-destacado:last-child {
  border-right: 0px solid;
}

.icono-destacado img {
  width: 80px;
  margin: 30px;
}

.icono-destacado h5 {
  text-transform: uppercase;
  font-family: 'Inria Sans';
  font-weight: 700;
  font-size: 1em;
}

.icono-destacado p {
  font-family: 'Inria Sans';
  font-size: 0.8em;
}

@media screen and (max-width: 575px) {
  .icono-destacado {
    border-bottom: 2px solid #CCC;
    border-right: 0px;
    padding: 20px;
  }
  .icono-destacado:last-child {
    border-bottom: 0px;
    border-right: 0px;
    padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER PERSONALIZADO
═══════════════════════════════════════════════════════════════ */
.custom-footer {
  background-image: linear-gradient(rgb(24, 24, 24), rgb(59, 59, 59));
  color: white;
}

.custom-footer a,
.custom-footer p,
.custom-footer .nav-link {
  color: white !important;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER: usuario/login
═══════════════════════════════════════════════════════════════ */
.header-user-btn {
  transition: opacity .2s;
}

.header-user-btn:hover {
  opacity: .85;
}

.header-user-name {
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-dropdown {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  min-width: 200px;
  padding: 8px 0;
}

.header-user-dropdown .dropdown-item {
  font-size: 0.88rem;
  padding: 8px 16px;
}

.header-user-dropdown .dropdown-item:hover {
  background-color: #f3f4f6;
}

.header-user-dropdown .dropdown-item-text {
  font-size: 0.88rem;
  color: #374151;
}

/*SELECTORES CUSTOM*/
body > div > div.row.contenedor-principal > div{
margin: 0!important;
}

body > div > div.row.contenedor-principal > div > div:nth-child(1) > div{
padding: 0!important;
}

body > div > div.row.contenedor-principal.mx-auto > div{
padding: 0px;
}

body > div > div.row.contenedor-principal > div > div:nth-child(1) > div > img{
  padding: 10px;
  border-radius: 25px;
}
body > div.container-fluid.p-0.m-0 > div.row.justify-content-center.py-4.container.mx-auto > div > div.col-12.col-md-7.col-lg-8 > div:nth-child(2) > div > div > div span{
font-size: 0.8em;
font-weight: bold;
}
#favoritos-lista > div > div > div > p.text-muted.small.mb-3, body > div.container-fluid.p-0.m-0 > div.row.justify-content-center.py-4.container.mx-auto > div > div.col-12.col-md-7.col-lg-8 > div:nth-child(2) > div > div > div > div.row.mb-2.px-2.text-dark.fs-5 > div.col-2.col-md-3.text-center > span{
  visibility: hidden;
  display: none;
}

/* Breadcrumbs */ 
nav > ol > li > a{
    color: rgb(216 18 125);
    text-decoration: none;
    font-weight: bold;
}
nav > ol > li{
padding: 5px;
}
body > div > div.row.contenedor-principal.container-fluid.mx-auto > div > div:nth-child(2), body > div > div.row.contenedor-principal.container-fluid.mx-auto > div > div:nth-child(3){
  padding: 0px!important;
}
/*Carousel*/
.carousel{
  min-height: 150px!important;
  height: auto !important;
  margin-bottom: 15px !important;
}
.carousel-item img{
  object-fit: cover!important;
  height: auto!important;
}
/* ═══════════════════════════════════════════════════════════════
   COMPRA RÁPIDA (tienda.php)
═══════════════════════════════════════════════════════════════ */
.qb-zone { border-top: 1px solid #f0f0f0; padding-top: 8px; }
.qb-thumbs { max-height: 90px; overflow-y: auto; }
.qb-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .12s;
  flex-shrink: 0;
}
.qb-thumb:hover { border-color: #198754; transform: scale(1.08); }
.qb-thumb--active { border-color: #198754 !important; box-shadow: 0 0 0 3px rgba(25,135,84,.2); }
.qb-qty-group .form-control { font-size: .85rem; padding: 2px 4px; }
.qb-add-btn { font-size: .82rem; white-space: nowrap; }
.qb-add-btn:active { opacity: .75; }

/* Toast de Compra Rápida */
.qb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #198754;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  z-index: 9999;
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  white-space: nowrap;
}
.qb-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.qb-toast--error { background: #dc3545; }