/* ===== QtyDiscountGrid - front_unificado.css (única vista responsive) ===== */

/* Contenedor y título */
.qdg-wrapper { margin-top: 1rem; }
.qdg-title { font-size: 1.125rem; margin: 0 0 .5rem 0; }
.qdg-center { text-align: center !important; }

/* Tabla: misma estructura en desktop y mobile (sin “cards”) */
.qdg-table {
  width: 100%;
  table-layout: fixed;           /* comprime columnas sin romper */
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.qdg-table th,
.qdg-table td {
  border: 1px solid #d6d6d6;
  padding: .5rem .625rem;
  font-size: .95rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;       /* evita desbordes por textos largos */
}

/* Anchos sugeridos (flexibles) */
.qdg-table th:nth-child(1),
.qdg-table td:nth-child(1) { width: 36%; }
.qdg-table th:nth-child(2),
.qdg-table td:nth-child(2) { width: 28%; }
.qdg-table th:nth-child(3),
.qdg-table td:nth-child(3) { width: 36%; }

/* === Centrado total de encabezados y celdas === */
.qdg-table thead th,
.qdg-table tbody td,
.qdg-th-center,
.qdg-td-center {
  text-align: center !important;
  vertical-align: middle !important;
}
.qdg-td-cantidad { text-align: center !important; }
.qdg-td-precio   { text-align: center !important; }
.qdg-precio      { text-align: center !important; }

/* ===== CTA "Pedir XX" =====
   Usa clases del tema (.btn .btn-primary .btn-sm) + ajustes pedidos */
.qdg-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  line-height: 1.1;
  border-radius: .35rem;
  cursor: pointer;

  color: #fff !important;            /* texto blanco */
  font-weight: 700;                  /* negrita */
  text-decoration: none !important;  /* sin subrayado */
}

/* ===== Precio: Manrope + números tabulares (mismo ancho por dígito) ===== */
.qdg-precio {
  display: inline-block;
  white-space: nowrap;           /* no parte el precio */
  max-width: 100%;
  text-align: center;

  font-family: Manrope, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0;
  font-kerning: normal;
}

/* ===== Ajustes responsive (misma tabla, más compacta) ===== */
@media (max-width: 768px) {
  .qdg-table th,
  .qdg-table td { padding: .45rem .5rem; font-size: .92rem; }
  .qdg-cta-btn { padding: .4rem .7rem; font-size: .92rem; }
}
@media (max-width: 560px) {
  .qdg-table th,
  .qdg-table td { padding: .4rem .45rem; font-size: .9rem; }
  .qdg-cta-btn { padding: .38rem .6rem; font-size: .9rem; }
  .qdg-precio  { font-size: .95rem; }
}
@media (max-width: 400px) {
  .qdg-table th,
  .qdg-table td { padding: .35rem .4rem; font-size: .86rem; }
  .qdg-cta-btn { padding: .34rem .55rem; font-size: .86rem; }
  .qdg-precio  { font-size: .92rem; }
}
