/* Wine4You — recepty v2 (layout detailu + odkazy u chips).
   Tokeny bere z w4y-vzhled.css (:root). Nic mimo recepty a chips nemění.
   Načítat AŽ PO w4y-vzhled.css. */

/* Chips doporučených jídel na detailu vína */
.w4y-dishes a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(106,19,21,.35);
}
.w4y-dishes a:hover,
.w4y-dishes a:focus{
  color:var(--w4y-red, #6a1315);
  border-bottom-color:var(--w4y-red, #6a1315);
}

/* Rubrika Recepty: bez levého sloupce, obsah vycentrovaný na 1180 px
   jako drobečky a ostatní stránky e-shopu. */
body.in-recepty #column-l{
  display:none !important;
}
body.in-recepty #content,
body.in-recepty #content > .left,
body.in-recepty #content-in,
body.in-recepty #content-in.large-9,
body.in-recepty #content-in.medium-9,
body.in-recepty #content-in.right{
  float:none !important;
  width:100% !important;
  max-width:1180px;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.in-recepty.type-post .news-item-detail,
body.in-recepty.type-post .news-item-detail > h1,
body.in-recepty.type-post .news-item-detail .text,
body.in-recepty .w4y-recept{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
body.in-recepty .next-prev{
  display:none !important;
}

/* Titulek článku (kreslí šablona mimo tělo) */
body.in-recepty.type-post .news-item-detail > h1,
body.in-recepty.type-post .news-item-detail h1[itemprop="headline"]{
  font-family:var(--w4y-font-head, "PT Serif", serif) !important;
  font-weight:700 !important;
  font-size:clamp(1.85rem, 2.4vw, 2.6rem) !important;
  line-height:1.2 !important;
  color:var(--w4y-ink-3, #2e211e) !important;
  text-align:left !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  margin:0 0 1.1rem !important;
  padding:0 !important;
  border:0 !important;
}
body.in-recepty.type-post .news-item-detail .text{
  font-family:var(--w4y-font, "PT Sans", sans-serif);
  font-size:16px;
  line-height:1.65;
  color:var(--w4y-ink, #3a2a26);
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}

.w4y-recept{
  color:var(--w4y-ink, #3a2a26);
  font-family:var(--w4y-font, "PT Sans", sans-serif);
  font-size:16px;
  line-height:1.65;
  overflow-wrap:break-word;
}
.w4y-recept p,
.w4y-recept ul,
.w4y-recept ol{
  margin:0 0 12px;
  text-align:left;
}
.w4y-recept a{color:var(--w4y-red, #6a1315);}
.w4y-recept a:hover,
.w4y-recept a:focus{color:var(--w4y-red-h, #883c3c);}

/* Nadpisy jako na právních stránkách: PT Serif, vínová, bez kapitálek šablony */
body.in-recepty.type-post .w4y-recept h2,
.w4y-recept h2{
  display:block;
  font-family:var(--w4y-font-head, "PT Serif", serif) !important;
  font-weight:700 !important;
  font-size:26px !important;
  line-height:1.25 !important;
  color:var(--w4y-red, #6a1315) !important;
  margin:0 0 16px !important;
  padding:0 0 10px !important;
  border:0 !important;
  border-bottom:1px solid var(--w4y-line-2, #e4d9d5) !important;
  text-align:left !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  background:none !important;
}
body.in-recepty.type-post .w4y-recept h3,
.w4y-recept h3{
  font-family:var(--w4y-font-head, "PT Serif", serif) !important;
  font-weight:700 !important;
  font-size:19px !important;
  line-height:1.3 !important;
  color:var(--w4y-ink-4, #4a3530) !important;
  margin:20px 0 8px !important;
  padding:0 !important;
  border:0 !important;
  text-align:left !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  background:none !important;
}

.w4y-recept-zpet{
  margin:0 0 1.1rem;
  font-size:.95rem;
}
.w4y-recept-zpet a{
  color:var(--w4y-red, #6a1315);
  text-decoration:none;
  font-weight:600;
}
.w4y-recept-zpet a::before{
  content:"← ";
}
.w4y-recept-zpet a:hover,
.w4y-recept-zpet a:focus{
  text-decoration:underline;
  text-underline-offset:3px;
}
.w4y-recept-zpet--dolu{
  margin:2rem 0 0;
  padding-top:1.25rem;
  border-top:1px solid var(--w4y-line, #eee4df);
}

.w4y-recept-foto{
  margin:0 0 1.4rem;
}
.w4y-recept-foto img{
  display:block;
  width:100%;
  height:auto;
  max-height:min(28rem, 70vh);
  object-fit:cover;
  object-position:center;
  border-radius:var(--w4y-r-md, 12px);
  box-shadow:var(--w4y-shadow, 0 2px 6px rgba(58,42,38,.06), 0 10px 28px rgba(58,42,38,.10));
  background:var(--w4y-cream, #fffaf6);
}
.w4y-recept-foto figcaption{
  margin-top:.5rem;
  font-size:.85rem;
  line-height:1.4;
  color:var(--w4y-muted, #8a7772);
}
.w4y-recept-foto figcaption a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}

.w4y-recept-perex{
  max-width:46rem;
  font-size:1.15rem;
  line-height:1.6;
  color:var(--w4y-soft, #5a4540);
  margin:0 0 1.25rem !important;
}

.w4y-recept-fakta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  list-style:none !important;
  margin:0 0 1rem !important;
  padding:0 !important;
}
.w4y-recept-fakta li{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
  min-width:12rem;
  background:var(--w4y-cream, #fffaf6);
  border:1px solid var(--w4y-line, #eee4df);
  border-radius:var(--w4y-r-md, 12px);
  box-shadow:var(--w4y-shadow-sm, 0 1px 3px rgba(58,42,38,.06));
  padding:12px 18px;
  margin:0 !important;
}
.w4y-recept-fakta-icon{
  display:flex;
  color:var(--w4y-red, #6a1315);
  flex:0 0 auto;
}
.w4y-recept-fakta-icon svg{display:block;}
.w4y-recept-fakta-text{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.w4y-recept-fakta-klic{
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--w4y-muted, #8a7772);
}
.w4y-recept-fakta-hodnota{
  font-family:var(--w4y-font-head, "PT Serif", serif);
  font-weight:700;
  font-size:1.2rem;
  color:var(--w4y-ink-3, #2e211e);
  line-height:1.3;
}

@media (min-width:800px){
  .w4y-recept-telo{
    display:grid;
    grid-template-columns:minmax(16rem, 22rem) minmax(0, 1fr);
    gap:2rem 2.25rem;
    align-items:start;
    margin:0 0 2rem;
  }
  .w4y-recept-suroviny{
    position:static;
  }
}
.w4y-recept-suroviny{
  background:var(--w4y-cream, #fffaf6);
  border:1px solid var(--w4y-line, #eee4df);
  border-left:4px solid var(--w4y-red, #6a1315);
  border-radius:var(--w4y-r-md, 12px);
  padding:22px 22px 18px;
  margin:0 0 1.75rem;
  box-shadow:var(--w4y-shadow-card, 0 2px 6px rgba(60,30,30,.06), 0 8px 24px rgba(60,30,30,.08));
}
.w4y-recept-suroviny h2{
  margin:0 0 14px !important;
  padding:0 0 8px !important;
}
.w4y-recept-suroviny ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
.w4y-recept-suroviny li{
  margin:0 !important;
  padding:8px 0;
  border-bottom:1px solid var(--w4y-line, #eee4df);
  line-height:1.45;
}
.w4y-recept-suroviny li:last-child{border-bottom:0; padding-bottom:0;}

.w4y-recept-postup ol{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  counter-reset:w4y-krok;
}
.w4y-recept-postup li{
  counter-increment:w4y-krok;
  position:relative;
  margin:0 0 1.05rem !important;
  padding:2px 0 1.05rem 3.4rem;
  border-bottom:1px solid var(--w4y-line, #eee4df);
  line-height:1.6;
  max-width:46rem;
}
.w4y-recept-postup li:last-child{
  margin-bottom:0 !important;
  border-bottom:0;
  padding-bottom:0;
}
.w4y-recept-postup li::before{
  content:counter(w4y-krok);
  position:absolute;
  left:0;
  top:0;
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:var(--w4y-r-pill, 999px);
  background:var(--w4y-red, #6a1315);
  color:var(--w4y-white, #fff);
  font-family:var(--w4y-font, "PT Sans", sans-serif);
  font-size:14px;
  font-weight:700;
  line-height:1;
}
.w4y-recept-varianty,
.w4y-recept-poznamka{
  margin:2rem 0 0;
  max-width:46rem;
}
.w4y-recept-poznamka{
  background:var(--w4y-panel, #f6eee8);
  border-radius:var(--w4y-r-md, 12px);
  border-left:4px solid var(--w4y-red-h, #883c3c);
  padding:16px 18px 14px;
}
.w4y-recept-poznamka h2{
  font-size:19px !important;
  border-bottom:0 !important;
  padding:0 !important;
  margin:0 0 8px !important;
}
.w4y-recept-poznamka p:last-child{margin-bottom:0;}

.w4y-recept-vina{
  margin-top:2.25rem;
  padding-top:1.5rem;
  border-top:1px solid var(--w4y-line-2, #e4d9d5);
}
.w4y-recept-vina h2{margin-bottom:12px !important;}
.w4y-recept-vino-text{
  max-width:46rem;
  margin:0 0 1.25rem !important;
  color:var(--w4y-soft, #5a4540);
}

/* Mřížka karet: 4 v řadě na desktopu, 2×2 na mobilu.
   Bez JS jsou vidět všechna vína. JS přidá .is-collapsed a ukáže tlačítko. */
.w4y-recept-vina-grid{
  list-style:none !important;
  margin:0 0 1.25rem !important;
  padding:0 !important;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items:stretch;
}
.w4y-recept-vina.is-collapsed .w4y-recept-vina-grid > li:nth-child(n+5){
  display:none;
}
.w4y-recept-vina-more{
  display:none;
}
.w4y-recept-vina.is-collapsed .w4y-recept-vina-more{
  display:inline-flex;
}

/* Karta vína: stejné tokeny a proporce jako sdílená karta produktu (v17/v19). */
.w4y-recept-vina-card{
  display:flex;
  flex-direction:column;
  height:100%;
  background:var(--w4y-white, #fff);
  border:1px solid var(--w4y-line, #eee4df);
  border-radius:var(--w4y-r-md, 12px);
  box-shadow:var(--w4y-shadow-card, 0 2px 6px rgba(60,30,30,.06), 0 8px 24px rgba(60,30,30,.08));
  overflow:hidden;
  text-decoration:none !important;
  color:inherit;
  min-height:100%;
  box-sizing:border-box;
}
.w4y-recept-vina-card:hover,
.w4y-recept-vina-card:focus{
  border-color:var(--w4y-red, #6a1315);
  box-shadow:var(--w4y-shadow-card-h, 0 4px 12px rgba(60,30,30,.10), 0 16px 36px rgba(60,30,30,.16));
}
.w4y-recept-vina-card-img{
  display:block;
  aspect-ratio:290/218;
  background:var(--w4y-cream, #fffaf6);
  overflow:hidden;
}
.w4y-recept-vina-card-img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.w4y-recept-vina-card-body{
  display:flex;
  flex-direction:column;
  gap:.25rem;
  flex:1 1 auto;
  padding:.75rem .85rem .9rem;
  min-height:0;
}
.w4y-recept-vina-card-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-family:var(--w4y-font-head, "PT Serif", serif);
  font-weight:600;
  font-size:1rem;
  line-height:1.3;
  height:calc(1.3em * 2);
  min-height:calc(1.3em * 2);
  color:var(--w4y-ink, #3a2a26);
}
.w4y-recept-vina-card-price{
  margin-top:auto;
  font-family:var(--w4y-font, "PT Sans", sans-serif);
  font-weight:700;
  color:var(--w4y-red, #6a1315);
  font-size:1rem;
}
.w4y-recept-vina-card-avail{
  font-size:.8rem;
  color:var(--w4y-warn, #c46a12);
}

.w4y-recept-vina-more{
  align-items:center;
  justify-content:center;
  margin:0;
  padding:.7rem 1.6rem;
  background:var(--w4y-cream, #fffaf6);
  border:1px solid var(--w4y-line-2, #e4d9d5);
  border-radius:var(--w4y-r-pill, 999px);
  box-shadow:none;
  color:var(--w4y-ink, #3a2a26);
  font-family:var(--w4y-font, "PT Sans", sans-serif);
  font-size:15px;
  font-weight:600;
  letter-spacing:0;
  line-height:1.3;
  text-transform:none;
  cursor:pointer;
}
.w4y-recept-vina-more:hover,
.w4y-recept-vina-more:focus{
  background:var(--w4y-red, #6a1315);
  border-color:var(--w4y-red, #6a1315);
  color:var(--w4y-white, #fff);
  outline:none;
}

@media (max-width:799px){
  .w4y-recept-vina-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }
  .w4y-recept-suroviny{padding:18px 16px 14px;}
  .w4y-recept-foto img{max-height:min(20rem, 55vh); border-radius:var(--w4y-r, 8px);}
  body.in-recepty.type-post .news-item-detail > h1,
  body.in-recepty.type-post .news-item-detail h1[itemprop="headline"]{
    font-size:1.7rem !important;
  }
  body.in-recepty.type-post .w4y-recept h2,
  .w4y-recept h2{font-size:22px !important;}
}
@media (max-width:480px){
  .w4y-recept-vina-card-name{font-size:.95rem;}
  .w4y-recept-vina-more{width:100%;}
}

/* Předchozí / další recept — místo Shoptetového DALŠÍ ČLÁNEK */
.w4y-recept-nav{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin:2.25rem 0 0;
  padding-top:1.5rem;
  border-top:1px solid var(--w4y-line-2, #e4d9d5);
}
.w4y-recept-nav-card{
  display:flex;
  flex-direction:column;
  background:var(--w4y-white, #fff);
  border:1px solid var(--w4y-line, #eee4df);
  border-radius:var(--w4y-r-md, 12px);
  box-shadow:var(--w4y-shadow-card, 0 2px 6px rgba(60,30,30,.06), 0 8px 24px rgba(60,30,30,.08));
  overflow:hidden;
  text-decoration:none !important;
  color:inherit;
  min-height:100%;
}
.w4y-recept-nav-card:hover,
.w4y-recept-nav-card:focus{
  border-color:var(--w4y-red, #6a1315);
  box-shadow:var(--w4y-shadow-card-h, 0 4px 12px rgba(60,30,30,.10), 0 16px 36px rgba(60,30,30,.16));
}
.w4y-recept-nav-img{
  display:block;
  aspect-ratio:16/10;
  background:var(--w4y-cream, #fffaf6);
  overflow:hidden;
}
.w4y-recept-nav-img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.w4y-recept-nav-body{
  display:flex;
  flex-direction:column;
  gap:.2rem;
  padding:.85rem 1rem 1rem;
}
.w4y-recept-nav-dir{
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--w4y-muted, #8a7772);
}
.w4y-recept-nav-title{
  font-family:var(--w4y-font-head, "PT Serif", serif);
  font-weight:700;
  font-size:1.15rem;
  line-height:1.3;
  color:var(--w4y-ink-3, #2e211e);
}
@media (max-width:799px){
  .w4y-recept-nav{
    grid-template-columns:1fr;
    gap:12px;
  }
}

/* Bez JS ukaž všechna vína (tlačítko by nefungovalo). */
