/* FeedWindow's shop is a first-party part of the site, not a third-party ad unit. */
.shop-banner {
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 28px auto 0;
  padding: 22px;
  overflow: hidden;
  position: relative;
  align-items: stretch;
  background:
    radial-gradient(circle at 88% -20%, rgb(224 164 88 / 18%), transparent 42%),
    linear-gradient(145deg, #1a2416 0%, var(--panel) 55%, #121910 100%);
  border: 1px solid rgb(224 164 88 / 34%);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
}

.ad-tag {
  z-index: 3;
  top: 16px;
  right: 18px;
  padding: 5px 9px;
  overflow: hidden;
  color: transparent;
  background: rgb(15 20 13 / 78%);
  border: 1px solid rgb(224 164 88 / 35%);
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
}

.ad-tag::after {
  content: "Our shop";
  color: var(--accent2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .65px;
}

.shop-brand {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 84px;
  padding: 0 165px 16px 0;
  position: relative;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.shop-brand:hover {
  background: transparent;
}

.shop-brand img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid rgb(224 164 88 / 30%);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 34%);
}

.shop-brand strong {
  max-width: 480px;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  font-family: Bitter, serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
}

.shop-brand strong::before {
  content: "From the makers of FeedWindow";
  display: block;
  margin-bottom: 5px;
  color: var(--accent2);
  font-family: Inter, system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .75px;
  line-height: 1.2;
  text-transform: uppercase;
}

.shop-brand strong::after {
  content: "Outdoor-inspired goods for time well spent outside.";
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.shop-brand::after {
  content: "Visit the shop  →";
  position: absolute;
  top: 18px;
  right: 0;
  padding: 12px 16px;
  color: #171209;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: 1px solid rgb(240 192 130 / 70%);
  border-radius: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
  transition: filter .15s, transform .15s, box-shadow .15s;
}

.shop-brand:hover::after {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgb(0 0 0 / 36%);
}

.shop-item {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: var(--text);
  background: rgb(15 20 13 / 55%);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}

.shop-item + .shop-item {
  border-left: 1px solid var(--border);
}

.shop-item:hover {
  background: var(--panel2);
  border-color: rgb(224 164 88 / 50%);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgb(0 0 0 / 30%);
}

.shop-item:focus-visible,
.shop-brand:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.shop-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  align-self: auto;
  object-fit: cover;
  background: var(--bg2);
}

.shop-item-info {
  min-width: 0;
  padding: 12px 13px 13px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 7px 12px;
}

.shop-item-info strong {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.shop-item-info em {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
}

.shop-item-info::after {
  content: "View item  →";
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  transition: color .15s;
}

.shop-item:hover .shop-item-info::after {
  color: var(--accent2);
}

@media (width <= 760px) {
  .shop-banner {
    gap: 9px;
    padding: 20px;
  }

  .shop-brand {
    padding-right: 150px;
  }

  .shop-item-info::after {
    display: none;
  }
}

@media (width <= 520px) {
  .shop-banner {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    border-radius: 15px;
  }

  .ad-tag {
    top: 13px;
    right: 14px;
  }

  .shop-brand {
    grid-column: auto;
    min-height: 0;
    padding: 0 68px 76px 0;
  }

  .shop-brand img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 12px;
  }

  .shop-brand strong {
    font-size: 20px;
  }

  .shop-brand strong::after {
    font-size: 11.5px;
  }

  .shop-brand::after {
    top: auto;
    right: 0;
    bottom: 14px;
    left: 0;
    text-align: center;
  }

  .shop-item,
  .shop-banner .shop-item:last-child {
    display: flex;
    align-items: center;
  }

  .shop-item img {
    width: 112px;
    flex: 0 0 112px;
    aspect-ratio: 4 / 3;
  }

  .shop-item-info {
    flex: 1;
    padding: 12px;
  }

  .shop-item-info strong {
    white-space: normal;
  }

  .shop-item-info::after {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-brand::after,
  .shop-item {
    transition: none;
  }
}
