: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);
}

/* 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);
}

/* ============================ */
/*  Banner con fondo responsivo */
/* ============================ */
.background-image {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 900px;
  padding-top: 50px;
  margin-bottom: 25px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.background-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
}

.padding-text {
  position: relative;
  z-index: 2;
  padding-top: 550px;
}

.rotulo {
  position: relative;
  z-index: 2;
  font-weight: 900;
  font-size: 50px;
  color: #fff;
}

/* ============================ */
/*        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) {
  .background-image {
    max-height: 500px !important;
  }
  .padding-text {
    padding-top: 150px;
  }
  .rotulo {
    font-size: 30px;
  }
  #logo img {
    max-width: 200px;
    max-height: 200px;
  }
  .logo-footer img {
    display: block;
    margin: 0 auto;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .background-image {
    max-height: 300px !important;
  }
  .padding-text {
    padding-top: 80px;
  }
  .rotulo {
    font-size: 15px;
  }
}

