/* === Reset básico y tipografía === */
body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #212529;
  margin: 0;
  padding: 0;
}

/* === Escudos y miniaturas === */
.shield,
.thumb {
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.shield:hover,
.thumb:hover {
  transform: scale(1.05);
}

/* === Pestañas de categorías === */
.nav-tabs .nav-link {
  font-weight: bold;
}

.precio-tab {
  font-size: 0.85rem;
  font-weight: bold;
  margin-left: 4px;
  color: #28a745;
}

/* === Iconos de liga === */
.liga-icon {
  font-size: 1.2rem;
  margin-right: 6px;
  vertical-align: middle;
}

/* === Equipación box === */
.equipacion-box {
  width: 220px;
  margin: 20px;
  text-align: left;
}

.image-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.photo-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.equipacion-title {
  font-weight: 500;
  word-break: break-word;
  margin-top: 8px;
}

/* === Galería grid === */
.grid-img {
  padding: 10px;
}

.grid-img .glightbox {
  display: block;
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.grid-img .thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.grid-img .thumb:hover {
  transform: scale(1.02);
}

/* === Botones de acción === */
.btn-group-whatsapp a,
.btn-group-whatsapp button {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* === Modal de pedido === */
.modal .form-label.required::after {
  content: " *";
  color: red;
}

#precioTotal {
  font-weight: bold;
  color: #28a745;
}

/* Texto de gastos de envío */
.envio-texto {
    font-size: 0.95rem;
    font-weight: 600;
}


/* === Responsive ajustes === */
@media (max-width: 576px) {
  .table.table-bordered td,
  .table.table-bordered th {
    padding: 0.35rem !important;
    vertical-align: top !important;
  }

  .table.table-bordered img {
    max-width: 60px !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .equipacion-box {
    width: 48%;
    margin: 10px 1%;
  }

  .image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .thumb {
    max-height: 100%;
  }

  .grid-img {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .equipacion-box {
    width: 100%;
    margin: 10px 0;
  }

  .image-wrapper {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .btn-group-whatsapp a,
  .btn-group-whatsapp button {
    width: 100%;
    margin-right: 0;
  }

  /* Cada tramo en una línea */
    .envio-texto {
        display: block;
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .envio-item {
        display: block;
        margin-bottom: 3px;
    }

    .envio-item:last-child {
        margin-bottom: 0;
    }

    /* Ocultar las barras | en móvil */
    .envio-sep {
        display: none;
    }
}

.separador-pedidos {
  border-left: 2px solid #ccc;
  margin-left: 1rem;
  padding-left: 1rem;
}

#menuCategorias {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#menuCategorias .list-group-item a {
  text-decoration: none;
  font-weight: bold;
  color: #212529;
}
