/* =========================================================
   Surface Variables
========================================================= */

:root {
  --tdfw-section-bg: var(--tdfw-section-bg, #111111);
  --tdfw-section-inner-bg: var(--tdfw-section-inner-bg, #1E120E);
  --tdfw-section-card-bg: var(--tdfw-section-card-bg, #241713);
  --tdfw-section-overlay: transparent;
}

/* =========================================================
   TD Framework: Ingredient Template V2
   Handles Ingredient CPT page shell, hero, actions layout,
   editorial section wrappers, and responsive behavior.
========================================================= */

/* =========================================================
   Page Shell
========================================================= */

.tdi-page-shell {
  --tdi-shell-bg: var(
    --tdfw-section-bg,
    var(--tdfw-stock-tabs-container-bg, var(--tdfw-card-bg))
  );

  width: min(1200px, calc(100% - 40px));
  max-width: 1200px !important;
  margin: 55px auto 48px auto !important;

  background: var(--tdi-shell-bg);

  border-radius: var(
    --tdfw-stock-tabs-container-radius,
    calc(var(--tdfw-card-radius) + 10px)
  );

  padding: var(
    --tdfw-stock-tabs-container-padding,
    clamp(12px, 3vw, 24px)
  );

  box-shadow: var(
    --tdfw-stock-tabs-container-shadow,
    0 18px 45px rgba(0, 0, 0, 0.18)
  );

  overflow: hidden !important;
}

.elementor-element.tdi-page-shell,
.tdi-page-shell {
  width: min(1200px, calc(100% - 40px)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.tdi-page-shell.e-con,
.tdi-page-shell.e-con-boxed {
  --width: min(1200px, calc(100% - 40px)) !important;
  --max-width: 1200px !important;
}

.elementor-element.tdi-page-shell,
.tdi-page-shell,
.tdi-page-shell.e-con,
.tdi-page-shell.e-con-boxed {
  border-radius: calc(var(--tdfw-card-radius) + 10px) !important;
  overflow: hidden !important;
}

/* =========================================================
   Shared Ingredient Sections / Cards
========================================================= */

.tdi-section {
  margin-block: clamp(22px, 3vw, 34px);
}

.tdi-section-card {
  position: relative;

  background: var(--tdfw-section-bg, var(--tdfw-card-bg)) !important;

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-radius, var(--tdfw-card-radius)) !important;

  padding: var(--tdfw-card-padding) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.25) !important;

  overflow: hidden !important;
}

.tdi-actions-card {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;

  width: fit-content;
  max-width: 100%;

  margin: 0 auto;
  padding: 0.75rem;

  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;

  overflow: visible !important;
}

.tdi-section-card[data-border="gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  padding: 1px;

  background: linear-gradient(
    145deg,
    var(--tdfw-card-border-gradient-start),
    var(--tdfw-card-border-gradient-end)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: var(--tdfw-card-border-alpha);
  pointer-events: none;
}

/* =========================================================
   Sticky Ingredient Action Bar
========================================================= */

.tdfw-ingredient-action-bar {
  position: sticky;
  top: 84px;
  z-index: 50;

  width: fit-content;
  max-width: 100%;

  margin: 0 auto 1.5rem;
  padding: 0.75rem 0;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tdfw-ingredient-action-bar .tdfw-member-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;

  width: fit-content;
  max-width: 100%;
  padding: 0.75rem;

  background: var(--tdfw-section-inner-bg, var(--tdi-shell-bg, rgba(17, 17, 17, 0.82)));

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: 999px;

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 250, 240, 0.05);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   Hero Badge Row
========================================================= */

.tdi-hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;

  margin-top: -12px;
  margin-bottom: 1rem;
  padding: 0;

  text-align: center;
}

.tdi-badge-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tdi-badge-divider {
  width: 1px;
  height: 28px;
  flex-shrink: 0;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 250, 240, 0.22),
    transparent
  );
}

/* =========================================================
   Hero Layout
========================================================= */

.tdi-hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 5vw, 64px);
}

.tdi-hero-media {
  max-width: 260px;
}

.tdi-hero-cuisines {
  margin-bottom: 16px;
}

.tdi-hero-tags {
  margin-bottom: 30px;
}

.tdi-hero-tags .tdfw-ingredient-tag-badges {
  justify-content: flex-start !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   Hero Image
========================================================= */

.tdi-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: var(--tdfw-image-radius);

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black var(--tdfw-blend-start),
      black var(--tdfw-blend-end),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      black var(--tdfw-blend-start),
      black var(--tdfw-blend-end),
      transparent 100%
    );
  mask-composite: intersect;

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black var(--tdfw-blend-start),
      black var(--tdfw-blend-end),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      black var(--tdfw-blend-start),
      black var(--tdfw-blend-end),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
}

/* =========================================================
   Hero Title / Pronunciation
========================================================= */

.tdi-hero-title {
  margin: 0 !important;

  color: #FFFAF0 !important;

  font-family: "Romana", serif !important;
  font-size: clamp(2.0rem, 3.6vw, 3.35rem) !important;
  font-weight: 400 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.03em;
  text-transform: none !important;
}

.tdi-hero-pronunciation {
  display: block;

  margin-top: 8px;
  margin-left: 0;

  color: rgba(255, 250, 240, 0.68);

  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;

  vertical-align: baseline;
}

/* =========================================================
   Scientific Name
========================================================= */

.tdi-hero-scientific {
  margin-top: 14px;

  color: rgba(255, 250, 240, 0.78);

  font-size: 0.92rem;
  line-height: 1.4;

  opacity: 0.72;
}

.td-scientific-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.td-scientific-name-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;

  background-color: #A14F45;

  mask-image: url('../icons/tag.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-image: url('../icons/tag.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.td-scientific-name-text {
  display: inline-block;
}

/* =========================================================
   Hero Divider
========================================================= */

.tdi-hero-divider {
  width: 76px;
  height: 3px;

  margin: 18px 0;

  background: #A14F45;
  border-radius: 999px;
}

/* =========================================================
   Hero Supporting Text
========================================================= */

.tdi-hero-alt-names,
.tdi-hero-description {
  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.tdi-hero-alt-names {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;

  margin-bottom: 18px;
  color: rgba(255, 250, 240, 0.72);
}

.tdi-hero-alt-label,
.tdi-hero-alt-names strong {
  margin-right: 0;

  color: #A14F45;
  opacity: 0.72;

  font-weight: 300;
  letter-spacing: 0.01em;
}

.tdi-hero-alt-values {
  display: inline;
}

.tdi-hero-alt-names a {
  color: #C86E66;

  font-weight: 600;
  text-decoration: none;
}

.tdi-hero-alt-names a:hover {
  color: #FFFAF0;
}

.tdi-hero-description {
  max-width: 78ch;
  color: rgba(255, 250, 240, 0.88);
}

/* =========================================================
   Hero Relationships
========================================================= */

.tdi-hero-relationships {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 22px;
}

/* =========================================================
   Ingredient Actions Shortcode Card
========================================================= */

.tdi-actions-divider {
  display: inline-block;

  width: 1px;
  height: 30px;

  margin: 0 4px;

  background: #A14F45;
  opacity: 0.8;
}

.tdi-actions-card .tdfw-button,
.tdi-actions-card .tdfw-shopping-vendor-select {
  min-height: 44px !important;
}

/* =========================================================
   Ingredient Shared Section Wrapper
========================================================= */

.tdfw-ingredient-section {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);

  background: var(--tdfw-section-bg, var(--tdfw-stock-tabs-container-bg, var(--tdfw-card-bg, #111111)));

  border: 1px solid var(--tdfw-card-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-radius, var(--tdfw-card-radius, 28px));
  box-shadow: var(--tdfw-section-shadow, var(--tdfw-card-shadow, 0 18px 45px rgba(0, 0, 0, 0.32)));

  overflow: hidden;
  color: var(--tdfw-card-text, #FFFAF0);
  font-family: "Poppins", sans-serif;
}

.tdfw-ingredient-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background: var(--tdfw-section-overlay, transparent);

  opacity: 0.65;
  pointer-events: none;
}

.tdfw-ingredient-section:has(.tdfw-ingredient-flavor-texture) > .tdfw-ingredient-section-eyebrow,
.tdfw-ingredient-section:has(.tdfw-ingredient-prep-use) > .tdfw-ingredient-section-eyebrow,
.tdfw-ingredient-section:has(.tdfw-ingredient-storage) > .tdfw-ingredient-section-eyebrow,
.tdfw-ingredient-section:has(.tdfw-ingredient-prep-handling) > .tdfw-ingredient-section-eyebrow {
  display: none;
}

.tdfw-ingredient-section-eyebrow {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.95rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-ingredient-section-subtitle {
  position: relative;
  z-index: 1;

  max-width: 46rem;
  margin: -0.75rem 0 1.5rem;

  color: rgba(255, 250, 240, 0.72);

  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
}

.tdfw-ingredient-section-body {
  position: relative;
  z-index: 1;
  max-width: 100%;

  color: var(--tdfw-card-text, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.tdfw-ingredient-section-body > *:first-child {
  margin-top: 0;
}

.tdfw-ingredient-section-body > *:last-child {
  margin-bottom: 0;
}

.tdfw-ingredient-section-body p {
  margin: 0 0 1.2rem;
  font-weight: 400;
}

.tdfw-ingredient-section-body strong,
.tdfw-ingredient-section-body b {
  font-weight: 600;
}

/* =========================================================
   Ingredient About
========================================================= */

.tdfw-ingredient-about {
  width: 100%;
  margin: 2rem 0;
}

.tdfw-ingredient-about__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: 0.5rem 0.95rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-ingredient-about__content {
  max-width: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--tdfw-card-text, #FFFAF0);
}

.tdfw-ingredient-about__content > *:first-child {
  margin-top: 0;
}

.tdfw-ingredient-about__content > *:last-child {
  margin-bottom: 0;
}

.tdfw-ingredient-about__content p {
  margin: 0 0 1.2rem;
  font-weight: 400;
}

.tdfw-ingredient-about__content strong,
.tdfw-ingredient-about__content b {
  font-weight: 600;
}

.tdfw-ingredient-about__content a {
  color: var(--tdfw-bright-copper, #C86E66);
  text-decoration-color: rgba(200, 110, 102, 0.45);
  text-underline-offset: 0.18em;
}

.tdfw-ingredient-about__content a:hover {
  color: var(--tdfw-whipped-cream, #FFFAF0);
  text-decoration-color: var(--tdfw-copper, #A14F45);
}

/* =========================================================
   Ingredient Flavor & Texture
========================================================= */

.tdfw-ingredient-flavor-texture {
  width: 100%;
}

.tdfw-ingredient-flavor-texture__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.tdfw-ingredient-flavor-texture__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);

  background: var(--tdfw-section-inner-bg, rgba(255, 250, 240, 0.025));

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-inner-radius, calc(var(--tdfw-card-radius, 28px) - 8px));

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.28);

  overflow: hidden;
}

.tdfw-ingredient-flavor-texture__heading {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin: 0 0 1.35rem;
  padding: 0.5rem 0.95rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-ingredient-flavor-texture__description {
  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}

.tdfw-ingredient-flavor-texture__description p {
  margin: 0 0 1rem;
}

.tdfw-ingredient-flavor-texture__description > *:last-child {
  margin-bottom: 0;
}

.tdfw-flavor-icon-grid,
.tdfw-texture-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.tdfw-flavor-icon-item,
.tdfw-texture-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tdfw-flavor-icon,
.tdfw-texture-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.45rem;
}

.tdfw-flavor-label,
.tdfw-texture-label {
  color: var(--tdfw-copper, #A14F45);

  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tdfw-flavor-intensity {
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  margin-top: 0.45rem;
}

.tdfw-flavor-intensity-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.18);
}

.tdfw-flavor-intensity-dot.is-active {
  background: var(--tdfw-copper, #A14F45);
}
/* =========================================================
   Flavor / Texture → Prep & Use Section Spacing
========================================================= */

.tdfw-ingredient-flavor-texture {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.tdfw-ingredient-prep-use {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
/* =========================================================
   Ingredient Prep & Use
========================================================= */

.tdfw-ingredient-prep-use {
  width: 100%;
}

.tdfw-ingredient-prep-use__intro {
  margin-bottom: 1.75rem;
}

.tdfw-ingredient-prep-use__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.tdfw-ingredient-prep-use__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);

  background: var(--tdfw-section-inner-bg, rgba(255, 250, 240, 0.025));

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-inner-radius, calc(var(--tdfw-card-radius, 28px) - 8px));

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.28);

  overflow: visible;
}

.tdfw-ingredient-prep-use__pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin: 0 0 1.35rem;
  padding: 0.5rem 0.95rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-ingredient-prep-use__content {
  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}

.tdfw-ingredient-prep-use__content p {
  margin: 0 0 1rem;
}

.tdfw-ingredient-prep-use__content > *:last-child {
  margin-bottom: 0;
}

.tdfw-ingredient-prep-use__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.tdfw-ingredient-prep-use__badge-wrap {
  position: relative;
  display: inline-flex;
}

.tdfw-ingredient-prep-use__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 0.48rem 0.78rem;

  border-radius: 999px;

  background: rgba(161, 79, 69, 0.12);
  border: 1px solid rgba(161, 79, 69, 0.28);

  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.tdfw-ingredient-prep-use__badge:hover {
  background: rgba(161, 79, 69, 0.22);
  border-color: rgba(161, 79, 69, 0.5);
  transform: translateY(-1px);
}

.tdfw-ingredient-prep-use__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;

  width: max-content;
  max-width: 260px;
  padding: 0.65rem 0.75rem;

  transform: translateX(-50%) translateY(4px);

  border-radius: 12px;
  background: rgba(17, 17, 17, 0.96);
  border: 1px solid rgba(255, 250, 240, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);

  color: rgba(255, 250, 240, 0.88);

  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.tdfw-ingredient-prep-use__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;

  width: 10px;
  height: 10px;

  transform: translateX(-50%) rotate(45deg);
  margin-top: -5px;

  background: rgba(17, 17, 17, 0.96);
  border-right: 1px solid rgba(255, 250, 240, 0.12);
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.tdfw-ingredient-prep-use__badge-wrap:hover .tdfw-ingredient-prep-use__tooltip,
.tdfw-ingredient-prep-use__badge-wrap:focus-within .tdfw-ingredient-prep-use__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Ingredient Storage
========================================================= */

.tdfw-ingredient-storage {
  width: 100%;
}

.tdfw-ingredient-storage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.tdfw-ingredient-storage__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);

  background: var(--tdfw-section-inner-bg, rgba(255, 250, 240, 0.025));

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-inner-radius, calc(var(--tdfw-card-radius, 28px) - 8px));

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.28);

  overflow: visible;
}

.tdfw-ingredient-storage__section + .tdfw-ingredient-storage__section {
  margin-top: 1.75rem;
}

.tdfw-ingredient-storage__pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin: 0 0 1.15rem;
  padding: 0.5rem 0.95rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-ingredient-storage__content {
  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}

.tdfw-ingredient-storage__content p {
  margin: 0 0 1rem;
}

.tdfw-ingredient-storage__content > *:last-child {
  margin-bottom: 0;
}

.tdfw-ingredient-storage__freezer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 1.1rem;
}

.tdfw-ingredient-storage__freezer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border-radius: 999px;
}

.tdfw-ingredient-storage__freezer-mask {
  display: block;
  width: 52px;
  height: 52px;

  background-color: var(--tdfw-copper, #A14F45);

  mask-image: var(--tdfw-freezer-icon-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-image: var(--tdfw-freezer-icon-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.tdfw-ingredient-storage__freezer-icon.is-yes .tdfw-ingredient-storage__freezer-mask {
  background-color: #39FF14;
  filter:
    drop-shadow(0 0 10px rgba(57, 255, 20, 0.35))
    drop-shadow(0 0 18px rgba(57, 255, 20, 0.15));
}

.tdfw-ingredient-storage__freezer-icon.is-no .tdfw-ingredient-storage__freezer-mask {
  background-color: #FF3131;
  filter:
    drop-shadow(0 0 10px rgba(255, 49, 49, 0.35))
    drop-shadow(0 0 18px rgba(255, 49, 49, 0.15));
}

.tdfw-ingredient-storage__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tdfw-ingredient-storage__badge-wrap {
  position: relative;
  display: inline-flex;
}

.tdfw-ingredient-storage__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 0.48rem 0.78rem;

  border-radius: 999px;

  background: rgba(161, 79, 69, 0.12);
  border: 1px solid rgba(161, 79, 69, 0.28);

  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.tdfw-ingredient-storage__badge:hover {
  background: rgba(161, 79, 69, 0.22);
  border-color: rgba(161, 79, 69, 0.5);
  transform: translateY(-1px);
}

.tdfw-ingredient-storage__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;

  width: max-content;
  max-width: 260px;
  padding: 0.65rem 0.75rem;

  transform: translateX(-50%) translateY(4px);

  border-radius: 12px;
  background: rgba(17, 17, 17, 0.96);
  border: 1px solid rgba(255, 250, 240, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);

  color: rgba(255, 250, 240, 0.88);

  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;

  text-transform: none;
  text-align: left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.tdfw-ingredient-storage__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;

  width: 10px;
  height: 10px;

  transform: translateX(-50%) rotate(45deg);
  margin-top: -5px;

  background: rgba(17, 17, 17, 0.96);
  border-right: 1px solid rgba(255, 250, 240, 0.12);
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.tdfw-ingredient-storage__badge-wrap:hover .tdfw-ingredient-storage__tooltip,
.tdfw-ingredient-storage__badge-wrap:focus-within .tdfw-ingredient-storage__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* =========================================================
   Ingredient Prep & Handling
========================================================= */

.tdfw-ingredient-section:has(.tdfw-ingredient-prep-handling) > .tdfw-ingredient-section-eyebrow {
  display: none;
}

.tdfw-ingredient-prep-handling {
  width: 100%;
}

.tdfw-ingredient-prep-handling__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tdfw-ingredient-prep-handling__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);

  background: var(--tdfw-section-card-bg, rgba(255, 250, 240, 0.025));

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-card-radius, calc(var(--tdfw-card-radius, 28px) - 10px));

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.24);

  overflow: hidden;
}

.tdfw-ingredient-prep-handling__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;

  background: linear-gradient(
    to bottom,
    var(--tdfw-copper, #A14F45),
    rgba(200, 110, 102, 0.45)
  );

  opacity: 0.85;
}

.tdfw-ingredient-prep-handling__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin-bottom: 0.9rem;
  padding: 0.42rem 0.72rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tdfw-ingredient-prep-handling__content {
  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}

.tdfw-ingredient-prep-handling__content p {
  margin: 0 0 0.85rem;
}

.tdfw-ingredient-prep-handling__content > *:last-child {
  margin-bottom: 0;
}
/* =========================================================
   Ingredient Editorial
========================================================= */

.tdfw-ingredient-editorial {
  width: 100%;
}

.tdfw-ingredient-editorial__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tdfw-ingredient-editorial__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);

  background: var(--tdfw-section-card-bg, rgba(255, 250, 240, 0.025));

  border: 1px solid var(--tdfw-section-border, rgba(255, 250, 240, 0.08));
  border-radius: var(--tdfw-section-card-radius, calc(var(--tdfw-card-radius, 28px) - 10px));

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.24);

  overflow: hidden;
}

.tdfw-ingredient-editorial__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;

  background: linear-gradient(
    to bottom,
    var(--tdfw-copper, #A14F45),
    rgba(200, 110, 102, 0.45)
  );

  opacity: 0.85;
}

.tdfw-ingredient-editorial__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin-bottom: 0.9rem;
  padding: 0.42rem 0.72rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tdfw-ingredient-editorial__content {
  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}

.tdfw-ingredient-editorial__content p {
  margin: 0 0 0.85rem;
}

.tdfw-ingredient-editorial__content > *:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {

  .tdi-page-shell {
    width: calc(100% - 24px);
    margin: 20px auto 32px auto !important;
  }

  .tdi-hero-grid {
    grid-template-columns: 1fr;
  }

  .tdi-hero-media {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {

  .tdi-hero-tags {
    margin-bottom: 22px;
  }

  .tdi-hero-title {
    font-size: 2.65rem !important;
  }

  .tdi-hero-badge-row {
    gap: 0.85rem;
    margin-top: -6px;
  }

  .tdi-badge-divider {
    display: none;
  }

  .tdfw-ingredient-section {
    margin: 1.5rem 0;
    padding: 1.35rem;
    border-radius: var(--tdfw-card-radius-mobile, 22px);
  }

  .tdfw-ingredient-section-body,
  .tdfw-ingredient-about__content {
    font-size: 0.95rem;
  }

  .tdfw-ingredient-section-subtitle {
    font-size: 0.92rem;
  }

  .tdfw-ingredient-flavor-texture__grid,
  .tdfw-ingredient-prep-use__grid,
  .tdfw-ingredient-storage__grid {
    grid-template-columns: 1fr;
  }

  .tdfw-ingredient-flavor-texture__card,
  .tdfw-ingredient-prep-use__card,
  .tdfw-ingredient-storage__card {
    padding: 1.15rem;
    border-radius: var(--tdfw-section-inner-radius, 18px);
  }

  .tdfw-ingredient-prep-use__content {
    font-size: 0.95rem;
  }


  .tdfw-ingredient-prep-handling__bar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.1rem;
    border-radius: var(--tdfw-section-inner-radius, 18px);
  }

  .tdfw-ingredient-prep-handling__content {
    font-size: 0.95rem;
  }

  .tdfw-flavor-icon-grid,
  .tdfw-texture-icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }

  .tdfw-ingredient-action-bar {
    top: 72px;
  }

  .tdfw-ingredient-action-bar .tdfw-member-buttons {
    width: 100%;
    border-radius: 24px;
    justify-content: center;
  }

  .tdfw-ingredient-action-bar .tdfw-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .tdfw-shopping-button-wrap {
    flex-direction: column;
    width: 100%;
  }

  .tdi-actions-card {
    width: fit-content;
    max-width: 100%;
  }

  .tdi-actions-divider {
    display: none;
  }

  .tdfw-shopping-vendor-select,
  .tdfw-shopping-button,
  .tdi-actions-card .tdfw-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tdfw-shopping-vendor-select {
    text-align: center !important;
    text-align-last: center !important;
  }
}

/* =========================================================
   Member Gate
========================================================= */

.tdi-member-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.tdi-member-gate-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tdi-member-gate-label {
  color: #FFFAF0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdi-member-gate-text {
  color: rgba(255, 250, 240, 0.68);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.45;
}

.tdi-member-gate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: #A14F45;
  border: 1px solid #A14F45;
  color: #FFFAF0 !important;
  text-decoration: none !important;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.tdi-member-gate-button:hover {
  background: #C86E66;
  border-color: #C86E66;
  color: #FFFAF0 !important;
}


/* =========================================================
   Ingredient Prep & Use — Full Width Culinary Use Fix
========================================================= */

.tdfw-ingredient-prep-use {
  display: block;
  width: 100%;
  clear: both;
}

.tdfw-ingredient-prep-use__intro.tdfw-ingredient-prep-use__card,
.tdfw-ingredient-prep-use__card--full {
  width: 100%;
  margin-bottom: clamp(1.15rem, 2.5vw, 1.75rem);
}

.tdfw-ingredient-prep-use__grid {
  width: 100%;
  clear: both;
}

.tdfw-ingredient-prep-use__card--full .tdfw-ingredient-prep-use__content {
  max-width: 100%;
}
/* =========================================================
   Ingredient Homemade
========================================================= */

.tdfw-ingredient-homemade {
  width: 100%;
}

.tdfw-ingredient-homemade__pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin: 0 0 1.15rem;
  padding: 0.5rem 0.95rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-ingredient-homemade__intro {
  max-width: 48rem;
  margin-bottom: 1.5rem;

  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.72;
}

.tdfw-ingredient-homemade__intro p {
  margin: 0;
}

.tdfw-ingredient-homemade__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 1.35rem;
  justify-content: start;
}

.tdfw-ingredient-homemade__card {
  width: 100%;
  max-width: 220px;

  background: var(--tdfw-section-card-bg, rgba(17, 17, 17, 0.72));
  border: 1px solid rgba(255, 250, 240, 0.06);
  border-radius: var(--tdfw-section-card-radius, 22px);

  padding: 1rem;

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.28);

  overflow: hidden;
}

.tdfw-ingredient-homemade__card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;

  color: inherit !important;
  text-decoration: none !important;
}

.tdfw-ingredient-homemade__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tdfw-section-inner-bg, rgba(255, 250, 240, 0.04));
}

.tdfw-ingredient-homemade__image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.tdfw-ingredient-homemade__card-body {
  padding: 0;
  text-align: center;
}

.tdfw-ingredient-homemade__title {
  margin: 0;

  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
}

/* =========================================================
   Ingredient Nutrition — TastyDaddy Label Style
========================================================= */

.tdfw-ingredient-nutrition {
  width: 100%;
  margin: 1.25rem 0;
}

.tdfw-nutrition-label {
  display: block;
  width: 100%;
  box-sizing: border-box;

  padding: 1rem 1.15rem;

  background: var(--tdfw-section-inner-bg, rgba(17, 17, 17, 0.96));

  border: 1px solid rgba(255, 250, 240, 0.10);
  border-radius: var(--tdfw-section-inner-radius, 18px);

  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.28);

  color: rgba(255, 250, 240, 0.92);

  overflow: hidden;
}

.tdfw-nutrition-label strong {
  color: #FFFAF0;
  font-weight: 600;
}

.tdfw-nutrition-label-main {
  display: block;
}

.tdfw-nutrition-label-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  margin: 0 0 0.72rem;
  padding: 0.45rem 0.85rem;

  border-radius: 999px;
  background: var(--tdfw-copper, #A14F45);
  color: var(--tdfw-whipped-cream, #FFFAF0);

  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-nutrition-label-serving,
.tdfw-nutrition-label-body {
  display: block;

  font-family: "Poppins", sans-serif;
}

.tdfw-nutrition-label-serving {
  margin-bottom: 0.45rem;

  color: rgba(255, 250, 240, 0.72);

  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
}

.tdfw-nutrition-label-body,
.tdfw-nutrition-label-extra {
  color: rgba(255, 250, 240, 0.84);

  font-family: "Poppins", sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
}

.tdfw-nutrition-label-separator {
  opacity: 0.55;
}

.tdfw-nutrition-label-details {
  margin-top: 0.7rem;
  padding-top: 0.7rem;

  border-top: 1px solid rgba(255, 250, 240, 0.10);
}

.tdfw-nutrition-label-details summary {
  display: inline-flex;
  align-items: center;

  cursor: pointer;

  color: var(--tdfw-copper, #A14F45);

  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdfw-nutrition-label-details summary:hover {
  color: var(--tdfw-bright-copper, #C86E66);
}

.tdfw-nutrition-label-extra {
  margin-top: 0.65rem;
}

.tdfw-nutrition-label-notes {
  margin-top: 0.7rem;
  padding-top: 0.7rem;

  border-top: 1px solid rgba(255, 250, 240, 0.08);

  color: rgba(255, 250, 240, 0.68);

  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  line-height: 1.5;
}

.tdfw-nutrition-label-notes p {
  margin: 0 0 0.4rem;
}

.tdfw-nutrition-label-notes p:last-child {
  margin-bottom: 0;
}

.tdfw-nutrition-label-footnote {
  margin-top: 0.7rem;
  padding-top: 0.65rem;

  color: rgba(255, 250, 240, 0.52);

  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  line-height: 1.4;
}

@media (max-width: 640px) {

  .tdfw-nutrition-label {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
  }

  .tdfw-nutrition-label-serving,
  .tdfw-nutrition-label-body,
  .tdfw-nutrition-label-extra {
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .tdfw-ingredient-prep-use__intro.tdfw-ingredient-prep-use__card,
  .tdfw-ingredient-prep-use__card--full {
    margin-bottom: 1.15rem;
  }
}
