* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body{
  height: 100%; /* ⚡ clave para que 100vh funcione correctamente */
}

/* Empuje del contenido para que no quede tapado */
body{
  margin: 0;
  height: 100vh;
  /*min-height: 100vh;*/
  display: flex;
  flex-direction: column;

  font-family: var(--font-ample);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--gray-light-color);
}

/* Footer abajo siempre */
footer.footer-main{
  margin-top: auto;
}

/* ===========================
   FLOATING ACTION BUTTONS
   =========================== */
.btn-whatsapp,
.btn-scroll-top{
  position: fixed;
  right: var(--fab-right);
  z-index: 9999;                /* arriba del resto */
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .2s ease, opacity .2s ease;
}

/* WhatsApp (abajo) */
.btn-whatsapp{
  bottom: var(--fab-wa-bottom);
  background-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover{ background-color: #1ebe5d; }

/* ScrollTop (arriba del WhatsApp) */
.btn-scroll-top{
  bottom: calc(var(--fab-wa-bottom) + var(--fab-size) + var(--fab-gap));
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid #ccc;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.btn-scroll-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-scroll-top:hover{ background-color: var(--secondary-color); }

/* ===========================
   BOTTOM NAV (mobile)
   =========================== */
.bottom-nav{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--dark-color);
  border-top: 1px solid #ddd;
  display: none; /* se mostrará solo en mobile */
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.bottom-item {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: rgb(132, 132, 132);	
  background: none;
  border: none;
  outline: none;
}

.bottom-item i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 3px;
}

.bottom-item.active,
.bottom-item:hover {
  color: var(--primary-color);
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Popup sin espacio extra */
.vm-msg-alert {
  padding: 0 !important;
  background: transparent;   /* si querés que no tenga fondo blanco fuera de la imagen */
  border-radius: 12px;
  overflow: hidden;
}

/* La imagen ocupa todo el ancho del popup */
.vm-msg-alert-img {
  margin: 0 !important;
  width: 100%;
  height: auto;
}

/* Botón X arriba a la derecha */
.vm-msg-alert-close {
  position: absolute !important;
  top: 8px;
  right: 8px;
  color: #ffffff !important;
  font-size: 1.6rem !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

/* ===========================
   LOADER GLOBAL (FULLSCREEN)
   =========================== */
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
}

.page-loader__box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.page-loader__text{ font-size:14px; opacity:.7; }

.loader-logo{
  position: relative;
  width: 40px;
  height: 40px;
}

.loader-logo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* ✅ Ajuste fino de la LLAVE dentro de la TUERCA */
.loader-key{
  left: 50%;
  top: 50%;
  width: 50%;
  height: 50%;
  object-fit: contain;

  transform: translate(-0%, -0%) scale(.43); /* ⬅️ más chica */
  inset: auto !important;
}

.loader-gear{
  animation: loader-rotate 1.05s linear infinite;
  transform-origin: 50% 50%;
}


@keyframes loader-rotate{ to { transform: rotate(360deg); } }

.app-wrapper{
  flex: 1 1 auto;             /* ocupa todo el alto disponible */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* El main siempre ocupa el espacio restante */
.site-main{
  min-height: calc(100vh - var(--header-total-h));
}

/* el footer queda abajo dentro del wrapper */
.app-wrapper > footer.footer-main{
  margin-top: auto;
}

/* Popup más controlable */
.byc-swal-popup{
  max-width: 980px;
  border-radius: 14px;
  overflow: hidden;
}

/* Layout principal */
.byc-gallery{
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 60vh;
  max-height: 80vh;          /* clave: no crecer infinito */
}

/* Columna imágenes */
.byc-gallery-left{
  flex: 1 1 58%;
  background: #fff;
  padding: 14px;
}

/* Columna atributos */
.byc-gallery-right{
  flex: 1 1 42%;
  background: #fff;
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  min-width: 280px;
}

.byc-gallery-title{
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px 0;
}

/* Scroll SOLO en atributos */
.byc-gallery-attrs{
  overflow: auto;
  padding-right: 10px;
  border-left: 1px solid #eee;
  padding-left: 14px;
  flex: 1 1 auto;
}

/* Slick imagen */
#swal-slick img{
  width: 100%;
  height: 62vh;             /* se controla en desktop */
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

/* Lista atributos (bullets alineados, wrap prolijo) */
.byc-swal-popup .attr-list{
  list-style: none;      /* quitamos bullet nativo */
  margin: 0;
  padding: 0;
}

.byc-swal-popup .attr-list li{
  position: relative;
  padding-left: 18px;    /* columna fija para el punto */
  margin: 6px 0;
  line-height: 1.35;
}

.byc-swal-popup .attr-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.35;
}
.attr-empty{
  opacity: .75;
}
.no-img{
  padding: 24px;
  opacity: .7;
}

/* ✅ Forzar alineación izquierda en atributos (pisar estilos globales) */
.byc-swal-popup .byc-gallery-right,
.byc-swal-popup .byc-gallery-attrs{
  text-align: left !important;
}

/* ✅ Lista: bullets alineados y texto SIEMPRE desde la misma columna */
.byc-swal-popup .attr-list{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.byc-swal-popup .attr-list li{
  display: block !important;
  position: relative !important;
  padding-left: 18px !important;
  margin: 6px 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: normal !important;
}

.byc-swal-popup .attr-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.35;
}

/* ======= MÓVIL: apilar ======= */
@media (max-width: 768px){
  .byc-gallery{
    flex-direction: column;
    min-height: auto;
    max-height: 85vh;
  }
  .byc-gallery-left{
    padding: 10px;
  }
  #swal-slick img{
    height: 42vh;           /* imagen arriba */
    max-height: 45vh;
  }
  .byc-gallery-right{
    padding: 10px;
    min-width: auto;
  }
  .byc-gallery-attrs{
    border-left: 0;
    padding-left: 0;
    max-height: 32vh;       /* atributos abajo con scroll */
  }
}
