.shop-page { background: var(--paper); }

.hero--shop .hero__bg img { object-position: 50% 35%; }

.shop-catalog {
  background:
    radial-gradient(circle at 82% 8%, rgba(46, 118, 230, .16), transparent 32%),
    radial-gradient(circle at 10% 22%, rgba(20, 42, 94, .12), transparent 30%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.shop-catalog .section-head {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-row button {
  padding: 9px 17px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-2);
  border: 1.5px solid var(--line-2);
  background: var(--card);
  cursor: default;
}

.filter-row button.is-on {
  background: var(--olive-800);
  color: var(--on-dark);
  border-color: var(--olive-800);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 100px;
  background: var(--card);
  border: 1.5px solid var(--line-2);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.cart-pill svg {
  width: 20px;
  height: 20px;
  color: var(--olive-700);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .45s var(--ease-out),
    transform .3s var(--ease-out),
    box-shadow .3s,
    border-color .3s;
  transition-delay: var(--shop-delay, 0ms);
}

.product.is-visible {
  opacity: 1;
  transform: none;
}

.product.is-visible:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--line-2);
}

.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
}

.product__media img,
.product__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.product__media img {
  object-fit: cover;
  transition: transform .32s var(--ease-out);
}

.product:hover .product__media img {
  transform: scale(1.045);
}

.product__placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brass-400);
  background: linear-gradient(145deg, var(--olive-900), var(--olive-800));
}

.product__tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .02em;
}

.product__tag--hot {
  background: #fff;
  color: var(--olive-800);
  border: 1px solid var(--line-2);
}

.product__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product__cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--brass-700);
  text-transform: uppercase;
}

.product__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.3;
  margin-top: 7px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__desc {
  color: var(--text-2);
  font-size: .92rem;
  margin-top: 8px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.product__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--olive-800);
  letter-spacing: -.01em;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--brass-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  transition: background .18s, gap .18s;
}

.add-btn:hover {
  background: var(--brass-600);
  gap: 10px;
}

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 36px);
}

.shop-modal[hidden] { display: none; }

.shop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 35, .58);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .18s var(--ease);
}

.shop-modal__panel {
  position: relative;
  width: min(100%, 980px);
  max-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(8, 16, 36, .38);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .2s var(--ease-out), transform .22s var(--ease-out);
}

.shop-modal.is-open .shop-modal__backdrop { opacity: 1; }
.shop-modal.is-open .shop-modal__panel { opacity: 1; transform: none; }

.shop-modal__close {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--olive-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12, 24, 48, .14);
}

.shop-modal__media {
  min-height: 520px;
  background: var(--olive-900);
}

.shop-modal__media img,
.shop-modal__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.shop-modal__media img {
  object-fit: cover;
}

.shop-modal__placeholder {
  display: grid;
  place-items: center;
  min-height: 520px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--brass-400);
  background: linear-gradient(145deg, var(--olive-900), var(--olive-800));
}

.shop-modal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 46px);
  overflow: auto;
}

.shop-modal__eyebrow {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  color: var(--brass-700);
}

.shop-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.08;
  color: var(--olive-900);
}

.shop-modal__desc {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.8;
  white-space: pre-line;
}

.shop-modal__price-row {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.shop-modal__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--olive-900);
}

.shop-modal__note {
  color: var(--text-2);
  font-size: .92rem;
}

.shop-modal__buy {
  margin-top: 6px;
  justify-content: center;
}

body.shop-modal-open {
  overflow: hidden;
}

body.shop-modal-open .site-header.is-stuck {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), visibility .2s;
}

body.shop-modal-open .hero-stack.is-nav-stuck {
  z-index: auto;
}

.shop-impact-band {
  text-align: center;
  margin-block-end: clamp(16px, 2.5vw, 28px);
}

.shop-impact-band .h2 {
  color: var(--on-dark);
  margin-top: 12px;
}

.shop-impact-band .lead {
  color: var(--on-dark-2);
  margin-top: 14px;
}

.shop-impact-band .btn {
  margin-top: 24px;
}

.shop-soon {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 48px) 0;
}

.shop-soon__ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--r);
  background: var(--olive-800);
  color: var(--brass-400);
  display: grid;
  place-items: center;
}

.shop-soon__ic svg { width: 28px; height: 28px; }
.shop-soon .lead { margin-top: 14px; color: var(--text-2); }

.shop-soon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 32px);
}

@media (max-width: 1180px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-bar {
    align-items: stretch;
  }

  .shop-impact-pill {
    width: 100%;
    justify-content: center;
  }

  .shop-modal__panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .shop-modal__media,
  .shop-modal__placeholder {
    min-height: 340px;
    max-height: 44vh;
  }
}

@media (max-width: 560px) {
  .shop-filter-all {
    display: none;
  }

  .filter-row:has(.shop-filter-all:only-child) {
    display: none;
  }

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

  .product__tag {
    inset-block-start: 8px;
    inset-inline-start: 8px;
    padding: 4px 8px;
    font-size: .62rem;
  }

  .product__body {
    padding: 12px 10px 14px;
  }

  .product__cat {
    font-size: .64rem;
    letter-spacing: .04em;
  }

  .product__name {
    font-size: .92rem;
    margin-top: 5px;
    -webkit-line-clamp: 2;
  }

  .product__desc {
    display: none;
  }

  .product__foot {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .product__price {
    font-size: 1.05rem;
  }

  .add-btn {
    width: 100%;
    padding: 9px 10px;
    font-size: .82rem;
  }

  .shop-modal {
    padding: 10px;
  }

  .shop-modal__panel {
    border-radius: 22px;
  }

  .shop-modal__media,
  .shop-modal__placeholder {
    min-height: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
