/* Shared by the shop pages (/veikals, /veikals/<slug>, /grozs). Load before the page's own CSS.
   --pp-frame is the frame colour of the shop's blocks and cards: dark purple now; for the dark green
   alternative set it to var(--green-800). */
:root {
  --pp-frame: var(--purple);
  --pp-frame-soft: var(--lilac-100);
  --pp-line: #e1ded4;
  --pp-muted: #6b6c66;
  --pp-head: var(--green-900);
}

/* ---------- "Grozs" button (/veikals toolbar, product page; templates/shop/_cart_button.html) ---------- */
.shop-cart-btn {
  display: inline-flex; align-items: center; gap: 1rem; padding: 1.2rem 2.2rem 1.1rem 1.8rem;
  border: .2rem solid var(--pp-frame); border-radius: 10rem; background: var(--white); color: var(--pp-head);
  font-weight: var(--heavy); font-size: 1.8rem; line-height: 2.2rem; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.shop-cart-btn svg { flex: none; width: 2.6rem; height: 2.6rem; margin-top: -.3rem; }
.shop-cart-btn__count {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: .2rem .8rem 0;
  border-radius: 10rem; background: var(--pp-frame); color: var(--white); font-size: 1.4rem; line-height: 1;
}
/* Something in the cart: filled button with a white count badge */
.shop-cart-btn--filled { background: var(--pp-frame); color: var(--white); }
.shop-cart-btn--filled .shop-cart-btn__count { background: var(--white); color: var(--pp-frame); }
.shop-cart-btn:hover, .shop-cart-btn:focus-visible { background: var(--pp-frame); color: var(--white); }
.shop-cart-btn--filled:hover, .shop-cart-btn--filled:focus-visible { background: var(--green-900); border-color: var(--green-900); }
@media (prefers-reduced-motion: reduce) { .shop-cart-btn { transition: none; } }
@media (max-width: 600px) {
  .shop-cart-btn { padding: 1rem 1.8rem .9rem 1.5rem; font-size: 1.6rem; line-height: 2rem; }
  .shop-cart-btn svg { width: 2.3rem; height: 2.3rem; }
}
