/* ==================== ETIQUETA PROMO O % DE DESC ==================== */
.badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e53935;     /* rojo fuerte */
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===== ETIQUETA EN/SIN STOCK RIBBON BASE ===== */
.ribbon {
  position: absolute;
  top: 12px;
  left: -35px;
  width: 140px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
  letter-spacing: 0.5px;
}

/* 🟩 Versión verde (EN STOCK) */
.ribbon-green {
  background: #81C784;   /* verde claro */
}

/* 🟥 Versión roja (SIN STOCK) */
.ribbon-red {
  background: #E53935;   /* rojo fuerte */
}
/* ===== TIMER PROMOCION ===== */
.promo-timer {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 12px;
  background: #f8f8f8;
  padding: 8px 18px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}
.promo-timer .label {
  font-weight: 700;
  color: #ff5500;
  font-size: 0.85rem;
}

.timer-circles {
  display: flex;
  gap: 10px;
}

.circle {
  position: relative;
  width: 40px;
  height: 40px;
  text-align: center;
}

.circle svg {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke: #ff5500;
  stroke-width: 3;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 1s linear;
}

.circle .time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-weight: bold;
  color: #222;
  
  font-size: 0.75rem;   /* probá 0.7rem si querés más chico */
  line-height: 1;
  font-weight: 700;
  transform: translate(-50%, -58%); /* lo centra mejor al achicar */
}

.circle span {
  display: block;
  font-size: 0.55rem;
  color: #777;
  margin-top: 1px;
  line-height: 1;
}

/* === GRID DE PRODUCTOS POR CATEGORIAS=== */
/* ==================== CARD NORMAL (SECCIONES) ==================== */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 235px;          /* mismo ancho que promo */
  height: 370px;         /* un poco menos alta que la promo */
  transition: all 0.3s ease;
  position: relative;    /* para el ribbon */
  overflow: hidden;
}

/* 🧩 PRECIO */
.card .block-price p {
  margin: 0;
  line-height: 1.2em;
  /*font-weight: 700;*/
  font-size: 0.8rem;
  color: var(--gray-color, #777)
}

/* 🧩 BOTONERA */
.card .block-add .product-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transform: translateY(-2px); /* sube un poco */
}

/* === exlusivo para seccion promo === */
.card-promo {
  position: relative; /* 👈 clave: base para el ribbon */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  width: 235px;
  height: 380px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background: #fff;
  transition: all 0.3s ease;
}

/* =======================
   🎯 Fila de iconos tipo Nissei
   ======================= */
.card-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  
  /* oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

/* Mostrar al hacer hover en la card */
.card:hover .card-actions,
.card-promo:hover .card-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Botón redondo de cada icono */
.card-actions .action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-actions .action-btn i {
  line-height: 1;
}

.card-actions .action-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Bloques con alturas proporcionales (ajustables) */
.block-img    { height: 160px; }
.block-name   { height: 45px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.block-price  { height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.block-info   { height: 55px; width: 100%; display: flex; align-items: flex-start; justify-content: flex-start; }
.block-add {
  height: 55px; /* 👈 un poco más alto */
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 4px; /* 👈 sube visualmente los botones */
  box-sizing: border-box;
}


/* Alineación del contenido interno */
.block-info .info-extra {
  padding-left: 12px;
  text-align: left;
  width: 100%;
}

/* Nombre */
.block-name a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  max-height: calc(1.2em * 2);
}

/* Precio */
.block-price p {
  margin: 0;
  line-height: 1.2em;
}

.old-price { text-decoration: line-through; color: var(--gray-color, #777); font-size: 0.75rem; }
.new-price { color: var(--text-color-red, #d00); font-weight: 700; font-size: 0.85rem; }

/* Código, marca, subsección */
.cod-refe { font-size: 0.7rem; color: var(--gray-color, #6e6e6e); margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag-line { font-size: 0.7rem; color: var(--primary-color, #007bff); text-decoration: none; display: block; }
.tag-line:hover { text-decoration: underline; }

/* Botones */
.product-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transform: translateY(-3px); /* 👈 sube sutilmente todo el bloque */
}

/* === Contenedor de la imagen con overlay === */
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 160px; /* igual que .card img */
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Ajuste: solo dejar visibles input + botón añadir debajo */
.product-add .btn-view {
  display: none !important;
}

/* ==================== CONTROLES CANTIDAD ==================== */
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
  height: 32px;
  background: #fff;
}

.qty-btn {
  width: 30px;
  height: 100%;
  border: 0;
  background: #f3f4f6;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.qty-btn:active { transform: scale(0.95); }

.qty-input {
  width: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
  cursor: pointer;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==================== BOTONES ==================== */
.btn-add, .btn-view {
  height: 35px;
  min-width: 35px;                 /* 👈 asegura ancho mínimo */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
}
.btn-add {
  background: #28a745;
  color: #fff;
}
.btn-view {
  background: #007bff;
  color: #fff;
}
.btn-view i { font-size: 1rem; }

/* ==================== FLECHAS DE SLICK ==================== */
/* anula flechas default */
.slick-prev::before,
.slick-next::before {
  content: "" !important;
  display: none !important;
}

/* flechas personalizadas */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important;
  background-color: rgba(0,0,0,0.35) !important; /* círculo semitransparente */
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none !important;
  outline: none !important;
  transition: background 0.3s ease;
}

/* icono dentro (si usás Bootstrap Icons) */
.slick-prev i,
.slick-next i {
  font-size: 22px !important;
  color: #fff !important;
  line-height: 1;
}

/* hover: círculo más oscuro */
.slick-prev:hover,
.slick-next:hover {
  background-color: rgba(0,0,0,0.7) !important;
}

/* posiciones */
.slick-prev { left: 14px !important; }
.slick-next { right: 14px !important; }

/* ==========================================
   🎯 Flechas Swiper reutilizables
   ========================================== */
.swiper-arrows .swiper-button-prev,
.swiper-arrows .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--swiper-arrow-bg);
  color: var(--swiper-arrow-color);
  width: var(--swiper-arrow-size);
  height: var(--swiper-arrow-size);
  border-radius: var(--swiper-arrow-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--swiper-arrow-shadow);
  transition: all 0.25s ease;
  font-size: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Hover */
.swiper-arrows .swiper-button-prev:hover,
.swiper-arrows .swiper-button-next:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Posición */
.swiper-arrows .swiper-button-prev {
  left: clamp(6px, 2vw, 18px);
}

.swiper-arrows .swiper-button-next {
  right: clamp(6px, 2vw, 18px);
}

/* Sin pseudo-elementos por defecto */
.swiper-arrows .swiper-button-prev::after,
.swiper-arrows .swiper-button-next::after {
  content: none !important;
}

.blog-swiper .swiper-button-prev::after,
.blog-swiper .swiper-button-next::after {
  content: "" !important;
  display: none !important;
}

/* Ocultar el SVG de navegación de Swiper (flecha por defecto) */
.blog-swiper .swiper-button-prev .swiper-navigation-icon,
.blog-swiper .swiper-button-next .swiper-navigation-icon {
  display: none !important;
}

