/* GrillCore Academy — front-end */
.gca-listing,
.gca-single-wrap {
  --gca-bg-soft: #f6f5f2;
  --gca-border: rgba(22, 22, 22, .11);
  --gca-muted: #6d6d6d;
  --gca-shadow: 0 18px 48px rgba(24, 20, 16, .08);
  font-family: inherit;
  color: var(--gca-dark, #161616);
}

.gca-listing * , .gca-single-wrap * { box-sizing: border-box; }
.gca-listing {
  /* Виходимо за вузький boxed-контейнер Elementor та використовуємо всю ширину сторінки. */
  width: min(1440px, calc(100vw - 30px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-inline: 0;
}
.gca-section-head { max-width: 760px; margin: 0 0 32px; }
.gca-section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; color: var(--gca-dark); }
.gca-section-head p { margin: 0; color: var(--gca-muted); font-size: 17px; line-height: 1.7; }

.gca-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; }
.gca-filters a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 17px; border: 1px solid var(--gca-border); border-radius: 999px; background: #fff; color: var(--gca-dark); font-size: 14px; font-weight: 600; text-decoration: none; transition: .2s ease; }
.gca-filters a:hover, .gca-filters a.is-active { border-color: var(--gca-dark); background: var(--gca-dark); color: #fff; transform: translateY(-1px); }

.gca-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gca-columns-1 .gca-grid { grid-template-columns: 1fr; }
.gca-columns-2 .gca-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gca-columns-4 .gca-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gca-card { min-width: 0; overflow: hidden; border: 1px solid var(--gca-border); border-radius: var(--gca-radius, 18px); background: #fff; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.gca-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--gca-shadow); }
.gca-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ece9e3;
  text-decoration: none;
}
.gca-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
  transition: opacity .25s ease;
}
.gca-card:hover .gca-card-media img {
  transform: none !important;
  opacity: .96;
}
.gca-card-badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; min-height: 31px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--gca-dark); font-size: 12px; line-height: 1; font-weight: 700; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.gca-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 54px; background: radial-gradient(circle at 30% 30%, #fff 0, #f2eee7 45%, #e8e1d7 100%); }
.gca-card-body { padding: 22px 22px 24px; }
.gca-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 11px; color: var(--gca-muted); font-size: 12px; font-weight: 600; }
.gca-card h3 { margin: 0 0 11px; font-size: clamp(19px, 2vw, 24px); line-height: 1.22; letter-spacing: -.025em; }
.gca-card h3 a { color: var(--gca-dark); text-decoration: none; }
.gca-card p { margin: 0 0 18px; color: var(--gca-muted); font-size: 14px; line-height: 1.65; }
.gca-read-more { display: inline-flex; align-items: center; gap: 9px; color: var(--gca-dark); text-decoration: none; font-size: 14px; font-weight: 700; }
.gca-read-more span { color: var(--gca-accent); font-size: 20px; transition: transform .2s ease; }
.gca-read-more:hover span { transform: translateX(4px); }
.gca-empty { padding: 45px; border-radius: var(--gca-radius); background: var(--gca-bg-soft); text-align: center; color: var(--gca-muted); }

.gca-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 36px; }
.gca-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--gca-border); border-radius: 10px; background: #fff; color: var(--gca-dark); text-decoration: none; font-weight: 700; }
.gca-pagination .current, .gca-pagination a:hover { background: var(--gca-dark); border-color: var(--gca-dark); color: #fff; }

body.gca-singular-page .main-page-wrapper { padding-top: 0; }
body.gca-singular-page .site-content { margin-bottom: 0; }
.gca-single-wrap { width: 100%; padding: 28px 0 80px; }
.gca-single { width: min(1440px, calc(100vw - 30px)); max-width: none; margin: 0 auto; }
.gca-single-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; color: var(--gca-muted); font-size: 13px; }
.gca-single-breadcrumbs a { color: inherit; text-decoration: none; }
.gca-single-breadcrumbs a:hover { color: var(--gca-accent); }
.gca-single-header { max-width: none; margin-bottom: 34px; }
.gca-single-kicker { margin-bottom: 13px; color: var(--gca-accent); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.gca-single-header h1 { margin: 0; color: var(--gca-dark); font-size: clamp(38px, 6.2vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.gca-single-lead { max-width: 1100px; margin: 22px 0 0; color: #595959; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.gca-single-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 19px; color: var(--gca-muted); font-size: 13px; font-weight: 600; }
.gca-single-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: calc(var(--gca-radius) + 6px);
  background: #eee;
  aspect-ratio: 16 / 8.5;
}
.gca-single-hero img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none !important;
}

.gca-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; margin: 0 0 42px; border: 1px solid var(--gca-border); border-radius: var(--gca-radius); background: #fff; }
.gca-facts > div { padding: 21px 24px; border-right: 1px solid var(--gca-border); }
.gca-facts > div:last-child { border-right: 0; }
.gca-facts span { display: block; margin-bottom: 5px; color: var(--gca-muted); font-size: 12px; }
.gca-facts strong { display: block; color: var(--gca-dark); font-size: 17px; }

.gca-single-layout { width: 100%; max-width: none; margin: 0; }
.gca-single-layout.has-sidebar { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 48px; width: 100%; max-width: none; align-items: start; }
.gca-ingredients { position: sticky; top: 110px; padding: 25px; border-radius: var(--gca-radius); background: var(--gca-bg-soft); }
.gca-ingredients-title { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--gca-dark); font-size: 18px; font-weight: 800; }
.gca-ingredients-title span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--gca-accent); color: #fff; font-size: 13px; }
.gca-ingredients ul { list-style: none; margin: 0; padding: 0; }
.gca-ingredients li { position: relative; margin: 0; padding: 11px 0 11px 20px; border-bottom: 1px solid rgba(0,0,0,.08); color: #3d3d3d; font-size: 14px; line-height: 1.5; }
.gca-ingredients li:last-child { border-bottom: 0; }
.gca-ingredients li::before { content: ''; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--gca-accent); }

.gca-highlight { display: flex; gap: 18px; align-items: flex-start; width: 100%; max-width: none; margin: 0 0 38px; padding: 24px 27px; border-left: 4px solid var(--gca-accent); border-radius: 0 var(--gca-radius) var(--gca-radius) 0; background: var(--gca-bg-soft); }
.gca-highlight-icon { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gca-dark); color: #fff; font-family: Georgia, serif; font-weight: 700; }
.gca-highlight strong { display: block; margin-bottom: 4px; font-size: 17px; }
.gca-highlight p { margin: 0; color: #555; line-height: 1.65; }

.gca-entry-content { min-width: 0; color: #353535; font-size: 17px; line-height: 1.82; }
.gca-entry-content > :first-child { margin-top: 0; }
.gca-entry-content h2 { margin: 1.8em 0 .65em; color: var(--gca-dark); font-size: clamp(27px, 4vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.gca-entry-content h3 { margin: 1.6em 0 .6em; color: var(--gca-dark); font-size: clamp(22px, 3vw, 29px); line-height: 1.2; }
.gca-entry-content p { margin: 0 0 1.25em; }
.gca-entry-content ul, .gca-entry-content ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.gca-entry-content li { margin-bottom: .55em; }
.gca-entry-content img { height: auto; border-radius: var(--gca-radius); }
.gca-entry-content blockquote { margin: 1.8em 0; padding: 22px 25px; border: 0; border-radius: var(--gca-radius); background: var(--gca-bg-soft); color: var(--gca-dark); font-size: 19px; line-height: 1.6; }
.gca-entry-content a { color: var(--gca-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.gca-products, .gca-related { margin-top: 76px; padding-top: 54px; border-top: 1px solid var(--gca-border); }
.gca-block-heading { margin-bottom: 28px; }
.gca-block-heading span { display: block; margin-bottom: 9px; color: var(--gca-accent); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gca-block-heading h2 { margin: 0; color: var(--gca-dark); font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.04em; }
.gca-related .gca-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .gca-columns-4 .gca-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gca-single-layout.has-sidebar { grid-template-columns: 1fr; gap: 30px; }
  .gca-ingredients { position: static; }
}

@media (max-width: 767px) {
  .gca-grid, .gca-columns-2 .gca-grid, .gca-columns-3 .gca-grid, .gca-columns-4 .gca-grid, .gca-related .gca-grid { grid-template-columns: 1fr; gap: 18px; }
  .gca-card-body { padding: 19px 19px 22px; }
  .gca-card-media { aspect-ratio: 16 / 10.5; }
  .gca-filters { gap: 7px; margin-bottom: 22px; }
  .gca-filters a { min-height: 38px; padding: 7px 13px; font-size: 13px; }
  .gca-listing { width: calc(100vw - 24px); }
  .gca-single-wrap { padding: 22px 0 58px; }
  .gca-single { width: calc(100vw - 24px); }
  .gca-single-breadcrumbs { margin-bottom: 24px; }
  .gca-single-header { margin-bottom: 24px; }
  .gca-single-header h1 { font-size: clamp(35px, 12vw, 54px); }
  .gca-single-hero { aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: var(--gca-radius); }
  .gca-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 30px; }
  .gca-facts > div { padding: 17px; border-bottom: 1px solid var(--gca-border); }
  .gca-facts > div:nth-child(2n) { border-right: 0; }
  .gca-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .gca-entry-content { font-size: 16px; line-height: 1.75; }
  .gca-products, .gca-related { margin-top: 55px; padding-top: 42px; }
}

/* Карусель останніх рецептів/порад */
.gca-carousel {
  --gca-bg-soft: #f6f5f2;
  --gca-border: rgba(22, 22, 22, .11);
  --gca-muted: #6d6d6d;
  --gca-shadow: 0 18px 48px rgba(24, 20, 16, .08);
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  color: var(--gca-dark, #161616);
}
.gca-carousel * { box-sizing: border-box; }
.gca-carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 0 0 30px; }
.gca-carousel-heading { min-width: 0; }
.gca-carousel-eyebrow { display: block; margin: 0 0 13px; color: var(--gca-accent); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.gca-carousel-heading h2 { margin: 0; color: var(--gca-dark); font-size: clamp(30px, 4.2vw, 48px); line-height: 1.02; letter-spacing: -.04em; }
.gca-carousel-actions { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.gca-carousel-all { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border: 1px solid var(--gca-border); border-radius: 999px; background: #fff; color: var(--gca-dark); text-decoration: none; font-size: 13px; line-height: 1; font-weight: 800; text-transform: uppercase; transition: .2s ease; }
.gca-carousel-all:hover { border-color: var(--gca-dark); background: var(--gca-dark); color: #fff; }
.gca-carousel-nav { display: flex; gap: 8px; }
.gca-carousel-nav button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--gca-border); border-radius: 50%; background: #fff; color: var(--gca-dark); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; transition: .2s ease; }
.gca-carousel-nav button:hover:not(:disabled) { border-color: var(--gca-dark); background: var(--gca-dark); color: #fff; }
.gca-carousel-nav button:disabled { opacity: .32; cursor: default; }
.gca-carousel.is-static .gca-carousel-nav { display: none; }
.gca-carousel-viewport { width: 100%; overflow: hidden; }
.gca-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--gca-carousel-desktop) - 1) * 24px) / var(--gca-carousel-desktop)); gap: 24px; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 18px; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-inline: contain; scrollbar-width: none; }
.gca-carousel-track::-webkit-scrollbar { display: none; }
.gca-carousel-track:focus-visible { outline: 2px solid var(--gca-accent); outline-offset: 4px; border-radius: var(--gca-radius); }
.gca-carousel-track .gca-card { display: flex; flex-direction: column; height: 100%; scroll-snap-align: start; }
.gca-carousel-track .gca-card-body { display: flex; flex: 1; flex-direction: column; }
.gca-carousel-track .gca-card h3 { font-size: clamp(19px, 1.65vw, 23px); }
.gca-carousel-track .gca-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.gca-carousel-track .gca-read-more { margin-top: auto; }

@media (max-width: 1024px) {
  .gca-carousel-track { grid-auto-columns: calc((100% - (var(--gca-carousel-tablet) - 1) * 20px) / var(--gca-carousel-tablet)); gap: 20px; }
  .gca-carousel-all { min-height: 46px; padding-inline: 22px; }
  .gca-carousel-nav button { width: 42px; height: 42px; }
}

@media (max-width: 767px) {
  .gca-carousel-head { align-items: flex-start; margin-bottom: 22px; }
  .gca-carousel-heading h2 { font-size: clamp(28px, 9vw, 38px); }
  .gca-carousel-actions { align-items: flex-end; }
  .gca-carousel-all { min-height: 42px; padding: 10px 17px; font-size: 11px; }
  .gca-carousel-nav { display: none; }
  .gca-carousel-track { grid-auto-columns: calc((100% - (var(--gca-carousel-mobile) - 1) * 16px) / var(--gca-carousel-mobile)); gap: 16px; padding-bottom: 10px; }
}

@media (max-width: 540px) {
  .gca-carousel-head { display: block; }
  .gca-carousel-actions { justify-content: flex-start; margin-top: 18px; }
}
