/* Katalog a detail produktu — interaktivní vrstva.
   Staví na rebuild.css + storefront-polish.css; jen vizuální a pohybové
   doladění, žádná změna nákupní logiky. Vše respektuje reduced-motion. */

/* ------------------------------------------------------------------ */
/* 1. Katalog: filtry                                                   */
/* ------------------------------------------------------------------ */

.shop-page .filter-row {
  position: sticky;
  top: calc(var(--header-h) + var(--announcement-h));
  z-index: 6;
  gap: 8px;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--cream-soft) 72%, rgba(253, 251, 247, 0));
  backdrop-filter: blur(6px);
}

.shop-page .filter-pill {
  position: relative;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), background-color .22s, color .22s, border-color .22s;
}

.shop-page .filter-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1);
  z-index: -1;
}

.shop-page .filter-pill:hover:not(.active) {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.shop-page .filter-pill:active { transform: translateY(0) scale(.97); }

.shop-page .filter-pill .filter-pill-count {
  display: inline-block;
  min-width: 18px;
  margin-left: 7px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(33, 18, 14, .09);
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  vertical-align: 1px;
}

.shop-page .filter-pill.active .filter-pill-count {
  background: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .88);
}

/* ------------------------------------------------------------------ */
/* 2. Katalog: karta produktu                                           */
/* ------------------------------------------------------------------ */

.shop-page .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}

.shop-page .product-card .product-info { flex: 1 1 auto; display: flex; flex-direction: column; }
.shop-page .product-card .product-card-buy { margin-top: auto; }

.shop-page .product-card:hover,
.shop-page .product-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(33, 18, 14, .4);
  box-shadow: 0 26px 60px rgba(51, 24, 15, .14);
}

/* Sjednocená hit-area: hover kdekoli na kartě rozsvítí obrázek i titulek. */
.shop-page .product-card:hover .product-card-title a,
.shop-page .product-card:focus-within .product-card-title a { color: var(--coral-deep); }

.shop-page .product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

/* Catalog photo states are owned by shop-refinement.css. */

/* Quickview + odznak */
.shop-page .quickview-btn {
  opacity: 0;
  transform: translateY(-6px) scale(.9);
  transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s;
  text-decoration: none;
}

.shop-page .product-card:hover .quickview-btn,
.shop-page .product-card:focus-within .quickview-btn,
.shop-page .quickview-btn:focus-visible { opacity: 1; transform: translateY(0) scale(1); }

.shop-page .quickview-btn:hover { background: var(--ink); color: var(--cream-soft); }

.shop-page .badge-sticker { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.shop-page .product-card:hover .badge-sticker { transform: translateY(-2px); }

/* Stav „už v košíku" — Baymard: 96 % e-shopů to v katalogu neukazuje. */
.shop-page .product-card[data-in-cart="true"] { border-color: var(--coral-deep); }

.shop-page .product-card-cart-flag {
  position: absolute;
  top: 16px;
  right: 64px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shop-page .product-card[data-in-cart="true"] .product-card-cart-flag { display: inline-flex; }

/* Rychlý výběr balení přímo v kartě */
.shop-page .card-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.shop-page .card-variant-chip {
  padding: 6px 11px;
  border: 1px solid rgba(33, 18, 14, .26);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.shop-page .card-variant-chip:hover:not(.is-selected):not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.shop-page .card-variant-chip.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream-soft);
}

.shop-page .card-variant-chip:disabled { opacity: .38; cursor: not-allowed; }

.shop-page .card-variant-more {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.shop-page .card-variant-more:hover { color: var(--coral-deep); }

/* Cena reaguje na změnu varianty */
.shop-page .product-price b { transition: color .25s; }
.shop-page .product-price.is-updating b { animation: vb-price-pop .4s cubic-bezier(.2, .8, .2, 1); }

@keyframes vb-price-pop {
  0% { transform: translateY(5px); opacity: .2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Tlačítko do košíku — potvrzení akce přímo na tlačítku */
.shop-page .product-card-buy .button,
.product-detail-purchase .button[data-detail-add] {
  position: relative;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .25s, color .25s;
}

.shop-page .product-card-buy .button:hover:not(:disabled),
.product-detail-purchase .button[data-detail-add]:hover:not(:disabled) { transform: translateY(-2px); }

.shop-page .product-card-buy .button:active:not(:disabled),
.product-detail-purchase .button[data-detail-add]:active:not(:disabled) { transform: translateY(0) scale(.98); }

.button.is-added,
.button.is-added:hover {
  background: #2f6b43 !important;
  border-color: #2f6b43 !important;
  color: #fff !important;
}

/* Postupné odkrytí karet po filtrování */
.shop-page .product-card.vb-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: vb-card-in .5s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes vb-card-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Letící obrázek do košíku */
.vb-fly {
  position: fixed;
  z-index: 2000;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(45, 19, 12, .3));
  transition: transform .72s cubic-bezier(.55, -.1, .6, 1), opacity .72s ease-in;
}

.cart-button.is-bumped { animation: vb-cart-bump .45s cubic-bezier(.2, .8, .2, 1); }

@keyframes vb-cart-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.09); }
}

/* ------------------------------------------------------------------ */
/* 3. Detail produktu: galerie                                          */
/* ------------------------------------------------------------------ */

.product-page [data-gallery-main] {
  cursor: zoom-in;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

/* Na mobilu si galerie drží vlastní statické umístění z commerce.css;
   vlastní pozicovaci kontext a návěstí zavádíme až tam, kde existuje hover. */
@media (min-width: 761px) {
  .product-page .product-detail-gallery { position: relative; }
  .product-page .gallery-zoom-hint { display: inline-flex; }
  .product-page .product-detail-gallery.is-zoomable:hover [data-gallery-main] { transform: scale(1.06); }
  .product-page .product-detail-gallery:hover .gallery-zoom-hint { opacity: 1; transform: translateY(0); }
}

.product-page .gallery-zoom-hint {
  position: absolute;
  display: none;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.product-page .product-thumbnails button {
  overflow: hidden;
  transition: border-color .22s, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.product-page .product-thumbnails button:hover { transform: translateY(-2px); border-color: var(--ink); }
.product-page .product-thumbnails button[aria-pressed="true"] { border-color: var(--coral-deep); }

/* Lightbox */
.vb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 24px;
  background: rgba(20, 12, 8, .92);
  opacity: 0;
  transition: opacity .28s;
}

.vb-lightbox[hidden] { display: none !important; }
.vb-lightbox.is-open { opacity: 1; }

.vb-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.vb-lightbox-caption {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vb-lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}

.vb-lightbox button:hover { background: rgba(255, 255, 255, .16); transform: scale(1.05); }

.vb-lightbox-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; }

.vb-lightbox-stage img {
  max-width: min(1100px, 100%);
  max-height: min(74vh, 100%);
  object-fit: contain;
  transform: scale(.96);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.vb-lightbox.is-open .vb-lightbox-stage img { transform: scale(1); }

.vb-lightbox-thumbs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.vb-lightbox-thumbs button {
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.vb-lightbox-thumbs button[aria-pressed="true"] { border-color: #fff; background: rgba(255, 255, 255, .2); }
.vb-lightbox-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* ------------------------------------------------------------------ */
/* 4. Detail produktu: nákupní blok                                     */
/* ------------------------------------------------------------------ */

.product-page .variant-choice-button {
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, border-color .2s, color .2s;
}

.product-page .variant-choice-button:hover:not(.is-selected):not(:disabled) { transform: translateY(-2px); }
.product-page .variant-choice-button:active:not(:disabled) { transform: translateY(0) scale(.97); }

.product-page .product-detail-price strong { transition: opacity .2s; }
.product-page .product-detail-price.is-updating strong { animation: vb-price-pop .4s cubic-bezier(.2, .8, .2, 1); }

/* Důvěryhodnostní pás pod tlačítkem */
.product-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-trust li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.product-trust li b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.product-trust svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: var(--coral-deep); }

/* Lepivá nákupní lišta */
.product-buybar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line);
  background: rgba(253, 251, 247, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 34px rgba(35, 21, 13, .1);
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.product-buybar.is-visible { transform: translateY(0); }

.product-buybar-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-buybar-info img { width: 44px; height: 44px; object-fit: contain; }

.product-buybar-text { min-width: 0; }

.product-buybar-text b {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-buybar-text span { color: var(--muted); font-size: 11px; }

.product-buybar-action { display: flex; align-items: center; gap: 14px; }
.product-buybar-price { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.product-buybar .button { min-height: 44px; padding: 0 20px; white-space: nowrap; }

/* Doporučené produkty */
.product-related { margin: 0 auto; padding: 0 0 clamp(48px, 6vw, 88px); width: var(--shell); }
.product-related > header { margin-bottom: 22px; }
.product-related h2 { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 38px); font-weight: 400; }

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 18, 14, .34);
  box-shadow: 0 20px 40px rgba(51, 24, 15, .12);
}

.related-card img {
  width: 100%;
  height: 168px;
  padding: 14px;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.related-card:hover img { transform: scale(1.05); }

.related-card-body { display: block; padding: 14px 16px 18px; border-top: 1px solid var(--line); background: var(--cream); }

.related-card-kicker {
  display: block;
  margin: 0 0 6px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.related-card-title { display: block; margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.25; }
.related-card-price { display: block; margin: 9px 0 0; font-size: 12px; color: var(--muted); }
.related-card-price b { color: var(--ink); font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* 5. Responzivita                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .product-trust { grid-template-columns: 1fr; gap: 10px; }
  .product-buybar-info img { display: none; }
  .product-related-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 640px) {
  .shop-page .filter-row { padding: 10px 0; }
  .shop-page .product-card-cart-flag { right: 58px; top: 14px; }
  .product-buybar { padding: 10px 16px; gap: 10px; }
  .product-buybar-text b { font-size: 14px; max-width: 42vw; }
  .product-buybar-price { font-size: 18px; }
  .product-buybar .button { padding: 0 14px; font-size: 12px; }
  .vb-lightbox { padding: 14px; }
}

/* Mobilní seznam: fotka je nejsledovanější prvek karty, potřebuje víc místa. */
@media (max-width: 760px) {
  body.shop-page .product-card { grid-template-columns: 136px minmax(0, 1fr); }
  body.shop-page .product-visual { display: grid; place-items: center; }
  body.shop-page .product-card .product-card-image { height: 168px; margin-top: 0; padding: 10px; }
  body.shop-page .product-card-image-alt { width: 100%; height: 168px; padding: 10px; }
  body.shop-page .card-variant-chips { margin-top: 10px; }
  body.shop-page .card-variant-chip { padding: 7px 12px; font-size: 12px; }
}

/* ------------------------------------------------------------------ */
/* 7. Katalog: hustsi mrizka                                            */
/* ------------------------------------------------------------------ */

/* Tri karty na radek delaly z kazde polozky plakat. Ctyri sloupce drzi
   produkty ve srovnatelnem meritku a vejde se jich vic nad ohyb. */
@media (min-width: 1180px) {
  body.shop-page .products-grid { gap: 18px; }

  body.shop-page .product-card,
  body.shop-page .product-card:nth-child(1),
  body.shop-page .product-card:nth-child(2),
  body.shop-page .products-grid[data-count] .product-card,
  body.shop-page .products-grid[data-count="7"] .product-card:nth-child(6),
  body.shop-page .products-grid[data-count="7"] .product-card:nth-child(7) { grid-column: span 3; }

  body.shop-page .products-grid[data-count="1"] .product-card { grid-column: span 4; }
  body.shop-page .products-grid[data-count="2"] .product-card { grid-column: span 5; }
  body.shop-page .products-grid[data-count="3"] .product-card { grid-column: span 4; }

  body.shop-page .product-visual,
  body.shop-page .product-card:nth-child(1) .product-visual,
  body.shop-page .product-card:nth-child(2) .product-visual { min-height: 268px; }

  body.shop-page .product-card .product-card-image,
  body.shop-page .product-card:nth-child(-n+2) .product-card-image { height: 236px; padding: 14px; }

  body.shop-page .product-card-image-alt { height: 236px; padding: 14px; }

  body.shop-page .product-info { padding: 16px 18px 18px; }
  body.shop-page .product-card-title { font-size: 23px; line-height: 1.22; }
  body.shop-page .product-card-kicker { font-size: 9px; margin-bottom: 6px; }
  body.shop-page .product-card-desc { min-height: 3.4em; margin-top: 8px; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; }
  body.shop-page .card-variant-chips { margin-top: 10px; gap: 5px; }
  body.shop-page .card-variant-chip { padding: 5px 9px; font-size: 10px; }
  body.shop-page .product-price { margin-top: 10px; }
  body.shop-page .product-price b { font-size: 23px; }
  body.shop-page .product-card-buy { margin-top: 14px; gap: 8px; }
  body.shop-page .product-card-buy .button { min-height: 40px; padding: 0 13px; gap: 10px; font-size: 12px; }
  body.shop-page .variant-field-label { font-size: 10px; }
  body.shop-page .product-card-cart-flag { right: 56px; top: 12px; }
}

/* ------------------------------------------------------------------ */
/* 6. Omezený pohyb                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .shop-page .product-card,
  .shop-page .product-card-image,
  .shop-page .product-card-image-alt,
  .shop-page .quickview-btn,
  .shop-page .filter-pill,
  .product-page [data-gallery-main],
  .related-card,
  .related-card img,
  .product-buybar,
  .vb-lightbox,
  .vb-lightbox-stage img {
    transition: none !important;
    animation: none !important;
  }

  .shop-page .product-card:hover,
  .related-card:hover { transform: none; }

  .shop-page .product-card.vb-enter { opacity: 1; transform: none; animation: none; }
  .shop-page .quickview-btn { opacity: 1; transform: none; }
  .vb-fly { display: none; }
}

/* ------------------------------------------------------------------ */
/* 8. Rozcestnik forem a lista katalogu                                 */
/* ------------------------------------------------------------------ */

.form-guide { margin: 2px 0 22px; }
.form-guide[hidden] { display: none; }

.form-guide-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
}

/* Sest forem se deli na 6 / 3 / 2 bez osirele rady; auto-fit tu delal
   sest plus sirotka. */
.form-guide-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.form-tile {
  display: flex;
  flex-direction: column;
  padding: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s, background-color .25s;
}

.form-tile:hover { transform: none; border-color: rgba(33, 18, 14, .34); box-shadow: 0 8px 20px rgba(51, 24, 15, .08); }
.form-tile.is-active { border-color: var(--ink); background: var(--ink); color: var(--cream-soft); }
.form-tile.is-active .form-tile-note { color: rgba(255, 255, 255, .72); }
.form-tile.is-active .form-tile-meta { color: var(--butter); }
.form-tile.is-active .form-tile-media { background: rgba(255, 255, 255, .08); }

.form-tile-media {
  position: relative;
  display: block;
  width: 100%;
  height: 92px;
  background: radial-gradient(circle at 50% 58%, rgba(194, 128, 48, .12), transparent 62%);
  transition: background-color .25s;
}

.form-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.form-tile-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0 12px;
}

.form-tile-title {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.15;
}

.form-tile-note {
  display: -webkit-box;
  flex: 1 1 auto;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.form-tile-meta {
  display: block;
  margin-top: 8px;
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.catalog-toolbar #product-count { color: var(--muted); font-size: 12px; }

.catalog-sort { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.catalog-sort select {
  min-height: 34px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.catalog-sort select:hover { border-color: var(--ink); }

.catalog-reset {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.catalog-reset:hover { border-color: var(--ink); color: var(--ink); }
.catalog-reset[hidden] { display: none; }

/* Mobilní filtry se otevírají na vyžádání; desktopní řada zůstává původní. */
.mobile-filter-trigger,
.mobile-filter-overlay { display: none; }

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

@media (max-width: 760px) {
  .form-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .form-tile-media { height: 84px; }
  .form-tile-title { font-size: 16px; }
  .form-tile-note { -webkit-line-clamp: 2; }
  .catalog-toolbar { justify-content: space-between; width: 100%; gap: 8px; }
  .catalog-sort span { display: none; }

  /* Osm zalomených pilulek vytvářelo druhý navigační blok a sticky stav
     uživateli zakrýval obsah. Na mobilu zůstává pouze jeden kompaktní spouštěč. */
  .shop-page .filter-row { display: none; position: static; }
  .shop-page .catalog-toolbar #product-count { margin-right: auto; white-space: nowrap; }
  .shop-page .mobile-filter-trigger {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }
  .shop-page .mobile-filter-trigger:focus-visible { outline-offset: 3px; }
  .shop-page .mobile-filter-selection {
    max-width: 94px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .shop-page .mobile-filter-trigger-icon { font-size: 14px; line-height: 1; }
  .shop-page .catalog-reset { display: none !important; }

  .shop-page .mobile-filter-overlay {
    display: grid;
    align-items: end;
    background: rgba(33, 18, 14, .45);
    overscroll-behavior: contain;
  }
  .shop-page .mobile-filter-dialog {
    width: 100%;
    max-height: min(86dvh, 640px);
    overflow-y: auto;
    padding: 24px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--cream-soft);
    color: var(--ink);
    transform: translateY(20px);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  }
  .shop-page .mobile-filter-overlay.open .mobile-filter-dialog { transform: none; }
  .shop-page .mobile-filter-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .shop-page .mobile-filter-header .page-kicker { margin-bottom: 8px; }
  .shop-page .mobile-filter-header h2 { margin: 0; font: 400 32px/1.05 var(--serif); }
  .shop-page .mobile-filter-close {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .shop-page .mobile-filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 20px 0;
  }
  .shop-page .mobile-filter-options .filter-pill {
    min-height: 50px;
    padding: 0 12px;
    border-color: var(--line);
    border-radius: 12px;
    text-align: left;
  }
  .shop-page .mobile-filter-options .filter-pill.active { border-color: var(--ink); }
  .shop-page .mobile-filter-done { width: 100%; min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .form-tile { transition: none; }
  .form-tile:hover { transform: none; }
  .mobile-filter-dialog { transition: none; }
}

/* ------------------------------------------------------------------ */
/* 9. Odkryvani pri scrollu                                             */
/* ------------------------------------------------------------------ */

.vb-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.vb-reveal.vb-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1) var(--vb-reveal-delay, 0ms),
              transform .6s cubic-bezier(.2, .8, .2, 1) var(--vb-reveal-delay, 0ms);
}

/* Lehky pohyb fotky v detailu pri najeti na galerii doplnuje odkryvani. */
.product-page .product-detail-gallery.is-zoomable [data-gallery-main] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .vb-reveal, .vb-reveal.vb-revealed { opacity: 1; transform: none; transition: none; }
}

