/*
Theme Name: Farm Cookery School
Description: Child theme for Flatsome
Author: UX Themes
Template: flatsome
Version: 4.0
*/

/* =========================================================
   THE FARM COOKERY SCHOOL — CANONICAL CHILD THEME STYLES
   30 August 2026

   OWNERSHIP RULE
   - Flatsome owns layout and client-editable geometry.
   - WooCommerce owns product structure/data.
   - FooEvents owns event/ticket data.
   - ACF fills genuine structured-data gaps.
   - This stylesheet skins the approved Farm design system and
     the small amount of structured markup supplied by PHP.
   ========================================================= */

:root {
  --farm-navy: #2A3D3B;
  --farm-deep: #223431;
  --farm-blue-strip: #324744;
  --farm-orange: #ed6500;
  --farm-orange-dark: #cf5700;
  --farm-green: #9fd32e;
  --farm-green-dark: #5d7625;
  --farm-sage: #eaf1df;
  --farm-buff: #e9e2d8;
  --farm-ivory: #fbf8f3;
  --farm-white: #fff;
  --farm-copy: #26313a;
  --farm-border: #d9d1c6;
  --farm-shadow: 0 10px 24px rgba(42, 61, 59, .09);
}

/* =========================================================
   01. GLOBAL BRAND
   ========================================================= */

body {
  color: var(--farm-copy);
  font-family: "Didact Gothic", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
  font-family: "PT Serif", Georgia, serif;
}

a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(237, 101, 0, .42);
  outline-offset: 3px;
}

.button,
a.button,
button,
input[type="submit"] {
  border-radius: 0 !important;
  box-shadow: none;
}

/* Shared display hierarchy */
.tfcs-home-intro h2,
.tfcs-home-routes h2,
.tfcs-home-upcoming h2,
.tfcs-home-education h2,
.tfcs-home-testimonials h2,
.tfcs-category-intro h2,
.tfcs-category-directory-heading h2,
.tfcs-category-information h2,
.tfcs-category-faq h2,
.tfcs-category-cta h2,
.tfcs-education-intro h2,
.tfcs-education-schools-feature h2,
.tfcs-education-pathways h2,
.tfcs-education-cta h2,
.tfcs-contact-main h2 {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(42px, 4.25vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.018em;
}

/* Reusable editorial label */
.tfcs-editorial-label {
  margin: 0 0 18px;
  color: var(--farm-navy);
  font-family: "Didact Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tfcs-editorial-label::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 3px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--farm-orange);
}

.tfcs-editorial-marker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--farm-navy);
  font-family: "Didact Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tfcs-editorial-marker > span {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--farm-orange);
}

.tfcs-eyebrow,
.tfcs-route-kicker,
.tfcs-footer-label {
  font-family: "Didact Gothic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* =========================================================
   02. HEADER + LIVE WORDMARK
   Header Builder owns row placement/order.
   ========================================================= */

#header,
#header .header-wrapper,
#header #masthead {
  overflow: visible;
}

#header #masthead {
  position: relative;
  z-index: 12;
  background: var(--farm-ivory);
}

#header .header-top,
#header .header-top .flex-row {
  height: 30px;
  min-height: 30px;
}

#header #masthead #logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  margin: 0;
}

#header #masthead #logo > a {
  position: relative;
  top: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
}

#header #masthead #logo img {
  display: block;
  width: auto;
  max-width: 164px;
  height: auto;
  max-height: 164px;
  object-fit: contain;
}

#header #masthead #logo .logo-tagline {
  display: none !important;
}

#header #masthead .header-nav > li > a {
  color: var(--farm-navy);
  font-family: "Didact Gothic", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#header #masthead .header-nav > li > a:hover,
#header #masthead .header-nav > li.current-menu-item > a,
#header #masthead .header-nav > li.current-menu-ancestor > a {
  color: var(--farm-orange);
}

#header #masthead .social-icons .button {
  color: var(--farm-orange) !important;
  border-radius: 0 !important;
}

#header #masthead .cart-icon strong {
  color: var(--farm-orange);
  border-color: var(--farm-orange);
}

#header #masthead .cart-icon strong::after {
  border-color: var(--farm-orange);
}

@media (min-width: 850px) {
  #header #masthead .nav-dropdown {
    z-index: 10000 !important;
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    padding: 10px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--farm-ivory) !important;
    box-shadow: 0 16px 38px rgba(42, 61, 59, .16) !important;
  }

  #header #masthead .nav-dropdown .row,
  #header #masthead .nav-dropdown .col,
  #header #masthead .nav-dropdown .ux-menu {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header #masthead .nav-dropdown .menu-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }

  #header #masthead .nav-dropdown a {
    display: block !important;
    width: 100% !important;
    padding: 12px 34px 12px 16px !important;
    color: var(--farm-navy) !important;
    -webkit-text-fill-color: var(--farm-navy) !important;
    background: transparent !important;
    font-family: "Didact Gothic", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.28;
    letter-spacing: .02em;
    text-transform: uppercase !important;
    white-space: normal;
  }

  #header #masthead .nav-dropdown .menu-item-has-children > a {
    font-weight: 700 !important;
  }

  #header #masthead .nav-dropdown .sub-menu {
    position: absolute !important;
    top: 0 !important;
    left: calc(100% - 2px) !important;
    z-index: 10001 !important;
    display: block !important;
    visibility: hidden !important;
    width: 310px !important;
    min-width: 310px !important;
    margin: 0 !important;
    padding: 10px !important;
    pointer-events: none !important;
    background: var(--farm-ivory) !important;
    box-shadow: 0 16px 38px rgba(42, 61, 59, .16) !important;
    opacity: 0 !important;
    transform: translateX(6px) !important;
    transition: opacity .15s ease, transform .15s ease;
  }

  #header #masthead .nav-dropdown li:hover > .sub-menu,
  #header #masthead .nav-dropdown li:focus-within > .sub-menu,
  #header #masthead .nav-dropdown .sub-menu:hover {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  #header #masthead .nav-dropdown li:hover > a,
  #header #masthead .nav-dropdown li:hover > a *,
  #header #masthead .nav-dropdown li:focus-within > a,
  #header #masthead .nav-dropdown li:focus-within > a *,
  #header #masthead .nav-dropdown li.current-menu-item > a,
  #header #masthead .nav-dropdown li.current-menu-item > a * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--farm-navy) !important;
  }

  #header #masthead .nav-dropdown li.menu-item-has-children > a::after {
    content: "→" !important;
    position: absolute;
    top: 50%;
    right: 14px;
    display: block !important;
    color: currentColor;
    font-size: 12px;
    transform: translateY(-50%);
  }
}

/* =========================================================
   03. HOME — SKIN ONLY
   Banner heights, Text Box positions, rows/columns and slider
   geometry are edited in UX Builder.
   ========================================================= */

.tfcs-home-hero,
.tfcs-home-intro,
.tfcs-home-routes,
.tfcs-home-upcoming,
.tfcs-home-education,
.tfcs-home-testimonials {
  color: var(--farm-navy);
}

.tfcs-home-hero h1 {
  margin: .18em 0 .35em;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(48px, 4.2vw, 72px);
  font-weight: 400;
  line-height: .98;
}

.tfcs-hero-panel .text-box-content {
  border-top: 3px solid var(--farm-orange);
}

.tfcs-hero-copy {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
}

.tfcs-home-hero .button,
.tfcs-home-intro .button,
.tfcs-home-education .button,
.tfcs-global-footer .button {
  min-height: 44px;
  padding: 0 25px;
  border-radius: 0;
  background: var(--farm-orange);
  color: #fff;
  font-weight: 700;
}

.tfcs-home-hero .button:hover,
.tfcs-home-intro .button:hover,
.tfcs-home-education .button:hover,
.tfcs-global-footer .button:hover {
  background: var(--farm-orange-dark);
  color: #fff;
}

/* Route banners: presentation only. */
.tfcs-route-card {
  border: 1px solid var(--farm-border);
  border-top: 3px solid var(--farm-orange);
  background: var(--farm-ivory);
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tfcs-route-card .banner-bg,
.tfcs-route-card .text-box-content {
  background: var(--farm-ivory);
}

.tfcs-route-card h3 {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.1;
}

.tfcs-route-card p {
  color: var(--farm-navy);
}

.tfcs-route-kicker {
  color: var(--farm-green-dark);
  font-size: 13px;
  line-height: 1.35;
}

.tfcs-route-card p:not(.tfcs-route-kicker) {
  font-size: 16px;
  line-height: 1.5;
}

.tfcs-card-action,
.tfcs-text-link,
.tfcs-route-action {
  color: var(--farm-orange);
  font-size: 15px;
  font-weight: 700;
}

.tfcs-route-card:hover {
  box-shadow: var(--farm-shadow);
  transform: translateY(-3px);
}

/* Testimonials: no forced heights or positioning. */
.tfcs-home-testimonials .banner {
  border: 1px solid #cfd8bd;
  background: #fff;
  box-shadow: none;
}

.tfcs-home-testimonials .testimonial-text,
.tfcs-home-testimonials blockquote,
.tfcs-home-testimonials .banner p {
  color: var(--farm-navy);
  font-family: "Didact Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.tfcs-home-testimonials .testimonial-meta,
.tfcs-home-testimonials .banner strong {
  color: var(--farm-navy);
  font-size: 16px;
}

.tfcs-home-testimonials .star-rating,
.tfcs-home-testimonials .stars {
  color: var(--farm-green) !important;
}

/* =========================================================
   04. CHILD / PROGRAMME CATEGORY CARDS
   Woo/Flatsome own category columns and image choices.
   ========================================================= */

.products .product-category .box {
  overflow: hidden;
  border: 1px solid var(--farm-border);
  border-top: 3px solid var(--farm-green);
  border-radius: 1px;
  background: var(--farm-ivory);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease;
}

.products .product-category .box-image {
  display: none !important;
}

.products .product-category .box-text {
  padding: 30px;
}

.products .product-category .box:hover {
  border-color: #c7d1ae;
  transform: translateY(-3px);
}

.products .product-category .box-text {
  background: var(--farm-ivory);
  text-align: left !important;
}

.products .product-category .box-text-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.products .product-category .woocommerce-loop-category__title,
.products .product-category .header-title {
  order: 2;
  margin: 0 0 13px;
  color: var(--farm-navy) !important;
  font-family: "PT Serif", Georgia, serif !important;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  text-transform: none;
}

.adult-category-card__meta {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-self: stretch;
  justify-content: flex-start;
  gap: 4px 8px;
  width: 100%;
  margin: 0 0 12px;
  color: var(--farm-green-dark);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.adult-category-card__separator {
  color: var(--farm-green);
}

.adult-category-card__description {
  order: 3;
  margin: 0;
  color: var(--farm-copy);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.adult-category-card__description p {
  margin: 0;
}

.adult-category-card__note {
  order: 4;
  width: 100%;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--farm-border);
  color: #617080;
  font-size: .88rem;
  line-height: 1.45;
  text-align: left;
}

.adult-category-card__action {
  order: 5;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: var(--farm-orange);
  font-weight: 700;
}

/* =========================================================
   05. PROGRAMME / PRODUCT LISTING ROW
   Uses Flatsome's native product loop. The visual simply turns
   each product card into the approved image + copy + booking rail.
   ========================================================= */

body.tax-product_cat .products.row > .product-small:not(.product-category) {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 18px;
}

body.tax-product_cat .product-small .product-small.box {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  grid-template-rows: auto auto auto;
  gap: 0 26px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--farm-border);
  border-left: 6px solid var(--farm-navy);
  background: var(--farm-ivory);
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.tax-product_cat .product-small .product-small.box:hover {
  border-left-color: var(--farm-orange);
  box-shadow: var(--farm-shadow);
  transform: translateY(-3px);
}

body.tax-product_cat .product-small .box-image {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  height: 240px;
  min-height: 240px;
  margin: 0;
}

body.tax-product_cat .product-small .box-image .image-fade_in_back,
body.tax-product_cat .product-small .box-image a,
body.tax-product_cat .product-small .box-image .image-cover,
body.tax-product_cat .product-small .box-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.tax-product_cat .product-small .box-text {
  display: contents;
  text-align: left !important;
}

body.tax-product_cat .product-small .title-wrapper {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  margin-bottom: 18px;
}

body.tax-product_cat .product-small .product-title {
  margin: 0;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.08;
  text-align: left;
  text-transform: none;
}

body.tax-product_cat .product-small .product-title a {
  color: var(--farm-navy);
}

body.tax-product_cat .product-small .product-title a:hover {
  color: var(--farm-orange);
}

/* Native FooEvents date and Woo price are repeated in the booking rail. */
body.tax-product_cat .product-small .event-date,
body.tax-product_cat .product-small .price-wrapper > .price,
body.tax-product_cat .product-small .out-of-stock-label {
  display: none !important;
}

body.tax-product_cat .product-small .price-wrapper {
  display: contents;
}

.tfcs-class-row__copy {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

body.tax-product_cat .product-small .box-excerpt {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  max-width: 64ch;
  margin: 0;
  color: var(--farm-copy);
  font-size: 15px;
  line-height: 1.52;
}

.tfcs-class-row__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 18px 20px;
  background: var(--farm-navy);
  color: #fff;
}

body.tax-product_cat .product-small .tfcs-class-row__facts {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 14px 16px;
  align-self: stretch;
  margin: 0;
  padding: 20px 22px;
}

body.tax-product_cat .product-small .tfcs-class-row__fact--date {
  grid-column: 1;
  grid-row: 1;
}

body.tax-product_cat .product-small .tfcs-class-row__fact--time,
body.tax-product_cat .product-small .tfcs-class-row__fact--options {
  grid-column: 1;
  grid-row: 2;
}

body.tax-product_cat .product-small .tfcs-class-row__fact--price {
  grid-column: 2;
  grid-row: 1;
}

body.tax-product_cat .product-small .tfcs-class-row__availability {
  grid-column: 2;
  grid-row: 2;
}

.tfcs-class-row__fact {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.tfcs-class-row__fact strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tfcs-class-row__fact .amount,
.tfcs-class-row__fact ins,
.tfcs-class-row__fact del {
  color: #fff;
}

.tfcs-class-row__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--farm-orange);
}

.tfcs-class-row__icon svg {
  width: 100%;
  height: 100%;
}

.tfcs-class-row__availability {
  margin-top: 2px;
  color: var(--farm-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.tfcs-class-row__availability.is-sold-out {
  color: #fff;
  opacity: .78;
}

body.tax-product_cat .product-small .tfcs-class-row__fact {
  font-size: 16px;
}

body.tax-product_cat .product-small .tfcs-class-row__fact strong {
  font-size: 13px;
}

body.tax-product_cat .product-small .tfcs-class-row__availability {
  margin-top: 0;
  font-size: 16px;
}

body.tax-product_cat .product-small .add-to-cart-button,
body.tax-product_cat .product-small .tfcs-class-card__button {
  grid-column: 3;
  grid-row: 3;
  margin: 10px 0 0 !important;
}

.tfcs-class-card__button {
  width: 100%;
  min-height: 50px;
  margin: 0 !important;
  padding: 12px 16px;
  border: 2px solid var(--farm-orange);
  background: var(--farm-orange);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.tfcs-class-card__button:hover {
  border-color: var(--farm-deep);
  background: var(--farm-deep);
}

.tfcs-class-card__button.is-sold-out,
.tfcs-class-card__button.is-sold-out:hover {
  border-color: var(--farm-navy);
  background: var(--farm-navy);
  color: #fff !important;
}

body.tax-product_cat .product-small .box-image .quick-view {
  display: none !important;
}

.tfcs-class-row__quick-view {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  margin-top: 10px;
  color: var(--farm-orange);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.tfcs-class-row__quick-view:hover {
  color: var(--farm-orange-dark);
}

body.tax-product_cat .product-small .title-wrapper,
body.tax-product_cat .product-small .box-excerpt {
  text-align: left !important;
}

.product-quick-view-container .product-info {
  padding: 34px;
}

@media (min-width: 850px) {
  .product-quick-view-container .product-gallery {
    flex-basis: 55%;
    max-width: 55%;
  }

  .product-quick-view-container .product-info {
    flex-basis: 45%;
    max-width: 45%;
  }
}

.product-quick-view-container > .product,
.product-quick-view-container .product-gallery,
.product-quick-view-container .product-gallery-slider,
.product-quick-view-container .product-gallery-slider .flickity-viewport,
.product-quick-view-container .product-gallery-slider .flickity-slider,
.product-quick-view-container .product-gallery-slider .slide,
.product-quick-view-container .product-gallery-slider .slide a {
  min-height: 100%;
}

.product-quick-view-container .product-gallery {
  align-self: stretch;
  display: flex;
}

.product-quick-view-container .product-gallery-slider,
.product-quick-view-container .product-gallery-slider .flickity-viewport,
.product-quick-view-container .product-gallery-slider .flickity-slider,
.product-quick-view-container .product-gallery-slider .slide,
.product-quick-view-container .product-gallery-slider .slide a,
.product-quick-view-container .product-gallery-slider img {
  width: 100%;
  height: 100% !important;
}

.product-quick-view-container .product-gallery-slider img {
  object-fit: cover;
}

.product-quick-view-container .product-lightbox-inner > .is-divider,
.product-quick-view-container .product-info > .is-divider,
.product-quick-view-container .summary > .is-divider {
  display: none !important;
}

.tfcs-quick-view-details {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--farm-border);
  color: var(--farm-copy);
}

.tfcs-quick-view-details__schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 18px;
  padding: 13px 15px;
  background: var(--farm-navy);
  color: #fff;
}

.tfcs-quick-view-details__schedule span {
  min-width: 130px;
}

.tfcs-quick-view-details__schedule strong {
  display: block;
  margin-bottom: 2px;
  color: var(--farm-green);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tfcs-quick-view-details__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tfcs-quick-view-details h3 {
  margin: 0 0 8px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.tfcs-quick-view-details ul {
  margin: 0 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.tfcs-quick-view-details__dietary {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--farm-border);
  font-size: 14px;
}

/* =========================================================
   06. HOME UPCOMING + RELATED CLASSES
   Same event facts, lighter treatment. Flatsome owns columns/sliders.
   ========================================================= */

.tfcs-home-upcoming .box-image,
.single-product .related.products .box-image,
.single-product .related-products-wrapper .box-image {
  display: none;
}

.tfcs-home-upcoming .product-small .product-small.box,
.single-product .related.products .product-small.box,
.single-product .related-products-wrapper .product-small.box {
  border: 1px solid var(--farm-border);
  border-left: 5px solid var(--farm-navy);
  background: var(--farm-ivory);
  box-shadow: none;
}

.tfcs-home-upcoming .box-text,
.single-product .related.products .box-text,
.single-product .related-products-wrapper .box-text {
  padding: 24px;
  text-align: left !important;
}

.tfcs-home-upcoming .product-title {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.12;
  text-transform: none;
}

.tfcs-home-upcoming .product-title a {
  color: var(--farm-navy);
}

.tfcs-home-upcoming .product-title a:hover {
  color: var(--farm-orange);
}

.tfcs-home-upcoming .box-excerpt,
.single-product .related.products .box-excerpt,
.single-product .related-products-wrapper .box-excerpt,
.tfcs-home-upcoming .event-date,
.single-product .related.products .event-date,
.single-product .related-products-wrapper .event-date,
.tfcs-home-upcoming .price-wrapper > .price,
.single-product .related.products .price-wrapper > .price,
.single-product .related-products-wrapper .price-wrapper > .price {
  display: none !important;
}

.tfcs-home-upcoming .tfcs-class-row__facts,
.single-product .related.products .tfcs-class-row__facts,
.single-product .related-products-wrapper .tfcs-class-row__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--farm-navy);
}

.tfcs-home-upcoming .tfcs-class-row__fact,
.single-product .related.products .tfcs-class-row__fact,
.single-product .related-products-wrapper .tfcs-class-row__fact {
  font-size: 15px;
}

.tfcs-home-upcoming .tfcs-class-row__fact strong,
.single-product .related.products .tfcs-class-row__fact strong,
.single-product .related-products-wrapper .tfcs-class-row__fact strong {
  font-size: 12px;
}

.tfcs-home-upcoming .tfcs-class-row__availability,
.single-product .related.products .tfcs-class-row__availability,
.single-product .related-products-wrapper .tfcs-class-row__availability {
  font-size: 15px;
}

.tfcs-home-upcoming .tfcs-class-card__button,
.single-product .related.products .tfcs-class-card__button,
.single-product .related-products-wrapper .tfcs-class-card__button {
  min-height: 50px;
  margin-top: 12px !important;
  background: var(--farm-orange);
  font-size: 16px;
  color: #fff !important;
}

.single-product .related.products .product-title,
.single-product .related-products-wrapper .product-title {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.12;
  text-transform: none;
}

.single-product .product-section-title-related {
  text-transform: none;
}

/* =========================================================
   07. SINGLE PRODUCT / CLASS
   Flatsome keeps native 5/7 image-summary geometry.
   ========================================================= */

.single-product .product-main .product-title {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-weight: 400;
}

.single-product .product-main .summary > .is-divider {
  display: none !important;
}

.single-product .single-class-details {
  margin: 14px 0 22px;
  border-left: 6px solid var(--farm-orange);
  background: var(--farm-navy);
  color: #fff;
}

.single-class-details__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 18px 20px 6px;
}

.single-class-detail {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 8px;
  color: #fff;
}

.single-class-detail-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--farm-orange);
}

.single-class-detail-icon svg {
  width: 100%;
  height: 100%;
}

.single-class-detail-copy {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.single-class-detail-copy strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .72);
  font-family: "Didact Gothic", sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.single-class-price,
.single-class-price .amount,
.single-class-price ins,
.single-class-price del {
  color: #fff !important;
}

.single-class-stock {
  grid-column: 1 / -1;
  padding: 4px 8px 10px;
  color: var(--farm-green);
  font-size: 15px;
  font-weight: 700;
}

.single-class-stock.is-sold-out {
  color: #fff;
  opacity: .78;
}

.single-class-booking {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.single-class-booking .stock {
  display: none;
}

.single-class-booking form.cart,
.single-class-booking .variations_form {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.single-class-booking .quantity,
.single-class-booking .single_add_to_cart_button {
  height: 50px;
  min-height: 50px;
  margin-bottom: 0;
}

.single-class-booking .quantity input,
.single-class-booking .quantity .button {
  height: 50px;
  min-height: 50px;
}

.single-class-booking .single_add_to_cart_button,
.single-class-booking .button.alt {
  height: 50px;
  min-height: 50px;
  border: 2px solid var(--farm-orange) !important;
  background: var(--farm-orange) !important;
  color: #fff !important;
}

.single-class-booking .single_add_to_cart_button:hover,
.single-class-booking .button.alt:hover {
  border-color: #fff !important;
  background: transparent !important;
}

.single-class-booking table.variations,
.single-class-booking table.variations label,
.single-class-booking .reset_variations,
.single-class-booking .woocommerce-variation-description,
.single-class-booking .woocommerce-variation-price,
.single-class-booking .woocommerce-variation-availability {
  color: #fff;
}

.single-class-booking select {
  background: #fff;
  color: var(--farm-copy);
}

/* Structured Menu / Skills beneath the product hero. */
.tfcs-single-structured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(1080px, calc(100% - 40px));
  margin: 38px auto 46px;
}

.tfcs-single-structured__group {
  padding: 28px 30px;
  border-top: 4px solid var(--farm-green);
  background: var(--farm-ivory);
}

.tfcs-single-structured__group h3 {
  margin: 0 0 16px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.tfcs-single-structured__group ul {
  margin: 0;
  padding-left: 19px;
}

.tfcs-single-structured__group li {
  margin-bottom: 7px;
  color: var(--farm-copy);
  line-height: 1.5;
}

.tfcs-single-structured__group li::marker {
  color: var(--farm-orange);
}

.tfcs-single-structured__dietary {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  padding: 17px 20px;
  border-left: 4px solid var(--farm-orange);
  background: var(--farm-sage);
  color: var(--farm-copy);
}

.tfcs-single-structured__dietary strong {
  color: var(--farm-navy);
}

.single-product .tfcs-hide-event-details {
  display: none !important;
}

/* =========================================================
   08. CATEGORY EDITORIAL SECTIONS + FAQ
   Skin only; UX Builder controls section/row dimensions.
   ========================================================= */

.tfcs-category-information .tfcs-information-columns h3 {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(28px, 2.15vw, 34px);
  font-weight: 400;
  line-height: 1.1;
}

.tfcs-category-information .tfcs-information-columns p,
.tfcs-category-information .tfcs-information-columns li {
  color: var(--farm-copy);
  font-size: 16px;
  line-height: 1.58;
}

.tfcs-category-faq .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(42, 61, 59, .14) !important;
  border-radius: 2px;
  background: var(--farm-ivory);
  box-shadow: none !important;
  margin-bottom: 12px;
}

.tfcs-category-faq .accordion-title {
  position: relative;
  padding: 18px 72px 18px 26px !important;
  color: var(--farm-navy) !important;
  border: 0 !important;
  background: transparent !important;
  font-family: "Didact Gothic", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

.tfcs-category-faq .accordion-title .toggle {
  position: absolute;
  top: 50%;
  right: 18px;
  left: auto !important;
  display: inline-flex !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--farm-navy) !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

.tfcs-category-faq .accordion-inner {
  padding: 4px 28px 26px !important;
  font-size: 16px;
  line-height: 1.6;
}

.tfcs-category-faq .accordion-item:last-child {
  margin-bottom: 0;
}

.tfcs-category-hero-panel .text-box-content {
  border-top: 3px solid var(--farm-orange);
}

.tfcs-category-faq .accordion-title .toggle i {
  display: none !important;
}

.tfcs-category-faq .accordion-title .toggle::before {
  content: "+";
  font-family: Arial, sans-serif;
  font-size: 22px;
}

.tfcs-category-faq .accordion-title[aria-expanded="true"] .toggle::before {
  content: "−";
}



/* =========================================================
   09. ABOUT / OUR STORY
   ========================================================= */

.tfcs-about-main {
  color: var(--farm-copy);
}

.tfcs-about-hero-panel .text-box-content {
  background: rgba(251, 248, 243, .94);
  border-top: 3px solid var(--farm-orange);
  color: var(--farm-navy);
}

.tfcs-about-hero-panel,
.tfcs-about-hero-panel h1,
.tfcs-about-hero-panel h2,
.tfcs-about-hero-panel h3,
.tfcs-about-hero-panel p {
  color: var(--farm-navy) !important;
}

.tfcs-about-intro {
  padding: 54px 0 28px;
}

.tfcs-about-intro h2,
.tfcs-about-team h2,
.tfcs-about-story h2,
.tfcs-about-cta h2 {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(42px, 4.25vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.018em;
}

.tfcs-about-intro p,
.tfcs-about-story p,
.tfcs-about-team p {
  font-size: 17px;
  line-height: 1.62;
}

.tfcs-about-founder {
  padding: 34px 36px;
  border-top: 4px solid var(--farm-orange);
  background: var(--farm-ivory);
}

.tfcs-about-founder h3 {
  margin: 0 0 8px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.tfcs-about-founder .tfcs-about-role {
  margin: 0 0 22px;
  color: var(--farm-green-dark);
  font-weight: 700;
  letter-spacing: .02em;
}

.tfcs-about-story-card {
  height: 100%;
  padding: 28px 30px;
  border-top: 4px solid var(--farm-green);
  background: var(--farm-ivory);
}

.tfcs-about-story-card h3 {
  margin: 0 0 12px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.tfcs-about-team {
  padding: 56px 0 30px;
}

.tfcs-about-team-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.tfcs-team-card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--farm-border);
  border-top: 4px solid var(--farm-navy);
  background: #fff;
  text-align: left;
}

.tfcs-team-card .team-member-img,
.tfcs-team-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  border-radius: 0 !important;
}

.tfcs-team-card h3,
.tfcs-team-card .person-name,
.tfcs-team-card .team-member-name {
  margin: 0 0 4px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.tfcs-team-card .person-title,
.tfcs-team-card .team-member-title {
  margin-bottom: 16px;
  color: var(--farm-green-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfcs-about-note {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--farm-orange);
  background: var(--farm-sage);
}

.tfcs-about-cta {
  margin-top: 40px;
  padding: 36px;
  background: var(--farm-navy);
  color: #fff;
}

.tfcs-about-cta,
.tfcs-about-cta h2,
.tfcs-about-cta p {
  color: #fff !important;
}

.tfcs-about-cta .button {
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid var(--farm-orange);
  background: var(--farm-orange);
  color: #fff;
  font-weight: 700;
}

.tfcs-about-cta .button:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

@media (max-width: 549px) {
  .tfcs-about-intro h2,
  .tfcs-about-team h2,
  .tfcs-about-story h2,
  .tfcs-about-cta h2 {
    font-size: 38px;
  }

  .tfcs-about-founder,
  .tfcs-about-story-card,
  .tfcs-team-card,
  .tfcs-about-cta {
    padding: 24px 22px;
  }
}

/* =========================================================
   10. CONTACT + NINJA FORMS
   ========================================================= */

.tfcs-contact-main {
  color: var(--farm-copy);
}

.tfcs-contact-details {
  padding: 32px 36px;
  border-top: 4px solid var(--farm-green);
  background: var(--farm-ivory);
}

.tfcs-contact-details h2,
.tfcs-contact-form h2 {
  margin-top: 0;
}

.tfcs-contact-details h3 {
  margin: 28px 0 10px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.tfcs-contact-details a {
  color: var(--farm-orange);
  font-weight: 700;
}

.tfcs-contact-details a:hover {
  color: var(--farm-orange-dark);
}

.tfcs-contact-form {
  padding: 32px 36px;
  border-top: 4px solid var(--farm-navy);
  background: #fff;
}

.tfcs-contact-form .nf-form-fields-required {
  margin-bottom: 22px;
  color: #617080;
  font-size: 14px;
}

.tfcs-contact-form .nf-field-container {
  margin-bottom: 22px;
}

.tfcs-contact-form .nf-field-label {
  margin-bottom: 8px;
}

.tfcs-contact-form .nf-field-label label {
  color: var(--farm-navy);
  font-family: "Didact Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.tfcs-contact-form .ninja-forms-req-symbol {
  color: var(--farm-orange);
}

.tfcs-contact-form .nf-field-element input:not([type="button"]):not([type="submit"]),
.tfcs-contact-form .nf-field-element textarea,
.tfcs-contact-form .nf-field-element select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--farm-border);
  border-radius: 0;
  background: var(--farm-ivory);
  box-shadow: none;
  color: var(--farm-copy);
  font-family: "Didact Gothic", sans-serif;
  font-size: 16px;
}

.tfcs-contact-form .nf-field-element textarea {
  min-height: 150px;
  resize: vertical;
}

.tfcs-contact-form .nf-field-element input:focus,
.tfcs-contact-form .nf-field-element textarea:focus,
.tfcs-contact-form .nf-field-element select:focus {
  border-color: var(--farm-navy);
  background: #fff;
  outline: 3px solid rgba(237, 101, 0, .18);
  outline-offset: 0;
}

.tfcs-contact-form .nf-error .nf-field-element input,
.tfcs-contact-form .nf-error .nf-field-element textarea,
.tfcs-contact-form .nf-error .nf-field-element select {
  border-color: var(--farm-orange);
}

.tfcs-contact-form .nf-error-msg,
.tfcs-contact-form .nf-form-errors {
  color: var(--farm-orange-dark);
  font-size: 14px;
}

.tfcs-contact-form .nf-field-element input[type="button"],
.tfcs-contact-form .nf-field-element input[type="submit"] {
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid var(--farm-orange) !important;
  border-radius: 0 !important;
  background: var(--farm-orange) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: "Didact Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tfcs-contact-form .nf-field-element input[type="button"]:hover,
.tfcs-contact-form .nf-field-element input[type="submit"]:hover {
  border-color: var(--farm-deep) !important;
  background: var(--farm-deep) !important;
}

/* =========================================================
   11. FOOEVENTS CALENDAR — PAGE 28078
   Preserved approved component.
   ========================================================= */

body.page-id-28078 #main {
  background: #f3ede4;
}

body.page-id-28078 .page-wrapper {
  padding: 54px 24px 82px;
}

body.page-id-28078 .fooevents_calendar {
  box-sizing: border-box;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 38px;
  border-top: 5px solid var(--farm-navy);
  background: var(--farm-ivory);
  box-shadow: 0 12px 32px rgba(42, 61, 59, .08);
  color: var(--farm-navy);
}

body.page-id-28078 .fooevents_calendar .fc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}

body.page-id-28078 .fooevents_calendar .fc-toolbar h2 {
  margin: 0;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
}

body.page-id-28078 .fooevents_calendar .fc-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--farm-navy);
  border-radius: 0 !important;
  background: var(--farm-navy);
  box-shadow: none;
  color: #fff !important;
  font-family: "Didact Gothic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 42px;
  text-transform: uppercase;
}

body.page-id-28078 .fooevents_calendar .fc-button:hover,
body.page-id-28078 .fooevents_calendar .fc-button:focus {
  border-color: var(--farm-orange);
  background: var(--farm-orange);
}

body.page-id-28078 .fooevents_calendar .fc-head .fc-row,
body.page-id-28078 .fooevents_calendar .fc-day-header {
  background: var(--farm-navy);
}

body.page-id-28078 .fooevents_calendar .fc-day-header {
  padding: 12px 5px;
  color: #fff !important;
  font-family: "Didact Gothic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.page-id-28078 .fooevents_calendar .fc-day {
  background: #fffdfc;
}

body.page-id-28078 .fooevents_calendar .fc-other-month {
  background: #f1ece5;
}

body.page-id-28078 .fooevents_calendar .fc-today {
  background: #fff5e8 !important;
  box-shadow: inset 0 3px 0 var(--farm-orange);
}

body.page-id-28078 .fooevents_calendar .fc-scroller {
  height: auto !important;
  overflow: visible !important;
}

body.page-id-28078 .fooevents_calendar .fc-row.fc-week {
  min-height: 118px;
}

body.page-id-28078 .fooevents_calendar .fc-event {
  box-sizing: border-box;
  margin: 2px 4px;
  padding: 7px 9px 7px 12px;
  overflow: hidden;
  border: 0 !important;
  border-left: 4px solid var(--farm-green) !important;
  border-radius: 0 !important;
  background: var(--farm-navy) !important;
  box-shadow: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: "Didact Gothic", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

body.page-id-28078 .fooevents_calendar .fc-event:hover {
  background: #2b4a64 !important;
}

body.page-id-28078 .fooevents_calendar .fc-event[href*="holiday-club"],
body.page-id-28078 .fooevents_calendar .fc-event[href*="superstars"],
body.page-id-28078 .fooevents_calendar .fc-event[href*="supercooks"],
body.page-id-28078 .fooevents_calendar .fc-event[href*="childrens-cookery-party"] {
  border-left-color: var(--farm-navy) !important;
  background: #41673b !important;
}

body.page-id-28078 .fooevents_calendar .fooevents_out_of_stock {
  border-left-color: #8b948d !important;
  background: #dcd7ce !important;
  color: #43505a !important;
  -webkit-text-fill-color: #43505a !important;
}

/* =========================================================
   12. FOOTER
   ========================================================= */

.tfcs-global-footer,
.tfcs-global-footer p,
.tfcs-global-footer a,
.tfcs-global-footer h1,
.tfcs-global-footer h2,
.tfcs-global-footer h3,
.tfcs-global-footer h4,
.tfcs-global-footer h5,
.tfcs-global-footer h6,
.tfcs-global-footer span,
.tfcs-global-footer small,
.tfcs-global-footer strong {
  color: #fff;
}

.tfcs-global-footer {
  font-family: "Didact Gothic", sans-serif;
}

.tfcs-global-footer a:hover {
  color: var(--farm-orange);
}

.tfcs-global-footer .tfcs-footer-brand {
  align-items: center;
}

.tfcs-global-footer .tfcs-footer-tagline {
  margin: 0;
  color: #fff !important;
  font-family: "Didact Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
}

html,
.absolute-footer {
  background: var(--farm-blue-strip) !important;
  color: #fff;
}

.absolute-footer,
.absolute-footer p,
.absolute-footer div,
.absolute-footer span,
.absolute-footer a {
  color: #fff;
}

.absolute-footer a:hover {
  color: var(--farm-orange);
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */

@media (max-width: 849px) {
  #header #masthead #logo {
    width: clamp(76px, 13vw, 104px);
    min-width: clamp(76px, 13vw, 104px);
    max-width: clamp(76px, 13vw, 104px);
    margin: 0;
  }

  #header #masthead #logo > a {
    top: 0;
    height: 100%;
    gap: 0;
  }

  #header #masthead #logo img {
    width: auto;
    max-width: clamp(72px, 12vw, 96px);
    height: auto;
    max-height: clamp(72px, 12vw, 96px);
  }

  #header #masthead #logo .logo-tagline {
    display: none !important;
  }

  body.tax-product_cat .product-small .product-small.box {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    gap: 0 20px;
  }

  body.tax-product_cat .product-small .title-wrapper {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.tax-product_cat .product-small .box-image {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 150px;
    min-height: 150px;
  }

  body.tax-product_cat .product-small .tfcs-class-row__copy {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  body.tax-product_cat .product-small .box-excerpt {
    grid-column: 2;
    grid-row: 2;
  }

  body.tax-product_cat .product-small .tfcs-class-row__quick-view {
    grid-column: 2;
    grid-row: 3;
  }

  body.tax-product_cat .product-small .tfcs-class-row__facts {
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  body.tax-product_cat .product-small .tfcs-class-row__fact--date,
  body.tax-product_cat .product-small .tfcs-class-row__fact--time,
  body.tax-product_cat .product-small .tfcs-class-row__fact--options,
  body.tax-product_cat .product-small .tfcs-class-row__fact--price,
  body.tax-product_cat .product-small .tfcs-class-row__availability {
    grid-column: auto;
    grid-row: auto;
  }

  body.tax-product_cat .product-small .add-to-cart-button,
body.tax-product_cat .product-small .tfcs-class-card__button {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 10px !important;
  }

  .product-quick-view-container .product-gallery {
    display: block;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body.page-id-28078 .page-wrapper {
    padding: 36px 16px 58px;
  }

  body.page-id-28078 .fooevents_calendar {
    padding: 25px 18px 28px;
  }
}

@media (max-width: 549px) {
  .tfcs-contact-details,
  .tfcs-contact-form {
    padding: 26px 22px;
  }

  .tfcs-home-intro h2,
  .tfcs-home-routes h2,
  .tfcs-home-upcoming h2,
  .tfcs-home-education h2,
  .tfcs-home-testimonials h2,
  .tfcs-category-intro h2,
  .tfcs-category-directory-heading h2,
  .tfcs-category-information h2,
  .tfcs-category-faq h2,
  .tfcs-category-cta h2,
  .tfcs-education-intro h2,
  .tfcs-education-schools-feature h2,
  .tfcs-education-pathways h2,
  .tfcs-education-cta h2,
  .tfcs-contact-main h2 {
    font-size: 38px;
  }

  body.tax-product_cat .product-small .product-small.box {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 0;
    padding: 18px;
  }

  body.tax-product_cat .product-small .title-wrapper {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 16px;
  }

  body.tax-product_cat .product-small .box-image {
    grid-column: 1;
    grid-row: 2;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  body.tax-product_cat .product-small .box-image .image-cover,
  body.tax-product_cat .product-small .box-image img {
    aspect-ratio: 1 / 1;
  }

  body.tax-product_cat .product-small .tfcs-class-row__copy {
    grid-column: 1;
    grid-row: 3 / span 2;
  }

  body.tax-product_cat .product-small .box-excerpt {
    grid-column: 1;
    grid-row: 3;
    margin-top: 18px;
  }

  body.tax-product_cat .product-small .tfcs-class-row__quick-view {
    grid-column: 1;
    grid-row: 4;
  }

  body.tax-product_cat .product-small .tfcs-class-row__facts {
    grid-column: 1;
    grid-row: 5;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  body.tax-product_cat .product-small .add-to-cart-button,
body.tax-product_cat .product-small .tfcs-class-card__button {
    grid-column: 1;
    grid-row: 6;
  }

  .tfcs-quick-view-details__content {
    grid-template-columns: 1fr;
  }

  .product-quick-view-container .product-info {
    padding: 24px;
  }

  .product-quick-view-container .product-gallery,
  .product-quick-view-container .product-info {
    flex-basis: 100%;
    max-width: 100%;
  }

  body.tax-product_cat .product-small .tfcs-class-row__facts,
  .tfcs-home-upcoming .tfcs-class-row__facts,
  .single-product .related.products .tfcs-class-row__facts,
  .single-product .related-products-wrapper .tfcs-class-row__facts,
  .single-class-details__facts,
  .tfcs-single-structured {
    grid-template-columns: 1fr;
  }

  .tfcs-class-row__facts {
    margin-top: 14px;
  }

  .single-product .single-class-details {
    border-left-width: 4px;
  }

  .single-class-details__facts,
  .single-class-booking {
    padding-right: 15px;
    padding-left: 15px;
  }

  .tfcs-single-structured {
    width: calc(100% - 28px);
    margin-top: 28px;
  }

  .tfcs-single-structured__dietary {
    grid-column: 1;
    flex-direction: column;
    gap: 5px;
  }

  body.page-id-28078 .fooevents_calendar {
    padding: 18px;
  }

  body.page-id-28078 .fooevents_calendar .fc-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  body.page-id-28078 .fooevents_calendar .fc-toolbar .fc-right {
    width: 100%;
    flex-wrap: wrap;
  }

  body.page-id-28078 .fooevents_calendar .fc-button {
    min-height: 38px;
    line-height: 36px;
  }

  body.page-id-28078 .fooevents_calendar .fc-event {
    width: 100%;
    margin: 0;
    padding: 10px 11px 10px 13px;
    font-size: 12px;
  }
}

/* =========================================================
   EDUCATION HUB
   ========================================================= */

/* Shared light hero panel */
.tfcs-education-hero-panel .text-box-content,
.tfcs-classes-hero-panel .text-box-content,
.tfcs-contact-hero-panel .text-box-content {
  background: rgba(251, 248, 243, 0.94);
  border-top: 3px solid var(--farm-orange);
  color: var(--farm-navy);
}

.tfcs-education-hero-panel,
.tfcs-education-hero-panel h1,
.tfcs-education-hero-panel h2,
.tfcs-education-hero-panel h3,
.tfcs-education-hero-panel h4,
.tfcs-education-hero-panel p,
.tfcs-classes-hero-panel,
.tfcs-classes-hero-panel h1,
.tfcs-classes-hero-panel h2,
.tfcs-classes-hero-panel h3,
.tfcs-classes-hero-panel p,
.tfcs-contact-hero-panel,
.tfcs-contact-hero-panel h1,
.tfcs-contact-hero-panel h2,
.tfcs-contact-hero-panel h3,
.tfcs-contact-hero-panel p {
  color: var(--farm-navy) !important;
}

/* =========================================================
   14. COOKERY CLASSES GATEWAY
   03 September 2026
   Editorial gateway between homepage and category hubs.
   ========================================================= */

.tfcs-classes-hero-panel .text-box-content {
  border-top: 3px solid var(--farm-orange);
  box-shadow: 0 16px 40px rgba(42, 61, 59, .10);
}

.tfcs-classes-hero-panel h1 {
  margin: .18em 0 .38em;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.015em;
}

.tfcs-classes-hero-panel p {
  color: var(--farm-copy);
  font-size: 17px;
  line-height: 1.55;
}

.tfcs-classes-intro h2,
.tfcs-classes-directory h2 {
  margin-bottom: 18px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
}

.tfcs-classes-intro p,
.tfcs-classes-directory > .section-content > .row:first-child p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
  line-height: 1.62;
}


/* Main three-way decision cards */
.tfcs-classes-routes .tfcs-education-route-card {
  overflow: hidden;
  border: 1px solid var(--farm-border);
  border-top: 4px solid var(--farm-green);
  background: var(--farm-ivory) !important;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tfcs-classes-routes .tfcs-education-route-card:hover {
  border-top-color: var(--farm-orange);
  box-shadow: var(--farm-shadow);
  transform: translateY(-4px);
}

.tfcs-classes-routes .tfcs-education-route-card .text-box-content {
  background: transparent !important;
}

.tfcs-classes-routes .tfcs-education-route-card h3 {
  margin: 8px 0 16px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(29px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.08;
}

.tfcs-classes-routes .tfcs-education-route-card p {
  color: var(--farm-copy);
  font-size: 16px;
  line-height: 1.55;
}

.tfcs-classes-routes .tfcs-route-action {
  margin-top: 22px;
  color: var(--farm-orange);
  font-weight: 700;
}


/* Curated programme directory */
.tfcs-programme-directory {
  margin-top: 42px;
}

.tfcs-programme-directory > .col {
  display: flex;
}

.tfcs-programme-directory > .col > .col-inner {
  width: 100%;
}

.tfcs-programme-group {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 390px;
  padding: 32px 32px 30px;
  border: 1px solid var(--farm-border);
  border-top: 4px solid var(--farm-navy);
  background: var(--farm-ivory);
}

.tfcs-programme-group .tfcs-route-kicker {
  margin: 0 0 11px;
  color: var(--farm-green-dark);
}

.tfcs-programme-group h3 {
  margin: 0 0 20px;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(27px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
}

.tfcs-programme-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tfcs-programme-group li {
  margin: 0;
  border-top: 1px solid rgba(42, 61, 59, .12);
}

.tfcs-programme-group li:last-child {
  border-bottom: 1px solid rgba(42, 61, 59, .12);
}

.tfcs-programme-group li a {
  position: relative;
  display: block;
  padding: 12px 28px 12px 0;
  color: var(--farm-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.tfcs-programme-group li a::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: 2px;
  color: var(--farm-orange);
}

.tfcs-programme-group li a:hover {
  color: var(--farm-orange);
}

.tfcs-programme-action {
  margin: auto 0 0;
  padding-top: 24px;
}

.tfcs-programme-action a {
  color: var(--farm-orange);
  font-size: 15px;
  font-weight: 700;
}


/* Gateway CTA */
.tfcs-education-cta,
.tfcs-education-cta h2,
.tfcs-education-cta p {
  color: #fff;
}

.tfcs-education-cta .tfcs-editorial-label {
  color: #fff;
}

.tfcs-education-cta .button {
  margin-top: 16px;
  border: 2px solid var(--farm-orange);
  background: var(--farm-orange);
  color: #fff;
}

.tfcs-education-cta .button:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
}


@media (max-width: 849px) {
  .tfcs-classes-routes .tfcs-education-route-card {
    height: 350px !important;
  }

  .tfcs-programme-group {
    min-height: 0;
  }
}


@media (max-width: 549px) {
  .tfcs-classes-hero {
    height: auto !important;
    min-height: 480px;
  }

  .tfcs-classes-hero-panel h1 {
    font-size: 40px;
  }

  .tfcs-classes-intro h2,
  .tfcs-classes-directory h2 {
    font-size: 38px;
  }

  .tfcs-classes-routes .tfcs-education-route-card {
    height: 330px !important;
  }

  .tfcs-programme-directory {
    margin-top: 28px;
  }

  .tfcs-programme-group {
    padding: 26px 24px;
  }
}

/* =========================================================
   COOKERY CLASSES — PRIMARY ROUTE CARD LINKS
   Make the complete banner card clickable.
   ========================================================= */

.tfcs-classes-routes .tfcs-education-route-card {
  position: relative;
  cursor: pointer;
}

.tfcs-classes-routes .tfcs-education-route-card .banner-link,
.tfcs-classes-routes .tfcs-education-route-card > .banner-inner > .banner-layers > a.fill {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  display: block !important;
  pointer-events: auto !important;
}

.tfcs-classes-routes .tfcs-education-route-card .text-box {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.tfcs-classes-routes .tfcs-education-route-card:hover .tfcs-route-action {
  text-decoration: underline;
}

/* =========================================================
   CATEGORY AUTHORITY HERO
   Reusable across customer-facing class hubs.
   ========================================================= */

.tfcs-category-hero-panel .text-box-content {
  background: rgba(251, 248, 243, .94);
  border-top: 3px solid var(--farm-orange);
  box-shadow: 0 16px 40px rgba(42, 61, 59, .10);
}

.tfcs-category-hero-panel h1 {
  margin: .18em 0 .36em;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.015em;
}

.tfcs-category-hero-panel p {
  color: var(--farm-copy);
  font-size: 17px;
  line-height: 1.55;
}

.tfcs-category-intro {
  color: var(--farm-copy);
}

.tfcs-category-intro > .section-content > .row > p {
  display: none !important;
}

.tfcs-category-cta {
  background-color: var(--farm-navy) !important;
}

.tfcs-category-intro h2 {
  margin-bottom: 16px;
}

.tfcs-category-intro p {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
  line-height: 1.62;
}

@media (max-width: 549px) {
  .tfcs-category-hero {
    min-height: 430px;
  }

  .tfcs-category-hero-panel h1 {
    font-size: 40px;
  }

  .tfcs-category-intro {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
}

/* =========================================================
   14. CATEGORY AUTHORITY SYSTEM
   03 September 2026
   Shared presentation for UX Block heroes and category footers.
   Append to child-theme style.css on STAGING only.
   ========================================================= */

.tfcs-category-hero-panel .text-box-content {
  background: rgba(251, 248, 243, .94);
  border-top: 3px solid var(--farm-orange);
  box-shadow: 0 16px 40px rgba(42, 61, 59, .10);
}

.tfcs-category-hero-panel,
.tfcs-category-hero-panel h1,
.tfcs-category-hero-panel h2,
.tfcs-category-hero-panel h3,
.tfcs-category-hero-panel p {
  color: var(--farm-navy) !important;
}

.tfcs-category-hero-panel h1 {
  margin: .18em 0 .36em;
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.015em;
}

.tfcs-category-hero-panel .tfcs-hero-copy {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: var(--farm-copy) !important;
  font-size: 17px;
  line-height: 1.58;
}

.tfcs-category-hero .tfcs-eyebrow {
  margin: 0 0 13px;
  color: var(--farm-green-dark) !important;
  font-size: 13px;
  letter-spacing: .13em;
}

/* Remove the old plain generated authority heading when a UX Block hero is present.
   The PHP/snippet layer should add .tfcs-has-category-hero to body for these terms. */
body.tfcs-has-category-hero .tfcs-authority-heading {
  display: none !important;
}

body.tfcs-has-category-hero #wrapper > .tfcs-category-hero {
  margin-top: 30px;
}

body.tfcs-has-category-hero .shop-page-title.category-page-title {
  margin-bottom: 0;
}

body.tfcs-has-category-hero .category-page-row {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

body.tfcs-has-category-hero .category-page-row > .col.large-12 {
  padding-right: 0;
  padding-left: 0;
}

body.tfcs-has-category-hero .shop-container > .products.row {
  width: calc(100% - 40px);
  max-width: 1190px;
  margin-right: auto;
  margin-left: auto;
}

/* Existing migrated authority/footer sections. */
.tfcs-sgai-parent-intro,
.tfcs-sgai-specialist-hub,
.tfcs-sgai-hub-faq {
  color: var(--farm-copy);
}

.tfcs-sgai-parent-intro h2,
.tfcs-sgai-specialist-hub h2,
.tfcs-sgai-hub-faq h2 {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(36px, 3.7vw, 54px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.015em;
}

.tfcs-sgai-parent-intro h3,
.tfcs-sgai-specialist-hub h3,
.tfcs-sgai-hub-faq h3 {
  color: var(--farm-navy);
  font-family: "PT Serif", Georgia, serif;
  font-weight: 400;
}

.tfcs-sgai-parent-intro p,
.tfcs-sgai-specialist-hub p,
.tfcs-sgai-hub-faq p,
.tfcs-sgai-parent-intro li,
.tfcs-sgai-specialist-hub li,
.tfcs-sgai-hub-faq li {
  font-size: 16px;
  line-height: 1.62;
}

.tfcs-sgai-parent-intro img,
.tfcs-sgai-specialist-hub img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 849px) {
  body.tfcs-has-category-hero .shop-container > .products.row {
    width: calc(100% - 32px);
  }
}

@media (max-width: 549px) {
  .tfcs-category-hero-panel h1 {
    font-size: 38px;
  }

  .tfcs-category-hero-panel .tfcs-hero-copy {
    font-size: 16px;
  }

  body.tfcs-has-category-hero .shop-container > .products.row {
    width: calc(100% - 28px);
  }

  .tfcs-sgai-parent-intro h2,
  .tfcs-sgai-specialist-hub h2,
  .tfcs-sgai-hub-faq h2 {
    font-size: 36px;
  }
}
	