/* /veikals — shop index: banner, product cards (frame colour --pp-frame from shop.css), links to the legal pages. */

/* ---------- Banner (taller and lighter green than the shared page banner) ---------- */
.shop-banner { height: 19.2rem; padding-top: 2.2rem; background: var(--green-700); }
.shop-banner .page-banner__title { font-size: 5.6rem; line-height: 7.84rem; }
.shop-banner .page-banner__title::after { left: .9rem; right: 1rem; bottom: 0; }
.shop-banner__text { margin-top: 2.8rem; font-size: 2rem; line-height: 3.6rem; }

/* ---------- New products: one featured card, or a carousel when there are several ---------- */
.shop-featured { padding: 4.4rem 0 0; background: var(--cream); }
.shop-featured__viewport { overflow: hidden; border-radius: 2.2rem; }
.shop-featured__track { display: flex; transition: transform .5s ease; }
.shop-featured__slide { flex: 0 0 100%; min-width: 0; }
.shop-featured__card {
  display: grid; grid-template-columns: 34rem 1fr; gap: 3.2rem; align-items: center; height: 100%; padding: 1.6rem;
  border: .2rem solid var(--pp-frame); border-radius: 2.2rem; background: var(--white); color: var(--ink); text-decoration: none;
}
.shop-featured__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 1.6rem; background: #f7f6f2; }
.shop-featured__media picture, .shop-featured__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-featured__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; padding-right: 2rem; }
.shop-featured__text .shop-card__ribbon { position: static; }
.shop-featured__name { font-weight: var(--heavy); font-size: 2.8rem; line-height: 3.4rem; color: var(--green-900); }
.shop-featured__price { font-weight: var(--heavy); font-size: 2.4rem; line-height: 3rem; color: var(--green-800); font-variant-numeric: tabular-nums; }
.shop-featured__text .shop-card__cta { min-width: 20rem; }
.shop-featured__card:hover .shop-card__cta, .shop-featured__card:focus-visible .shop-card__cta { background: var(--purple); color: var(--white); }
.shop-featured__card:focus-visible { outline: 3px solid var(--lilac-300); outline-offset: -3px; }
.shop-featured__controls { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin-top: 1.2rem; }
.shop-featured__arrow {
  width: 4rem; height: 4rem; border: .2rem solid var(--pp-frame); border-radius: 50%; background: var(--white);
  color: var(--pp-frame); font-size: 2.4rem; line-height: 1;
}
.shop-featured__arrow:hover { background: var(--pp-frame); color: var(--white); }
.shop-featured__count { min-width: 5rem; font-size: 1.4rem; text-align: center; color: var(--pp-muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .shop-featured__track { transition: none; } }

/* ---------- Product grid: white cards in a frame, like the product page blocks (shop.css) ---------- */
.shop-grid { padding: 5.7rem 0 3rem; background: var(--cream); }
.shop-grid__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.shop-card {
  display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.2rem;
  border: .2rem solid var(--pp-frame); border-radius: 2.2rem; background: var(--white);
  color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.shop-card:hover { transform: translateY(-.3rem); box-shadow: 0 1rem 0 -.4rem var(--pp-frame-soft); }
.shop-card:focus-visible { outline: 3px solid var(--lilac-300); outline-offset: 2px; }
.shop-card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 1.6rem; background: #f7f6f2; }
.shop-card__media picture, .shop-card__media img { display: block; width: 100%; height: 100%; }
.shop-card__media img { object-fit: cover; transition: transform .3s ease; }
.shop-card:hover .shop-card__media img { transform: scale(1.04); }
.shop-card__ribbon {
  position: absolute; top: 1rem; left: 1rem; padding: .3rem 1rem; border-radius: 10rem;
  background: var(--lime); color: var(--green-800);
  font-weight: var(--heavy); font-size: 1.2rem; line-height: 1.6rem;
}
.shop-card__ribbon--soft { background: var(--lilac-100); color: var(--purple); }
.shop-card__name { font-weight: var(--heavy); font-size: 1.65rem; line-height: 2.15rem; color: var(--ink); }
.shop-card__price { margin-top: auto; font-weight: var(--heavy); font-size: 1.9rem; line-height: 2.4rem; color: var(--green-800); font-variant-numeric: tabular-nums; }
.shop-card__cta {
  display: flex; justify-content: center; align-items: center; gap: .8rem; padding: 1rem 1.6rem;
  border-radius: 10rem; background: var(--lilac-100); color: var(--purple);
  font-weight: var(--heavy); font-size: 1.45rem; line-height: 2rem;
  transition: background-color .2s ease, color .2s ease;
}
.shop-card__cta svg { width: 1.6rem; height: 1.6rem; }
.shop-card:hover .shop-card__cta, .shop-card:focus-visible .shop-card__cta { background: var(--purple); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .shop-card, .shop-card__media img, .shop-card__cta { transition: none; }
  .shop-card:hover { transform: none; }
  .shop-card:hover .shop-card__media img { transform: none; }
}

/* ---------- Links to the legal pages: bold underlined text links, as in veikals-saraksts.html ---------- */
.shop-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; padding: .6rem 0 4rem; background: var(--cream); }
.shop-legal__link {
  color: var(--pp-frame); font-weight: var(--heavy); font-size: 1.4rem; line-height: 2rem;
  text-decoration: underline; text-underline-offset: .2rem;
}
.shop-legal__link:hover { text-decoration-thickness: 2px; }

/* tablets: two cards per row */
@media (min-width: 601px) and (max-width: 900px) {
  .shop-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shop-banner { height: 21.3rem; padding-top: 2rem; }
  .shop-banner .page-banner__title { font-size: 3.1rem; line-height: 4.34rem; }
  .shop-banner .page-banner__title::after { left: .4rem; right: .4rem; bottom: -2.46rem; }
  .shop-banner__text { width: 24rem; margin-top: 3.8rem; font-size: 1.7rem; line-height: 3.06rem; }

  .shop-featured { padding: 3rem 1.6rem 0; }
  .shop-featured__card { grid-template-columns: 1fr; gap: 1.2rem; padding: 1rem; border-radius: 1.6rem; }
  .shop-featured__viewport { border-radius: 1.6rem; }
  .shop-featured__text { gap: .8rem; padding: 0 .4rem .4rem; }
  .shop-featured__name { font-size: 1.9rem; line-height: 2.4rem; }
  .shop-featured__price { font-size: 1.8rem; line-height: 2.2rem; }
  .shop-featured__text .shop-card__cta { align-self: stretch; }
  .shop-grid { padding: 4.4rem 0 3rem; }
  .shop-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; padding: 0 1.6rem; }
  .shop-card { gap: .8rem; padding: .8rem; border-radius: 1.6rem; }
  .shop-card__media { border-radius: 1.2rem; }
  .shop-card__ribbon { top: .6rem; left: .6rem; padding: .2rem .7rem; font-size: 1rem; line-height: 1.4rem; }
  .shop-card__name { font-size: 1.35rem; line-height: 1.8rem; }
  .shop-card__price { font-size: 1.6rem; line-height: 2rem; }
  .shop-card__cta { padding: .7rem 1rem; font-size: 1.25rem; line-height: 1.6rem; }
  .shop-card__cta svg { width: 1.3rem; height: 1.3rem; }

  .shop-legal { padding: .4rem 1.6rem 3.2rem; }
}
