.vc-flavour-block {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: background-color 0.8s ease;
}

/* Header */
.vc-fb-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem 2rem;
  box-sizing: border-box;
  width: 100%;
}

.vc-fb-heading {
  margin-bottom: 0 !important;
}

/* Inner layout */
.vc-fb-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
  padding-top: var(--wp--preset--spacing--inner-normal);
  padding-bottom: var(--wp--preset--spacing--padding-hoz);
  gap: 2rem;
  box-sizing: border-box;
  width: 100%;
}

/* Tabs */
.vc-fb-tabs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  padding-left: 0;
}

/* Full-height track line */
.vc-fb-tabs::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--track-colour, transparent);
  opacity: 0.15;
}

/* Sliding active indicator */
.vc-fb-track {
  position: absolute;
  left: 0;
  width: 3px;
  transition:
    transform 0.5s ease,
    height 0.5s ease,
    background 0.5s ease;
  pointer-events: none;
}

.vc-fb-tab {
  background: none;
  border: none;
  padding-right: var(--wp--preset--spacing--inner-compact);
  padding-left: var(--wp--preset--spacing--inner-compact);

  text-align: left;
  cursor: pointer;
}

.vc-fb-tab-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  margin-bottom: 10px;
  font-family: var(--wp--preset--font-family--figtree) !important;
  letter-spacing: 0.1rem;
}

.vc-fb-tab.is-active .vc-fb-tab-label {
  opacity: 1;
}

.vc-fb-tab-desc {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.4;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  font-family: var(--wp--preset--font-family--figtree) !important;
}

.vc-fb-tab.is-active .vc-fb-tab-desc {
  opacity: 1;
}

/* Images container */
.vc-fb-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Food photo — 3:4 portrait, right side */
.vc-fb-photo-wrap {
  position: relative;
  width: 65%;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.vc-fb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.vc-fb-photo.is-active {
  opacity: 1;
}

/* Packet — overlaps food photo from the left, vertically centred */
.vc-fb-packet-wrap {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  z-index: 2;
}

.vc-fb-packet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.vc-fb-packet.is-active {
  opacity: 1;
}

/* Packet wrap needs a height to position images within */
.vc-fb-packet-wrap {
  aspect-ratio: 3 / 4;
}

/* Mobile — stack tabs above images, single column */
@media (max-width: 768px) {
  .vc-fb-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .vc-fb-images {
    width: 100%;
  }

  .vc-fb-photo-wrap {
    width: 60%;
  }

  .vc-fb-packet-wrap {
    width: 42%;
  }
}
