/* Estilos exclusivos del catálogo digital SYSTECH NEW.
   La navegación, botones globales y footer reutilizan Style.css. */

.catalog-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #171717;
  background-image: linear-gradient(90deg, rgba(18, 18, 18, 0.80) 0%, rgba(18, 18, 18, 0.58) 58%, rgba(18, 18, 18, 0.38) 100%), url("./img/portafolio/fondo.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 55px 0 48px;
}
.catalog-hero::before { display: none; }
.catalog-hero-grid { display: none; }
.catalog-hero-content { position: relative; }
.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: #aeadab;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.catalog-breadcrumb a { color: #fff; }
.catalog-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-breadcrumb span:nth-child(2) { color: #777; }
.catalog-hero .eyebrow,
.catalog-contact .eyebrow {
  color: #bebeba;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}
.catalog-hero h1 {
  max-width: 820px;
  margin-top: 13px;
  font-size: clamp(38px, 5vw, 63px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.045em;
}
.catalog-hero h1 span { color: #b7b7b1; }
.catalog-hero-description {
  max-width: 680px;
  margin-top: 22px;
  color: #d0d0cc;
  font-size: 15px;
  line-height: 1.85;
}
.catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 36px;
}
.catalog-stats > div {
  min-width: 135px;
  padding: 3px 28px 4px 0;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,.2);
  display: flex;
  flex-direction: column;
}
.catalog-stats > div:last-child { border-right: 0; }
.catalog-stats strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.03em;
}
.catalog-stats span {
  margin-top: 4px;
  color: #bdbdb8;
  font-size: 11px;
  letter-spacing: .04em;
}

.catalog-section { padding: 60px 0 78px; background: #fafaf8; }
.catalog-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.catalog-filters {
  padding: 24px 20px 20px;
  border: 1px solid #e5e5df;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23,23,23,.035);
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.filters-header .eyebrow {
  color: #73736d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.filters-header h2 {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.clear-filters {
  padding: 3px 0;
  border: 0;
  background: none;
  color: #666762;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.clear-filters:hover { color: #171717; }
.filter-label {
  display: block;
  margin: 17px 0 6px;
  color: #454541;
  font-size: 11px;
  font-weight: 700;
}
.filter-select {
  width: 100%;
  min-height: 42px;
  padding: 0 30px 0 11px;
  border: 1px solid #deded8;
  border-radius: 0;
  outline: none;
  color: #343430;
  background-color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.filter-select:focus,
.catalog-search-wrap:focus-within,
.sort-wrap select:focus {
  border-color: #777772;
  box-shadow: 0 0 0 3px rgba(23,23,23,.065);
}
.technical-filters {
  margin-top: 24px;
  border-top: 1px solid #e8e8e3;
  border-bottom: 1px solid #e8e8e3;
}
.technical-filters summary {
  min-height: 53px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #242424;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.technical-filters summary::-webkit-details-marker { display: none; }
.technical-filters summary span {
  color: #777772;
  font-size: 18px;
  font-weight: 400;
  transition: transform .2s ease;
}
.technical-filters[open] summary span { transform: rotate(45deg); }
.technical-fields { padding-bottom: 19px; }
.technical-fields .filter-label:first-child { margin-top: 0; }
.filter-note {
  display: flex;
  gap: 10px;
  margin-top: 21px;
  align-items: flex-start;
  color: #6e6e68;
}
.note-mark {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #bab9b2;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
}
.filter-note p { font-size: 10px; line-height: 1.65; }

.catalog-results { min-width: 0; }
.catalog-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}
.catalog-search-wrap {
  flex: 1 1 auto;
  min-width: 160px;
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e3e3dd;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.catalog-search-wrap svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #777772;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.catalog-search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #242424;
  background: transparent;
  font-size: 12px;
}
.catalog-search-wrap input::placeholder { color: #989891; }
.sort-wrap {
  min-width: 166px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 11px 3px;
  border: 1px solid #e3e3dd;
  background: #fff;
}
.sort-wrap span {
  margin-bottom: 1px;
  color: #81817b;
  font-size: 9px;
  letter-spacing: .05em;
}
.sort-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #242424;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.results-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 25px 0 16px;
}
.results-summary p:first-child { font-size: 12px; font-weight: 700; }
.summary-rule { height: 1px; flex: 1 1 auto; background: #e1e1db; }
.results-summary-note { color: #81817b; font-size: 10px; white-space: nowrap; }
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 10px;
  background: #ecece7;
  color: #383834;
  font-size: 10px;
}
.active-filter-chip button {
  padding: 0 0 0 2px;
  border: 0;
  background: transparent;
  color: #55554f;
  font-size: 13px;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5df;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #cbcbc4;
  box-shadow: 0 12px 28px rgba(23,23,23,.075);
}
.product-visual {
  height: 146px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e2;
}
.product-visual::before,
.product-visual::after {
  display: none;
}
.product-visual svg {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  fill: none;
  stroke: #50504b;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-visual .visual-kicker {
  position: absolute;
  bottom: 12px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.visual-kicker span {
  color: #696963;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.visual-kicker strong {
  color: #777770;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
}
.product-visual.visual--software,
.product-visual.visual--network,
.product-visual.visual--energy,
.product-visual.visual--printing,
.product-visual.visual--storage { background: #ffffff; }
.product-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 15px 15px;
}
.product-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.product-label {
  padding: 3px 6px;
  background: #f1f1ed;
  color: #55554f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}
.product-label.product-label-dark { background: #222220; color: #fff; }
.product-brand {
  margin-bottom: 3px;
  color: #777770;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  overflow-wrap: anywhere;
}
.product-title {
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -.025em;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.product-ref {
  margin-top: 7px;
  color: #777770;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.product-ref strong { color: #4b4b46; }
.product-variants-summary {
  margin-top: 10px;
  padding: 9px 10px;
  border-left: 2px solid #b7b7af;
  background: #f7f7f4;
  color: #5e5e58;
  font-size: 10px;
  line-height: 1.65;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 9px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #eeeeea;
}
.product-spec { min-width: 0; }
.product-spec-label {
  display: block;
  margin-bottom: 3px;
  color: #888881;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.product-spec-value {
  display: -webkit-box;
  overflow: hidden;
  color: #41413c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.product-detail {
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid #e8e8e2;
  color: #62625c;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.product-cta {
  width: 100%;
  min-height: 41px;
  margin-top: auto;
  padding: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  color: #171717;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.product-cta span:first-child {
  padding-bottom: 2px;
  border-bottom: 1px solid #979791;
  transition: border-color .2s ease;
}
.product-cta span:last-child { font-size: 17px; transition: transform .2s ease; }
.product-cta:hover span:first-child { border-color: #171717; }
.product-cta:hover span:last-child { transform: translate(3px,-2px); }

.empty-state {
  padding: 65px 20px;
  border: 1px dashed #d1d1ca;
  background: #fff;
  text-align: center;
}
.empty-state-symbol { color: #777770; font-size: 45px; line-height: 1; }
.empty-state h2 { margin-top: 13px; font-size: 23px; }
.empty-state p { margin-top: 7px; color: #6c6c66; font-size: 13px; }
.empty-state .button { margin-top: 20px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid #e3e3dd;
}
.pagination p { color: #666660; font-size: 11px; }
.page-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d7d7d0;
  background: #fff;
  color: #242424;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.page-button:hover:not(:disabled) { color: #fff; background: #171717; border-color: #171717; }
.page-button:disabled { opacity: .42; cursor: not-allowed; }

.catalog-contact { padding: 48px 0; background: #242424; color: #fff; }
.catalog-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.catalog-contact h2 {
  max-width: 640px;
  margin-top: 7px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.catalog-contact p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 10px;
  color: #cdcdc7;
  font-size: 12px;
}
.catalog-contact .button { flex: 0 0 auto; min-height: 48px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.product-colors { margin: 9px 0 0; color: #555; font-size: 0.76rem; line-height: 1.45; }
.product-colors strong { color: #242424; font-weight: 700; }
.product-image-badge { position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: calc(100% - 24px); padding: 5px 8px; border-radius: 4px; background: rgba(255,255,255,0.92); color: #4a4a4a; font-size: 0.64rem; line-height: 1.2; letter-spacing: 0.01em; }
.product-image-badge[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .catalog-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters { padding: 22px 17px; }
}
@media (max-width: 760px) {
  .catalog-hero { padding: 35px 0 38px; }
  .catalog-breadcrumb { margin-bottom: 25px; }
  .catalog-hero-description { font-size: 13px; }
  .catalog-stats { margin-top: 28px; }
  .catalog-stats > div { min-width: 0; padding-right: 17px; margin-right: 17px; }
  .catalog-stats strong { font-size: 21px; }
  .catalog-section { padding: 30px 0 48px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 22px; }
  .catalog-filters { padding: 18px; }
  .filters-header { margin-bottom: 14px; }
  .catalog-filters > .filter-label { margin-top: 13px; }
  .catalog-filters > .filter-select { min-height: 40px; }
  .technical-filters { margin-top: 19px; }
  .catalog-toolbar { flex-direction: column; }
  .catalog-search-wrap { min-height: 47px; }
  .sort-wrap { min-height: 48px; }
  .results-summary { margin-top: 20px; }
  .results-summary-note { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-visual { height: 124px; }
  .product-visual svg { width: 56px; height: 56px; }
  .product-card-body { padding: 13px 11px 12px; }
  .product-title { font-size: 13px; }
  .product-brand { font-size: 9px; }
  .product-specs { grid-template-columns: 1fr 1fr; gap: 9px 6px; }
  .product-spec-value { font-size: 9px; }
  .catalog-contact { padding: 35px 0; }
  .catalog-contact-inner { align-items: flex-start; flex-direction: column; gap: 23px; }
}
@media (max-width: 460px) {
  .catalog-hero h1 { font-size: 36px; }
  .catalog-stats > div { padding-right: 12px; margin-right: 12px; }
  .catalog-stats strong { font-size: 19px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: stretch; }
  .product-visual { height: 100%; min-height: 240px; border-right: 1px solid #e8e8e2; border-bottom: 0; }
  .product-visual svg { width: 52px; height: 52px; }
  .product-visual .visual-kicker { left: 7px; right: 7px; bottom: 8px; flex-direction: column; align-items: flex-start; gap: 3px; }
  .product-visual .visual-kicker strong { font-size: 7px; }
  .product-card-body { min-width: 0; }
  .product-specs { grid-template-columns: 1fr; gap: 7px; margin-top: 11px; padding-top: 11px; }
  .product-details { display: none; }
  .pagination { gap: 7px; }
  .page-button { padding: 0 9px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-cta span:last-child { transition: none; }
}


/* Fotografías de producto: PNG local por referencia/modelo o URL externa. */
.product-visual-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease, visibility .2s ease;
}
.product-visual-fallback svg { flex: 0 0 auto; }
.product-visual.has-product-image .product-visual-fallback { opacity: 0; visibility: hidden; }
.product-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s ease;
}
.product-image.is-loaded { opacity: 1; }
.product-visual .visual-kicker { z-index: 2; }
.product-visual.has-product-image .visual-kicker {
  left: 9px;
  right: 9px;
  bottom: 8px;
  padding: 5px 7px;
  background: rgba(255,255,255,.88);
}
.product-card { cursor: pointer; }
.product-card:focus-visible { outline: 2px solid #55554f; outline-offset: 3px; }
.product-card-actions { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 9px; }
.product-card-actions .product-cta { margin-top: 0; min-height: 35px; padding-top: 5px; }
.product-details-cta {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d8d8d1;
  background: #f7f7f4;
  color: #242424;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.product-details-cta:hover { background: #eeeeea; border-color: #bdbdb5; }

/* Vista ampliada dentro de portafolio.html; no crea una página adicional. */
.product-modal[hidden] { display: none !important; }
.product-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(16,16,15,.72); backdrop-filter: blur(4px); }
.product-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 24px 90px rgba(0,0,0,.28);
  outline: none;
  animation: product-modal-enter .2s ease-out;
}
.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e5df;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #171717;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.product-modal-close:hover { background: #f0f0ec; }
.product-modal-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 480px; }
.product-modal-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid #e4e4de;
}
.product-modal-media::before,
.product-modal-media::after { display: none; }
#modal-product-image { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 420px; max-height: 620px; padding: 48px; object-fit: contain; }
#modal-product-image[hidden] { display: none !important; }
.product-modal-fallback { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 420px; }
.product-modal-fallback svg { width: min(42%, 170px); height: auto; fill: none; stroke: #50504b; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.product-modal-image-note { position: absolute; z-index: 2; right: 16px; bottom: 12px; left: 16px; padding: 8px 10px; background: rgba(255,255,255,.86); color: #6b6b65; font-size: 10px; text-align: center; }
.product-modal-image-note[hidden] { display: none; }
.product-modal-content { padding: 52px 42px 36px; }
.product-modal-content .eyebrow { color: #72726b; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.product-modal-brand { margin-top: 25px; color: #777770; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
#modal-product-title { margin-top: 6px; padding-right: 18px; color: #171717; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.product-modal-ref { margin-top: 12px; color: #62625c; font-size: 11px; }
.product-modal-description { margin-top: 27px; margin-bottom: 12px; color: #5e5e58; font-size: 11px; }
.product-modal-specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e8e8e2; border-left: 1px solid #e8e8e2; }
.modal-product-spec { min-width: 0; padding: 12px 11px; border-right: 1px solid #e8e8e2; border-bottom: 1px solid #e8e8e2; }
.modal-product-spec span { display: block; margin-bottom: 5px; color: #84847d; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.modal-product-spec strong { display: block; color: #292925; font-size: 11px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.product-modal-variants { margin-top: 20px; min-width: 0; }
.product-modal-variants[hidden] { display: none !important; }
.modal-variants-title { margin: 0 0 9px; font-size: 12px; line-height: 1.4; }
.modal-variants-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #e8e8e2; }
.modal-variants-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.modal-variants-table th, .modal-variants-table td { padding: 9px 8px; border-bottom: 1px solid #e8e8e2; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.modal-variants-table th { background: #f5f5f2; color: #55554f; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.modal-variants-table tr:last-child td { border-bottom: 0; }

.product-modal-quote { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin-top: 24px; }
.product-modal-quote span { font-size: 18px; }
.product-modal-footnote { margin-top: 10px; color: #777770; font-size: 9px; line-height: 1.6; }
body.product-modal-open { overflow: hidden; }
@keyframes product-modal-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 760px) {
  .product-modal { padding: 10px; align-items: center; }
  .product-modal-dialog { max-height: 94vh; }
  .product-modal-layout { grid-template-columns: 1fr; }
  .product-modal-media, .product-modal-fallback { min-height: 220px; max-height: 260px; }
  #modal-product-image { min-height: 220px; max-height: 260px; padding: 27px; }
  .product-modal-content { padding: 28px 22px 24px; }
  .product-modal-brand { margin-top: 13px; }
  .product-modal-description { margin-top: 19px; }
  .product-modal-close { top: 8px; right: 8px; width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .product-modal-specs { grid-template-columns: 1fr; }
  .product-modal-media, .product-modal-fallback { min-height: 185px; max-height: 215px; }
  #modal-product-image { min-height: 185px; max-height: 215px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-modal-dialog { animation: none; }
  .product-image, .product-visual-fallback, .product-details-cta { transition: none; }
}
