.offers-section {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(12px, 3.5vw, 24px);
}

.offers-section .content-heading {
  margin-block-end: 22px;
}

.offers-section .content-heading h1 {
  color: #871026;
}

.offers-section .offers-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(9px, 2.6vw, 22px);
}

.offers-list > .offer-empty {
  grid-column: 1 / -1;
}

.offers-list .offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff9;
  border-radius: clamp(17px, 3.5vw, 27px);
  background: linear-gradient(155deg, #fffcf4de, #fffaed60);
  box-shadow: inset 0 1px 1px #fffc, 0 7px 18px #6e351b0c;
}

.offer-card .offer-art {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ead6ba;
}

.offer-card .offer-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.offer-card .offer-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(9px, 2.4vw, 19px);
}

.offer-copy .offer-title {
  margin: 0;
  color: #442127;
  font-size: clamp(17px, 3.6vw, 26px);
  line-height: 1.25;
}

.offer-copy .offer-summary {
  margin: 6px 0 10px;
  color: #6b5045;
  font-size: clamp(12px, 2.6vw, 16px);
  line-height: 1.35;
}

.offer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-block-start: auto;
}

.offer-copy .offer-price {
  margin: 0;
  color: #871026;
  font-size: clamp(17px, 3.5vw, 23px);
  font-weight: 700;
  white-space: nowrap;
}

.offer-card .offer-copy .offer-open {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #fff;
  border-radius: 14px;
  background: #fff8;
  color: #871026;
  font: 700 clamp(12px, 2.5vw, 15px) Tajawal, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.offer-open::after {
  position: absolute;
  inset: 0;
  content: "";
}

.offer-card:has(.offer-open:focus-visible) {
  outline: 2px solid #871026;
  outline-offset: 2px;
}

.offer-card:has(.offer-open:hover) .offer-open {
  background: #fff;
}

#product-dialog.offer-detail .size-heading,
#product-dialog.offer-detail .size-options,
#product-dialog.offer-detail .detail-photo[hidden] {
  display: none;
}

#product-dialog.offer-detail .detail-photo {
  height: min(30dvh, 260px);
  min-height: 0;
  background: #ead6ba;
}

#product-dialog.offer-detail .detail-product-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: none;
}

.offer-contents {
  margin-block: 10px 16px;
  padding-inline-start: 20px;
  color: #5b3c34;
  line-height: 1.55;
}

.offer-contents li::marker {
  color: #a63b4a;
}

@media (max-width: 365px) {
  .offer-card .offer-copy .offer-open {
    padding-inline: 6px;
  }

  .offer-card-footer {
    gap: 4px;
  }
}

@media (min-width: 900px) {
  .offers-section .offers-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
