.products-grid > .product-card[data-acer-card-state] .cy-price,
.products-grid > .product-card[data-acer-card-state] .acer-card-status {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-card[data-acer-card-state] :is(.cy-price-label,.acer-card-caption) {
  display: block;
  margin: 0;
  color: #48606f;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-card[data-acer-card-state] :is(.cy-price-value,.acer-card-value) {
  display: block;
  margin: 4px 0 0;
  color: #173b4c;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Keep the amount on its own line when the shared cart script adds an inline button. */
.product-card[data-acer-card-state] .cy-price-value.cy-cart-price-value {
  display: block !important;
}

.products-grid > .product-card[data-acer-card-state] > .cy-commerce-actions,
.product-card[data-acer-card-state] .cy-commerce-project-link,
.product-card[data-acer-card-state]:not([data-acer-card-state="public"]) .cy-add-cart {
  display: none !important;
}

.product-card[data-acer-card-state] .acer-card-path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 !important;
}

.product-card[data-acer-card-state="public"] .acer-card-path:has(.cy-add-cart) {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.product-card[data-acer-card-state] .acer-card-path > .cy-commerce-actions {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 0 !important;
}

.product-card[data-acer-card-state] .acer-card-path :is(a,button) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: 100%;
  margin: 0 !important;
  padding: 8px;
  white-space: normal;
}

.product-card[data-acer-card-state] .acer-card-path > .button.primary {
  background: #185a73;
  border-color: #185a73;
}

.products-grid .product-card[data-acer-catalogue] .acer-card-path {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.products-grid .product-card[data-acer-catalogue] > .acer-card-path {
  margin: 0 16px 16px;
}

.products-grid .product-card[data-acer-catalogue] .acer-card-path,
.products-grid .product-card[data-acer-catalogue] .acer-card-path > .cy-commerce-actions {
  column-gap: 10px !important;
}

.product-card[data-acer-catalogue] .acer-card-path :is(a, button) {
  box-sizing: border-box;
  min-width: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.product-card[data-acer-catalogue] .acer-card-path > .acer-card-secondary {
  background: #fff;
  border: 1px solid #185a73;
  color: #185a73;
}

.product-card[data-acer-catalogue] .acer-card-path:has(.cy-add-cart) > .acer-card-secondary {
  display: none;
}

@media (max-width: 360px) {
  .products-grid .product-card[data-acer-catalogue] .acer-card-path,
  .products-grid .product-card[data-acer-catalogue] .acer-card-path > .cy-commerce-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 10px !important;
  }
}

.product-card[data-acer-card-state] .acer-card-terms {
  margin: 12px 0;
  color: #48606f;
  font-size: .875rem;
}

@supports (grid-template-rows: subgrid) {
  @media (width > 580px) {
    .products-grid:has(> .product-card[data-acer-card-state]) { row-gap: 0; }
    .products-grid > .product-card[data-acer-card-state]:not([hidden]) {
      display: grid;
      grid-template-columns: minmax(0,1fr);
      grid-template-rows: subgrid;
      grid-row: span 11;
      margin-block-end: 24px;
    }
    .products-grid > .product-card[data-acer-card-state]:hover { transform: none; }
    .product-card[data-acer-card-state] > .projector-model-heading { grid-row: 1; }
    .product-card[data-acer-card-state] > .product-image { grid-row: 2; }
    .product-card[data-acer-card-state] > .product-body {
      display: grid;
      grid-template-columns: minmax(0,1fr);
      grid-template-rows: subgrid;
      grid-row: 3 / span 7;
    }
    .product-card[data-acer-card-state] .category { grid-row: 1; }
    .product-card[data-acer-card-state] .spec-row { grid-row: 2; }
    .product-card[data-acer-card-state] .card-description { grid-row: 3; min-height: 0; }
    .product-card[data-acer-card-state] .product-body > :is(.cy-price,.acer-card-status) {
      grid-row: 4; align-self: start;
    }
    .product-card[data-acer-card-state] .acer-card-path { grid-row: 5; align-self: start; }
    .product-card[data-acer-card-state] .acer-card-terms { grid-row: 6; }
    .product-card[data-acer-card-state] .card-actions { grid-row: 7; margin-top: 0; }
    .product-card[data-acer-card-state] > .bsg-card-link { grid-row: 10; }
    .product-card[data-acer-card-state] > .cy-compare-action { grid-row: 11; }
    .product-card[data-acer-catalogue] > .product-body { grid-row: 3 / span 6; }
    .product-card[data-acer-catalogue] .acer-card-terms { grid-row: 5; }
    .product-card[data-acer-catalogue] .card-actions { grid-row: 6; }
    .product-card[data-acer-catalogue] > .bsg-card-link { grid-row: 9; }
    .product-card[data-acer-catalogue] > .acer-card-path { grid-row: 10; }
  }
}
.acer-purchase-hero {
  display: grid;
  grid-template: "heading heading" auto "photo offers" auto / minmax(0, 1.37fr) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: center;
  padding-block: 18px 24px;
}

.acer-purchase-heading { grid-area: heading; }
/* The brand heading has no SKU. Keep purchase actions with their model prices. */
.acer-purchase-heading :is(.cy-add-cart, .cy-commerce-actions) { display: none !important; }
.acer-purchase-heading h1 {
  margin: 0 0 2px;
  color: #174356;
  font-size: clamp(1rem, 2.15vw, 1.35rem);
  line-height: 1.45;
}
.acer-purchase-heading h1 br { display: none; }
.acer-purchase-heading h1 br::after { content: " "; }
.acer-purchase-heading h1 br:first-of-type { display: initial; }
.acer-purchase-heading h2 {
  margin: 0;
  color: #193c20;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.22;
}
.acer-purchase-photo { grid-area: photo; min-width: 0; }
.acer-purchase-photo a,
.acer-purchase-photo img { display: block; width: 100%; }
.acer-purchase-photo img { height: auto; border-radius: 12px; }
.acer-purchase-offers { grid-area: offers; min-width: 0; }
.acer-purchase-offers ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.acer-purchase-offers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #cdddc9;
  border-radius: 10px;
  background: #f1f6ee;
  padding: 8px 10px;
}
.acer-purchase-model {
  display: grid;
  gap: 2px;
  color: #15382a;
  overflow-wrap: anywhere;
}
.acer-purchase-model strong { font-size: clamp(.98rem, 2vw, 1.35rem); }
.acer-purchase-model span { font-size: .78rem; }
.acer-purchase-order {
  display: grid;
  place-content: center;
  min-height: 48px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #21531d;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.acer-purchase-order:hover, .acer-purchase-order:focus-visible { background: #143c16; color: #fff; }
.acer-purchase-order span, .acer-purchase-spec { font-size: .81rem; }
.acer-purchase-spec { display: grid; place-items: center; min-width: 36px; min-height: 44px; text-decoration: underline; }
.acer-purchase-offers p { margin: 8px 0 0; color: #40545b; font-size: .78rem; line-height: 1.5; }

@media (width <= 760px) {
  .acer-purchase-hero {
    grid-template: "heading" auto "photo" auto "offers" auto / minmax(0, 1fr);
    gap: 8px;
    padding-block: 10px 14px;
  }
}

