/* Base alineado a Soger.Commerce (site.css reducido + footer + WhatsApp float) */
#soger-prerender-home:empty {
  display: none;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  overflow-y: auto;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  /* Sin overflow-x en body: clip/hidden en ancestros rompe position:sticky del catálogo. */
  overflow-x: visible;
  overflow-y: auto;
  margin: 0;
  max-width: 100%;
}

#root {
  display: block;
}

/* Shell de tienda: flujo normal (como _Layout.cshtml), sin recortar a 100vh con flex. */
.commerce-layout-shell {
  overflow: visible;
}

.commerce-layout-shell > main {
  overflow: visible;
}

/* Aparición gradual al scroll (paridad site.css legacy Soger.Commerce). */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.commerce-store-loading-animation {
  max-width: min(96px, 80vw);
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Checkout: panel resumen fijo al scroll (misma técnica que filtros del catálogo). */
.checkout-page-layout {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  overflow: visible;
}

@media (min-width: 992px) {
  .checkout-page-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .checkout-page-aside {
    position: relative;
    align-self: stretch;
    min-height: 100%;
    z-index: 1020;
  }

  .checkout-page-aside-sticky {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-page-aside-sticky.is-fixed {
    position: fixed;
    z-index: 1020;
  }

  .checkout-page-aside-sticky.is-at-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: auto;
    max-height: none;
  }
}

.checkout-shipping-quotes-table {
  --checkout-shipping-row-hover-bg: rgba(0, 0, 0, 0.06);
}

.checkout-shipping-quotes-table tbody tr.checkout-shipping-quotes-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.checkout-shipping-quotes-table tbody tr.checkout-shipping-quotes-row:hover {
  background-color: var(--checkout-shipping-row-hover-bg);
}

.checkout-shipping-quotes-table tbody tr.checkout-shipping-quotes-row--selected {
  background-color: rgba(37, 140, 251, 0.08);
}

.checkout-shipping-quotes-table tbody tr.checkout-shipping-quotes-row--selected:hover {
  background-color: rgba(37, 140, 251, 0.12);
}

.checkout-shipping-quotes-col-select {
  width: 2.25rem;
}

.checkout-shipping-quotes-table td,
.checkout-shipping-quotes-table th {
  vertical-align: middle;
}

.checkout-shipping-quotes-table .form-check-input {
  cursor: pointer;
  margin-top: 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Landing /contacto (layout mínimo, sin shell de tienda) */
.contact-landing-logo {
  max-height: 200px;
  object-fit: contain;
}

.contact-landing-hours {
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  margin-top: auto;
  padding-top: 1rem;
}

.contact-landing-hours-text {
  white-space: pre-line;
  font-size: 1.25rem;
  text-align: center;
  padding-right: 0;
}

.contact-landing-credit {
  font-size: 0.95rem;
}

.contact-landing-credit-link {
  text-decoration: none;
}

.contact-landing-credit-link:hover {
  text-decoration: underline;
}

/* Footer (mirror wwwroot/css/footer.css) */
footer {
  background-color: var(--footer-background-color, #212529);
  color: var(--footer-text-color, #f8f9fa);
  padding: 40px 0 0 0;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

footer p {
  text-align: right;
  padding-right: 20px;
  margin: 0;
}

footer p a {
  color: var(--footer-text-color, #f8f9fa) !important;
}

footer .footer-frame {
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 30px 0 30px 0;
}

@media (max-width: 567px) {
  footer .footer-frame {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 567px) {
  footer .footer-frame {
    width: 60%;
  }
}

footer .footer-frame h3 {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  padding-bottom: 40px;
}

footer .footer-frame button,
footer .footer-frame a,
footer .footer-frame .btn-footer {
  font-size: 1.3em;
  color: var(--footer-text-color, #f8f9fa);
}

footer .footer-frame button,
footer .footer-frame a {
  white-space: nowrap;
}

footer .footer-frame .btn-footer-text {
  white-space: pre-line;
  cursor: default;
  display: inline-block;
  text-align: left;
}

footer .footer-frame button:hover,
footer .footer-frame a:hover {
  color: var(--footer-hover-color, #ccc) !important;
}

footer .footer-logo {
  text-align: center;
}

footer .footer-logo img {
  padding-top: 30px;
  max-width: 70%;
}

.btn-footer-information {
  text-align: left;
}

/* Float WhatsApp (wwwroot/css/footer-buttons.css) */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 45px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  transform: scale(1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-float .whatsapp-icon {
  line-height: 1;
}

/* Login: hueco sobre el badge de Google reCAPTCHA v3 (~esquina inferior derecha). */
.whatsapp-float.whatsapp-float--above-recaptcha {
  bottom: 118px;
}

/* Modal opciones WhatsApp (mirrors _WhatsAppModal.cshtml inline styles) */
#whatsappModal .btn-whatsapp-contact {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
}

#whatsappModal .btn-whatsapp-contact:hover {
  background-color: #1da851;
  border-color: #1da851;
  color: #fff;
}

/* Hero / carrusel home — alto según proporción real de la imagen (ancho 100%) */
.storefront-banner-slide {
  line-height: 0;
}

.storefront-banner-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.storefront-hero-carousel-indicators.carousel-indicators {
  margin-bottom: 0.85rem;
  z-index: 4;
}

.storefront-hero-carousel-indicators [data-bs-target] {
  width: 2.25rem;
  height: 3px;
  border: none;
  border-radius: 0;
  margin: 0 0.35rem;
  background-color: rgba(255, 255, 255, 0.45);
}

.storefront-hero-carousel-indicators .active {
  background-color: #fff;
}

.storefront-hero-carousel-caption.carousel-caption {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.storefront-hero-carousel .carousel-control-prev,
.storefront-hero-carousel .carousel-control-next {
  width: clamp(44px, 6vw, 72px);
  z-index: 3;
}

/* -----------------------------------------------------------------------------
   Destacados (home) — paridad con Soger.Commerce Razor
   ----------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

  .storefront-featured-products.segmento {
    padding-left: max(6px, env(safe-area-inset-left));
    padding-right: max(6px, env(safe-area-inset-right));
    box-sizing: border-box;
  }
}

.storefront-featured-carousel-store .carousel-item .storefront-featured-row {
  --bs-gutter-x: clamp(16px, 2.5vw, 26px);
  --bs-gutter-y: clamp(14px, 2vw, 22px);
  margin-inline: calc(var(--bs-gutter-x) * -0.5);
}

.storefront-featured-col {
  padding: clamp(12px, 2.2vw, 22px);
  box-sizing: border-box;
}

.storefront-featured-col > .storefront-featured-card {
  width: 100%;
}

.storefront-featured-carousel-wrap {
  position: relative;
  padding: 10px clamp(42px, 5vw, 56px) 36px;
}

@media (max-width: 767.98px) {

  .storefront-featured-carousel-wrap {
    padding: 6px clamp(34px, 9vw, 40px) 30px;
  }

  .storefront-featured-carousel-store .carousel-item .storefront-featured-row {
    --bs-gutter-x: clamp(6px, 1.8vw, 10px);
    --bs-gutter-y: clamp(10px, 3vw, 14px);
    margin-inline: calc(var(--bs-gutter-x) * -0.5);
  }

  .storefront-featured-col {
    padding: 6px 2px;
  }

  .storefront-featured-carousel-store .carousel-inner {
    padding: 10px 2px;
  }

  .storefront-featured-card:hover,
  .storefront-featured-card:focus-visible {
    transform: scale(1.022);
  }
}

.storefront-featured-carousel .carousel-inner {
  overflow: hidden;
}

.storefront-featured-carousel-store .carousel-inner {
  overflow: hidden;
  padding: 18px 10px;
}

.storefront-featured-carousel .carousel-indicators.storefront-featured-carousel-indicators {
  margin-bottom: 0;
  bottom: -4px;
  gap: 0.35rem;
}

.storefront-featured-carousel .carousel-indicators.storefront-featured-carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  text-indent: 0;
  background-color: #d8dadd;
}

.storefront-featured-carousel .carousel-indicators.storefront-featured-carousel-indicators .active {
  background-color: #5c636a;
}

.storefront-featured-carousel .carousel-control-prev,
.storefront-featured-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 40%;
  transform: translateY(-50%);
  bottom: auto;
  border-radius: 50%;
  background-color: #5c636a;
  opacity: 1;
}

.storefront-featured-carousel .carousel-control-prev-icon,
.storefront-featured-carousel .carousel-control-next-icon {
  filter: invert(100%);
  transform: scale(0.92);
}

.storefront-featured-carousel .carousel-control-prev {
  left: 0;
}

.storefront-featured-carousel .carousel-control-next {
  right: 0;
}

.storefront-featured-carousel .carousel-control-prev:hover,
.storefront-featured-carousel .carousel-control-next:hover {
  background-color: #494f55;
}

@media (max-width: 575.98px) {

  .storefront-featured-carousel .carousel-control-prev,
  .storefront-featured-carousel .carousel-control-next {
    width: 38px;
    height: 38px;
  }
}

.storefront-featured-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgb(232 239 246);
  border-radius: 0.65rem;
  background-color: #fff;
  box-shadow:
    0 1px 2px rgb(15 37 71 / 0.06),
    0 0 1px rgb(15 37 71 / 0.04);
  transition:
    transform 0.24s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.24s ease,
    border-color 0.22s ease;
}

.storefront-featured-card:focus-visible {
  outline: none;
}

.storefront-featured-card:hover,
.storefront-featured-card:focus-visible {
  z-index: 2;
  transform: scale(1.045);
  border-color: rgb(158 183 229);
  box-shadow:
    0 14px 32px rgb(160 185 229 / 0.5),
    0 6px 12px rgb(33 37 41 / 0.1),
    inset 0 0 0 1px rgb(173 193 237 / 0.35);
}

.storefront-featured-offer-ribbon {
  pointer-events: none;
  position: absolute;
  top: clamp(22px, 5.5vw, 30px);
  right: -46px;
  z-index: 3;
  width: 152px;
  padding: 0.35rem 0;
  background: linear-gradient(to bottom right, #ffeb3b, #fdd835);
  color: #1a1d21;
  font-size: clamp(10px, 2.65vw, 11px);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transform: rotate(45deg);
  transform-origin: center center;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18);
}

.storefront-featured-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storefront-featured-img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.storefront-featured-card:hover .storefront-featured-img,
.storefront-featured-card:focus-visible .storefront-featured-img {
  transform: scale(1.05);
}

.storefront-featured-meta {
  font-size: clamp(11px, 2.65vw, 13px);
  color: #9aa4ad;
  line-height: 1.3;
}

.storefront-featured-name {
  font-size: clamp(12px, 2.95vw, 14px);
  line-height: 1.38;
  font-weight: 700;
  margin-top: 0.35rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  min-height: 2.76em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.storefront-featured-price-stack {
  margin-top: auto;
}

.storefront-featured-card .producto-footer.storefront-featured-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.55rem;
}

.storefront-featured-card .producto-stock {
  color: #888;
  font-size: clamp(10px, 2.4vw, 12px);
  flex: 1 1 auto;
  min-width: 0;
}

.storefront-featured-card .producto-precio.storefront-featured-price-row-main {
  font-size: clamp(13px, 3.35vw, 15px);
  line-height: 1.2;
  margin-top: 0;
  flex-shrink: 0;
}

.storefront-featured-price-row-main {
  text-align: right;
  font-weight: 700;
  color: #000;
  font-size: clamp(13px, 3.35vw, 15px);
  line-height: 1.2;
}

.storefront-featured-price-row-main .was {
  margin-right: 0.35rem;
  font-weight: 700;
  color: #ce3e38;
  text-decoration: line-through;
}

.storefront-featured-price-row-main .now {
  color: #000;
}

.storefront-featured-noimg {
  opacity: 0.45;
}

.storefront-ad-banner-row {
  align-items: stretch;
}

.storefront-ad-banner-cell {
  background: transparent;
}

.storefront-ad-banner-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Consejos home — panel-tip + radios imagen (`wwwroot/css/site.css` legacy Commerce) */

.panel-tip {
  padding: 30px;
}

.storefront-tip-banner-img {
  border-radius: 15px;
}

/* -----------------------------------------------------------------------------
   Nuestras marcas (home) — paridad _BrandsStyles.cshtml Soger.Commerce Razor
   ----------------------------------------------------------------------------- */

.storefront-home-brands .panel-marcas {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.storefront-home-brands .marcas-viewport {
  overflow: hidden;
  width: 100%;
}

.storefront-home-brands .marcas-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}

.storefront-home-brands .marcas-track a {
  flex: 0 0 calc(100% / 8 - 1rem * 7 / 8);
  max-width: 100%;
  height: auto;
  max-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storefront-home-brands .marcas-track a img {
  max-height: 100px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 20px;
}

.storefront-home-brands .marcas-track a.marcas-clone {
  pointer-events: none;
}

.storefront-home-brands .marcas-arrow {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.storefront-home-brands .marcas-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.storefront-home-brands .marcas-dots {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.storefront-home-brands .marcas-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.storefront-home-brands .marcas-dots button.active {
  background: #333;
}

@media (max-width: 767.98px) {

  .storefront-home-brands .marcas-track a {
    flex: 0 0 calc(100% / 3 - 1rem * 2 / 3);
  }

  .storefront-home-brands .marcas-track a img {
    max-height: 72px;
    padding: 10px;
  }
}

/* -----------------------------------------------------------------------------
   PDP — copia de Views/Productos/_ProductoStyles.cshtml (Razor Commerce)
   ----------------------------------------------------------------------------- */

.producto-sku,
.producto-sku-mobile {
  color: #888;
  margin-top: 20px;
  font-size: 0.9em;
}

.producto-sku-mobile {
  margin-left: 20px;
  font-size: 1.3em;
}

.producto-titulo,
.producto-titulo-mobile {
  margin-top: 5px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  color: #0071bd;
}

.producto-titulo-mobile h1 {
  font-size: 1.5em;
}

.producto-titulo-mobile {
  margin-left: 20px;
  margin-right: 20px;
}

.producto-precio .col-precio {
  margin-top: 5px;
  font-size: 1.3em;
  letter-spacing: 1px;
}

.producto-precio .col-precio span.main-price {
  font-weight: bold;
  font-size: 1.5em;
}

.producto-precio .col-precio span.origin-price {
  font-weight: normal;
  font-size: 1em;
  color: red;
}

.producto-precio-mobile {
  padding-left: 20px;
  padding-right: 20px;
}

.producto-precio-mobile .col-precio {
  letter-spacing: 1px;
}

.producto-precio-mobile .col-precio span.main-price {
  font-weight: bold;
  font-size: 1.5em;
}

.producto-precio-mobile .col-precio span.origin-price {
  font-weight: normal;
  font-size: 1em;
  color: red;
}

.producto-descripcion {
  text-align: justify;
  padding-right: 40px;
}

.producto-descripcion-mobile {
  text-align: justify;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 40px;
  font-size: 1.2em;
}

.producto-descripcion h4,
.producto-descripcion-mobile h5 {
  color: #0071bd;
  margin-top: 30px;
  margin-bottom: 20px;
}

.producto-carro,
.producto-carro-mobile {
  margin-top: 30px;
}

.producto-carro-mobile {
  padding-right: 40px;
}

.producto-carro .input-cantidad input[type='number'],
.producto-carro .input-cantidad button,
.producto-carro-mobile .input-cantidad input[type='number'],
.producto-carro-mobile .input-cantidad button {
  border: 1px solid #0071bd;
  font-weight: bold;
}

.producto-carro-mobile .input-cantidad input[type='number'],
.producto-carro-mobile .input-cantidad button {
  font-size: 20px;
}

.product-image-gallery {
  position: relative;
}

.product-main-image {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.product-thumbnail {
  min-width: 80px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  background: #fff;
}

.product-thumbnail:hover {
  border-color: #0d6efd;
  transform: scale(1.05);
}

.product-thumbnail.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgb(13 110 253 / 0.25);
}

.stock-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.stock-available {
  background-color: #d1e7dd;
  color: #0f5132;
}

.stock-low {
  background-color: #fff3cd;
  color: #856404;
}

.stock-out {
  background-color: #f8d7da;
  color: #842029;
}

.stock-backorder {
  background-color: #cfe2ff;
  color: #084298;
}

.stock-inquiry-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #d1e7dd;
  color: #0f5132;
  text-decoration: none;
  border: none;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
}

.stock-inquiry-wa:hover,
.stock-inquiry-wa:focus {
  background-color: #badbcc;
  color: #0a3622;
  text-decoration: none;
}

.stock-inquiry-wa--compact {
  font-size: 0.75rem;
  padding: 4px 10px;
}

.stock-inquiry-wa--muted {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: default;
}

.stock-inquiry-wa--muted:hover,
.stock-inquiry-wa--muted:focus {
  background-color: #e9ecef;
  color: #6c757d;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.2rem;
}

.rating-stars .star-empty {
  color: #dee2e6;
}

.reviews-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e9ecef;
}

.review-item {
  padding: 20px;
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0d6efd;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verified-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #198754;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 10px;
}

.related-products-wrap {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
}

.related-products-heading {
  color: #0071bd;
  font-weight: 600;
}

.related-products-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.related-product-card {
  flex: 0 0 160px;
  max-width: 160px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.related-product-card:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  color: inherit;
}

.related-product-image {
  height: 100px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-product-image img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.related-product-body {
  padding: 0.5rem 0.65rem;
}

.related-product-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.related-product-price {
  font-size: 0.9rem;
  font-weight: bold;
  color: #0071bd;
  margin-top: 0.35rem;
}

.related-product-price .origin-price {
  color: red;
  text-decoration: line-through;
  font-weight: normal;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

/* Modal mega categorías: sidebar estrecho y fondo blanco (no hereda nav del header). */
#modalCategorias .modal-content {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  color: #212529;
}

#modalCategorias .modal-header {
  background-color: #fff;
  color: #212529;
}

#modalCategorias .categorias-mega-layout {
  background-color: #fff;
}

#modalCategorias .categorias-mega-sidebar {
  flex: 0 0 11.5rem;
  width: 11.5rem;
  max-width: 11.5rem;
  background-color: #fff;
}

#modalCategorias .categorias-mega-sidebar .list-group-item {
  background-color: #fff;
  border-color: #eee;
}

#modalCategorias .categorias-mega-ver-todo-item {
  border-bottom: 1px solid #dee2e6 !important;
}

#modalCategorias .categorias-mega-parent-item {
  font-size: 0.9375rem;
  line-height: 1.35;
  background-color: #fff;
  color: #212529;
  font-weight: 500;
  box-shadow: none;
}

#modalCategorias .categorias-mega-ver-todo {
  font-weight: 600;
}

#modalCategorias .categorias-mega-parent-item.active {
  background-color: color-mix(in srgb, var(--primary-color, #0d6efd) 14%, #fff) !important;
  color: #212529 !important;
  border-left: 3px solid var(--primary-color, #0d6efd) !important;
  font-weight: 600;
}

#modalCategorias .categorias-mega-parent-item:hover:not(.active),
#modalCategorias .categorias-mega-ver-todo:hover {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

#modalCategorias .categorias-mega-content {
  background-color: #fff;
  color: #212529;
}

#modalCategorias .categorias-mega-root-link {
  color: #212529;
}

#modalCategorias .categorias-mega-root-link:hover,
#modalCategorias .categorias-mega-child-link:hover {
  color: var(--primary-color, #0d6efd);
}

@media (min-width: 992px) {
  #modalCategorias .categorias-mega-sidebar {
    flex-basis: 12.5rem;
    width: 12.5rem;
    max-width: 12.5rem;
  }
}

/* Header: búsqueda + dropdown compatibilidad (centra el bloque; evita doble top:50% del tema). */
.header-main .header-search-stack {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.header-main .header-search-stack .input-search {
  top: auto;
  transform: none;
}

.header-main .header-compat-filters {
  display: flex;
  gap: 0.5rem;
}

.header-main .header-compat-select {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.navbar-compat-filters {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.navbar-compat-select {
  width: 8.5rem;
  min-width: 0;
  max-width: 10rem;
}

@media (max-width: 991.98px) {
  .navbar-compat-select {
    width: 5.75rem;
    max-width: 5.75rem;
    font-size: 0.75rem;
    padding-left: 0.35rem;
    padding-right: 1.5rem;
  }
}

/* Dropdown categorías: submenús anidados (Bootstrap dropend). */
.dropdown-menu-categorias .category-nav-dropend > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
}

.dropdown-menu-categorias .category-nav-submenu-toggle {
  color: inherit;
}

.dropdown-menu-categorias .category-nav-submenu-toggle::after {
  margin-left: auto;
}

/* Impresión (layout original) */
@media print {

  .container {
    max-width: 100% !important;
  }
  .btn,
  .alert {
    display: none !important;
  }
  #form-busqueda,
  #form-busqueda-movil {
    display: none !important;
  }
  header nav.navbar {
    display: none !important;
  }
  footer {
    display: none !important;
  }
  .whatsapp-float {
    display: none !important;
  }
}
