/* ==========================================================================
   Recepty (skryté): tmavé stránky s filtry, karty, detail, pruh CTA.
   Zdroj: v2 RecipeHero, RecipeGrid, RecipeDetail, Cta.
   ========================================================================== */

/* --- Tmavé sekce: teplá záře nahoře + zrno .05 --- */
.es-darkhead,
.es-recipes,
.es-recipe-detail {
  position: relative;
  overflow: hidden;
  background-image: var(--es-grain-05) !important;
}
.es-darkhead::before,
.es-recipe-detail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 20rem; /* h-80 */
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(196, 149, 42, 0.07), transparent 70%);
  pointer-events: none;
}
.es-darkhead > .et_pb_row,
.es-recipe-detail > .et_pb_row {
  position: relative;
  z-index: 1;
}

.es-darkhead {
  padding: 9rem 0 3.5rem !important; /* pt-36 pb-14 */
}
@media (min-width: 768px) {
  .es-darkhead {
    padding: 11rem 0 4rem !important;
  }
}
.es-darkhead .et_pb_column {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.5rem !important;
  text-align: center;
}
.es-eyebrow--dark p {
  color: var(--espero-muted);
}
.es-recipes-title :is(h1, h2) {
  margin: 0;
  padding: 0 !important;
  white-space: nowrap;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: clamp(1.2rem, 4.6vw, 3.5rem) !important;
  line-height: 1.08 !important;
  text-transform: uppercase;
}
.es-rule--gold::after {
  margin-left: auto;
  margin-right: auto;
  background-color: rgb(196 149 42 / 0.6);
}
.es-lead--dark p {
  color: var(--espero-muted);
}

/* --- Výpis --- */
.es-recipes {
  padding: 1.5rem 0 6rem !important; /* pt-6 pb-24 */
}
@media (min-width: 768px) {
  .es-recipes {
    padding-bottom: 8rem !important;
  }
}
.es-recipes .et_pb_row > .et_pb_column {
  display: block !important;
}

/* Filtry: segmentové přepínače, mezi skupinami svislá linka. */
.es-filters {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2rem !important; /* gap-8 */
  margin: 0 !important;
  padding-top: 2.5rem !important; /* pt-10 */
  border-top: 1px solid rgb(196 149 42 / 0.15);
}
@media (min-width: 640px) {
  .es-filters {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .es-filter + .es-filter {
    margin-left: 2.5rem !important; /* sm:mx-10 */
    padding-left: 2.5rem !important;
    background: linear-gradient(rgb(196 149 42 / 0.15), rgb(196 149 42 / 0.15)) left center / 1px 4rem no-repeat;
  }
}
.es-filter {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: auto !important;
  margin: 0 !important;
}
.es-filter-label p {
  margin: 0;
  padding: 0 !important;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--espero-muted);
}
.es-filter-options {
  display: inline-flex !important;
  flex-direction: row !important;
  width: auto !important;
  overflow: hidden;
  border: 1px solid rgb(255 248 239 / 0.15);
}
.es-filter-options .et_pb_button_module_wrapper {
  margin: 0 !important;
}
.es-filter-options .et_pb_button_module_wrapper + .et_pb_button_module_wrapper .et_pb_button {
  border-left: 1px solid rgb(255 248 239 / 0.15) !important;
}
.et_pb_button.es-filter-option {
  display: inline-flex !important;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem !important; /* px-5 py-2 */
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(255 248 239 / 0.7) !important;
  transition:
    color 300ms var(--espero-ease-tw),
    background-color 300ms var(--espero-ease-tw);
}
.et_pb_button.es-filter-option::before,
.et_pb_button.es-filter-option::after {
  display: none !important;
}
.et_pb_button.es-filter-option:hover {
  background-color: rgb(255 248 239 / 0.05) !important;
  color: var(--espero-cream) !important;
}
.et_pb_button.es-filter-option[aria-pressed='true'] {
  background-color: var(--espero-gold) !important;
  color: var(--espero-bg) !important;
}

/* Mřížka karet */
.es-recipe-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem !important; /* gap-8 */
  width: 100% !important;
  margin: 3rem 0 0 !important; /* mt-12 */
}
@media (min-width: 640px) {
  .es-recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .es-recipe-grid {
    margin-top: 3.5rem !important;
  }
}
@media (min-width: 1024px) {
  .es-recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.es-recipe {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid rgb(196 149 42 / 0.15);
  background-color: rgb(61 34 14 / 0.5);
  cursor: pointer;
  transition: border-color 500ms var(--espero-ease-tw);
}
.es-recipe:hover {
  border-color: rgb(196 149 42 / 0.4);
}
.es-recipe[hidden] {
  display: none !important;
}
:where(.es-recipe .et_pb_module) {
  margin: 0 !important;
}
.es-recipe-media {
  position: relative;
  width: 100% !important;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.es-recipe-image,
.es-recipe-image a,
.es-recipe-image .et_pb_image_wrap {
  display: block;
  width: 100% !important;
  height: 100%;
}
.es-recipe-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 700ms var(--espero-ease-tw);
}
@media (prefers-reduced-motion: no-preference) {
  .es-recipe:hover .es-recipe-image img {
    transform: scale(1.05);
  }
}
.es-recipe-diff {
  position: absolute !important;
  left: 0.75rem;
  top: 0.75rem;
  width: auto !important;
}
.es-recipe-diff p {
  margin: 0;
  padding: 0.25rem 0.625rem !important;
  background: rgb(43 22 8 / 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--espero-cream);
}
.es-recipe-body {
  display: flex !important;
  flex: 1;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
  padding: 1.25rem !important; /* p-5 */
}
@media (min-width: 768px) {
  .es-recipe-body {
    padding: 1.5rem !important; /* md:p-6 */
  }
}
.es-badge--gold p {
  border-color: rgb(196 149 42 / 0.25);
  color: rgb(196 149 42 / 0.9);
}
.es-badge--cream p {
  border-color: rgb(255 248 239 / 0.15);
  color: rgb(255 248 239 / 0.8);
}
.es-date--dark p {
  color: var(--espero-muted);
}
.es-recipe-title :is(h2, h3) {
  margin: 0;
  padding: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
  color: var(--espero-cream) !important;
}
.es-recipe-summary p {
  margin: 0;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.625;
  color: var(--espero-muted);
}
.es-recipe .es-readmore,
.es-recipe .et_pb_button_module_wrapper:has(.es-readmore) {
  margin-top: auto !important;
}
.et_pb_button.es-readmore--gold {
  color: var(--espero-gold) !important;
}

/* Prázdný výsledek */
.es-recipe-empty {
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.25rem !important;
  margin: 3.5rem 0 0 !important;
  text-align: center;
}
.es-recipe-empty.is-visible {
  display: flex !important;
}
:is(html.es-builder, body.et-fb) .es-recipe-empty {
  display: flex !important;
}
.es-recipe-empty-text p {
  margin: 0;
  padding: 0 !important;
  font-size: 15px;
  line-height: 1.625;
  color: var(--espero-muted);
}
.es-recipe-empty .et_pb_button {
  padding: 0.75rem 2rem !important; /* px-8 py-3 */
  font-size: 12px !important;
}

/* --- Šipka za textem tlačítka (v2 „→" s ml-2) --- */
/* Preset Divi skrývá ::after přes `body #page-container .et_pb_section …`,
   proto stejně silný selektor. */
body #page-container .et_pb_section .es-btn-arrow .et_pb_button::after,
body #page-container .et_pb_section .et_pb_button.es-btn-arrow::after,
.es-btn-arrow .et_pb_button::after,
.et_pb_button.es-btn-arrow::after {
  content: '→' !important;
  position: static !important;
  display: inline !important;
  margin: 0 0 0 0.5rem !important;
  opacity: 1 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  transform: none !important;
}

/* --- Pruh „Ochutnejte Espero" --- */
.es-cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 !important; /* py-24 */
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 55%, rgba(109, 92, 68, 0.14) 100%),
    var(--es-grain-06) !important;
}
@media (min-width: 768px) {
  .es-cta {
    padding: 8rem 0 !important; /* md:py-32 */
  }
}
.es-cta-row > .et_pb_column {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2.5rem !important; /* gap-10 */
  text-align: center;
}
@media (min-width: 768px) {
  .es-cta-row > .et_pb_column {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 3rem !important;
    text-align: left;
  }
}
:where(.es-cta .et_pb_module) {
  margin: 0 !important;
}
.es-cta-title h2 {
  margin: 0;
  padding: 0 !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--espero-ink);
}
.es-cta-title .es-accent {
  color: var(--espero-orange);
}
.es-cta-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-shrink: 0;
  gap: 1.25rem !important;
  width: auto !important;
}
@media (min-width: 640px) {
  .es-cta-actions {
    flex-direction: row !important;
    gap: 2rem !important;
  }
}
.es-cta-actions .et_pb_button {
  padding: 1rem 2.5rem !important;
}
/* Textový odkaz s linkou, která při najetí doroste (v2). */
.es-link-underline p {
  margin: 0;
  padding: 0 !important;
}
.es-link-underline a {
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(42 26 16 / 0.8);
  transition: color 300ms var(--espero-ease-tw);
}
.es-link-underline a::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  bottom: 0.125rem;
  width: 0;
  height: 1px;
  background-color: var(--espero-orange);
  transition: all 300ms var(--espero-ease-tw);
}
.es-link-underline a:hover {
  color: var(--espero-orange);
}
.es-link-underline a:hover::after {
  width: calc(100% - 1rem);
}

/* --- Detail receptu --- */
.es-recipe-detail {
  /* clip, ne hidden: hidden by z sekce udělal rolovací kontejner a lepivý
     panel by se lepil k ní (o 24 px níž, bez lepení při rolování stránky). */
  overflow: clip;
  padding: 8rem 0 6rem !important; /* pt-32 pb-24 */
}
@media (min-width: 768px) {
  .es-recipe-detail {
    padding: 9rem 0 8rem !important;
  }
}
.es-recipe-detail .et_pb_column {
  text-align: left;
}
:where(.es-recipe-detail .et_pb_module) {
  margin: 0 !important;
}
.es-back--dark a {
  letter-spacing: 0.1em;
  color: var(--espero-muted);
}
.es-back--dark a:hover {
  color: var(--espero-gold);
}
.es-recipe-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem !important; /* gap-12 */
  margin-top: 2rem !important; /* mt-8 */
}
@media (min-width: 768px) {
  .es-recipe-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem !important; /* md:gap-16 */
  }
}
@media (min-width: 1024px) {
  .es-recipe-layout {
    gap: 5rem !important; /* lg:gap-20 */
  }
}
.es-recipe-layout > .et_pb_column {
  width: 100% !important;
  margin: 0 !important;
}
.es-recipe-main {
  display: flex !important;
  flex-direction: column !important;
}
.es-recipe-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}
.es-recipe-h1 :is(h1, h2) {
  margin: 0;
  padding: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: clamp(2.25rem, 5vw, 4.25rem) !important;
  line-height: 1.08 !important;
  text-transform: uppercase;
  color: var(--espero-cream) !important;
}
.es-recipe-detail .es-badge p {
  padding: 0.25rem 0.75rem !important;
}
.es-recipe-detail .es-date p {
  letter-spacing: 0.1em;
}
.es-recipe-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 3rem !important; /* gap-12 */
  margin-top: 3rem !important; /* mt-12 */
}
.es-recipe-intro p {
  max-width: 42rem;
  margin: 0;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1.625;
  color: rgb(255 248 239 / 0.8);
}
.es-recipe-part {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important; /* gap-6 */
}
.es-section-label h2 {
  margin: 0;
  padding: 0 !important;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--espero-muted);
}
.es-section-label h2::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 0.75rem;
  background-color: rgb(196 149 42 / 0.6);
}
.es-ingredients ul,
.es-steps ol {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 !important;
  list-style: none !important;
}
.es-ingredients ul {
  max-width: 36rem;
  gap: 0.75rem;
}
.es-ingredients li {
  position: relative;
  padding-left: 1.125rem !important; /* tečka + gap-3 */
  font-size: 15px;
  line-height: 1.625;
  color: rgb(255 248 239 / 0.8);
  list-style: none !important;
}
.es-ingredients li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--espero-gold);
}
.es-steps ol {
  max-width: 42rem;
  gap: 1.5rem;
  counter-reset: es-step;
}
.es-steps li {
  position: relative;
  min-height: 2rem;
  padding: 0.25rem 0 0 3rem !important; /* kroužek 32 px + gap-4 */
  counter-increment: es-step;
  font-size: 15px;
  line-height: 1.625;
  color: rgb(255 248 239 / 0.8);
  list-style: none !important;
}
.es-steps li::before {
  content: counter(es-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgb(196 149 42 / 0.4);
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--espero-gold);
}

.es-recipe-aside {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}
@media (min-width: 768px) {
  .es-recipe-aside {
    position: sticky !important;
    top: 5rem;
    align-self: start;
  }
}
.es-recipe-photo {
  overflow: hidden;
  border: 1px solid rgb(196 149 42 / 0.15);
}
.es-recipe-photo img {
  display: block;
  width: 100% !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.es-crosssell {
  display: flex !important;
  flex-direction: column !important;
  padding: 1.25rem !important; /* p-5 */
  border: 1px solid rgb(196 149 42 / 0.2);
  background-color: rgb(61 34 14 / 0.5);
}
.es-crosssell-label p {
  margin: 0;
  padding: 0 !important;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--espero-muted);
}
.es-crosssell-product {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
}
.es-crosssell-image img {
  display: block;
  width: auto !important;
  height: 6rem !important; /* h-24 */
}
.es-crosssell-name p {
  margin: 0;
  padding: 0 !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--espero-cream);
}
.es-crosssell .et_pb_button_module_wrapper {
  width: 100% !important; /* w-full */
  margin-top: 1.25rem !important; /* mt-5 */
}
.es-crosssell .et_pb_button {
  width: 100% !important;
  max-width: none !important; /* Divi: max-content */
  padding: 0.75rem 1.5rem !important; /* px-6 py-3 */
  font-size: 12px !important;
}
