.storefront-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-logo {
  max-height: 80px;
  object-fit: contain;
}

.storefront-content-page img {
  max-width: 100%;
  height: auto;
}

.footer-info-modal-body img {
  max-width: 100%;
  height: auto;
}

#whatsappModal .btn-whatsapp-contact {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
}

#whatsappModal .btn-whatsapp-contact:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.stock-inquiry-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  text-decoration: none;
  font-size: 0.9rem;
}

.stock-inquiry-wa:hover {
  background: #c8e6c9;
  color: #1b5e20;
}

.stock-inquiry-wa--muted {
  opacity: 0.65;
  cursor: default;
}

.pdp-thumb.active {
  outline: 2px solid var(--primary-color, #0d6efd);
}

.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); display: flex; align-items: center; justify-content: center; }
.storefront-home-brands .marcas-track a img { max-height: 100px; max-width: 100%; object-fit: contain; padding: 20px; }
.storefront-home-brands .marcas-arrow { background: rgba(0,0,0,0.5); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; }
.storefront-home-brands .marcas-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ccc; }
.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); }
}

.contact-layout { min-height: 100vh; display: flex; flex-direction: column; }
.contact-layout main { flex: 1; display: flex; align-items: center; }

/* Evitar scroll horizontal sin tocar overflow del body (rompe sticky). */
html {
  max-width: 100%;
}

.commerce-layout-shell {
  max-width: 100%;
}

.commerce-layout-shell > main {
  max-width: 100%;
}

#site-header,
#site-header #header-dynamic {
  max-width: 100%;
  overflow-x: clip;
}

.storefront-catalog-layout,
.storefront-catalog-main,
.storefront-catalog-product-grid {
  max-width: 100%;
}

.storefront-catalog-filters-aside .panel-filtros {
  margin-left: 0;
  margin-right: 0.75rem;
}

.storefront-catalog-product-grid .panel-producto {
  margin: 0;
}

@media (max-width: 767.98px) {
  .header-main {
    --header-mobile-inset: 5%;
    --bs-gutter-x: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    margin-inline: 0;
    padding-inline: var(--header-mobile-inset);
    column-gap: 0.75rem;
    row-gap: 0.5rem;
  }

  .header-main > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .header-main .header-logo-cell {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
  }

  .header-main .img-main-logo {
    left: 0 !important;
  }

  .header-main .header-cart-cell {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
  }

  .header-main .header-search-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 0.75rem !important;
  }

  .header-main .input-search-movil {
    position: static !important;
    left: auto !important;
    width: 100% !important;
  }

  .header-main .btn-cart {
    top: auto !important;
    transform: none !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
}
.order-history-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.order-history-card:hover,
.order-history-card:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: var(--primary-color, #0d6efd);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.order-history-card-label {
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.order-history-card-total {
  font-size: 1.05rem;
}

.order-history-card-link {
  opacity: 0.85;
}

.order-history-card:hover .order-history-card-link {
  opacity: 1;
}

/* Mis compras — detalle */
.order-detail-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.order-detail-delivery-row {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.order-detail-delivery-row:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.order-detail-line-img {
  flex-shrink: 0;
  object-fit: cover;
}

.order-detail-pdf-frame {
  display: block;
  width: 100%;
  min-height: 75vh;
  border: 0;
  background: #f8f9fa;
}

.order-detail-pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.order-detail-pdf-loading.d-none {
  display: none !important;
}
