/* Gift cards page — mimics mygear.top/rubbers card-grid style */

/* section badges */
.md-typeset .mg-list-badge {
  display: inline-block;
  padding: 0.14em 0.6em;
  margin-left: 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: 0.18em;
  white-space: nowrap;
}
.md-typeset .mg-list-badge--stock {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.md-typeset .mg-list-badge--soldout {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* discount tag next to the price */
.md-typeset .mg-gc-off {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.06em 0.38em;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

/* card grid — compact: 6 cols on desktop (cards ~1/3 area of mygear rubbers 3-col),
   readable smaller fonts on cards + badge, 61rem content */
.md-typeset .mg-preowned-grid--giftcards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.6rem;
}
@media (min-width: 640px) {
  .md-typeset .mg-preowned-grid--giftcards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .md-typeset .mg-preowned-grid--giftcards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .md-main__inner:has(.mg-preowned-grid--giftcards) {
    max-width: 61rem;
  }
  .md-content:has(.mg-preowned-grid--giftcards) {
    max-width: 61rem;
  }
}

.md-typeset .mg-preowned-grid--giftcards .mg-preowned-card__media {
  aspect-ratio: 5 / 4;
}
.md-typeset .mg-preowned-grid--giftcards .mg-preowned-card__badge {
  top: 0.24rem !important;
  left: 0.24rem !important;
  padding: 0.12rem 0.28rem !important;
  border-radius: 0.16rem !important;
  font-size: 0.5rem !important;
}
.md-typeset .mg-preowned-grid--giftcards .mg-preowned-card__title {
  margin: 0.24rem 0 0.1rem !important;
  font-size: 0.56rem !important;
  line-height: 1.2 !important;
  color: #e2e8f0 !important;
}
.md-typeset .mg-preowned-grid--giftcards .mg-preowned-card__price {
  margin: 0 0 0.24rem !important;
  font-size: 0.68rem !important;
  color: #f87171 !important;
}
.md-typeset .mg-preowned-grid--giftcards .mg-preowned-card__cart {
  gap: 0.2rem !important;
  padding: 0.3rem 0.2rem !important;
  border-radius: 0.28rem !important;
  font-size: 0.52rem !important;
}

/* denomination dropdown between title and price */
.md-typeset .mg-preowned-card__opts {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  margin: 0.18rem 0 0.32rem;
  width: 100%;
}
.md-typeset .mg-preowned-card__opts-label {
  margin: 0;
  font-size: 0.52rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.md-typeset .mg-preowned-card__opts-select {
  width: 100%;
  margin: 0;
  padding: 0.22rem 0.3rem;
  border: 1px solid #334155;
  border-radius: 0.25rem;
  background: #111827;
  color: #e2e8f0;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.md-typeset .mg-preowned-card__opts-select:hover {
  border-color: #475569;
}
.md-typeset .mg-preowned-card__opts-select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
  border-color: #0f766e;
}
