.products-page {
  width: min(1440px, calc(100% - 2rem));
  margin: 1.25rem auto 4rem;
  display: block;
}

/*
  En la página de productos anulamos el grid global del home.
  Esto permite que el banner de marca quede arriba del catálogo y,
  cuando está en fullscreen, pueda ocupar todo el ancho de la ventana.
*/
body[data-page="products"] main {
  width: 100%;
  margin: 0 0 4rem;
  display: block;
}

/* Banner de marca — full-bleed por defecto */
.brand-page-banner {
  width: 100%;
  display: block;
  overflow: hidden;
  line-height: 0;
  margin-top: var(--brand-banner-space-top, -1px);
  margin-bottom: var(--brand-banner-space-bottom, 0px);
  position: relative;
}

/* Modo contenedor (sin full-width) */
.brand-page-banner--contained {
  width: min(1440px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 var(--radius-xl, 16px) var(--radius-xl, 16px);
  overflow: hidden;
}

.brand-page-banner.is-hidden {
  display: none;
}

.brand-page-banner__viewport {
  position: relative;
  width: 100%;
  height: var(--brand-banner-height, 400px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  background: var(--surface, #fff);
}

.brand-page-banner.is-dragging .brand-page-banner__viewport {
  cursor: grabbing;
}

.brand-page-banner__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.brand-page-banner__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: var(--brand-banner-fit, contain);
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  background: var(--surface, #fff);
}

.brand-page-banner__dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 2;
}

.brand-page-banner__dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
  cursor: pointer;
}

.brand-page-banner__dot.is-active {
  background: #ffffff;
  transform: scale(1.1);
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
}

@media (max-width: 760px) {
  .brand-page-banner__viewport {
    height: var(--brand-banner-height, 400px);
  }

  .brand-page-banner__slide {
    object-fit: var(--brand-banner-fit, contain);
    object-position: center;
  }
}

.products-sidebar {
  position: sticky;
  top: 7.25rem;
  align-self: start;
  display: grid;
  gap: 0.9rem;
}

.filter-box {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.filter-box.is-hidden {
  display: none !important;
}

.filter-box h2 {
  margin: 0;
  font-size: 0.98rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.products-sidebar .chip-list {
  flex-direction: column;
  align-items: stretch;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.products-sidebar .filter-chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, white 86%), color-mix(in srgb, var(--accent-2) 16%, white 84%));
  border-color: color-mix(in srgb, var(--accent) 44%, white 56%);
  color: var(--accent);
  font-weight: 700;
}

body[data-page="products"].brand-theme-active .site-subheader {
  background: var(--brand-page-header-bg, var(--brand-page-subheader-bg, transparent));
  border-top-color: transparent;
  border-bottom: 0;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  margin-top: 0;
}

body[data-page="products"].brand-theme-active .site-header {
  background: var(--brand-page-header-bg, var(--surface));
  border-color: transparent;
}

body[data-page="products"].brand-theme-active .site-logo--horizontal {
  filter: var(--brand-page-logo-filter, none);
}

body[data-page="products"].brand-theme-active .site-header__nav a,
body[data-page="products"].brand-theme-active .site-categories summary,
body[data-page="products"].brand-theme-active .site-subheader__about,
body[data-page="products"].brand-theme-active .site-header__menu-toggle,
body[data-page="products"].brand-theme-active .site-header__search input,
body[data-page="products"].brand-theme-active .site-nav-brands summary {
  color: var(--brand-page-header-ink, var(--text));
}

body[data-page="products"].brand-theme-active .site-header__search input,
body[data-page="products"].brand-theme-active .site-categories summary,
body[data-page="products"].brand-theme-active .site-subheader__about,
body[data-page="products"].brand-theme-active .site-nav-brands summary,
body[data-page="products"].brand-theme-active .site-header__menu-toggle,
body[data-page="products"].brand-theme-active .site-header__nav a {
  background: var(--brand-page-header-chip-bg, transparent);
  border-color: var(--brand-page-header-chip-border, rgba(15, 23, 42, 0.15));
}

body[data-page="products"].brand-theme-active .site-header__search input::placeholder {
  color: var(--brand-page-header-ink-soft, var(--muted));
}

body[data-page="products"].brand-theme-active .site-header__nav a:hover,
body[data-page="products"].brand-theme-active .site-categories summary:hover,
body[data-page="products"].brand-theme-active .site-nav-brands summary:hover,
body[data-page="products"].brand-theme-active .site-nav-brands[open] summary,
body[data-page="products"].brand-theme-active .site-categories[open] summary,
body[data-page="products"].brand-theme-active .site-subheader__about:hover {
  background: color-mix(in srgb, var(--brand-page-header-chip-bg, transparent) 60%, var(--brand-page-header-ink, #fff) 10%);
}

body[data-page="products"].brand-theme-active .site-header__search input {
  box-shadow: none;
}

body[data-page="products"].brand-theme-active .site-subheader__inner .site-categories__menu {
  background: #ffffff;
  border-color: var(--brand-page-border-color, var(--border));
}

body[data-page="products"].brand-theme-active .site-subheader__inner .site-categories summary,
body[data-page="products"].brand-theme-active .site-subheader__inner .site-subheader__about {
  background: #ffffff;
  color: var(--text);
  border-color: var(--brand-page-border-color, var(--border));
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

body[data-page="products"].brand-theme-active .site-subheader__inner .site-categories[open] summary {
  background: #ffffff;
}

body[data-page="products"].brand-theme-active .filter-box,
body[data-page="products"].brand-theme-active .products-toolbar,
body[data-page="products"].brand-theme-active .product-tile__link,
body[data-page="products"].brand-theme-active .product-tile__media,
body[data-page="products"].brand-theme-active .pagination button,
body[data-page="products"].brand-theme-active .products-empty {
  border-color: var(--brand-page-border-color, var(--border));
}

body[data-page="products"].brand-theme-active .product-tile__price {
  color: var(--brand-page-price-color, var(--text));
}

.products-sidebar .button {
  width: 100%;
  justify-content: center;
}

#priceRange {
  width: 100%;
}

.price-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.price-meta strong {
  color: var(--text);
}

.products-content {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.products-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.products-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.products-toolbar__controls .button {
  padding: 0.72rem 1rem;
  font-size: 0.86rem;
}

.products-sort {
  min-width: 220px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.catalog-pdf-modal[hidden] {
  display: none;
}

.catalog-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.catalog-pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.catalog-pdf-modal__panel {
  position: relative;
  width: min(520px, calc(100% - 1rem));
  margin: clamp(1rem, 10vh, 5rem) auto 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.catalog-pdf-modal__panel h2 {
  margin: 0;
}

.catalog-pdf-modal__panel p {
  margin: 0;
  color: var(--muted);
}

.catalog-pdf-modal__options {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.catalog-pdf-modal__options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.catalog-pdf-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.catalog-pdf-loading[hidden] {
  display: none;
}

.catalog-pdf-loading {
  position: fixed;
  inset: 0;
  z-index: 1500;
}

.catalog-pdf-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.catalog-pdf-loading__panel {
  position: relative;
  width: min(420px, calc(100% - 1rem));
  margin: clamp(1.2rem, 18vh, 8rem) auto 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 56px rgba(15, 23, 42, 0.28);
  padding: 1.5rem 1.1rem;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.catalog-pdf-loading__ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: conic-gradient(#22c55e var(--progress, 0%), #e2e8f0 0%);
  display: grid;
  place-items: center;
}

.catalog-pdf-loading__ring-center {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.catalog-pdf-loading__title {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.catalog-pdf-loading__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  min-width: 0;
}

.product-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-tile:hover,
.product-tile:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.product-tile__actions {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  z-index: 4;
}

.product-tile__cart-btn {
  width: 2.02rem;
  height: 2.02rem;
  min-height: 2.02rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, 0.85));
  background: color-mix(in srgb, #ffffff 88%, var(--accent) 12%);
  color: color-mix(in srgb, var(--accent) 80%, #0f172a 20%);
  display: grid;
  place-items: center;
  font-size: 1.14rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.14);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.product-tile__cart-btn:hover,
.product-tile__cart-btn:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, #ffffff 78%, var(--accent) 22%);
  color: var(--accent);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
}

.product-tile__cart-btn.is-added {
  transform: scale(0.94);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: color-mix(in srgb, #16a34a 55%, var(--border));
}

.product-tile__link {
  display: grid;
  flex: 1;
  height: auto;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  transition: none;
}

.product-tile__link:hover,
.product-tile__link:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.product-tile__media {
  aspect-ratio: 1 / 1;
  padding: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), color-mix(in srgb, var(--surface) 96%, var(--accent-2) 4%));
  border-bottom: 1px solid var(--border);
}

.product-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-tile__body {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1rem;
  min-width: 0;
}

.product-tile__body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-tile__brand {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-tile__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.product-tile__meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.products-empty {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.2rem;
}

.pagination button {
  min-width: 42px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.pagination button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: white;
}

.product-detail-page {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

body[data-page="product-detail"] {
  background: var(--bg);
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.product-detail-card--no-gallery {
  grid-template-columns: 1fr;
}

.product-detail-gallery {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.product-detail-main-frame {
  height: min(var(--product-detail-main-image-height, 560px), 76vh);
  min-height: 260px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}

.product-detail-main-image,
.product-detail-main-image img {
  width: 100%;
  height: 100%;
}

.product-detail-main-image {
  background: #ffffff;
}

.product-detail-main-image img {
  object-fit: contain;
  display: block;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-detail-thumb-button {
  width: var(--product-detail-thumb-size, 88px);
  height: var(--product-detail-thumb-size, 88px);
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-detail-thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-detail-thumb-button:hover,
.product-detail-thumb-button.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 50%, white 50%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.product-detail-info {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.product-detail-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-detail-location a {
  color: var(--muted);
  text-decoration: none;
}

.product-detail-location a:hover,
.product-detail-location a:focus-visible {
  color: var(--product-detail-text-accent, var(--accent));
}

.product-detail-badges,
.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-detail-badge,
.product-detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.product-detail-header {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.product-detail-brand {
  margin: 0;
  color: var(--product-detail-text-accent, var(--accent));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.product-detail-brand:hover,
.product-detail-brand:focus-visible {
  text-decoration: underline;
}

.product-detail-header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.product-detail-price-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.product-detail-price-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-detail-price {
  color: var(--product-detail-text-accent, var(--accent));
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.product-detail-meta-inline {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-detail-meta-inline strong {
  color: var(--product-detail-text-accent, var(--accent));
}

.product-detail-meta-inline a {
  color: var(--product-detail-text-accent, var(--accent));
  text-decoration: none;
  font-weight: 700;
}

.product-detail-meta-inline a:hover,
.product-detail-meta-inline a:focus-visible {
  text-decoration: underline;
}

body[data-page="product-detail"] .product-detail-actions .button {
  background: var(--product-detail-button-bg, var(--accent));
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: none;
}

body[data-page="product-detail"] .product-detail-actions .button:hover,
body[data-page="product-detail"] .product-detail-actions .button:focus-visible {
  background: color-mix(in srgb, var(--product-detail-button-bg, var(--accent)) 88%, black 12%);
}

body[data-page="product-detail"] #backToProducts,
body[data-page="product-detail"] #shareProductBtn {
  background: var(--product-detail-button-secondary-bg, var(--accent-2));
}

body[data-page="product-detail"] #backToProducts:hover,
body[data-page="product-detail"] #backToProducts:focus-visible,
body[data-page="product-detail"] #shareProductBtn:hover,
body[data-page="product-detail"] #shareProductBtn:focus-visible {
  background: color-mix(in srgb, var(--product-detail-button-secondary-bg, var(--accent-2)) 88%, black 12%);
}

.product-detail-tags span[hidden] {
  display: none !important;
}

.product-detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-detail-banner-panel,
.product-detail-description-panel,
.product-detail-specs-panel,
.product-detail-similar,
.product-detail-empty {
  padding: 1.35rem;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.product-detail-banner-panel {
  padding: 0;
  overflow: hidden;
}

.product-detail-banner-panel img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-detail-description-panel h2,
.product-detail-specs-panel h2,
.product-detail-similar h2,
.product-detail-empty h1 {
  margin: 0 0 0.85rem;
}

.product-detail-description {
  color: var(--text);
  line-height: 1.75;
  white-space: pre-line;
}

.product-detail-specs {
  display: grid;
  border-top: 1px solid var(--border);
}

.product-detail-spec-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.product-detail-spec-row.is-full {
  grid-template-columns: 1fr;
}

.product-detail-spec-key {
  color: var(--text);
  font-weight: 700;
}

.product-detail-spec-value {
  color: var(--muted);
  text-align: right;
}

body[data-page="product-detail"] .product-detail-similar .product-tile__link {
  background: var(--surface);
  box-shadow: none;
}

body[data-page="product-detail"] .product-detail-similar .product-tile__link:hover,
body[data-page="product-detail"] .product-detail-similar .product-tile__link:focus-visible {
  box-shadow: none;
}

body[data-page="product-detail"] .product-detail-similar .product-tile__media {
  background: var(--surface-soft);
}

.products-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-tile--related .product-tile__body {
  gap: 0.5rem;
}

.product-detail-empty {
  text-align: center;
  justify-items: center;
}

.product-detail-empty p {
  margin: 0 0 1rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .products-layout,
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  body[data-page="products"] .brand-page-banner {
    background: #fff;
  }

  body[data-page="products"] .brand-page-banner__img {
    height: auto;
    object-fit: contain;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .products-sort {
    min-width: 0;
    width: 100%;
  }

  .products-grid,
  .products-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .product-detail-card,
  .product-detail-description-panel,
  .product-detail-specs-panel,
  .product-detail-similar,
  .product-detail-empty {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .products-layout {
    gap: 0.9rem;
  }

  .filter-box,
  .products-toolbar {
    padding: 0.9rem;
  }

  .chip-list,
  .product-detail-actions,
  .product-detail-badges,
  .product-detail-tags,
  .product-detail-thumbs {
    gap: 0.55rem;
  }

  .product-tile__body {
    padding: 0.9rem;
  }

  .product-detail-spec-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .product-detail-spec-value {
    text-align: left;
  }

  .product-detail-thumb-button {
    width: min(var(--product-detail-thumb-size, 88px), 72px);
    height: min(var(--product-detail-thumb-size, 88px), 72px);
  }

  .product-detail-main-frame {
    height: min(var(--product-detail-main-image-height, 560px), 62vw);
  }
}


