/* ==========================================================
   BVC Bikes – promotions, aligned with the new catalogue
   ========================================================== */

.promo-layout {
  max-width: 1280px;
  min-height: 52vh;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.promo-toolbar { margin-bottom: 20px; }

.promo-grid {
  --card-min: 240px;
  align-items: stretch;
}

.promo-card-new {
  position: relative;
  cursor: pointer;
}

.promo-card-new:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

.promo-card-media {
  position: relative;
  padding: 18px;
}

.promo-card-media img { object-fit: contain; }

.promo-label,
.promo-discount {
  position: absolute;
  top: 12px;
  z-index: 1;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  border-radius: 999px;
}

.promo-label {
  left: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green-900);
}

.promo-discount {
  right: 12px;
  background: var(--green-500);
}

.promo-card-body { gap: 7px; }

.promo-card-body .bike-card-title {
  min-height: 2.6em;
  font-size: 1.05rem;
}

.promo-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: auto;
  padding-top: 10px;
}

.promo-old-price {
  font-size: 0.85rem;
  color: var(--muted);
}

.promo-old-price s { text-decoration-thickness: 1.5px; }
.promo-new-price { color: var(--green-500); }

.promo-state { min-height: 270px; justify-content: center; }
.promo-state[hidden] { display: none; }
.promo-state h2 { font-size: 1.2rem; }

/* ---------- Contact modal ---------- */
body.promo-modal-open { overflow: hidden; }

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 28, 17, 0.72);
  animation: promoFadeIn 0.2s ease both;
}

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

.promo-modal-panel {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 34px;
  color: var(--text);
  background: #fff;
  border-radius: 20px;
  border-top: 5px solid var(--green-500);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  animation: promoPanelIn 0.25s ease both;
}

.promo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green-900);
  background: var(--mint);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.promo-modal-close:hover { background: #d6ecd9; }
.promo-modal-close:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
.promo-modal-close .icon { width: 19px; height: 19px; }

.promo-modal-eyebrow {
  display: block;
  padding-right: 48px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
}

.promo-modal-panel h2 {
  padding-right: 48px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  color: var(--green-900);
}

.promo-modal-bike {
  margin-top: 8px;
  font-weight: 800;
  color: var(--green-500);
}

#promo-modal-description {
  margin-top: 14px;
  color: var(--muted);
}

.promo-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.promo-modal-actions .btn { width: 100%; }

.promo-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 20px;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--green-900);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.promo-modal-action:hover { color: #fff; background: var(--green-900); }
.promo-modal-action .icon { width: 18px; height: 18px; }

.promo-modal-contact {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-700);
}

@keyframes promoFadeIn { from { opacity: 0; } }
@keyframes promoPanelIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

@media (max-width: 900px) {
  .promo-layout { padding: 20px 16px 48px; }
  .promo-grid { --card-min: 170px; --gap: 14px; }
}

@media (max-width: 480px) {
  .promo-toolbar { align-items: stretch; }
  .promo-toolbar .cat-count { order: initial; flex-basis: auto; }
  .promo-toolbar .cat-sort { flex: 0 1 auto; }
  .promo-card-media { padding: 12px; }
  .promo-label { left: 8px; top: 8px; }
  .promo-discount { right: 8px; top: 8px; }

  .promo-modal {
    place-items: end center;
    padding: 12px;
  }

  .promo-modal-panel {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 30px 22px 24px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-card-new,
  .promo-modal,
  .promo-modal-panel { animation: none; }
}
