.gallery-demo-legal,
.gallery-demo-business {
  min-width: 0;
}

.gallery-demo-legal {
  display: grid;
  align-content: start;
  gap: 6px;
}

.gallery-demo-legal :is(a, span) {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  opacity: .82;
}

.gallery-demo-business {
  display: grid;
  align-content: start;
  gap: 6px;
}

/* La galería usa la misma escala que los modelos contratables. */
[data-gallery-demo-footer] {
  --footer-heading-size: 16px;
  --footer-copy-size: 13px;
  --footer-copy-leading: 1.4;
}

[data-gallery-demo-footer] :is(h3, .footer-brand strong, .catalog-footer-identity strong, .catalog-footer-column > strong, .catalog-footer-key-data > strong) {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: var(--footer-heading-size);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

[data-gallery-demo-footer] :is(p, a, small),
[data-gallery-demo-footer] .gallery-demo-legal > :is(a, span),
[data-gallery-demo-footer] .gallery-demo-business > span {
  font-family: inherit;
  font-size: var(--footer-copy-size);
  line-height: var(--footer-copy-leading);
}

.model-footer-grid,
.web-site-footer-grid {
  grid-template-columns: minmax(220px, 1.25fr) minmax(140px, .7fr) minmax(210px, 1fr) minmax(220px, 1fr) !important;
}

.model-footer-bottom,
.web-site-footer-bottom {
  justify-content: flex-start !important;
}

.demo-cart-trigger {
  position: relative;
  min-width: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: #178b65;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 139, 101, .25);
}

.demo-cart-trigger strong {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff;
  color: #0d5f45;
  text-align: center;
}

.demo-add-cart {
  border: 0;
  cursor: pointer;
}

.demo-dialog[hidden] {
  display: none !important;
}

.demo-dialog {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 19, .72);
  backdrop-filter: blur(10px);
}

.demo-dialog-panel {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .48);
  border-radius: 22px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 34px 90px rgba(2, 6, 23, .42);
}

.demo-dialog-panel.is-compact {
  width: min(560px, 100%);
}

.demo-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #dbe4ef;
  background: #0f203b;
  color: #fff;
}

.demo-dialog-header h2,
.demo-dialog-header p {
  margin: 0;
}

.demo-dialog-header p {
  margin-top: 5px;
  color: #d6e1ef;
  font-size: 13px;
}

.demo-dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.demo-dialog-body {
  padding: 24px;
}

.demo-cart-list {
  display: grid;
  gap: 12px;
}

.demo-cart-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
}

.demo-cart-item img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.demo-cart-item h3,
.demo-cart-item p {
  margin: 0;
}

.demo-cart-item p {
  margin-top: 5px;
  color: #53627a;
  font-size: 13px;
}

.demo-cart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.demo-cart-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #cad5e3;
  border-radius: 8px;
  background: #fff;
  color: #10213c;
  font-weight: 900;
  cursor: pointer;
}

.demo-cart-controls .demo-remove-item {
  border-color: #fecaca;
  color: #b42318;
}

.demo-cart-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dbe4ef;
  font-size: 18px;
  font-weight: 950;
}

.demo-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.demo-dialog-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #b9c8da;
  border-radius: 10px;
  background: #fff;
  color: #10213c;
  font-weight: 900;
  cursor: pointer;
}

.demo-dialog-button.is-primary {
  border-color: #178b65;
  background: #178b65;
  color: #fff;
}

.demo-dialog-button.is-payment {
  border-color: #f1c232;
  background: #f1c232;
  color: #171717;
}

.demo-empty-cart {
  padding: 44px 20px;
  text-align: center;
  color: #53627a;
}

.demo-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-checkout-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.demo-checkout-grid label.is-wide {
  grid-column: 1 / -1;
}

.demo-checkout-grid input,
.demo-checkout-grid select,
.demo-checkout-grid textarea {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.demo-checkout-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.demo-complete-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #087443;
  font-size: 34px;
  font-weight: 950;
}

.demo-complete-copy {
  text-align: center;
}

.demo-complete-copy h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(26px, 5vw, 38px);
}

.demo-complete-copy p {
  margin: 0;
  color: #53627a;
  line-height: 1.7;
}

/* Pulso Urbano: recorrido comercial completo del demo aislado. */
.gallery-catalog-demo .catalog-header {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.gallery-catalog-demo .catalog-nav {
  justify-self: center;
}

.demo-header-actions {
  display: flex;
  align-items: stretch;
  justify-self: end;
  gap: 9px;
}

.demo-favorites-trigger,
.demo-cart-trigger {
  position: relative;
  min-width: 92px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.demo-favorites-trigger {
  border: 1px solid rgba(15, 32, 59, .25);
  background: #fff;
  color: #10213c;
}

.demo-cart-trigger {
  min-width: 96px;
  border-color: #178b65;
  background: #178b65;
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 139, 101, .22);
}

.demo-favorites-trigger strong,
.demo-cart-trigger strong {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 23px;
  min-height: 23px;
  display: grid;
  place-items: center;
  padding: 2px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0f203b;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.demo-cart-trigger strong {
  background: #fff;
  color: #0d5f45;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: visible;
  border: 1px solid rgba(15, 32, 59, .14);
  border-radius: 15px;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 28px rgba(15, 32, 59, .08);
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-media {
  aspect-ratio: 1 / 1;
  margin: 10px 10px 0;
  overflow: hidden;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #eef3f7;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f4;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-media > b {
  display: none;
}

.demo-card-badges {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-card-badges span,
.demo-detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #e80046;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-card-badges span + span,
.demo-detail-badges span + span {
  background: #f4a900;
  color: #111827;
}

.demo-card-favorite,
.demo-favorite-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd8e6;
  border-radius: 9px;
  background: #fff;
  color: #17365d;
  font-size: 21px;
  cursor: pointer;
}

.demo-card-favorite {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
}

.demo-favorite-toggle.is-selected {
  border-color: #e80046;
  background: #fff0f5;
  color: #e80046;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 255px;
  padding: 14px;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-copy h3,
.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-copy p {
  margin-top: 7px;
  margin-bottom: 0;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-price-row {
  margin-top: auto;
  padding-top: 18px;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

.demo-card-cart,
.demo-related-cart {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #178b65;
  border-radius: 9px;
  background: #178b65;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.demo-product-title-link {
  color: inherit;
  text-decoration: none;
}

.gallery-catalog-demo .catalog-product-detail[data-demo-detail-ready] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr);
  align-items: start;
  gap: 28px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 32px;
  border-radius: 20px;
  background: transparent;
}

.demo-product-detail .catalog-product-gallery,
.demo-product-detail-copy {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e0eb;
  border-radius: 17px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 14px 38px rgba(15, 32, 59, .08);
}

.demo-product-detail-copy {
  padding: 24px;
}

.demo-product-detail-copy h2 {
  margin: 12px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.demo-product-detail-copy p,
.demo-product-detail-copy li,
.demo-product-detail-copy small {
  color: #52627a;
}

.demo-product-detail-copy > a {
  color: #a9621c;
  font-weight: 900;
}

.demo-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e0eb;
  border-radius: 13px;
  background: #f5f5f5;
}

.demo-gallery-main img,
.demo-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0eb;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 32, 59, .12);
}

.demo-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.demo-gallery-thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #d7e0eb;
  border-radius: 10px;
  background: #f6f7f8;
  cursor: pointer;
}

.demo-gallery-thumbs button.is-active {
  border-color: #178b65;
  box-shadow: inset 0 0 0 1px #178b65;
}

.demo-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.demo-detail-commerce {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.demo-detail-buy-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 44px;
  gap: 10px;
}

.demo-quantity {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  background: #fff;
}

.demo-quantity button {
  height: 42px;
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 950;
  cursor: pointer;
}

.demo-quantity strong {
  text-align: center;
}

.demo-detail-add,
.demo-detail-buy-now,
.demo-detail-consult {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.demo-detail-add {
  border: 1px solid #178b65;
  background: #178b65;
  color: #fff;
}

.demo-detail-buy-now {
  border: 1px solid #f2c230;
  background: #f2c230;
  color: #111827;
}

.demo-detail-consult {
  border: 1px solid #7cd8ac;
  background: #ecfff5;
  color: #0d5f45;
  text-decoration: none;
}

.demo-share-title {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.demo-share-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid #d7e0eb;
  border-radius: 10px;
  background: #fff;
}

.demo-share-actions a,
.demo-share-actions button {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0eb;
  border-radius: 7px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.demo-related-section {
  max-width: 1180px;
  margin: 6px auto 48px;
  padding: 28px 32px 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.demo-related-section > span {
  color: #f28c28;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-related-section h2 {
  margin: 8px 0 22px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}

.demo-related-wrap {
  position: relative;
}

.demo-related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.demo-related-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 10px;
  border: 1px solid #d7e0eb;
  border-radius: 13px;
  background: #fff;
  color: #0f172a;
}

.demo-related-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #eef3f7;
}

.demo-related-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-related-card h3 {
  margin: 12px 0 6px;
}

.demo-related-card p {
  margin: 0 0 12px;
  color: #52627a;
}

.demo-related-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.demo-related-card > div:last-child > strong {
  font-size: 18px;
}

.demo-related-heart {
  position: absolute;
  top: 18px;
  right: 18px;
}

.demo-related-cart {
  flex: 0 0 42px;
}

.demo-related-prev,
.demo-related-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0eb;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 32, 59, .16);
  transform: translateY(-50%);
}

.demo-related-prev {
  left: -21px;
}

.demo-related-next {
  right: -21px;
}

.demo-zoom-image {
  width: min(640px, 100%);
  margin: auto;
}

.demo-zoom-image img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f5f5f5;
}

@media (max-width: 980px) {
  .model-footer-grid,
  .web-site-footer-grid,
  .catalog-footer {
    grid-template-columns: 1fr 1fr !important;
  }

  .gallery-catalog-demo .catalog-header {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .gallery-catalog-demo .catalog-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .demo-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-catalog-demo .catalog-product-detail[data-demo-detail-ready] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .model-footer-grid,
  .web-site-footer-grid,
  .catalog-footer,
  .demo-checkout-grid {
    grid-template-columns: 1fr !important;
  }

  .demo-dialog {
    padding: 10px;
  }

  .demo-dialog-panel {
    max-height: calc(100vh - 20px);
  }

  .demo-cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .demo-cart-item img {
    width: 64px;
    height: 64px;
  }

  .demo-cart-controls {
    grid-column: 1 / -1;
  }

  .demo-header-actions {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .demo-favorites-trigger,
  .demo-cart-trigger {
    flex: 1 1 50%;
  }

  .gallery-catalog-demo .catalog-product-detail[data-demo-detail-ready] {
    padding: 18px 12px;
  }

  .demo-product-detail-copy {
    padding: 18px;
  }

  .demo-product-detail-copy h2 {
    font-size: 34px;
  }

  .demo-detail-buy-row {
    grid-template-columns: 1fr;
  }

  .demo-detail-favorite {
    width: 100%;
  }

  .demo-share-actions {
    grid-template-columns: 1fr 1fr;
  }

  .demo-related-section {
    padding-inline: 18px;
  }

  .demo-related-track {
    grid-auto-columns: minmax(210px, 84%);
  }
}

/* Pulso Urbano usa la misma jerarquía visual de Web Catálogo Pro V1.
   Estas reglas neutralizan el antiguo parche del demo sin tocar su flujo aislado. */
.gallery-catalog-demo .catalog-header {
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 24px;
}

.gallery-catalog-demo .catalog-brand-wrap {
  align-items: center;
  gap: 10px;
}

.gallery-catalog-demo .catalog-brand-copy {
  align-content: center;
}

.gallery-catalog-demo .catalog-nav {
  justify-self: center;
}

.gallery-catalog-demo .demo-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.gallery-catalog-demo :is(.demo-favorites-trigger, .demo-cart-trigger) {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.gallery-catalog-demo .demo-favorites-trigger {
  width: 78px;
  min-width: 78px;
  border: 1px solid color-mix(in srgb, var(--color-nav-text) 35%, transparent);
  background: color-mix(in srgb, var(--color-nav-text) 10%, transparent);
  color: var(--color-nav-text);
}

.gallery-catalog-demo .demo-cart-trigger {
  width: 108px;
  min-width: 108px;
  border: 1px solid #0f6b4a;
  background: #17855f;
  color: #fff;
  box-shadow: 0 9px 22px rgba(23, 133, 95, .28);
}

.gallery-catalog-demo :is(.demo-favorites-trigger, .demo-cart-trigger) svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.gallery-catalog-demo :is(.demo-favorites-trigger, .demo-cart-trigger) strong {
  top: 5px;
  right: 5px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0 4px;
  border: 0;
  background: #fff;
  color: #0d1b31;
  font-size: 11px;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] {
  min-width: 0;
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  border-radius: 11px;
  background: var(--catalog-card-bg);
  color: var(--catalog-card-text);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .09);
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-media {
  min-height: 0;
  aspect-ratio: auto;
  margin: 10px 10px 0;
  border: 1px solid color-mix(in srgb, var(--catalog-card-text) 10%, transparent);
  border-radius: 9px;
  background: var(--catalog-media-bg);
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-media img {
  width: 100%;
  height: 232px;
  padding: 8px;
  background: transparent;
  object-fit: contain;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-media > b.is-offer {
  display: inline-flex;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-copy {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 7px;
  padding: 12px 14px 14px;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-copy h3 {
  min-height: 58px;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-product-copy p {
  min-height: 42px;
  margin: 0;
}

.gallery-catalog-demo .catalog-product-card[data-demo-card-ready] .catalog-price-row {
  margin-top: 0;
  padding-top: 0;
}

.gallery-catalog-demo .catalog-product-detail[data-demo-detail-ready] {
  width: min(var(--catalog-max), calc(100% - 48px));
  max-width: none;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  margin: 0 auto 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gallery-catalog-demo .catalog-product-detail-copy {
  align-items: stretch;
}

.gallery-catalog-demo .catalog-detail-action-favorite {
  width: 50px;
  height: auto;
  min-height: 48px;
}

.gallery-catalog-demo .catalog-related-products .catalog-product-card {
  min-width: 0;
}

@media (max-width: 980px) {
  .gallery-catalog-demo .catalog-header {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .gallery-catalog-demo .catalog-product-detail[data-demo-detail-ready] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .gallery-catalog-demo .demo-header-actions {
    width: 100%;
    grid-column: 1 / -1;
  }

  .gallery-catalog-demo :is(.demo-favorites-trigger, .demo-cart-trigger) {
    width: auto;
    flex: 1 1 50%;
  }

  .gallery-catalog-demo .catalog-product-detail[data-demo-detail-ready] {
    width: min(100% - 24px, var(--catalog-max));
  }
}
