:root {
  --radius: 5px;
  --spacing: 10px;
  --gap: 0.5em;
  --footer-border: 1px solid #333;
}

/* ============================ */
/*  Paneles de radio optimizados */
/* ============================ */
.panel-collapse[id^="collapse-"] .panel-body .radio {
  width: 100%;
}

.panel-collapse[id^="collapse-"] .panel-body .radio label {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: var(--gap) !important;
  align-items: start !important;
  padding-left: 0 !important;
  margin-bottom: var(--gap) !important;
  cursor: pointer !important;
}

.panel-collapse[id^="collapse-"] .panel-body .radio input[type="radio"] {
  position: static !important;
  float: none !important;
  margin: 0 !important;
}

/* ============================ */
/*  Pago: checkbox + botón      */
/* ============================ */
#collapse-payment-method .buttons .pull-right {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  white-space: normal !important;
  gap: 0 var(--gap) !important;
}

#collapse-payment-method .buttons .pull-right
  input[type="checkbox"][name="agree"] {
  order: -1 !important;
  margin: 0 !important;
  align-self: center !important;
}

#button-payment-method {
  margin-left: 1em;
}

/* ============================ */
/*    Estilos generales         */
/* ============================ */
/* Reglas compartidas */
.producto,
button, .btn,
input, textarea,
.wishlist, .quickview-button {
  border-radius: var(--radius);
}

button, .btn {
  border: none;
  padding: var(--spacing) calc(var(--spacing) * 2);
  cursor: pointer;
}

input, textarea {
  padding: var(--spacing);
  width: 100%;
  margin-bottom: var(--spacing);
}


/* Botón leer más */
.boton-vermas {
  border: 1.5px solid #fff;
  border-radius: 3px;
  color: #fff;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.15);
  display: inline-block;      /* asegura que se comporte como botón */
  text-decoration: none;      /* quita el subrayado */
  white-space: nowrap;        /* evita que se rompa en dos líneas */
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Botón leer más hover (directo o al pasar por la tarjeta entera) */
.boton-vermas:hover,
.cat-card:hover .boton-vermas {
  background-color: #fff;
  color: #000;
}



/* Productos */
.producto {
  padding: calc(var(--spacing) * 1.5);
  margin-bottom: calc(var(--spacing) * 2);
}

/* Footer */
footer {
  background: #fff;
  border-top: var(--footer-border);
  color: #333;
}

footer h5 {
  color: #000;
}

footer a:hover,
footer a:focus {
  color: #484848;
}

.footer-top {
  padding: 0;
}

.footer-top .col-sm-3 {
  padding-top: 50px;
}

/* Otros */
.direction-footer li {
  line-height: 35px;
}

#compare-total.btn.btn-link {
  display: none !important;
}

#btnMenuBar {
  padding: calc(var(--spacing) * 2);
}

/* ============================ */
/*  Grid de categorías (home)   */
/* ============================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 10px 0 26px;
}

.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.cat-card .cat-bg {
  aspect-ratio: 4 / 5;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

/* Navegadores sin aspect-ratio */
@supports not (aspect-ratio: 1) {
  .cat-card .cat-bg {
    height: 420px;
  }
}

.cat-card:hover .cat-bg {
  transform: scale(1.04);
}

.cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 55%);
  color: #fff;
}

.rotulo {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ============================ */
/*        Logos responsivos     */
/* ============================ */
#logo img {
  width: 100%;
  max-width: 800px;
}

.logo-footer {
  max-width: 200px;
  max-height: 150px;
  margin-bottom: 20px;
}


#collapse-payment-address .checkbox label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start; /* por si acaso remove space-between heredado */
  padding-left: 0;             /* quita el padding-left que Bootstrap 3 añade */
}

#collapse-payment-address .checkbox label input[type="checkbox"] {
  position: static !important;
  margin-right: 8px;
  top: auto;
}

.etiqueta-agotado {
  font-weight: 800;
  font-size: 16px;
  margin-top: 10px;
}
.stock-product {
    font-size: 29px;
    font-weight: 900;
}
.right_info h1 {
    font-size: 45px;
    font-weight: 900;
    color: #000;
}
.button-group > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 5px; /* opcional */
}

.button-group > button i {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}
/* ============================ */
/*       Ajustes responsive     */
/* ============================ */
/* Escritorio */
@media (min-width: 992px) {
  .header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    position: relative;
  }
  .header-right {
    position: absolute;
    right: 0;
  }
  .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .footer-top > div + div {
    border-left: 0;
  }
}

/* Tablet y móvil grande */
@media (max-width: 991px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .rotulo {
    font-size: 21px;
  }
  #logo img {
    max-width: 200px;
    max-height: 200px;
  }
  .logo-footer img {
    display: block;
    margin: 0 auto;
  }
}

/* Móvil pequeño */
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .cat-card .cat-bg {
    aspect-ratio: 16 / 10;
  }
  .rotulo {
    font-size: 19px;
  }
}
@media (max-width: 350px) {
  .boton-vermas {
    font-size: 12px;   /* texto más pequeño */
    padding: 7px 16px; /* menos padding */
  }
}