.container-full {
  margin: 0 auto;
  width: 100%;
}

/* ==================== SNIPPET FULLWIDTH ==================== */
html {
  overflow-x: hidden;
}

/* Antialiasing global: sin esto el body usa subpixel-AA por defecto y el texto se ve
   más pesado / con "microsombras" en macOS/Retina. Grayscale-AA = render más limpio. */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.homepage-snippet.snippet-fullwidth {
  width: 100%;
  min-width: 100vw;
  max-width: 100vw;
  padding-left: 0;
  padding-right: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Asegurar que el contenido interno ocupe todo el ancho */
.homepage-snippet.snippet-fullwidth > * {
  width: 100%;
  max-width: 100%;
}

#footer .footer-bottom {
  padding: 10px 0;
  padding-top: 12px;
}

.cuotas-in-product {
  border-radius: 0px;
  border-bottom: 1px solid #e5e5e5;
  padding: 5px 10px;
  width: 100% !important;
  margin-top: 0px;
}

.cuotas-in-product:first-child {
  border-top: 1px solid #e5e5e5;
}

.cuotas-in-product > img {
  height: 30px;
  width: 50px;
  object-fit: contain;
  margin: 5px;
}

.card-header {
  padding: 0px !important;
}

.card {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

.row-custom.meta {
  display: none !important;
}

label.custom-control-label.label-variation-color {
  border-radius: 50px;
}

.variation-color-box {
  border-radius: 50px;
}

.custom-control-variation
  .custom-control-input:checked
  ~ .custom-control-label {
  border-color: #8f8f8f !important;
}

.footer-payment-icons img {
  display: inline-block;
  width: 50px;
  height: 25px;
  background-color: #ffffff;
  object-fit: contain;
  margin-top: 40px;
  margin: 5px;
}

strong.lbl-price,
.price {
  color: #af1717;
}

button.btn.btn-link.btn-block.text-left {
  background: #f7f7f7;
  color: black !important;
  text-decoration: none;
  border: 1px solid #d9d9d9;
}

.modal-header {
  padding: 1px 1px;
  overflow: hidden;
  border-bottom: none;
}

.modal-pie {
  padding-bottom: 2em;
}

.display-5 {
  font-size: 1.8rem;
}

.display-1,
.display-2,
.display-3,
.display-4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2.6rem;
  }
  .display-4 {
    font-size: 2.2rem;
  }
}

.modal-pie > button,
.modal-pie > a {
  border-radius: 2px;
  color: white;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  margin: 15px;
  padding: 15px;
}

.modal-pie > a {
  background: rgb(116 173 51);
}

.modal-pie > a:hover {
  background: rgb(116 173 51);
}

.modal-dialog {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

@media (max-width: 768px) {
  .modal-dialog {
    min-height: calc(100vh - 20px);
  }
}

.sticky-nav {
  display: block;
}

.mobile-logo .logo {
  max-width: 130px;
  max-height: 44px;
}

.mobile-search {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  width: 50px;
}

.mobile-search .search-icon {
  position: relative;
  display: inline-block;
  font-size: 21px !important;
  line-height: 24px;
  padding: 12px;
  color: #222 !important;
  cursor: pointer;
}

.mobile-cart a {
  position: relative;
  display: inline-block;
  font-size: 22px !important;
  line-height: 24px;
  padding: 12px 10px;
  color: #222 !important;
}

.mobile-cart {
  display: table-cell;
  vertical-align: middle;
  text-align: left;
  width: 50px;
}

.mobile-cart .notification {
  position: absolute !important;
  display: inline-block;
  font-size: 12px;
  background-color: #f6465d;
  border-radius: 50%;
  top: 4px;
  right: 0;
  height: 18px;
  width: 18px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

/* fix navbar search */

.top-search-bar .left {
  display: none;
}

.nav-mobile-header .sticky-nav {
  display: block;
}

.float-wsp-icon img {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: none;
  z-index: 100;
}

.table {
  width: 100%;
  padding-bottom: 1rem;
  margin-bottom: 0px;
  color: #212529;
}

.table-striped tbody tr:nth-of-type(2n + 1) {
  background-color: rgb(255 255 255 / 2%);
}

.product-description .tab-content .tab-pane .active,
.product-description .tab-content .tab-pane {
  background: white;
}

.table-product-shipping .td-left {
  width: 30%;
  font-weight: 600;
  background-color: rgb(255 255 255);
}

.product-description .tab-content .tab-pane {
  padding-top: 0px;
}

#footer .footer-bottom .copyright {
  font-size: 11px;
}

#footer {
  margin-top: 0px !important;
  background: white;
}

.footer-bottom {
  background: black !important;
  color: white !important;
}

p.text-bottom-copy {
  margin-bottom: 0px;
}

/* mobile css */

@media only screen and (max-width: 600px) {
  .mobile-nav-container .sticky-nav,
  .nav-mobile-header .sticky-nav {
    display: none !important;
  }

  .newsletter {
    display: inline-block !important;
  }

  #footer .footer-social-links ul {
    text-align: center;
    padding: 0;
  }

  #footer .footer-social-links ul li {
    display: inline-block;
    float: none;
  }

  #footer .footer-logo {
    display: inline-block;
  }

  .sticky-nav {
    display: none !important;
  }
}

.product-list-pagination .pagination {
  text-align: center !important;
}

.title-desc-product {
  border-bottom: 4px solid #000000;
  padding-bottom: 5px;
}

.bn-lg img {
  width: 100%;
}

.modal-header .close {
  padding: 20px 2rem;
  margin: -1rem -1rem -1rem auto;
}

.tab-checkout-open {
  margin-top: 0px;
}

.lbl-enough-quantity {
  font-size: 12px;
  line-height: 14px;
  display: block;
  background: red;
  width: 55px;
  text-align: center;
  color: white !important;
  padding: 3px;
  border-radius: 20px;
}

.shopping-cart .item .cart-item-quantity {
  display: initial !important;
}

.product-content-details .details .item-details {
  display: block !important;
}

.brand-info img {
  background: white;
  border-radius: 5px;
  object-fit: contain;
}

.modal-header .close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1000;
}

.custom-control-variation .label-variation-color span {
  border: none !important;
}

.index-products-slider-nav .next,
.index-products-slider-nav .prev {
  position: relative;
  opacity: 1;
}

.payment-options-list li {
  min-height: 0px;
}

span.delivery-time-span {
  background: #18b505;
  border-radius: 20px;
  padding: 10px;
  padding-bottom: 0;
  padding-top: 0;
  color: white;
}

.float-wsp-icon {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: linear-gradient(45deg, #33995a, #01e675);
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-dot {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d23232;
  z-index: 101;
}

.float-wsp-icon i {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

/* centrar navbar desktop */
.navbar-expand {
  justify-content: center !important;
}
.nav-item-cart a .notification {
  top: -10px;
  left: -11px;
}

.space-between {
  justify-content: space-between !important;
}

.logo img {
  width: 100%;
}

.top-search-bar {
  width: 100%;
}

.nav-top {
  padding: 10px 10px 10px;
}

.right-items-header {
  font-size: 0.9em;
}

span.cart-value-header {
  margin-left: 0px;
  font-weight: 800;
}

.padding-3 {
  padding: 1em;
}

.nav-mobile .navbar-nav {
  padding-bottom: 0px !important;
}

.nav-mobile .navbar-nav {
  padding-bottom: 0px;
}

.collapse .nav-item {
  margin-left: 15px !important;
}

.index-main-slider {
  margin-top: 0;
}

.slider-brands-home a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  width: 200px;
  height: 100px;
  margin: 10px;
  padding: 10px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.slider-brands-home img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

button.btn.btn-md.btn-block.btn-product-cart {
  font-weight: 600;
  text-transform: uppercase;
}

.nav-mobile-footer .tiktok {
  background: #000000;
}

.google-reviews-slider {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .google-reviews-slider {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .google-business-card {
    order: -1;
    width: 100%;
  }

  .slider-reviews {
    width: 100%;
  }
}

.google-business-card {
  text-align: center;
  max-width: 250px;
}

.business-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.rating-value {
  font-size: 1.2rem;
  color: #fb8e28;
  font-weight: bold;
  margin-top: 2px;
  margin-right: 5px;
}

.rating svg {
  display: inline-block;
  vertical-align: middle;
}

.btn-google-review {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 20px;
  background: #4285f4;
  color: white;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
}

.slider-reviews {
  width: 70%;
}

.review-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.review-user-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: auto;
}

@media (max-width: 768px) {
  .google-reviews-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .reviews-profile {
    order: -1;
  }

  .slider-reviews {
    width: 100%;
  }

  .slick-prev,
  .slick-next {
    display: none !important;
  }
}

.review-text {
  max-width: 100%;
  height: 80px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: normal;
}

.review-text::-webkit-scrollbar {
  width: 5px;
}

.review-text::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.review-text::-webkit-scrollbar-track {
  background: transparent;
}

.greviews-home-title {
  font-weight: 700;
  font-size: 1em;
}

.google-reviews-slider p {
  margin-bottom: 0;
}

.svg-google-white {
  display: inline-block;
  width: 16px;
  height: 16px;
  padding: 1px;
  margin: 0 0 0 4px;
  background: #fff;
  border-radius: 50%;
}

.bn-lg,
.bn-md,
.bn-sm {
  min-height: 0px !important;
}

/*
 * Banners en el header (topbar): las clases .bn-* del theme traen min-width/min-height
 * pensados para slots IAB; en el header suelen romper layout (huecos, overflow, banners “vacíos”).
 * Forzar comportamiento fluido solo dentro de #header .row-bn.
 */
#header .row-custom.row-bn .bn-lg,
#header .row-custom.row-bn .bn-md,
#header .row-custom.row-bn .bn-sm {
  float: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

#header .row-custom.row-bn .bn-lg img,
#header .row-custom.row-bn .bn-md img,
#header .row-custom.row-bn .bn-sm img,
#header .row-custom.row-bn .bn-lg iframe,
#header .row-custom.row-bn .bn-md iframe,
#header .row-custom.row-bn .bn-sm iframe {
  max-width: 100% !important;
  height: auto !important;
}

.nav-mobile-header {
  padding: 0px;
}

/* Mobile header siempre arriba de opciones de producto */
#header .nav-mobile-header {
  z-index: 10060 !important;
}

/* En mobile, las opciones flotantes de producto nunca deben tapar el header sticky */
@media (max-width: 991px) {
  .product-item-options {
    z-index: 50 !important;
  }
  .product-item-options .item-option {
    z-index: 51 !important;
  }
}

.category-slider-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 15px;
}

.slider-brands-menu {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider-brands-menu a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-brands-menu img {
  max-width: 100px;
  height: auto;
}

/* Sin :not(mega-menu-vertical) el panel ocupa todo el ancho del <li> y queda “vacío” a la derecha / desalineado del texto */
.main-menu .nav-item .dropdown-menu:not(.mega-menu-vertical) {
  width: 100% !important;
}

/* Mega menú vertical usa .mega-menu-vertical: excluirlo para no forzar 600px/80vw ni centrado */
.nav-mobile-header .dropdown-menu:not(.mega-menu-vertical) {
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80vw !important;
  min-width: 600px !important;
  max-width: 90vw !important;

  max-height: 60vh;
  overflow-y: auto !important;
  overflow-x: hidden;
  position: absolute !important;
}

.main-menu .dropdown-menu:not(.mega-menu-vertical) {
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80vw !important;
  min-width: 1000px !important;
  max-width: 90vw !important;

  max-height: 60vh;
  overflow-y: auto !important;
  overflow-x: hidden;
  position: absolute !important;
}

.main-menu .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.main-menu .dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.main-menu .dropdown-menu::-webkit-scrollbar-track {
  background: white;
}

.main-menu .dropdown-menu {
  margin: 0px;
}

/* Mega menú vertical (categorías en columna): el bloque general arriba limita a 60vh y fuerza scroll;
   aquí se anula para que la caja crezca con el listado y el fondo blanco cubra todos los ítems. */
.main-menu .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical,
.main-menu
  .nav-item
  .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical,
.main-menu
  .mega-menu
  > .nav-item
  > .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical {
  /* El bloque general usa left:50% + translateX(-50%) y centra el panel respecto al ítem; aquí se alinea al trigger. */
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  width: max-content !important;
  max-width: min(960px, 98vw) !important;
}

.main-menu
  .mega-menu
  .dropdown
  .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  max-height: none !important;
}

/* Misma barra de navegación duplicada en .nav-mobile-header.sticky-nav (scroll): mismas reglas que .main-menu */
.nav-mobile-header
  .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical,
.nav-mobile-header
  .nav-item
  .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical,
.nav-mobile-header
  .mega-menu
  > .nav-item
  > .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  width: max-content !important;
  max-width: min(960px, 98vw) !important;
}

.nav-mobile-header
  .mega-menu
  .dropdown
  .dropdown-menu.mega-menu.mega-menu-content.mega-menu-vertical {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  max-height: none !important;
}

.nav-mobile-header.sticky-nav .dropdown-menu.mega-menu.mega-menu-vertical.show {
  z-index: 10055 !important;
}

/* Barra sticky fija: no recortar flyouts ni el dropdown */
#header .nav-mobile-header.sticky-nav {
  /* Asegurar que la barra mobile quede por encima de overlays de producto */
  z-index: 10060 !important;
  overflow: visible !important;
}

#header .nav-mobile-header.sticky-nav .container,
#header .nav-mobile-header.sticky-nav .row,
#header .nav-mobile-header.sticky-nav [class^="col-"],
#header .nav-mobile-header.sticky-nav .navbar,
#header .nav-mobile-header.sticky-nav .navbar-nav {
  overflow: visible !important;
}

/* .nav-main es position:relative; sin esto el .dropdown-menu absolute se posiciona respecto a .nav-main (sale alineado al logo) */
#header .navbar-nav.mega-menu > li.nav-item.dropdown {
  position: relative !important;
}

/* Mega vertical: <li.dropdown> al ancho del enlace (patrón Bootstrap estándar; sin wrap extra) */
#header
  .navbar-nav.mega-menu
  > li.nav-item.nav-item--mega-menu-vertical.dropdown {
  display: inline-block !important;
  vertical-align: top !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
}

.section-greviews {
  margin-top: 30px;
}

.badge-text-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: bold;
  color: black;
  margin-top: 5px;
}

.product-item .item-meta .badge-text-container {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.badge-container {
  display: flex;
  align-items: center;
}

.badge-image-after-price {
  width: 40px;
  height: auto;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: black;
}

.badge-discounted-price {
  font-size: 16px;
  font-weight: bold;
  color: #d32f2f;
}

.badge-container {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
}

.badge-image {
  width: 50px;
  height: auto;
}

.product-item-options {
  bottom: 10px;
  top: auto;
  /* Debe quedar por debajo del menú/overlay en mobile */
  z-index: 20 !important;
  pointer-events: auto !important;
}

.product-item-options .item-option {
  z-index: 21 !important;
  pointer-events: auto !important;
}

.product-item .img-product {
  object-fit: contain;
}

.nav-mobile {
  top: 0px;
}

.top-bar-text {
  line-height: 35px;
}

form label.error {
  display: flex !important;
}

.modal-dialog.modal-dialog-shipping-address {
  overflow-x: hidden;
}

select option:disabled {
  color: #aaa;
  background-color: #f2f2f2;
}

select option {
  color: #333;
  background-color: #fff;
}

.bn-sm img,
.bn-md img,
.bg-lg img {
  width: 100%;
}

@media (max-width: 768px) {
  .product-content-details .product-title {
    font-size: 20px;
    line-height: 24px;
  }
}

.product-big-desc {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.product-big-desc img,
.product-big-desc iframe,
.product-big-desc video {
  max-width: 100% !important;
  /* height: auto !important; */
  display: block;
}

.product-big-desc ul,
.product-big-desc ol {
  padding-left: 20px;
}

.product-big-desc table {
  max-width: 100% !important;
  width: 100% !important;
  table-layout: fixed;
  word-wrap: break-word;
}

.product-big-desc pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.product-big-desc embed,
.product-big-desc object {
  max-width: 100%;
}

.product-big-desc img {
  max-width: 100%;
  height: auto;
  display: block;
}

.modal-add-to-cart .modal-body {
  padding: 2rem;
}

.breadcrumb {
  height: auto !important;
}

.nav-breadcrumb {
  padding-bottom: 10px;
}

.filter-list-container .variation-color-box {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #ccc;
  margin-right: 6px;
  vertical-align: middle;
}

.product-item .img-product-container {
  background-color: #ffffff;
}

.img-product-container {
  position: relative !important;
}

.floating-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 99 !important;
  pointer-events: none !important;
  margin: 5px;
}

#product_slider .floating-badge {
  z-index: 100 !important;
}

.badge-image-overlay {
  height: 30px !important;
  width: auto !important;
  display: block !important;
  border-radius: 4px !important;
  pointer-events: none !important;
}

div#popupModal {
  z-index: 99999999;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Spinner anillo (donut). Antes era ".spinner" global y pisaba el spinner de 3
   puntitos (three-bounce) de style-2.0.css, mostrando el anillo girando CON los 3
   puntos adentro. Renombrado a .spinner-ring para no colisionar; se usa solo en los
   loaders que son un <div> vacío (sin .bounce1/2/3). */
.spinner-ring {
  border: 8px solid rgba(0, 0, 0, 0.1);
  border-top: 8px solid black;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#guestEmailModal .modal-dialog {
  max-width: 420px;
}

#guestEmailModal .modal-content {
  position: relative;
  border: 0;
  border-radius: 14px;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

#guestEmailModal .gem-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  z-index: 2;
}

#guestEmailModal .gem-close:hover {
  background: #e3e6ea;
  color: #111;
}

#guestEmailModal .gem-head {
  text-align: center;
  padding: 26px 24px 6px;
}

#guestEmailModal .gem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 28px;
  color: var(--site-primary-color, #09b1ba);
  background: color-mix(in srgb, var(--site-primary-color, #09b1ba) 14%, #fff);
}

#guestEmailModal .gem-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
}

#guestEmailModal .gem-sub {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

#guestEmailModal .modal-body {
  padding: 18px 24px 24px;
}

#guestEmailModal .modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

#guestEmailModal .gem-input {
  position: relative;
}

#guestEmailModal .gem-input > i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
  pointer-events: none;
}

#guestEmailModal .gem-input .form-control {
  height: 48px;
  padding-left: 42px;
  border-radius: 10px;
  border: 1px solid #d8dee4;
  box-shadow: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

#guestEmailModal .gem-input .form-control:focus {
  border-color: var(--site-primary-color, #09b1ba);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--site-primary-color, #09b1ba) 22%, transparent);
}

#guestEmailModal .recaptcha-cnt {
  margin: 5px 0 5px;
  display: flex;
  justify-content: center;
}

#guestEmailModal .recaptcha-cnt .g-recaptcha {
  transform: scale(0.85) !important;
  transform-origin: center !important;
  margin: 0 auto;
}

#guestEmailModal .g-recaptcha.is-invalid,
#guestEmailModal .cap-nibiru-cnt.is-invalid {
  border: 2px solid #dc3545;
  border-radius: 6px;
}

#guestEmailModal .gem-submit {
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--site-primary-color, #09b1ba);
  transition: filter 0.15s;
}

#guestEmailModal .gem-submit:hover {
  filter: brightness(0.93);
  color: #fff;
}

#guestEmailModal .gem-submit i {
  vertical-align: middle;
}

#guestEmailModal .alert-danger {
  border-radius: 10px;
  font-size: 13px;
  padding: 10px 14px;
}

.top-bar-v2 p {
  margin-bottom: 0px !important;
}

.col-2 {
  display: flex;
}

.mobile-logo img.logo {
  max-height: 50px;
  height: auto;
}

.mobile-nav-container {
  min-height: 50px;
}

.shopping-cart {
  margin-top: 0;
}

.cart-section-title {
  margin-top: 20px;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

#infinite-scroll-loading {
  padding: 30px 0;
}

#end-of-products {
  padding: 20px 0;
  margin-top: 20px;
}

.spinner-border {
  width: 2rem;
  height: 2rem;
}

.nav-main {
  border-bottom: 0px;
}

/* Estilos para los tags de productos */

/* Tags en tarjetas de productos */
.product-tags-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 20px);
}

.product-tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-tag-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: white !important;
}

/* Tags en vista detallada del producto */
.product-tags-container-detail {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 30px);
}

.product-tag-badge-detail {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-tag-badge-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .product-tags-container {
    bottom: 5px;
    left: 5px;
    gap: 3px;
    max-width: calc(100% - 10px);
  }

  .product-tag-badge {
    padding: 1px 6px;
    font-size: 9px;
    border-radius: 10px;
  }

  .product-tags-container-detail {
    top: 10px;
    left: 10px;
    gap: 4px;
    max-width: calc(100% - 20px);
  }

  .product-tag-badge-detail {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 14px;
  }
}

/* Asegurar que los tags no interfieran con otros elementos */
.img-product-container {
  position: relative;
}

.product-slider-container {
  position: relative;
}

/* Animación de entrada para los tags */
.product-tag-badge,
.product-tag-badge-detail {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-info {
  background-color: #49a962;
  border: none;
}

.btn-info:hover {
  background-color: #49a962;
}

.product-shipping-methods p .method-name {
  min-width: auto;
}

.modal-dialog.modal-dialog-centered {
  overflow-x: hidden;
}

.product-list-content {
  min-height: 100% !important;
}

.mobile-search-form .btn-search {
  width: 40px;
  height: 40px;
  top: 4px;
}

.custom-control-variation .custom-control-label-image .img-variation-option {
  display: block;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100% !important;
  max-width: 120%;
  max-height: 100% !important;
  object-fit: contain !important;
  margin-left: 50%;
  transform: translateX(-50%);
}

.profile-dropdown .dropdown-menu li a {
  white-space: normal !important;
}

.category-grid-item:hover img {
  transform: scale(1.1);
}

/* Estilos para video de YouTube en slider */
.main-slider .item.item-video {
  background-color: #000;
}

.slider-video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 0;
}

/* Placeholder: thumbnail + play (iframe se inyecta solo en el slide activo) */
.slider-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.slider-video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-video-play-btn {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.slider-video-play-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}
.slider-video-iframe-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slider-video-iframe-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.slider-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100%;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.slider-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.main-slider .item.item-video .slider-content-link {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

/* Sin flechas del slider encima del vídeo (sigue habiendo swipe / gestos) */
.main-slider-hide-nav-for-video .main-slider-nav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.index-products-slider-nav .next {
  right: 20px;
}

.index-products-slider-nav {
  z-index: 98;
}

.product-item .item-details .product-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal;
}

/* ==================== DESKTOP MENU - PRODUCTS DROPDOWN ==================== */
.dropdown-menu-products {
  min-width: 600px;
  max-width: 900px;
}

.dropdown-menu-products .container {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}

.dropdown-menu-products .col-product {
  padding: 8px;
}

.dropdown-menu-products .product-item {
  margin-bottom: 0;
}

/* ==================== MOBILE MENU LOOPS ==================== */

/* Brands in mobile menu */
.mobile-menu-brands .nav-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-brand-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 15px !important;
}

.mobile-menu-brand-img {
  width: 40px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-brand-link span {
  flex: 1;
  font-size: 14px;
}

/* Products grid in mobile menu */
.mobile-menu-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px;
  background: #f9f9f9;
  max-height: 400px;
  overflow-y: auto;
}

.mobile-menu-product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-menu-product-item:hover,
.mobile-menu-product-item:active {
  background: #f0f0f0;
  transform: scale(0.98);
  text-decoration: none;
  color: inherit;
}

.mobile-menu-product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.mobile-menu-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-menu-product-title {
  font-size: 11px;
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Categories in mobile menu */
.mobile-menu-categories .nav-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-categories .nav-link {
  padding: 12px 15px !important;
}

/* Responsive adjustments */
@media (max-width: 400px) {
  .mobile-menu-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-menu-product-title {
    font-size: 10px;
  }
}

.vehicle-gallery-col .product-slider .img-product-slider {
  background-color: transparent !important;
}

button.mercadopago-button {
  margin: 0 auto;
}

.branch-card {
  background: white;
}

@media (max-width: 600px) {
  .footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom .float-right {
    float: none;
  }
}

div#branch-map {
  z-index: 99;
}

/* ==================== FAQ SECTION ==================== */
#faq-grid-front {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

#faq-grid-front .panel-heading[role="tab"] {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#faq-grid-front .panel-title {
  width: 100%;
}

@media (max-width: 767px) {
  #faq-grid-front {
    grid-template-columns: 1fr !important;
  }
}

.mobile-logo,
.mobile-search,
.mobile-cart {
  display: flex;
  align-items: center;
}

.custom-form-paragraph-content {
  margin-left: 15px;
}

.form-search-appends-history .well {
  margin-bottom: 8px;
  background: #e5e5e5;
  border: 1px solid #eee;
  padding: 10px;
}

.nav-link {
  padding: 0.5rem 0rem;
}
a.nav-link.dropdown-toggle.a-profile.account-link {
  margin-right: 10px;
}

#footer .payment-icons .payment-icon {
  background-color: #ffffff00 !important;
}

.goverlay {
  background: rgb(0 0 0 / 75%);
}

/* Mobile: overlay apenas oscuro (fondo sigue visible) */
@media (max-width: 991px) {
  .glightbox-mobile .goverlay,
  .glightbox-container.glightbox-mobile .goverlay {
    background: rgba(0, 0, 0, 0.25) !important;
  }
}

.top-bar ul {
  margin: 0;
}

.glightbox-clean .gslide-media {
  -webkit-box-shadow: none;
  box-shadow: none;
}

#header,
.top-bar {
  position: static;
}

.header-builder .top-bar-v2 {
  position: static !important;
}

.product-tag-badge {
  display: inline-block;
  width: fit-content;
  max-width: max-content;
  flex: 0 0 auto;
  align-self: flex-start;
}
@media (max-width: 768px) {
  .product-tag-badge {
    position: static;
    display: inline-block;
    margin-top: 8px;
  }
}

#ircmai {
  height: auto !important;
}

/* ── Lupa de zoom hover en galería de producto (#product_slider) ── */
#product_slider .product-slider-link {
  position: relative;
  display: block;
  overflow: hidden;
}
#product_slider .product-slider-link.zoomable {
  cursor: zoom-in;
}
.product-zoom-lens {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition:
    opacity 0.15s ease-out,
    transform 0.15s ease-out;
  z-index: 200;
  will-change: transform, background-position, left, top;
}
/* Variante flotante: vive en <body> con position:fixed para escapar overflow:hidden ancestrales */
.product-zoom-lens.product-zoom-lens--floating {
  position: fixed;
  z-index: 10000;
}
.product-zoom-lens.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 991px), (hover: none) {
  .product-zoom-lens {
    display: none !important;
  }
  #product_slider .product-slider-link.zoomable {
    cursor: pointer;
  }
}

/* ── Wishlist inline al lado del botón de comprar (icon-only, derecha) ── */
.button-container-with-wishlist {
  gap: 8px;
}
.button-container-with-wishlist > .flex-grow-1 .btn,
.button-container-with-wishlist > .flex-grow-1 button,
.button-container-with-wishlist > .flex-grow-1 a.btn {
  width: 100%;
}
.btn-wishlist-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-wishlist-inline:hover {
  color: #e63946;
  border-color: #ccc;
  text-decoration: none;
}
.btn-wishlist-inline .fa-heart {
  color: #e63946;
}
/* Forzar icon-only siempre, incluso después del re-render del JS al hacer click */
.btn-wishlist-inline span,
.btn-wishlist-inline > span,
.button-container-with-wishlist .btn-wishlist span {
  display: none !important;
}

/* ── Fila de compra: quantity | add to cart (grande) | wishlist ── */
.product-buy-row {
  --buy-row-h: 50px;
  margin-bottom: 10px;
}
.product-buy-row .product-buy-qty,
.product-buy-row .product-buy-cart,
.product-buy-row .product-buy-wishlist {
  display: flex;
  align-items: stretch;
  height: var(--buy-row-h);
}
.product-buy-row .product-buy-qty .number-spinner,
.product-buy-row .product-buy-qty .input-group {
  width: 100%;
  height: 100%;
}
.product-buy-row .product-buy-qty .form-control,
.product-buy-row .product-buy-qty .btn {
  height: 100% !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}
.product-buy-row .product-buy-cart .button-container-cart-big,
.product-buy-row .product-buy-cart .button-container-cart-big > a,
.product-buy-row .product-buy-cart .button-container-cart-big > button,
.product-buy-row .product-buy-cart .button-container-cart-big > .btn {
  width: 100%;
  height: 100%;
}
.product-buy-row .product-buy-cart .button-container-cart-big .btn,
.product-buy-row .product-buy-cart .button-container-cart-big a.btn,
.product-buy-row .product-buy-cart .button-container-cart-big button.btn {
  height: 100% !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.product-buy-row .product-buy-wishlist .btn-wishlist-inline {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  font-size: 18px;
}
.product-buy-row .btn-wishlist-inline i {
  font-size: 30px;
}

/* ── Multi-idioma en formularios de producto: tabs en vez de collapse ── */
.product-lang-tabs-wrap {
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: 4px;
  overflow: hidden;
}
.product-lang-tabs {
  background: #f7f7f7;
  border-bottom: 1px solid #e7eaec;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.product-lang-tabs > li {
  margin: 0;
}
.product-lang-tabs > li > a {
  padding: 12px 18px;
  color: #555;
  background: transparent;
  border: 0;
  border-right: 1px solid #e7eaec;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-weight: 500;
}
.product-lang-tabs > li > a:hover,
.product-lang-tabs > li > a:focus {
  background: #fff;
  color: #1a3eb3;
}
.product-lang-tabs > li.active > a,
.product-lang-tabs > li.active > a:hover,
.product-lang-tabs > li.active > a:focus {
  background: #fff;
  color: #1a3eb3;
  border-bottom-color: #1a3eb3;
}
.product-lang-tab-content {
  padding: 20px;
}
.product-lang-tab-content > .tab-pane {
  padding: 0;
}

/* Page-top ad space (after header). Don't touch display — .bn-lg/.bn-md/.bn-sm
   already have responsive display:none via media queries. Only neutralize float. */
.ad-page-top-wrap {
  text-align: center;
}
.ad-page-top-wrap::after {
  content: "";
  display: table;
  clear: both;
}
.ad-page-top-wrap .ad-page-top {
  float: none !important;
  margin-left: auto;
  margin-right: auto;
}
.ad-page-top-wrap .ad-page-top img {
  max-width: 100%;
  height: auto;
}

/* ==================== VEHICLE VIEW (product_vehicle.php) ==================== */
.vehicle-hero-section {
  position: relative;
  min-height: 80vh;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vehicle-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--vehicle-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.vehicle-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0.75) 100%
  );
  z-index: -1;
}

.vehicle-content-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.vehicle-main-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.vehicle-gallery-col {
  flex: 0 0 100%;
  max-width: 700px;
}

.vehicle-details-col {
  flex: 0 0 100%;
  max-width: 500px;
}

.vehicle-gallery-col #product_slider_container {
  background: transparent;
}

.vehicle-gallery-col .product-slider-container {
  background: transparent !important;
}

.vehicle-gallery-col .product-slider .img-bg {
  opacity: 0;
}

.vehicle-gallery-col .product-slider .img-product-slider {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

.vehicle-gallery-col .product-slider .item {
  background: transparent !important;
}

.vehicle-gallery-col .product-slider-nav button {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.vehicle-gallery-col .product-slider-nav button:hover {
  background: #fff;
}

.vehicle-gallery-col .product-thumbnails-slider .item-inner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.vehicle-gallery-col .product-thumbnails-slider .slick-current .item-inner {
  border-color: #fff;
}

.vehicle-details-col .product-content-details {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.vehicle-description-section {
  background: #fff;
  padding: 3rem 0;
}

.vehicle-description-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.vehicle-long-desc {
  line-height: 1.7;
}

.vehicle-rest-content {
  background: #fff;
}

.vehicle-rest-content .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .vehicle-main-content {
    flex-direction: column;
    align-items: center;
  }

  .vehicle-gallery-col,
  .vehicle-details-col {
    max-width: 100%;
  }

  .vehicle-hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}

@media (max-width: 576px) {
  .vehicle-details-col .product-content-details {
    padding: 1rem;
    border-radius: 0;
  }
}

/* ==================== MOTO VIEW (product_moto.php) ==================== */
.moto-hero-section {
  position: relative;
  min-height: 80vh;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.moto-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--moto-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.moto-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0.75) 100%
  );
  z-index: -1;
}

.moto-title-container {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.moto-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.moto-content-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.moto-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.moto-gallery-col {
  flex: 0 0 100%;
  max-width: 800px;
  width: 100%;
}

.moto-details-col {
  flex: 0 0 100%;
  max-width: 800px;
  width: 100%;
}

.moto-details-col .breadcrumb-product-details,
.moto-details-col .product-title {
  display: none;
}

.moto-gallery-col #product_slider_container {
  background: transparent;
}

.moto-gallery-col .product-slider-container {
  background: transparent !important;
}

.moto-gallery-col .product-slider .img-bg {
  opacity: 0;
}

.moto-gallery-col .product-slider .img-product-slider {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

.moto-gallery-col .product-slider .item {
  background: transparent !important;
}

.moto-gallery-col .product-slider-nav button {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.moto-gallery-col .product-slider-nav button:hover {
  background: #fff;
}

.moto-gallery-col .product-thumbnails-slider .slick-current .item-inner {
  border-color: #fff;
}

.moto-details-col .product-content-details {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.moto-details-col #response_product_details,
.moto-details-col #response_product_details * {
  text-align: center !important;
}

.moto-details-col > .product-shipping-methods {
  float: none !important;
}

.moto-details-col div#product_shipping_cost_container {
  float: inherit !important;
}

.moto-details-col #response_product_details .row,
.moto-details-col #response_product_details .d-flex,
.moto-details-col #response_product_details [class*="justify-"] {
  justify-content: center !important;
}

.moto-details-col #response_product_details .col-12,
.moto-details-col #response_product_details .col-sm-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.moto-details-col #response_product_details .row.details {
  justify-content: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.moto-details-col #response_product_details .row.details .item-details {
  display: flex !important;
  justify-content: center;
  gap: 0.5rem;
}

.moto-details-col #response_product_details .product-share {
  display: flex;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
}

.moto-details-col #response_product_details .product-share ul {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
}

.moto-details-col .product-content-details .details label {
  min-width: inherit !important;
}

.moto-description-section {
  background: #fff;
  padding: 3rem 0;
}

.moto-description-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.moto-long-desc {
  line-height: 1.7;
}

.moto-rest-content {
  background: #fff;
}

.moto-rest-content .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .moto-gallery-col,
  .moto-details-col {
    max-width: 100%;
    padding: 0 15px;
  }

  .moto-hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .moto-gallery-col .product-thumbnails-slider .item {
    width: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 576px) {
  .moto-title {
    font-size: 1.8rem;
  }

  .moto-details-col .product-content-details {
    padding: 1rem;
    border-radius: 0;
  }
}

/* ==================== PRODUCT PREVIEW (_preview.php) ==================== */
.product-thumbnails-slider.no-transform .slick-track {
  transform: none !important;
}

.product-video-thumbnail,
.product-video-slide {
  position: relative;
  cursor: pointer;
}

.product-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 10px;
}

.product-video-overlay .play-icon,
.video-thumb-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
  font-size: 20px;
}

.product-video-overlay .text {
  font-size: 0.9rem;
}

.product-video-thumbnail .video-thumb-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

#navMobile.nav-mobile {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

#navMobile .nav-mobile-sc {
  flex: 1 1 auto;
  min-height: 0; /* permite scroll dentro de flex parent */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#navMobile .nav-mobile-inner {
  flex: 1 1 auto; /* inner llena toda la altura disponible de sc */
  bottom: auto !important; /* anula bottom:130px que no anclaba nada */
  padding-bottom: 20px;
}

#navMobile .nav-mobile-footer {
  position: static !important; /* override absolute */
  bottom: auto !important;
  width: 100% !important; /* anula width:310px de .nav-mobile-open .nav-mobile-footer */
  flex: 0 0 auto;
  margin-top: auto;
  padding: 12px 10px;
  background-color: #f6f6f6;
  border-top: 1px solid #f0f0f0;
}

#navMobile .nav-mobile-footer ul {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
}

#navMobile .nav-mobile-footer ul li {
  display: inline-block;
  margin: 0 3px 3px 0;
}

@media (max-width: 991px) {
  #product_slider .product-slider-link {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: block;
  }
  #product_slider .img-bg {
    /* Placeholder ya no necesita reservar espacio, aspect-ratio lo hace */
    visibility: hidden;
    width: 100%;
    height: 100%;
  }
  #product_slider .img-product-slider {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   Spinner de cantidad estilo stacked: input grande a la izquierda,
   botones +/- apilados a la derecha (▲ arriba, ▼ abajo) con la
   misma altura combinada que el input. Aplica solo a product details.
   ────────────────────────────────────────────────────────────── */
.product-buy-qty .number-spinner--stacked .input-group {
  display: grid;
  grid-template-columns: 1fr 32px;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 48px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  flex-wrap: nowrap;
}
.product-buy-qty
  .number-spinner--stacked
  .input-group
  input[name="product_quantity"] {
  grid-column: 1;
  grid-row: 1 / span 2;
  border: 0;
  border-right: 1px solid #e6e6e6;
  border-radius: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  height: 100%;
  width: 100%;
  min-width: 0;
  padding: 0 4px;
  box-shadow: none;
  outline: none;
}
.product-buy-qty
  .number-spinner--stacked
  .input-group
  input[name="product_quantity"]:focus {
  box-shadow: none;
  outline: none;
  background: #fafafa;
}
.product-buy-qty .number-spinner--stacked .input-group-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}
.product-buy-qty .number-spinner--stacked .input-group-btn--plus {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid #e6e6e6;
}
.product-buy-qty .number-spinner--stacked .input-group-btn--minus {
  grid-column: 2;
  grid-row: 2;
}
.product-buy-qty .number-spinner--stacked .input-group-btn .btn {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: #f5f5f5;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
  min-width: 0;
}
.product-buy-qty .number-spinner--stacked .input-group-btn .btn:hover {
  background: #e8e8e8;
  color: #222;
}
.product-buy-qty .number-spinner--stacked .input-group-btn .btn:active {
  background: #d8d8d8;
}
.product-buy-qty .number-spinner--stacked .input-group-btn .btn svg {
  width: 10px;
  height: 6px;
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   Mobile newsletter: input + botón en una sola línea.
   Bug: regla genérica .newsletter{display:inline-block} en mobile
   rompía el flex del wrapper interno → input toma 100% y botón cae.
   Fix: forzar flex en el .newsletter que vive dentro del form.
   ────────────────────────────────────────────────────────────── */
.widget-newsletter .form-newsletter .newsletter {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: 100%;
}
.widget-newsletter .form-newsletter .newsletter .newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
}
.widget-newsletter .form-newsletter .newsletter .newsletter-button {
  flex: 0 0 auto;
}

/* ──────────────────────────────────────────────────────────────
   GLightbox: video container (YouTube/local) no quedaba centrado
   en mobile — el wrapper de video no se ajustaba al viewport.
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .glightbox-container .ginner-container.gvideo-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  .glightbox-container .gvideo-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .glightbox-container .gvideo-wrapper iframe,
  .glightbox-container .gvideo-wrapper video {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    margin: 0 auto;
  }
}

/* ──────────────────────────────────────────────────────────────
   Thumbnails del producto: 3 visibles, columna más ancha,
   thumbnails más grandes y mejor aire entre ellos.
   ────────────────────────────────────────────────────────────── */
.product-slider-container .left {
  width: 110px !important;
  padding-right: 10px;
}
.product-thumbnails-slider .item {
  margin-bottom: 10px;
}
.product-thumbnails-slider .item-inner {
  border-radius: 6px;
  border: 2px solid transparent !important;
}
.product-thumbnails-slider .slick-current .item-inner {
  border-color: #222 !important;
}

/* ──────────────────────────────────────────────────────────────
   Selector de columnas del catálogo. Slider 2-5 visible desktop +
   mobile (en mobile va al lado del botón de filtrar productos).
   ────────────────────────────────────────────────────────────── */
.product-cols-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
}
.product-cols-selector .product-cols-label {
  white-space: nowrap;
}
.product-cols-selector .product-cols-slider {
  width: 90px;
  cursor: pointer;
  accent-color: #222;
}
.product-cols-selector .product-cols-value {
  min-width: 14px;
  text-align: center;
  font-weight: 600;
  color: #222;
}
/* Mobile: más compacto pero label "Columnas" visible */
@media (max-width: 767.98px) {
  .product-cols-selector {
    font-size: 12px;
    gap: 6px;
  }
  .product-cols-selector .product-cols-slider {
    width: 70px;
  }
}

/* Override de cols por data-cols — aplica a todos los breakpoints */
.row-product[data-cols="2"] > .col-product {
  flex: 0 0 50% !important;
  max-width: 50% !important;
}
.row-product[data-cols="3"] > .col-product {
  flex: 0 0 33.3333% !important;
  max-width: 33.3333% !important;
}
.row-product[data-cols="4"] > .col-product {
  flex: 0 0 25% !important;
  max-width: 25% !important;
}
.row-product[data-cols="5"] > .col-product {
  flex: 0 0 20% !important;
  max-width: 20% !important;
}

/* ──────────────────────────────────────────────────────────────
   Header del catálogo: título en su propia fila, abajo en una
   sola fila: cols-slider | sort-by | filter button (orden visual).
   ────────────────────────────────────────────────────────────── */
.product-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.product-list-header .product-list-title {
  flex: 0 0 100%; /* título toma fila entera */
  margin: 0 0 12px;
  min-width: 0;
}
/* Toolbar del catálogo (fuera del header): filtrar+orden | columnas en una línea.
   Hermano de .container para que el sticky mobile abarque todo el scroll. */
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 0 0 12px;
}
.product-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-filter-bar .product-sort-by {
  float: none !important;
  display: contents;
  width: auto;
  align-items: center;
  margin: 0;
}

#select_sort_items {
  width: 100% !important;
}
.product-filter-bar .btn-filter-products-mobile {
  margin: 0;
}
.btn-filter-products-mobile .filter-text-short {
  display: none;
}
@media (max-width: 767.98px) {
  .btn-filter-products-mobile .filter-text-full {
    display: none;
  }
  .btn-filter-products-mobile .filter-text-short {
    display: inline;
  }
}

/* Mobile: solo la barra filtrar+sort es sticky; columnas queda abajo en flujo normal.
   display:contents disuelve la toolbar → filter-bar y cols pasan a ser hijos de
   .container, así el sticky de filter-bar abarca todo el scroll y cols no se pega. */
@media (max-width: 767.98px) {
  .product-toolbar {
    display: contents;
  }
  .product-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* filtrar izquierda, orden derecha */
    gap: 8px;
    margin: 0 0 8px;
    position: sticky;
    top: var(--mobile-nav-h, 56px);
    z-index: 999;
    background: #fff;
    padding: 8px 0;
  }
  .product-filter-bar .product-sort-by .span-sort-by {
    display: none; /* ahorra espacio */
  }
  .product-filter-bar .btn-filter-products-mobile {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto; /* ancho de contenido, a la izquierda */
    width: auto !important; /* anula cualquier display:block/width heredado */
    align-self: center;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .product-filter-bar .product-sort-by {
    flex: 0 0 auto; /* ancho de contenido, a la derecha */
    min-width: 0;
  }
  .product-filter-bar .product-sort-by .sort-select select {
    min-width: 150px; /* select cómodo, no gigante */
  }
  .product-cols-selector {
    display: flex;
    justify-content: center; /* columnas centradas, fila propia abajo */
    margin-bottom: 8px;
  }
  .product-cols-selector .product-cols-slider {
    width: 120px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Filtros como offcanvas (mobile): el sidebar se desliza desde la
   izquierda como el carrito; backdrop, tap-fuera y ESC cierran.
   Desktop: sidebar estático, header/backdrop ocultos.
   ────────────────────────────────────────────────────────────── */
.filters-offcanvas-header,
.filters-offcanvas-backdrop {
  display: none;
}
@media (max-width: 768px) {
  .filters-offcanvas-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
    z-index: 10074;
  }
  .filters-offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  .col-sidebar-products {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 340px;
    flex: none !important; /* anula el flex de la col bootstrap */
    background: #fff;
    z-index: 10075; /* por encima del header mobile (10060) */
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 24px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
  }
  .col-sidebar-products.active {
    transform: translateX(0);
  }
  /* Dentro del panel los filtros siempre visibles (anula display:none de mobile) */
  .col-sidebar-products .product-filters {
    display: block !important;
  }
  .filters-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 14px 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
    z-index: 2;
  }
  .filters-offcanvas-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .filters-offcanvas-close {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #444;
    padding: 0 4px;
    cursor: pointer;
  }
  body.filters-oc-open {
    overflow: hidden;
  }
}

.brand-info-above-price {
  margin-bottom: 10px;
}

.nav-mobile-header.sticky-nav.fixed-top.is-sticky-shown {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.profile-dropdown > ul.dropdown-menu.show {
  width: 150px !important;
}

/* ============================================================
   Checkout stepper (cart/_checkout_steps.php) — Paso 1/2/3
   ============================================================ */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 28px;
}
.checkout-steps .checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #9aa0a6;
  font-weight: 600;
}
.checkout-steps a.checkout-step {
  cursor: pointer;
}
.checkout-steps .checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  /* border: 2px solid currentColor; */
  font-size: 14px;
  line-height: 1;
}
.checkout-steps .checkout-step-label {
  font-size: 14px;
  white-space: nowrap;
  font-weight: bold;
}
.checkout-steps .checkout-step-active {
  color: #111;
}
.checkout-steps .checkout-step-completed {
  color: black;
}
.checkout-steps .checkout-step-completed .checkout-step-num {
  background: #b9b9b9;
  border-color: #b9b9b9;
  color: #000000;
}
.checkout-steps .checkout-step-active .checkout-step-num {
  background: #b9b9b9;
  color: #000000;
  border: none;
}
.checkout-steps .checkout-step-sep {
  flex: 0 0 5px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 4px;
}
.checkout-stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.checkout-stepper .checkout-steps {
  margin: 0;
}
.checkout-progress {
  width: 100%;
  max-width: 320px;
  height: 3px;
  margin: 0 auto;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
}
.checkout-progress-fill {
  display: block;
  height: 100%;
  background: #111;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.checkout-step-num i,
.checkout-step-num {
  font-weight: bold;
}

@media (max-width: 767px) {
  .checkout-steps {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .checkout-steps .checkout-step-label {
    display: none;
  }
  .checkout-steps .checkout-step-sep {
    flex-basis: 20px;
    margin: 0 2px;
  }
}

/* ============================================================
   Resumen del pedido editable (cart/_order_summary.php)
   ============================================================ */
.order-summary-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
}
.order-summary-qty-btn {
  border: none;
  background: #f5f5f5;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.order-summary-qty-btn:hover {
  background: #e9e9e9;
}
.order-summary-qty-input {
  width: 46px;
  height: 34px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 15px;
  -moz-appearance: textfield;
}
.order-summary-qty-input::-webkit-outer-spin-button,
.order-summary-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.order-summary-remove {
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

/* Item del resumen del pedido: fila compacta (miniatura | info | tacho),
   estilo referencia. Reemplaza el layout apilado anterior (item-left/item-right). */
.order-summary-card .order-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.order-summary-card .order-summary-item:last-of-type {
  border-bottom: 0;
}
.order-summary-card .item-thumb {
  flex: 0 0 56px;
}
.order-summary-card .item-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #eee;
}
.order-summary-card .item-info {
  flex: 1 1 auto;
  min-width: 0;
}
/* Título a 2 líneas máximo; lo que sobra se corta con "..." */
.order-summary-card .item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.order-summary-card .item-title:hover {
  color: #000;
}
.order-summary-card .item-meta {
  margin-bottom: 6px;
}
.order-summary-card .item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.order-summary-card .item-price {
  white-space: nowrap;
  font-weight: 700;
}
.order-summary-card .order-summary-qty-static {
  color: #777;
  font-size: 13px;
}
.order-summary-card .item-remove {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 19px;
}
.order-summary-card .item-remove:hover {
  color: #333;
}
.order-summary-container {
  transition: opacity 0.15s;
}

.order-summary-item .item-line .item-price {
  color: #333;
}

/* ============================================================
   Checkout minimalista: header propio (logo + stepper) y layout
   en cajitas sobre fondo gris. Vistas: billing / shipping /
   payment_method / payment. Header: partials/_checkout_header.php
   ============================================================ */
body.checkout-page {
  background: #f4f4f5;
}

/* Header mínimo: logo a la izquierda, stepper a la derecha (desktop) */
.checkout-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 0;
}
.checkout-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.checkout-logo img {
  max-height: 44px;
  width: 100%;
  display: block;
}
.checkout-header .checkout-steps {
  margin: 0;
  justify-content: flex-end;
}

/* Mobile: logo centrado arriba, stepper compacto debajo (image3) */
@media (max-width: 768px) {
  .checkout-header-inner {
    flex-direction: column;
    gap: 14px;
  }
  .checkout-logo {
    text-align: center;
  }
  .checkout-header .checkout-steps {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .checkout-header .checkout-steps .checkout-step {
    gap: 4px;
    min-width: 0;
  }
  .checkout-header .checkout-steps .checkout-step-label {
    display: inline;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .checkout-header .checkout-steps .checkout-step-sep {
    display: none;
  }
}

/* Contenido del checkout sobre el fondo gris */
.checkout-page #wrapper {
  padding: 28px 0 48px;
}

/* Cajita izquierda (datos de facturación / envío / forma de pago) */
.checkout-page .left .checkout-section {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 22px 24px;
}

/* Separador full-bleed entre bloques del card (como las filas de la referencia:
   Destinatario / Dirección / Método de envío). Los márgenes negativos llegan a los
   bordes del card compensando el padding lateral (24px). */
.checkout-page .left .checkout-section .checkout-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 18px -24px;
}
@media (max-width: 575px) {
  .checkout-page .left .checkout-section .checkout-divider {
    margin-left: -24px;
    margin-right: -24px;
  }
}

/* Cajita derecha: resumen del pedido con barra de título */
.checkout-page .order-summary-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.checkout-page .order-summary-card .cart-summart-title-checkout {
  background: #8b8b8b;
  color: white;
  border-bottom: 1px solid #ececec;
  padding: 14px 20px;
}
.checkout-page
  .order-summary-card
  .cart-summart-title-checkout
  .cart-section-title {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.checkout-page .order-summary-card .order-summary-account {
  padding: 14px 20px 0;
}
.checkout-page .order-summary-card .right {
  padding: 14px 20px 20px;
}

/* Mobile: el resumen va debajo del contenido, con separación */
@media (max-width: 991px) {
  .checkout-page .order-summary-container {
    margin-top: 20px;
  }
}

.cart-section-title.cart-summart-title-checkout {
  padding: none !important;
}

/* Footer del form de facturación: términos + acciones agrupados con separador */
.checkout-page .billing-form-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
.checkout-page .billing-terms {
  margin-bottom: 4px;
}
.checkout-page .billing-form-actions::after {
  content: "";
  display: block;
  clear: both;
}

.cart-section-title {
  padding-bottom: 0;
  border: none !important;
}

/* Título de cada paso dentro del card (header tipo "DATOS DE ENVÍO" de la referencia) */
.checkout-page .checkout-section-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ============================================================
   Barra sticky inferior del checkout (volver / total / continuar)
   cart/_checkout_bottom_bar.php
   ============================================================ */
.checkout-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  /* Alto para quedar arriba de botones flotantes (wpp, chats, etc.), incluso los
     inyectados por scripts externos que no están en este código. */
  z-index: 100000;
}
/* Cuando se abre un modal de Bootstrap (login, agregar dirección, sin stock), el modal
   pone .modal-open en <body>: bajamos la barra por debajo del modal (backdrop 1040 /
   modal 1050) para que no lo tape. */
body.modal-open .checkout-bottom-bar {
  z-index: 1030;
}
.checkout-bottom-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.checkout-bb-back {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}
.checkout-bb-back:hover {
  background: #f5f5f5;
  color: #000;
}
.checkout-bb-total {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  text-align: center;
  flex: 1;
}
.checkout-bb-continue {
  padding: 10px 26px !important;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
/* espacio para que el contenido no quede tapado por la barra fija */
.checkout-page #wrapper {
  padding-bottom: 96px;
}
@media (max-width: 575px) {
  .checkout-bottom-bar-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .checkout-bb-back {
    padding: 8px 10px;
    font-size: 11px;
  }
  .checkout-bb-total {
    font-size: 17px;
  }
  .checkout-bb-continue {
    padding: 9px 14px !important;
    font-size: 12px;
  }
}

hr {
  border: none;
}

/* Menú flotante de WhatsApp (varios agentes) */
.whatsapp-agents-menu {
  position: fixed;
  right: 40px;
  bottom: 100px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  padding: 10px;
  width: 240px;
  max-width: 80vw;
  display: none;
  z-index: 101;
}
.whatsapp-agents-menu.open {
  display: block;
}
.whatsapp-agents-menu .wsp-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}
.whatsapp-agents-menu .wsp-menu-item {
  display: block;
  padding: 9px 11px;
  margin: 3px 0;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
  background: #f6f7f9;
  font-size: 14px;
  transition: background 0.15s;
}
.whatsapp-agents-menu .wsp-menu-item:hover {
  background: #e6f7ee;
}

/* ===== Merged from headerv2.css ===== */
.header-v2 .account-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: black;
}
.header-v2 .welcome-text {
  font-size: 12px;
  color: black;
}
.header-v2 .account-name {
  font-size: 16px;
  font-weight: bold;
}
.header-v2 .account-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-v2 .li-main-nav-right > a {
  color: #555;
  line-height: 15px;
  position: relative;
}

.header-v2 .top-search-bar .input-search {
  background-color: #f6f6f6;
  border: 2px solid black !important;
  border-radius: 3px;
}

.header-v2 button.btn.btn-default.btn-search {
  background: black !important;
}

.header-v2 button.btn.btn-default.btn-search i {
  color: white !important;
}

.header-v2 ul.dropdown-menu.show {
  position: absolute !important;
  transform: translate3d(0px, 30px, 0px) !important;
  top: 0px;
  left: 0px !important;
  will-change: transform;
  min-width: 180px !important;
  font-size: 1em;
}

/* Mega menú vertical (div): no forzar translate3d; alinear con el ítem del nav */
.header-v2 .dropdown-menu.mega-menu.mega-menu-vertical.show {
  transform: none !important;
  left: 0 !important;
  right: auto !important;
}

.header-v2 ul.dropdown-menu.show i {
  font-size: 1em;
  margin-right: 5px;
}

.header-v2 .profile-dropdown .dropdown-menu li a {
  padding: 0px 0px !important;
}

.header-v2 .li-main-nav-right > a i {
  float: left;
  margin-right: 5px;
  font-size: 1.5rem;
  position: relative;
  color: black;
}

/* Top bar: columna es flex (.col-2 en hardreset); evitar float para no romper orden/alineación con el builder */
.header-v2 .top-bar-v2 .social-links-top-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  float: none;
  justify-content: flex-end;
  align-items: center;
}

.header-v2 .top-bar-v2 .social-links-top-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  float: none;
}

.header-v2 .social-links-top-bar ul li {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  list-style: none;
  margin-top: 6px;
}

.header-v2 .top-bar-v2 .social-links-top-bar ul li {
  float: none;
}

.header-v2 li.nav-item.nav-item-cart.li-main-nav-right {
  margin-top: 5px;
}

@media (max-width: 767px) {
  .top-bar-v2 {
    display: none;
  }
}

.nav-top .header-v2 .account-link {
  margin: 0px !important;
}

.header-v2 .right-items-header .li-main-nav-right > a {
  display: flex;
  align-items: center;
}

/* Usuario sin textos (solo ícono ± flecha): quita gap flex y márgenes entre íconos */
.header-v2 .li-main-nav-right > a.account-link--icon-only {
  gap: 0;
}
.header-v2 .li-main-nav-right > a.account-link--icon-only > .account-icon,
.header-v2 .li-main-nav-right > a.account-link--icon-only > .dropdown-arrow {
  margin-right: 0;
}

.header-v2 .right-items-header .li-main-nav-right > a i {
  line-height: 1;
}

/*
 * Enlaces de marca en el mega menú: el front carga style-2.0.min.css; si no está regenerado,
 * siguen aplicando las reglas de .second-category (border-bottom + transition) y se ve un “borde”
 * al salir del hover. Forzamos anulación aquí (headerv2.css va después del min).
 */
.mega-menu .menu-subcategories a.nav-brand-link.second-category,
.main-menu .menu-subcategories a.nav-brand-link.second-category,
.dropdown-menu.padding-3 .menu-subcategories a.nav-brand-link.second-category {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  -webkit-transition:
    color 0.1s ease-in-out,
    background-color 0.1s ease-in-out !important;
  transition:
    color 0.1s ease-in-out,
    background-color 0.1s ease-in-out !important;
}

.mega-menu .menu-subcategories a.nav-brand-link.second-category:hover,
.mega-menu .menu-subcategories a.nav-brand-link.second-category:focus,
.mega-menu .menu-subcategories a.nav-brand-link.second-category:active,
.mega-menu .menu-subcategories a.nav-brand-link.second-category:focus-visible,
.main-menu .menu-subcategories a.nav-brand-link.second-category:hover,
.main-menu .menu-subcategories a.nav-brand-link.second-category:focus,
.main-menu .menu-subcategories a.nav-brand-link.second-category:active,
.main-menu .menu-subcategories a.nav-brand-link.second-category:focus-visible,
.dropdown-menu.padding-3
  .menu-subcategories
  a.nav-brand-link.second-category:hover,
.dropdown-menu.padding-3
  .menu-subcategories
  a.nav-brand-link.second-category:focus,
.dropdown-menu.padding-3
  .menu-subcategories
  a.nav-brand-link.second-category:active,
.dropdown-menu.padding-3
  .menu-subcategories
  a.nav-brand-link.second-category:focus-visible {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.mega-menu .menu-subcategories a.nav-brand-link.second-category img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Checkout: toggle envío a domicilio / retiro en sucursal */
.delivery-mode-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.delivery-mode-tab {
  flex: 1;
  background: #fff;
  border: 0;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.delivery-mode-tab + .delivery-mode-tab {
  border-left: 1px solid #e2e8f0;
}
.delivery-mode-tab:hover {
  background: #f8fafc;
}
.delivery-mode-tab.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}
.delivery-mode-tab.active::after {
  content: "\2714";
  font-size: 1.2rem;
  color: black;
}
.pickup-cost-label {
  display: inline-block;
  margin-top: 4px;
}

/* Sidecart: aviso de stock (cantidad ajustada / sin stock) */
.cart-offcanvas-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}
.cart-offcanvas-notice i {
  margin-right: 4px;
}

/* Ficha de producto: hint de stock bajo cerca del selector de cantidad (sutil) */
.product-stock-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}

.slider-categories-home .slick-track img {
  padding-right: 10px;
}

/* Category slider section: force uniform circular thumbs regardless of source
   aspect ratio (own category image or fallback to first product photo). */
.index-section--index_category_slider .slider-categories-home img,
.index-section--index_category_slider .category-grid-item img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

/* Banner sections: opción "cada banner al 100% en mobile" (apilados). El ancho %
   inline se mantiene en desktop; esta clase lo pisa solo en pantallas chicas. */
@media (max-width: 575px) {
  .col-index-bn.bn-mobile-full {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

#footer a {
  color: #888;
}

/* Slider de categorías (home) — grid con columnas configurables desde el admin (--cs-cols). */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(var(--cs-cols, 6), minmax(0, 1fr));
  gap: 16px;
}
.cs-grid .category-grid-item {
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .cs-grid {
    grid-template-columns: repeat(min(var(--cs-cols, 6), 4), minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .cs-grid {
    grid-template-columns: repeat(min(var(--cs-cols, 6), 3), minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .cs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hfb-toggle-sticky-active #header .main-menu .nav-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Collapse de secciones del sidebar de filtros (catalogo): titulo = toggle +/-, cerrado por defecto */
.product-filters .filter-item > .title {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
  -webkit-user-select: none;
  user-select: none;
}
.product-filters .filter-item > .title::after {
  content: "\2212";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: #888;
  transition: color 0.15s ease;
}
.product-filters .filter-item.is-collapsed > .title::after {
  content: "+";
}
.product-filters .filter-item > .title:hover::after {
  color: var(--site-primary-color, #4a8df4);
}
.product-filters .filter-item.is-collapsed > *:not(.title) {
  display: none !important;
}
.product-filters .filter-item .title .toggle-icon {
  display: none !important;
}
.product-filters .filter-item > .title .collapse-toggle {
  color: inherit;
  text-decoration: none;
  display: block;
}
/* El form de variantes es solo un wrapper de envio: que sus .filter-item se
   comporten como hermanos directos del resto de secciones (categorias, marcas...). */
.product-filters .variant-filter-form {
  display: contents;
}

/* ──────────────────────────────────────────────────────────────
   Filtros como offcanvas también en DESKTOP (opcional, admin).
   Con body.catalog-desktop-offcanvas: el listado ocupa todo el ancho
   y el sidebar se abre como panel lateral con el botón "Filtrar"
   (mismo patrón que el offcanvas mobile, replicado en >=769px).
   ────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  body.catalog-desktop-offcanvas .btn-filter-products-mobile {
    display: inline-block;
  }
  body.catalog-desktop-offcanvas .col-content-products {
    flex: 0 0 100%;
    max-width: 100%;
  }
  body.catalog-desktop-offcanvas .filters-offcanvas-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 10074;
  }
  body.catalog-desktop-offcanvas .filters-offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  body.catalog-desktop-offcanvas .col-sidebar-products {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    max-width: 90%;
    flex: none !important;
    background: #fff;
    z-index: 10075;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 24px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
  }
  body.catalog-desktop-offcanvas .col-sidebar-products.active {
    transform: translateX(0);
  }
  body.catalog-desktop-offcanvas .col-sidebar-products .product-filters {
    display: block !important;
  }
  body.catalog-desktop-offcanvas .filters-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 14px 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
    z-index: 2;
  }
  body.catalog-desktop-offcanvas .filters-offcanvas-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.catalog-desktop-offcanvas .filters-offcanvas-close {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #444;
    padding: 0 4px;
    cursor: pointer;
  }
  body.catalog-desktop-offcanvas.filters-oc-open {
    overflow: hidden;
  }
}
