/* Minimal, editorial, all-white, no framework. Cards are a fixed width and
   the whole set is centered via justify-content on the flex container —
   this is what keeps 1 or 2 cards centered instead of stuck to the left,
   without any special-casing based on how many cards there are. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #ffffff;
}

.mk-offer-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 12px;
  background: #ffffff;
}

.mk-offer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 780px;
}

.mk-offer-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #ece7e1;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mk-offer-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mk-offer-image-wrap {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0; /* photo proportions never get squeezed by variable body content below */
}

.mk-offer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mk-offer-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1; /* fills remaining card height so the CTA can pin to the bottom */
}

.mk-offer-brand {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9186;
}

.mk-offer-name {
  font-size: 13px;
  line-height: 1.4;
  color: #2b2a28;
}

.mk-offer-price {
  font-size: 15px;
  font-weight: 600;
  color: #2b2a28;
  margin-top: 2px;
}

.mk-offer-specs {
  font-size: 11px;
  line-height: 1.5;
  color: #6b6a67;
}

.mk-offer-cta {
  margin-top: auto; /* CTA stays at the bottom of every card in a row, regardless of how much (or little) specs/description content sits above it */
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 14px 9px;
  border: 1px solid #2b2a28;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Modna Kapsula red on hover AND keyboard focus — never black. */
.mk-offer-card:hover .mk-offer-cta,
.mk-offer-card:focus-visible .mk-offer-cta {
  background: #d51a13;
  border-color: #d51a13;
  color: #fff;
}

@media (max-width: 480px) {
  .mk-offer-card {
    width: 100%;
    max-width: 260px;
  }
}
