/* style_tienda.css — versión con correcciones: hero centrado + toast notifications + miniaturas */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@300;400;600&display=swap');

:root{
  --primary: var(--color-primary);
  --muted: #f3f6fb;
  --accent: var(--color-accent);
  --dark: #222;
  --card-radius: 12px;
  --card-min-height: 200px;
  --thumb-height: 130px;
  --card-max-width: 260px;
  --title-color: #172554;
  --desc-color: #374151;
  --price-color: #0d61d6;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  font-family: 'Inter', sans-serif;
  background: var(--muted);
  color: var(--dark);
  margin:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Container general max width */
.site-header, .container { max-width:1200px; margin:0 auto; padding:0 16px; }

.hero {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  min-height: 260px;
  display: block;
}

/* separación diferenciada por tamaño */
@media (min-width: 769px) {
  .hero { margin-top: 0; }
}
@media (max-width: 768px) {
  .hero { margin-top: 12px; }
}

.hero-img{ width:100%; height:340px; object-fit:cover; display:block; filter:brightness(0.62); }
/* overlay centrado con suficiente padding para que el CTA no se esconda */
.hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;    /* siempre centro vertical */
  align-items:center;
  color:#fff;
  text-align:center;
  padding:28px 18px;         /* mayor padding para que el CTA quede dentro */
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.32) 60%, rgba(0,0,0,0.18) 100%);
  box-sizing:border-box;
}
.hero-logo{ width:120px; height:120px; border-radius:50%; background: rgba(255,255,255,0.96); padding:8px; box-shadow:0 6px 18px rgba(0,0,0,0.12); margin-bottom:10px; }
/* Por defecto usa Montserrat pero forzamos color blanco abajo para evitar que otro CSS lo pise */
.hero-title{ font-family:'Montserrat',sans-serif; font-size:36px; margin:6px 0; letter-spacing:0.6px; color:var(--title-color); }
.hero-sub{ margin:6px 0 12px; font-size:14px; color:rgba(255,255,255,0.9); }
.hero-cta{
  background:var(--primary);
  padding:10px 18px;
  border-radius:8px;
  color:#fff;
  text-decoration:none;
  border:none;
  cursor:pointer;
  margin-top:8px;
  z-index:5;
  box-shadow:0 6px 18px rgba(23,115,255,0.12);
}
.hero-cta:hover{ background:#0f62d6; }

/* FILTROS */
.filtros-barra{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:center; margin-bottom:10px; padding:6px 0;}
.filtros-barra select{ padding:8px 10px; border-radius:8px; border:1px solid #e6e9ee; background:#fff; min-width:130px; font-size:0.95rem; }

/* BOTONES */
.btn-add{ background:var(--primary); color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:700; display:inline-flex; align-items:center; gap:8px; }
.btn-add.alt{ background:#6c757d; }
.btn-add:hover{ opacity:0.95; }
/* Botón Finalizar Compra en modal */
#modal-carrito .btn-add.confirm {
  display: block;           /* para que tome todo el ancho disponible del contenido */
  margin: 20px auto 0 auto; /* margen superior para separarlo del formulario, centrado horizontal */
  text-align: center;       /* aseguramos que el texto del botón quede centrado */
  padding: 10px 25px;       /* opcional: más grande para mejor visual */
  font-size: 16px;          /* opcional: más legible */
}


/* GRID productos */
.container{ padding-bottom:36px; }
.lista-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
  justify-content:center;
}

/* Card */
.card {
  background:#fff;
  border-radius:var(--card-radius);
  overflow:hidden;
  box-shadow: 0 6px 16px rgba(16,24,40,0.06);
  display:flex;
  flex-direction:column;
  padding:10px;
  transition: transform .16s ease, box-shadow .16s ease;
  min-height: var(--card-min-height);
  max-width: var(--card-max-width);
  width:100%;
}
.card:hover{ box-shadow: 0 14px 32px rgba(16,24,40,0.13); }

/* Thumb: proporción 3:4 fija, cover */
.card .thumb { width:100%; aspect-ratio:3/4; height:auto; background:#fafbfd; border-radius:8px; overflow:hidden; margin-bottom:10px; position:relative; flex-shrink:0; }
.card .thumb img{ width:100%; height:100%; object-fit:contain; display:block; }

/* Meta */
.card h3{ margin:4px 0 6px; font-family:'Montserrat',sans-serif; font-size:14px; color:var(--title-color); line-height:1.12; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card .desc{ font-size:0.9rem; color:var(--desc-color); margin-bottom:6px; min-height:36px; overflow:hidden; text-overflow:ellipsis; }
.card .price{ font-weight:700; color:var(--price-color); font-size:16px; margin-bottom:6px; }

/* miniature grid inside card (small gallery) */
.card .imagenes-grid{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }

/* actions - allow wrapping so buttons don't get cut */
.card .actions{ margin-top:auto; display:flex; gap:8px; align-items:center; justify-content:center; flex-wrap:wrap; }
.card .actions .ver-detalle{
  background:transparent; border:1px solid var(--primary); color:var(--primary); padding:8px 10px; border-radius:8px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:8px; white-space:nowrap; min-height:44px;
}
.card .actions .add-cart{
  background:var(--primary); color:#fff; padding:8px 12px; border-radius:8px; border:none; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:8px; min-height:44px;
}

/* status */
.status{ margin:8px 0; }
.status span{ margin-right:8px; font-size:0.88rem; }
.activo{ color:#16a34a; } .inactivo{ color:var(--color-danger); } .oferta{ color:var(--color-accent); }

/* ---- Modal detalle ---- */
.modal{ position:fixed; inset:0; background:rgba(0,0,0,0.55); display:flex; align-items:center; justify-content:center; z-index:1200; padding:20px; overflow-x:hidden; }
.modal.hidden{ display:none; }

/* modal container */
.modal-content{
  width:95%;
  max-width:900px;
  max-height:90vh;
  overflow:auto;
  border-radius:14px;
  background:#fff;
  padding:16px;
  box-shadow:0 20px 50px rgba(0,0,0,0.28);
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:24px;
  align-items:start;
  position:relative;
  transition: transform .18s ease, opacity .18s ease;
}

/* close buttons */
/* Botón cerrar (modales de producto — posición absoluta) */
.modal-content .close {
  position: absolute;
  right: 10px;
  top: 6px;
  border-radius: 50%;
  border: none;
  background-color: #dc1818;
  font-size: 28px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

/* Header del modal carrito: título izq + X der en misma fila */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Botón cerrar del carrito — en flujo normal dentro del header flex */
.modal-content .close-carrito {
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background-color: #dc1818;
  font-size: 22px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}

/* image: large and centered */
.galeria-imagenes{ min-width:0; }
.image-container{ width:100%; height:380px; background:#fafbfd; border-radius:10px; display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid #f0f2f5; }
.image-container img{ max-width:100%; max-height:100%; object-fit:contain; }

/* MINIATURAS: scroll horizontal (no wrap) */
.miniaturas{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:8px;
  align-items:center;
  white-space:nowrap;
}
.miniaturas::-webkit-scrollbar{ height:8px; }
.miniaturas::-webkit-scrollbar-thumb{ background:rgba(0,0,0,0.08); border-radius:8px; }
.miniaturas img{ display:inline-block; width:64px; height:64px; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid transparent; transition: border-color .12s, transform .08s; }
.miniaturas img:hover{ transform:translateY(-3px); }
.miniaturas img.selected{ border-color: var(--color-primary); outline: 2px solid rgba(23,115,255,0.06); }

/* COLUMNA DERECHA (texto, precio, acciones) */
.detalle-texto{ display:flex; flex-direction:column; gap:12px; padding:8px; }
.detalle-texto h2{ margin:0; font-family:'Montserrat', sans-serif; font-size:20px; font-weight:700; color:var(--title-color); letter-spacing:0.2px; }
.detalle-texto .sub{ color:#556; font-size:0.95rem; margin-bottom:8px; font-family:'Inter',sans-serif; }

/* Precio destacado */
.detalle-texto .price { display:inline-block; color:var(--price-color); font-weight:700; font-size:17px; padding:8px 12px; border-radius:8px; background: linear-gradient(90deg, rgba(23,115,255,0.05), rgba(23,115,255,0.02)); }

/* meta */
.detalle-texto .meta-list{ display:flex; flex-direction:column; gap:8px; color:#334154; }
.detalle-texto .meta-list b{ color:#0b2540; font-weight:700; }

/* actions inside modal */
.detalle-actions{ margin-top:12px; display:flex; gap:12px; }
.detalle-actions .btn-add{ background:var(--primary); color:#fff; padding:10px 16px; min-height:44px; border-radius:8px; border:none; cursor:pointer; font-weight:800; justify-content:center; }
.detalle-actions .btn-secondary{ background:#f1f5f9; color:#111827; padding:10px 16px; min-height:44px; border-radius:8px; border:none; cursor:pointer; justify-content:center; }


/* === MODAL CARRITO === */
#modal-carrito .modal-content {
  max-width: 460px;
  width: 100%;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow-y: auto;
}

#carrito-items {
  flex: 1;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 8px;
}

/* === FOOTER DEL CARRITO === */
#carrito-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding: var(--space-md) 0 0;
  margin-top: var(--space-md);
  gap: var(--space-md);
  flex-shrink: 0;
}

#carrito-footer .total-wrapper {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

#carrito-footer .footer-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

#btn-clear-carrito {
  background: #f3f4f6;
  color: #111;
  border: 1px solid #e6e7ee;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
}

#btn-clear-carrito:hover {
  background: #e5e7eb;
}

#btn-ir-carrito {
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  transition: background 0.3s ease;
}

#btn-ir-carrito:hover {
  background: #0d256d;
}

/* === MÓVIL — footer carrito === */
@media (max-width: 480px) {
  #carrito-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  #carrito-footer .footer-actions {
    justify-content: stretch;
  }

  #carrito-footer .footer-actions button {
    flex: 1;
  }
}





/* scrollbar carrito */
.carrito-items::-webkit-scrollbar{ width:10px; }
.carrito-items::-webkit-scrollbar-thumb{ background: rgba(16,24,40,0.06); border-radius:8px; }

/* TOAST (notificaciones) */
#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: rgba(23,115,255,0.98);
  box-shadow: 0 8px 22px rgba(16,24,40,0.12);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity .22s ease, transform .22s ease;
  font-weight: 600;
  display:flex;
  align-items:center;
  gap:10px;
}
.toast.show{ opacity: 1; transform: translateY(0) scale(1); }
.toast.visible { opacity: 1; transform: translateY(0) scale(1); }
.toast.success { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); }
.toast .icon { width:18px; height:18px; opacity:.95; }

/* responsive tweaks */
@media (max-width: 768px){
  .modal-content{ grid-template-columns:1fr; padding:16px; gap:16px; }
  .image-container{ height:320px; }
  .miniaturas img{ width:56px; height:56px; }
  :root{ --card-min-height: 0; }
  .carrito-items{ max-height: 44vh; }

  /* Modal detalle de producto: arranca debajo de la navbar fija
     (110px en mobile, ver body padding-top en style.css) para que
     no quede tapado, y se puede scrollear completo dentro del resto
     del viewport. */
  #modal-detalle{
    align-items: flex-start;
    padding-top: 122px;
    padding-bottom: 16px;
  }
  #modal-detalle .modal-content{
    max-height: calc(100vh - 138px);
  }
}



@media (max-width: 480px){
  .hero {
    margin-top: 12px;     /* menos separación en móvil */
    min-height: 300px;    /* más alto para que entre el botón */
  }

  .hero-img {
    height: 300px;
    object-fit: cover;
    filter: none; /* quita la franja gris en móvil */
  }

  /* 🔽 agregado: overlay más sutil en móvil */
  .hero-overlay {
    padding: 14px 12px;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.08) 60%,
      rgba(0,0,0,0.12) 100%
    );
    justify-content: center;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    padding:6px;
    margin-bottom:8px;
  }

  .hero-title { font-size: 20px; }
  .hero-sub   { font-size: 13px; margin-bottom:8px; }
  .hero-cta   { padding: 10px 14px; margin-top: 6px; }

  .lista-productos { grid-template-columns: repeat(2, 1fr); gap:12px; }
  .card h3{ font-size:13px; }
  .card .price{ font-size:15px; }
  .card{ min-height: 0; padding:8px; }
  .miniaturas{ gap:6px; justify-content:flex-start; }
  .card .actions { flex-direction: row; flex-wrap:wrap; gap:8px; justify-content:space-between; }
  .card .actions .ver-detalle, .card .actions .add-cart { flex: 1 1 48%; min-width: 44%; text-align:center; }
  .card .actions .ver-detalle { white-space:nowrap; }

  /* fuentes más pequeñas en carrito para que entren muchos items */
  .carrito-item .meta .nombre{ font-size:0.88rem; }
  .carrito-item .meta .precio{ font-size:0.86rem; }
  .carrito-item img{ width:48px; height:48px; flex:0 0 48px; }
  .carrito-items{ max-height: 40vh; }
}

/* Hero title — blanco sobre el overlay oscuro */
.hero-title,
.hero .hero-title {
  color: #fff !important;
}

/* Precio en oferta: rojo; precio original: tachado gris */
.precio-oferta {
  color: #dc2626;
  font-weight: 700;
  font-size: 16px;
}
.precio-normal {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 13px;
  margin-right: 4px;
}

/* Badge de oferta sobre la imagen */
.badge-oferta {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}


.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 8px;
}

.page-btn {
  border: 1px solid #ccc;
  background: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.page-btn:hover {
  background: #f0f0f0;
}

.page-btn.active {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: bold;
  background: #e6f0ff;
}


/* ---------- Carrito: control cantidad y boton eliminar ---------- */
/* Contenedor de cada item en carrito (asegurar flex) */
.carrito-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Info de imagen */
.carrito-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--color-bg);
  border-radius: 6px;
  flex: 0 0 auto;
}

/* Info textual ocupa el resto del espacio */
.carrito-item .info {
  flex: 1 1 auto;
  min-width: 0;
}

/* Actions (cantidad + eliminar) alineados a la derecha en escritorio */
.carrito-item .actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Contenedor de botones de cantidad: - 1 + */
.qty-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 2px;
  border-radius: 6px;
}

/* Botones - y + */
.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

#boton_banner_ptincipal{
  color: #fff;
  background: #ff0095;
}




/* Número central */
/* ---------- Cantidad + Eliminar (cart) ---------- */
.qty-value {
  width: 30px;
  text-align: center;
  font-weight: 600;
  display: inline-block;
}

/* Botón Eliminar */
/* Botón Eliminar */
.remove-btn {
  background: transparent;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
}

/* MOBILE */
@media (max-width: 480px) {
  .carrito-item {
    flex-direction: column;   /* apilar */
    align-items: center;      /* centrado */
    gap: 10px;
    width: 100%;
  }

  .carrito-item .actions {
    display: flex;
    flex-wrap: wrap;          /* que bajen de línea si hace falta */
    gap: 10px;
    width: 100%;              /* ocupan todo el ancho disponible */
    justify-content: center;  /* siempre centrados */
  }

  .carrito-item .actions button,
  .carrito-item .actions .remove-btn {
    flex: 0 1 auto;           /* no se estiran raro */
    min-width: 40px;          /* botón visible */
  }

  .qty-btn {
    width: 36px;
    height: 36px;
  }

  .qty-value {
    width: 30px;
    text-align: center;
    font-weight: 600;
  }
}


/* Filtros tipo chips (solo móvil) */
.filtros-chips {
  display: none; /* oculto en PC */
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  background: #f9f9f9;
}

.filtros-chips .chip {
  flex: 0 0 auto;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.filtros-chips .chip.active,
.filtros-chips .chip:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .filtros-barra {
    display: none; /* ocultar los selects en móvil */
  }
  .filtros-chips {
    display: flex; /* mostrar chips */
  }
  #logo_chiquito {
    margin-left: 50px;     /* mueve el logo un poco a la derecha */
  }
}

/* --- Carrusel de ofertas --- */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 20px auto;
}

.carousel-track {
  display: flex;
  gap: 12px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome */
}

.carousel-item {
  flex: 0 0 calc(20% - 12px); /* 5 items visibles (100%/5) */
  min-width: 180px; /* se ajusta si hay menos de 5 */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .3s;
  cursor: pointer;
}
.carousel-item:hover {
  transform: translateY(-4px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s;
}
.carousel-dots .dot.active {
  background: var(--color-primary);
}

/* === HERO CARRUSEL === */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;

  /* nuevo: degradado sutil en vez de bloque gris */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,    /* transparente arriba */
    rgba(0,0,0,0.25) 60%,  /* un poco oscuro en el medio */
    rgba(0,0,0,0.45) 100%  /* más oscuro abajo, para el botón */
  );
}




.hero-overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-overlay p { font-size: 1.1rem; margin-bottom: 14px; }
.hero-cta {
  background: var(--color-accent); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-weight: bold;
}
.hero-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.6); cursor: pointer;
}
.hero-dots span.active { background: #fff; }

/* === CATEGORÍAS DESTACADAS === */
/* === CATEGORÍAS DESTACADAS — ESTILO TIPO 'INDUMENTARIA' === */
.categorias-destacadas {
  margin: 40px 0;
  text-align: center;
}
.categorias-destacadas h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #222;
  margin-bottom: 22px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}


/* grid responsive con 3 columnas en desktop, adapta en móvil */
.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
}

/* quitar padding blanco del wrapper para usar la imagen completa */
.grid-categorias > div {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}

/* enlance que contiene la imagen + texto en overlay */
.grid-categorias a {
  display: block;
  position: relative;
  width: 100%;
  height: 220px; /* altura por defecto; se reduce en mobile */
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(16,24,40,0.06);
  transition: transform .28s ease, box-shadow .28s ease;
}

/* imagen ocupando todo el contenedor */
.grid-categorias a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s;
  filter: brightness(0.72);
}

/* degradado overlay para asegurar legibilidad del texto */
.grid-categorias a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.42) 70%);
  z-index: 1;
  transition: background .3s;
}

/* usamos el <p> existente como etiqueta en overlay (no hace falta cambiar html) */
.grid-categorias a p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* hover / focus effects */
.grid-categorias a:hover img,
.grid-categorias a:focus img {
  transform: scale(1.06);
  filter: brightness(0.82);
}
.grid-categorias a:focus,
.grid-categorias a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(16,24,40,0.12);
  outline: none;
}

/* ajustes móviles */
@media (max-width: 768px) {
  .grid-categorias a { height: 160px; }
  .grid-categorias a p { font-size: 15px; bottom: 12px; }
}


/* === FOOTER === */
.site-footer {
  background: var(--color-navy);
  color: #fff;
  padding: 20px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--color-accent);
  text-decoration: none;
}
.seccion-ofertas h2 {
  text-align: center;
  font-size: 32px;
  color: #222;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 30px;
}


#logo_chiquito {
  width: 32px;           /* Tamaño ideal para navbar */
  height: 32px;
  border-radius: 50%;    /* Lo hace redondo */
  object-fit: cover;     /* Evita que se deforme */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); /* Sombra suave */
  vertical-align: middle; /* Alineación con texto */
  margin-right: 8px;     /* Espacio entre logo y texto si está al lado */
  transition: transform 0.2s ease;
}

#logo_chiquito:hover {
  transform: scale(1.05); /* Efecto al pasar el mouse */
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.5rem;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
}

.search-bar button {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* sugerencias */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;            /* quita el borde de arriba */
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  border-radius: 0 0 8px 8px;  /* solo redondeo abajo */
}


.suggestions div {
  padding: 8px 10px;
  cursor: pointer;
}

.suggestions div:hover {
  background: #f3f3f3;
}

/* Ajuste definitivo de la barra de búsqueda solo en desktop */
@media (min-width: 1024px) {
  .search-bar {
    max-width: 700px; /* se agranda en PC */
    margin: 0;                   /* quita el centrado forzado */
  }
}
/* Mejorar legibilidad de sugerencias */
.suggestions div {
  color: #333;         /* texto oscuro */
  background: #fff;    /* fondo blanco */
}
.suggestions div:hover {
  background: #f0f0f0; /* gris al pasar el mouse */
}


.info-tienda img {
  display: block;
  margin: 0 auto;   /* centra la imagen */
  max-width: 100%;  /* evita desbordes en móvil */
  height: auto;     /* mantiene proporción */
}


.precio-original {
  text-decoration: line-through;
  color: var(--color-muted);
  font-weight: normal;
  margin: 0;
}






/* Footer Bearfit - replicado */
.site-footer.footer-bearfit{
  background: var(--color-navy);
  color:#ffffff;
  font-family:'Oswald', sans-serif;
  padding:60px 20px;
}

.site-footer .footer-inner{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  align-items:start;
}
.site-footer .footer-col{min-width:0;}
.site-footer h2{
  font-size:20px;
  margin:0 0 12px;
  text-transform:uppercase;
  font-weight:600;
  color:#fff;
}
.site-footer h6{
  font-size:14px;
  font-weight:400;
  margin:0 0 16px;
  color:#eee;
  line-height:1.4;
}
.site-footer .footer-list{
  list-style:none;
  padding:0;
  margin:0;
}
.site-footer .footer-list li{
  margin:8px 0;
}
.site-footer .footer-list a{
  text-decoration:none;
  color:#f3edee;
  font-size:14px;
  transition:color .18s;
}
.site-footer .footer-list a:hover{color:var(--color-primary);}
.site-footer .btn{
  display:inline-block;
  padding:10px 18px;
  border:2px solid var(--color-primary);
  color:#ffffff;
  text-decoration:none;
  border-radius:6px;
  font-weight:600;
  margin-top:12px;
}
@media (max-width:768px){
  .site-footer .footer-inner{
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    text-align:left;
  }
  .site-footer .footer-col{padding:10px;}
  .site-footer .btn{margin-top:12px;display:inline-block;}
}
.filtro-activo {
  border: 2px solid var(--primary);
  background-color: #c5d9f7;
  font-weight: 600;
}


.contacto-whatsapp {
  background: linear-gradient(135deg, #25d366, #e9f8ef);
  color: #064e1d;
  text-align: center;
  padding: 60px 20px;
  border-radius: 20px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacto-whatsapp h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #075e54;
}

.contacto-whatsapp p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #0b3d27;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25d366;
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1ebc59;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp i {
  margin-right: 8px;
  font-size: 1.3rem;
}



/* --- Oferta: badge y precios (global) --- */
.descuento-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fed234;      /* amarillo */
  color: #000;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 700;
}

/* precio original tachado (catálogo y modal) */
.precio-original {
  text-decoration: line-through;
  color: var(--color-muted);
  font-weight: 600;
  margin-right: 6px;
}

/* precio oferta */
.precio-oferta {
  color: var(--color-offer);
  font-weight: 800;
  font-size: 1.05rem;
}

/* asegurar estilos también dentro del modal detalle */
#modal-detalle .precio-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: .9rem;
}
#modal-detalle .precio-oferta {
  color: var(--color-offer);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Botón de card sin stock */
.btn-sin-stock {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border: 1px solid #e5e7eb !important;
  cursor: not-allowed !important;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 1;
}
.btn-sin-stock:hover { background: #f3f4f6 !important; }
