.ga-sale-page {
  --sale-ink: #293136;
  --sale-muted: #56606a;
  --sale-red: #d63943;
  max-width: 1600px;
  margin-inline: auto;
  padding: 24px clamp(16px, 3.5vw, 48px) clamp(44px, 6vw, 80px);
  color: var(--sale-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.ga-sale-breadcrumb,
.ga-sale-links,
.ga-sale-card-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ga-sale-breadcrumb {
  margin-bottom: 20px;
  color: var(--sale-muted);
  font-size: 14px;
  line-height: 20px;
}

.ga-sale-breadcrumb a { color: inherit; }
.ga-sale-breadcrumb [aria-current] { color: var(--sale-ink); font-weight: 700; }
.ga-sale-page h1 { margin: 0 0 10px; font-size: 44px; line-height: 52px; }
.ga-sale-summary { margin: 0 0 28px; color: var(--sale-muted); }

.ga-sale-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 20px;
  background: #fff;
}

.ga-sale-empty h2 { margin: 0 0 6px; font-size: clamp(20px, 2.1vw, 26px); }
.ga-sale-empty p { margin: 0; color: var(--sale-muted); }
.ga-sale-catalog { color: #a32430; text-underline-offset: 3px; }

.ga-sale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ga-sale-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe1e3;
  border-radius: 20px;
  background: #fff;
}

.ga-sale-photo {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  background: #e6e7e7;
  color: var(--sale-muted);
}

.ga-sale-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ga-sale-no-photo { display: grid; gap: 6px; justify-items: center; font-size: 13px; }
.ga-sale-no-photo::before { content: "▧"; font-size: 27px; line-height: 1; }

.ga-sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--sale-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ga-sale-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: clamp(14px, 2vw, 22px);
}

.ga-sale-card-body h2 { margin: 0; font-size: 24px; line-height: 30px; overflow-wrap: anywhere; }
.ga-sale-card-body p { margin: 0; color: var(--sale-muted); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }

.ga-sale-card-action {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #dfe1e3;
}

.ga-sale-card-action strong { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.ga-sale-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--sale-red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}

.ga-sale-empty .ga-sale-button { min-height: 48px; }
.ga-sale-button:hover { background: #bd2933; color: #fff; }
.ga-sale-button:active { background: #a32430; }
.ga-sale-page a:focus-visible { outline: 2px solid #a32430; outline-offset: 3px; }
.ga-sale-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ga-sale-pagination li > .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border: 1px solid #dfe1e3;
  border-radius: 10px;
  background: #fff;
  color: var(--sale-ink);
  font-size: 14px;
  font-weight: 700;
}
.ga-sale-pagination li > a.page-numbers:hover { border-color: var(--sale-red); color: #bd2933; }
.ga-sale-pagination li > .current { border-color: var(--sale-red); background: var(--sale-red); color: #fff; }

#enquiry-form :is(.ga-sale-enquiry-note, .ga-sale-enquiry-context) { margin: 0; }
#enquiry-form :is(.ga-sale-enquiry-note, .ga-sale-enquiry-context, label)[hidden] { display: none; }
#enquiry-form .ga-sale-enquiry-context {
  min-width: 0;
  padding: 8px 12px 12px;
  border: 1px solid #dfe1e3;
  border-radius: 10px;
  background: #f6f6f5;
}
#enquiry-form .ga-sale-enquiry-context legend { padding-inline: 4px; font-weight: 700; }
#enquiry-form .ga-sale-enquiry-context dl { display: grid; gap: 5px; margin: 0; }
#enquiry-form .ga-sale-enquiry-context dl > div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 6px; }
#enquiry-form .ga-sale-enquiry-context dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .ga-sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ga-sale-page h1 { font-size: 30px; line-height: 36px; }
  .ga-sale-breadcrumb { font-size: 13px; line-height: 18px; }
  .ga-sale-card-body h2 { font-size: 18px; line-height: 22px; }
  .ga-sale-card .ga-sale-button { min-height: 38px; padding-block: 6px; line-height: 24px; }
}

@media (max-width: 540px) {
  .ga-sale-grid { grid-template-columns: minmax(0, 1fr); }
}
