.shop-hero,
.shop-catalog {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc((100vw - 1360px) / 2 + 1rem));
  padding-right: max(1rem, calc((100vw - 1360px) / 2 + 1rem));
}

.shop-hero::before,
.shop-catalog::before {
  content: none;
}

.shop-hero {
  margin-top: -0.45rem;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4.1rem;
  padding-bottom: 4.1rem;
  background:
    linear-gradient(135deg, rgba(18, 36, 25, 0.22), rgba(21, 44, 30, 0.12)),
    radial-gradient(circle at 18% 24%, rgba(242, 207, 88, 0.08), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(102, 163, 114, 0.1), transparent 24%),
    url("images/background/shop_hero.png") center center / cover no-repeat;
}

.shop-hero-copy {
  max-width: 44rem;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.shop-hero h1,
.shop-catalog h2 {
  margin: 0;
  font-family: "Marcellus", "Fraunces", serif;
  color: var(--brand-dark);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.shop-hero h1 {
  color: #f7fbf6;
  font-size: clamp(3rem, 5.6vw, 5rem);
  max-width: none;
  margin: 0.2rem auto 0;
}

.shop-catalog {
  padding-top: 1.9rem;
  padding-bottom: 1.9rem;
  background:
    radial-gradient(circle at top center, rgba(242, 207, 88, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7fbf5);
  color: #274734;
}

.shop-section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.shop-section-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
}

.shop-section-eyebrow,
.shop-group-eyebrow {
  margin: 0;
  color: #5c7c66;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-section-intro h2 {
  font-size: clamp(2.35rem, 4vw, 3.5rem);
}

.shop-section-lead {
  margin: 0;
  max-width: 34rem;
  color: #5c7662;
  line-height: 1.7;
}

.shop-section-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(100%, 26rem);
}

.shop-section-stat {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  min-width: 0;
  border-radius: 22px;
  background: rgba(255, 248, 236, 0.74);
  border: 1px solid rgba(71, 94, 72, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: center;
}

.shop-section-stat strong {
  color: var(--brand-dark);
  font-size: 1.2rem;
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
}

.shop-section-stat span {
  color: #62806a;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(180px, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.shop-search-wrap,
.shop-toolbar select {
  min-height: 60px;
  border-radius: 20px;
}

.shop-search-wrap,
.shop-toolbar select {
  border: 1px solid rgba(61, 89, 69, 0.16);
  background: rgba(255, 251, 244, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shop-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.shop-search-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: #4d8c5a;
}

.shop-search-wrap input,
.shop-toolbar select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.shop-toolbar select {
  padding: 0 1rem;
}

.shop-search-wrap input:focus,
.shop-toolbar select:focus {
  outline: none;
}

.shop-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.shop-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(71, 94, 72, 0.12);
  color: #36533f;
  font-weight: 700;
  font-size: 0.88rem;
}

.shop-chip small {
  font-size: 0.74rem;
  color: #78907d;
}

.shop-chip.is-active {
  background: linear-gradient(135deg, #2f7a4b, #245c39);
  color: #f7fbf6;
  border-color: transparent;
}

.shop-chip.is-active small {
  color: rgba(247, 251, 246, 0.8);
}

.shop-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
}

.shop-results-head p,
.shop-results-head span {
  margin: 0;
}

.shop-cart-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(71, 94, 72, 0.12);
  color: #36533f;
  font-weight: 700;
}

.shop-cart-summary-label {
  color: #5a7460;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.shop-cart-summary strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.shop-group + .shop-group {
  margin-top: 2.1rem;
}

.shop-group--buy-again {
  margin-top: 2rem;
  padding: 1.35rem;
  border-radius: 32px;
  border: 1px solid rgba(53, 92, 65, 0.12);
  background:
    radial-gradient(circle at top left, rgba(242, 207, 88, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(247, 250, 243, 0.98), rgba(239, 247, 235, 0.96));
  box-shadow: 0 20px 46px rgba(34, 53, 40, 0.08);
  scroll-margin-top: 7rem;
}

.scroller-shell {
  position: relative;
}

.scroller-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.2rem 0;
}

.scroller-track::-webkit-scrollbar {
  display: none;
}

.scroller-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 247, 229, 0.9);
  box-shadow: 0 10px 28px rgba(72, 98, 57, 0.14);
  color: #2f6541;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
}

.scroller-arrow.prev {
  left: 0.8rem;
}

.scroller-arrow.next {
  right: 0.8rem;
}

.shop-buy-again-shell {
  padding: 0 3.3rem;
}

.shop-buy-again-track {
  gap: 1.4rem;
  padding: 0.2rem 0.25rem 0.35rem;
  scroll-padding-inline: 0.25rem;
}

.shop-buy-again-card {
  flex: 0 0 288px;
  min-width: 288px;
  max-width: 288px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.shop-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(47, 122, 75, 0.14);
  box-shadow: inset 0 -10px 24px rgba(255, 251, 244, 0.65);
}

.shop-group-copy {
  display: grid;
  gap: 0.3rem;
}

.shop-group-head h3 {
  margin: 0;
  font-family: "Marcellus", "Fraunces", serif;
  color: var(--brand-dark);
  font-size: 1.95rem;
  line-height: 1.05;
}

.shop-group-head span {
  color: #5a7460;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.72);
  border: 1px solid rgba(71, 94, 72, 0.08);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.shop-card,
.shop-empty {
  border-radius: 28px;
  border: 1px solid rgba(53, 92, 65, 0.12);
  box-shadow: 0 20px 40px rgba(34, 53, 40, 0.08);
}

.shop-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 245, 0.92));
}

.shop-card-media {
  display: block;
  position: relative;
  height: 160px;
  cursor: pointer;
  perspective: 1400px;
  perspective-origin: center center;
  transform-style: preserve-3d;
}

.shop-card-media:focus-visible {
  outline: 2px solid rgba(47, 122, 75, 0.24);
  outline-offset: 4px;
}

.shop-card-media__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.68s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.shop-card-media.is-flipped .shop-card-media__inner {
  transform: rotateY(180deg);
}

.shop-card-media__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  border-radius: 28px 28px 0 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.shop-card-media__face--front {
  padding: 0;
  transform: rotateY(0deg) translateZ(1px);
}

.shop-card-media__face--back {
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg) translateZ(1px);
  background:
    linear-gradient(180deg, rgba(248, 252, 245, 0.98), rgba(238, 247, 239, 0.96));
}

.shop-card-media__content {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.shop-card-media__title {
  margin: 0;
  color: var(--brand-dark);
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.shop-card-media__description {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.92rem;
  line-height: 1.58;
}

.shop-card-media__hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(20, 41, 28, 0.68);
  color: #f7fbf6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.shop-card-image {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(16, 34, 24, 0.14), rgba(16, 34, 24, 0.02)),
    var(--shop-card-art, var(--bg-image-kitchen)) center center / cover no-repeat,
    #e8eddf;
}

.shop-card-image--uploaded {
  object-fit: cover;
  background: #e8eddf;
}

.shop-card-image--1 {
  --shop-card-art: var(--product-image-1);
}

.shop-card-image--2 {
  --shop-card-art: var(--product-image-2);
}

.shop-card-image--3 {
  --shop-card-art: var(--product-image-3);
}

.shop-card-image--4 {
  --shop-card-art: var(--product-image-4);
}

.shop-card-image--5 {
  --shop-card-art: var(--product-image-5);
}

.shop-card-image--6 {
  --shop-card-art: var(--product-image-6);
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.1rem 1.1rem 1.2rem;
}

.shop-card-tags,
.shop-care-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-card-tags span,
.shop-care-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.82);
  border: 1px solid rgba(71, 94, 72, 0.1);
  color: #4a6652;
  font-size: 0.75rem;
  font-weight: 700;
}

.shop-card-tags .is-stocked {
  background: rgba(226, 244, 220, 0.9);
  color: #2e6d44;
}

.shop-card-tags .is-limited {
  background: rgba(251, 235, 210, 0.92);
  color: #98622b;
}

.shop-card-copy h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--brand-dark);
}

.shop-card-copy {
  display: grid;
  gap: 0.42rem;
}

.shop-card-copy p {
  margin: 0;
  color: #6f836f;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.shop-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.shop-card-price {
  display: grid;
  gap: 0.2rem;
}

.shop-card-meta strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.02rem;
}

.shop-card-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.shop-empty a {
  padding: 0.78rem 0.98rem;
  background: #274734;
  color: #f7fbf6;
  font-size: 0.8rem;
  white-space: nowrap;
}

.shop-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(71, 94, 72, 0.12);
}

.shop-qty-control button,
.shop-qty-control span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-weight: 800;
}

.shop-qty-control button {
  border: none;
  background: #274734;
  color: #f7fbf6;
  cursor: pointer;
  font-size: 1rem;
}

.shop-qty-control span {
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.shop-qty-control.is-pending {
  opacity: 0.76;
}

.shop-qty-control button:disabled {
  cursor: default;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.shop-cart-note {
  margin: 0.7rem 0 0;
  color: #5a7460;
  font-size: 0.8rem;
  font-weight: 700;
}

.shop-empty {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 245, 0.92));
  text-align: center;
}

.shop-empty h3 {
  margin: 0;
  font-family: "Marcellus", "Fraunces", serif;
  color: var(--brand-dark);
  font-size: 2rem;
}

.shop-empty p {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.shop-empty a {
  margin-top: 1.15rem;
}

.shop-empty a:hover,
.shop-qty-control button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(20, 40, 29, 0.18);
}

@media (max-width: 1120px) {
  .shop-section-intro {
    align-items: start;
  }

  .shop-section-stats {
    width: 100%;
    max-width: 32rem;
  }

  .shop-toolbar {
    grid-template-columns: minmax(0, 1.8fr) minmax(170px, 1fr);
  }

  .shop-buy-again-shell {
    padding: 0 2.9rem;
  }
}

@media (max-width: 760px) {
  .shop-hero,
  .shop-catalog {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .shop-section-intro,
  .shop-results-head,
  .shop-group-head {
    flex-direction: column;
    align-items: start;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-section-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }

  .shop-section-stat {
    padding: 0.62rem 0.4rem;
    border-radius: 16px;
  }

  .shop-section-stat strong {
    font-size: 1rem;
    line-height: 1;
  }

  .shop-section-stat span {
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  .shop-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }

  .shop-chip-row::-webkit-scrollbar {
    display: none;
  }

  .shop-cart-summary {
    width: 100%;
    justify-content: space-between;
  }

  .shop-group-head h3 {
    font-size: 1.45rem;
  }

  .shop-group-head span {
    font-size: 0.76rem;
    padding: 0.26rem 0.56rem;
  }

  .shop-card,
  .shop-empty {
    border-radius: 20px;
  }

  .shop-card-media {
    height: 92px;
    cursor: default;
    perspective: none;
  }

  .shop-card-media__inner,
  .shop-card-media.is-flipped .shop-card-media__inner {
    transform: none;
    transition: none;
  }

  .shop-card-media__face {
    border-radius: 20px 20px 0 0;
  }

  .shop-card-media__face--back,
  .shop-card-media__hint {
    display: none;
  }

  .shop-card-body {
    padding: 0.72rem;
    gap: 0.56rem;
  }

  .shop-card-copy {
    gap: 0.24rem;
  }

  .shop-card-copy h3 {
    font-size: 0.88rem;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .shop-card-copy p {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .shop-grid .shop-card-tags {
    display: none;
  }

  .shop-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    gap: 0.45rem;
  }

  .shop-card-price strong {
    font-size: 0.9rem;
  }

  .shop-card-meta span {
    font-size: 0.68rem;
  }

  .shop-qty-control {
    gap: 0.18rem;
    padding: 0.16rem;
  }

  .shop-qty-control button,
  .shop-qty-control span {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .shop-group--buy-again {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.1rem 0 1.2rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .shop-group--buy-again .shop-group-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .shop-buy-again-shell {
    padding: 0;
  }

  .shop-buy-again-track {
    gap: 1rem;
    padding: 0.2rem 1rem 0.35rem;
    scroll-padding-inline: 1rem;
  }

  .shop-buy-again-card {
    flex-basis: 214px;
    min-width: 214px;
    max-width: 214px;
  }

  .shop-buy-again-card .shop-card-media {
    height: 106px;
  }

  .shop-buy-again-card .shop-card-tags {
    gap: 0.3rem;
  }

  .shop-buy-again-card .shop-card-tags span {
    font-size: 0.64rem;
    padding: 0.3rem 0.48rem;
  }

  .shop-buy-again-card .shop-card-tags span + span {
    display: none;
  }

  .scroller-arrow {
    display: none;
  }
}

@media (max-width: 420px) {
  .shop-section-stats {
    gap: 0.3rem;
  }

  .shop-section-stat {
    padding: 0.56rem 0.3rem;
  }

  .shop-section-stat strong {
    font-size: 0.92rem;
  }

  .shop-section-stat span {
    font-size: 0.52rem;
  }

  .shop-grid {
    gap: 0.62rem;
  }

  .shop-card-media {
    height: 84px;
  }

  .shop-card-body {
    padding: 0.66rem;
  }

  .shop-buy-again-card {
    flex-basis: 196px;
    min-width: 196px;
    max-width: 196px;
  }
}
