.shop-section {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  background: #fffdf6;
}

.shop-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.shop-eyebrow {
  margin: 0 0 0.2rem;
  color: #438d68;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-heading h2 {
  margin: 0;
  color: #173747;
  font-size: clamp(1.8rem, 3.6vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.shop-heading-underline {
  width: min(17rem, 58vw);
  height: 0.75rem;
  margin-top: 0.45rem;
  border-top: 2px solid #389c70;
  border-radius: 50%;
  transform: rotate(-1.6deg);
}

.shop-see-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  color: #31966c;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.shop-see-all:hover {
  color: #1d7050;
}

.shop-see-all svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shop-carousel {
  position: relative;
}

.shop-products {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shop-products::-webkit-scrollbar {
  display: none;
}

.shop-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #f0eee6;
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.75rem rgb(44 49 37 / 7%);
  scroll-snap-align: start;
}

.shop-card-artwork {
  position: relative;
  aspect-ratio: 1.34;
  overflow: hidden;
  background: #eee8d8;
}

.shop-card-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.shop-card:hover .shop-card-artwork img {
  transform: scale(1.035);
}

.shop-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  min-width: 7.4rem;
  min-height: 2.3rem;
  place-items: center;
  padding: 0.3rem 1rem;
  border-radius: 0 0 0.65rem 0;
  background: #ffc629;
  color: #173747;
  font-size: 0.9rem;
  font-weight: 650;
}

.shop-ribbon {
  position: absolute;
  top: 0.65rem;
  right: -2.05rem;
  width: 7rem;
  padding-block: 0.32rem;
  transform: rotate(45deg);
  background: #ce432b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.shop-card-details {
  padding: 1rem 1.2rem 1.15rem;
}

.shop-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.shop-product-heading h3 {
  overflow: hidden;
  margin: 0;
  color: #173747;
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-save {
  display: grid;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #202a28;
  cursor: pointer;
}

.shop-save:hover,
.shop-save[aria-pressed="true"] {
  background: #edf6f0;
  color: #31966c;
}

.shop-save svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shop-save[aria-pressed="true"] svg {
  fill: #31966c;
}

.shop-product-category {
  overflow: hidden;
  margin: 0.15rem 0 0;
  color: #92958f;
  font-size: 0.8rem;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-category span {
  padding-inline: 0.35rem;
  color: #c5c6bf;
}

.shop-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.1rem;
  margin-top: 0.8rem;
  padding-block: 0.7rem;
  border-top: 1px solid #e6e5df;
  color: #303936;
  font-size: 0.78rem;
}

.shop-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-product-meta svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shop-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.shop-price-note {
  color: #173747;
  font-size: 0.95rem;
  font-weight: 700;
}

.shop-buy-button {
  display: inline-flex;
  min-width: 7rem;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.35rem;
  background: #359d70;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.shop-buy-button:hover {
  transform: translateY(-1px);
  background: #247b57;
}

.shop-control {
  position: absolute;
  z-index: 1;
  top: 42%;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #359d70;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.9rem rgb(17 53 37 / 18%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.shop-control:hover {
  transform: scale(1.06);
  background: #247b57;
}

.shop-control--previous {
  left: -1.2rem;
}

.shop-control--next {
  right: -1.2rem;
}

.shop-control svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.shop-control:focus-visible,
.shop-save:focus-visible,
.shop-see-all:focus-visible,
.shop-buy-button:focus-visible {
  outline: 3px solid rgb(49 150 108 / 45%);
  outline-offset: 3px;
}

.shop-disclaimer {
  margin: 0.4rem 0 0;
  color: #7c817b;
  font-size: 0.72rem;
  text-align: right;
}

@media (min-width: 901px) {
  .shop-products {
    grid-auto-columns: calc((100% - 3rem) / 3);
  }
}

@media (max-width: 900px) {
  .shop-products {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 600px) {
  .shop-section {
    padding-block: 1.25rem 1.5rem;
  }

  .shop-heading {
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
  }

  .shop-eyebrow {
    font-size: 0.63rem;
  }

  .shop-heading h2 {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
  }

  .shop-see-all {
    gap: 0.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.73rem;
    white-space: nowrap;
  }

  .shop-see-all svg {
    width: 1rem;
    height: 1rem;
  }

  .shop-products {
    grid-auto-columns: 88%;
    gap: 0.9rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .shop-card-artwork {
    aspect-ratio: 1.48;
  }

  .shop-card-details {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .shop-product-heading h3 {
    font-size: 1.08rem;
  }

  .shop-product-meta {
    font-size: 0.73rem;
  }

  .shop-control {
    top: 39%;
    width: 2.45rem;
    height: 2.45rem;
  }

  .shop-control--previous {
    left: -0.3rem;
  }

  .shop-control--next {
    right: -0.3rem;
  }

  .shop-disclaimer {
    font-size: 0.66rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card-artwork img,
  .shop-buy-button,
  .shop-control {
    transition: none;
  }

  .shop-products {
    scroll-behavior: auto;
  }
}
