/* Per-template layouts measured against the original 1200px artboards. */
.tc-product-card {
  --tc-theme-accent: #9ba976;
  --tc-theme-ink: #6c8247;
  --tc-theme-surface: #f8f8f8;
  --tc-theme-muted: #f0f0f0;
  padding-bottom: calc(120 * var(--tc-d));
}
.tc-card-template-honey, .tc-card-template-comb {
  --tc-theme-accent: #6a584c;
  --tc-theme-ink: #784f3d;
}
.tc-product-card .tc-card-slide img { object-fit: contain; }
.tc-card-rating {
  text-decoration: none;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--tc-d));
}
.tc-card-rating:hover { box-shadow: 0 2px 12px #0002; }
.tc-card-rating:focus-visible { outline: 2px solid var(--tc-theme-ink); outline-offset: 4px; }
.tc-card-rating-empty > span { color: #b5b5b5; }
.tc-source-section { background: var(--tc-theme-surface) !important; }
.tc-source-section .tc-source-heading h2 { margin-bottom: calc(20 * var(--tc-d)); }
.tc-source-section .tc-content-lead { max-width: none; }
.tc-source-section .tc-content-body h3 { margin-bottom: calc(16 * var(--tc-d)); }
.tc-source-section .tc-content-body p:last-child { margin-bottom: 0; }
.tc-source-section .tc-design-icon-circle { background: var(--tc-theme-accent); }
.tc-source-section .tc-design-icon svg { width: 100%; height: 100%; display: block; }
.tc-source-section .tc-content-button { background: var(--tc-theme-accent); }
.tc-source-section a:not(.tc-content-button) { color: var(--tc-theme-ink); }
.tc-source-no-icons .tc-design-icon { display: none !important; }

/* Image pairings have the photograph above the caption. */
.tc-source-section.tc-section-pairing,
.tc-source-section.tc-section-production,
.tc-source-section.tc-section-apiary,
.tc-source-section.tc-section-faq {
  padding: 0;
  margin: calc(50 * var(--tc-d)) 0 calc(20 * var(--tc-d));
  background: transparent !important;
  border-radius: 0;
}
.tc-source-section.tc-section-pairing .tc-source-heading h2,
.tc-source-section.tc-section-production .tc-source-heading h2,
.tc-source-section.tc-section-faq .tc-source-heading h2 { margin-bottom: calc(20 * var(--tc-d)); }
.tc-section-pairing .tc-content-grid { gap: calc(26 * var(--tc-d)); }
.tc-section-pairing .tc-content-grid > article {
  padding: calc(10 * var(--tc-d));
  background: #f0f0f0;
  border-radius: calc(12 * var(--tc-d));
}
.tc-section-pairing .tc-pairing-photo { width: 100%; margin-bottom: calc(18 * var(--tc-d)); }
.tc-section-pairing .tc-pairing-photo img {
  width: 100%; height: calc(210 * var(--tc-d)); object-fit: cover;
  border-radius: calc(8 * var(--tc-d)); display: block;
}
.tc-card-template-tea .tc-section-pairing .tc-pairing-photo img { height: calc(280 * var(--tc-d)); }
.tc-section-pairing .tc-content-grid h3 { margin-bottom: calc(8 * var(--tc-d)); }

/* Tea production: introduction, three facts, then the full-width field photo. */
.tc-production-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(10 * var(--tc-d)); }
.tc-production-grid article { min-width: 0; }
.tc-card-template-tea .tc-production-grid article {
  padding: calc(20 * var(--tc-d)); background: #f8f8f8;
  border-radius: calc(8 * var(--tc-d));
}
.tc-production-photo { margin: calc(22 * var(--tc-d)) 0 0; position: relative; }
.tc-production-photo > img { display: block; width: 100%; height: calc(460 * var(--tc-d)); object-fit: cover; border-radius: calc(20 * var(--tc-d)); }
.tc-production-photo figcaption {
  position: absolute; left: calc(20 * var(--tc-d)); bottom: calc(20 * var(--tc-d));
  padding: calc(20 * var(--tc-d)); width: calc(410 * var(--tc-d)); max-width: 90%;
  border-radius: calc(8 * var(--tc-d)); background: #fff;
}
.tc-production-photo figcaption p { font-size: calc(18 * var(--tc-d)); line-height: 1.3; }
.tc-production-photo figcaption h3 { margin-bottom: calc(12 * var(--tc-d)) !important; }
.tc-production-step { display: flex; align-items: center; gap: calc(12 * var(--tc-d)); margin-bottom: calc(20 * var(--tc-d)); }
.tc-production-step span {
  width: calc(40 * var(--tc-d)); height: calc(40 * var(--tc-d)); flex: 0 0 calc(40 * var(--tc-d));
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: var(--tc-theme-accent); font-size: calc(18 * var(--tc-d));
}
.tc-production-step i { flex: 1; height: 1px; background: var(--tc-theme-accent); }
.tc-production-grid article:last-child .tc-production-step i { visibility: hidden; }
.tc-card-template-honey .tc-production-grid,
.tc-card-template-comb .tc-production-grid { gap: calc(28 * var(--tc-d)); }

/* The apiary is a landscape followed by three cards and a strip of locations. */
.tc-apiary-photo { margin: 0 0 calc(20 * var(--tc-d)); }
.tc-apiary-photo img { width: 100%; height: calc(380 * var(--tc-d)); object-fit: cover; display: block; border-radius: calc(12 * var(--tc-d)); }
.tc-apiary-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(20 * var(--tc-d)); }
.tc-apiary-card { min-width: 0; background: #f7f3ed; padding: calc(20 * var(--tc-d)); border-radius: calc(10 * var(--tc-d)); }
.tc-apiary-card-1 { background: #784f3d; color: #fff; }
.tc-apiary-card .tc-design-icon {
  background: #fff; border-radius: calc(8 * var(--tc-d)); width: calc(50 * var(--tc-d)); height: calc(50 * var(--tc-d));
  padding: calc(10 * var(--tc-d)); color: #986937; margin-bottom: calc(16 * var(--tc-d));
}
.tc-apiary-card h3 { margin-bottom: calc(14 * var(--tc-d)) !important; }
.tc-apiary-card-1 a {
  --tc-link-color: #784f3d;
  display: inline-flex; align-items: center; gap: calc(10 * var(--tc-d));
  padding: calc(15 * var(--tc-d)) calc(32 * var(--tc-d)); border-radius: calc(58 * var(--tc-d));
  font-weight: 600; background: #fff; color: var(--tc-link-color) !important; text-decoration: none;
}
.tc-apiary-card-1 a:after { content: '↗'; font-size: calc(22 * var(--tc-d)); font-weight: 400; line-height: 1; }
.tc-apiary-locations { margin-top: calc(20 * var(--tc-d)); padding: calc(20 * var(--tc-d)); border-radius: calc(12 * var(--tc-d)); background: #f7f3ed; }
.tc-apiary-locations > h3 { margin-bottom: calc(28 * var(--tc-d)) !important; }
.tc-apiary-locations-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.tc-apiary-locations-grid > div { display: flex; gap: calc(16 * var(--tc-d)); padding-right: calc(24 * var(--tc-d)); }
.tc-apiary-locations-grid > div + div { padding-left: calc(50 * var(--tc-d)); border-left: 1px solid #ccc; }
.tc-apiary-locations-grid h4 { margin: 0 0 calc(8 * var(--tc-d)); font-size: calc(16 * var(--tc-d)); font-weight: 600; line-height: 1.3; }
.tc-apiary-locations-grid p { font-size: calc(14 * var(--tc-d)); line-height: 1.4; }
.tc-apiary-locations-grid .tc-design-icon { width: calc(20 * var(--tc-d)); height: calc(24 * var(--tc-d)); flex: 0 0 calc(20 * var(--tc-d)); color: #784f3d; }

/* Documents use a horizontal heading and action row. */
.tc-source-section.tc-section-documents { background: #f0f0f0 !important; }
.tc-section-documents .tc-source-heading { display: flex; align-items: center; gap: calc(20 * var(--tc-d)); margin-bottom: calc(20 * var(--tc-d)); }
.tc-section-documents .tc-source-heading h2 { margin: 0; }
.tc-section-documents .tc-source-heading .tc-design-icon-circle { margin: 0; width: calc(50 * var(--tc-d)); height: calc(50 * var(--tc-d)); padding: calc(13 * var(--tc-d)); }
.tc-documents-row { display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--tc-d)); }
.tc-documents-row > div:first-child { max-width: 56%; }
.tc-documents-actions { display: flex; flex-shrink: 0; gap: calc(10 * var(--tc-d)); }
.tc-documents-actions a { display: inline-flex; align-items: center; justify-content: center; padding: calc(16 * var(--tc-d)) calc(28 * var(--tc-d)); min-height: calc(54 * var(--tc-d)); border-radius: calc(30 * var(--tc-d)); border: 1px solid var(--tc-theme-accent); text-decoration: none; }
.tc-documents-actions a:first-child { background: var(--tc-theme-accent); color: #fff !important; }
.tc-documents-actions a + a { background: transparent !important; color: var(--tc-theme-accent) !important; }

/* Contraindications retain their distinct tea and honey palettes. */
.tc-source-section.tc-section-contraindications .tc-content-grid { grid-template-columns: repeat(var(--tc-tile-count,3),minmax(0,1fr)); gap: calc(20 * var(--tc-d)); }
.tc-card-template-tea .tc-source-section.tc-section-contraindications { background: #f0f0f0 !important; }
.tc-card-template-tea .tc-section-contraindications .tc-design-icon-circle { background: #f8f8f8; padding: 0; margin-bottom: calc(18 * var(--tc-d)); }
.tc-card-template-honey .tc-source-section.tc-section-contraindications,
.tc-card-template-comb .tc-source-section.tc-section-contraindications { padding: calc(20 * var(--tc-d)) 0; background: transparent !important; }
.tc-card-template-honey .tc-source-section.tc-section-contraindications .tc-content-grid,
.tc-card-template-comb .tc-source-section.tc-section-contraindications .tc-content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(24 * var(--tc-d)) calc(20 * var(--tc-d)); }
.tc-card-template-honey .tc-section-contraindications article,
.tc-card-template-comb .tc-section-contraindications article { padding: calc(24 * var(--tc-d)); background: #f8f8f8; }
.tc-card-template-honey .tc-section-contraindications article:nth-child(-n+2),
.tc-card-template-comb .tc-section-contraindications article:nth-child(-n+2) { background: #fbf5ef; }
.tc-card-template-honey .tc-section-contraindications .tc-design-icon,
.tc-card-template-comb .tc-section-contraindications .tc-design-icon { width: calc(30 * var(--tc-d)); height: calc(30 * var(--tc-d)); margin-bottom: calc(20 * var(--tc-d)); padding: 0; background: transparent; border-radius: 0; }
.tc-source-note { display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--tc-d)); margin-top: calc(24 * var(--tc-d)); padding: calc(24 * var(--tc-d)); border-radius: calc(12 * var(--tc-d)); background: #f8f8f8; }
.tc-source-note p { margin: 0; }
.tc-source-note a { margin-left: auto; flex-shrink: 0; text-decoration: none; font-weight: 600; }
.tc-section-occasion { padding: calc(35 * var(--tc-d)) calc(100 * var(--tc-d)); background: transparent !important; text-align: center; }
.tc-section-occasion .tc-content-body { font-size: calc(32 * var(--tc-d)); font-weight: 500; line-height: 1.1; }
.tc-product-card .tc-section-occasion .tc-content-body > .tc-occasion-heading { margin: 0; font: inherit; color: inherit; }
.tc-section-storage .tc-design-icon-circle { background: var(--tc-theme-accent); }
.tc-card-template-honey .tc-section-storage .tc-content-grid,
.tc-card-template-comb .tc-section-storage .tc-content-grid { grid-template-columns: 1fr 1.1fr 1.02fr 1.18fr; }
.tc-section-storage article > p:last-child:has(strong) { color: var(--tc-theme-accent); margin-top: calc(20 * var(--tc-d)); font-weight: 600; }

/* Delivery is a full-width banner over two separate columns. */
.tc-delivery-banner { display: flex; gap: calc(20 * var(--tc-d)); padding: calc(20 * var(--tc-d)); border-radius: calc(12 * var(--tc-d)); background: #f0f0f0; margin-bottom: calc(20 * var(--tc-d)); }
.tc-delivery-banner .tc-design-icon-circle { margin: calc(4 * var(--tc-d)) 0 0; width: calc(50 * var(--tc-d)); height: calc(50 * var(--tc-d)); }
.tc-delivery-banner h3 { margin-bottom: calc(20 * var(--tc-d)) !important; }
.tc-delivery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(20 * var(--tc-d)); align-items: stretch; }
.tc-delivery-grid > article { border-radius: calc(12 * var(--tc-d)); background: #fff; padding: calc(20 * var(--tc-d)); min-width: 0; }
.tc-delivery-card-heading { display: flex; align-items: flex-start; gap: calc(20 * var(--tc-d)); margin-bottom: calc(20 * var(--tc-d)); }
.tc-delivery-card-heading .tc-design-icon-circle { margin: 0; width: calc(50 * var(--tc-d)); height: calc(50 * var(--tc-d)); flex: 0 0 calc(50 * var(--tc-d)); }
.tc-delivery-card-heading h3 { margin-bottom: calc(10 * var(--tc-d)) !important; }
.tc-delivery-card-body h4 { font-size: calc(14 * var(--tc-d)); font-weight: 600; margin: calc(22 * var(--tc-d)) 0 calc(24 * var(--tc-d)); }
.tc-delivery-card-body ul { padding-left: calc(20 * var(--tc-d)); margin: 0 0 calc(22 * var(--tc-d)); }
.tc-delivery-card-body li { font-size: inherit; line-height: 1.5; }
.tc-delivery-card-body a { display: inline-block; margin-top: calc(14 * var(--tc-d)); }
.tc-delivery-logos { display: flex; align-items: center; flex-wrap: wrap; gap: calc(20 * var(--tc-d)); margin-top: calc(20 * var(--tc-d)); }
.tc-delivery-logos img { max-width: calc(125 * var(--tc-d)); height: calc(36 * var(--tc-d)); width: auto; object-fit: contain; border-radius: 0; }
@media(min-width:768px) {
  .tc-delivery-grid-ivan > article { display: flex; flex-direction: column; }
  .tc-delivery-grid-ivan > article > .tc-delivery-logos { margin-top: auto; }
}

/* FAQ keeps the source's compact two-column accordion. */
.tc-section-faq .tc-content-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(4 * var(--tc-d)) calc(34 * var(--tc-d)); margin: calc(25 * var(--tc-d)) calc(36 * var(--tc-d)) 0; align-items: start; }
.tc-section-faq .tc-content-grid details { padding: calc(14 * var(--tc-d)) calc(25 * var(--tc-d)); border: 0; border-radius: calc(8 * var(--tc-d)); background: #f8f8f8; }
.tc-section-faq .tc-content-grid summary { font-size: calc(16 * var(--tc-d)); font-weight: 400; line-height: 1.3; padding-right: calc(30 * var(--tc-d)); }
.tc-section-faq .tc-content-grid summary:after { font-size: calc(28 * var(--tc-d)); font-weight: 300; color: var(--tc-theme-accent); top: calc(-7 * var(--tc-d)); right: calc(-5 * var(--tc-d)); }
.tc-section-faq .tc-content-grid details > div { font-size: calc(14 * var(--tc-d)); padding-top: calc(14 * var(--tc-d)); }
.tc-card-template-honey .tc-card-specs-grid,
.tc-card-template-comb .tc-card-specs-grid { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; }
.tc-card-template-honey .tc-spec-help summary,
.tc-card-template-comb .tc-spec-help summary { background: #ffbd3b; color: #fff; }

/* WooCommerce provides the reviews, ratings, moderation and submission form. */
.tc-reviews-heading { display: flex; align-items: center; gap: calc(20 * var(--tc-d)); margin-bottom: calc(20 * var(--tc-d)); flex-wrap: wrap; }
.tc-reviews-heading h2 { margin: 0 !important; }
.tc-reviews-total { font-size: calc(16 * var(--tc-d)); color: #888; }
.tc-review-write { margin-left: auto; }
.tc-card-real-reviews #reviews #comments > h2 { display: none; }
.tc-card-real-reviews #reviews #comments ol.commentlist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(20 * var(--tc-d)); padding: 0; margin: 0; }
.tc-card-real-reviews #reviews #comments ol.commentlist > li { padding: calc(20 * var(--tc-d)); margin: 0; border: 0; border-radius: calc(12 * var(--tc-d)); background: #fff; box-shadow: 0 8px 24px #00000004; list-style: none; }
.tc-card-real-reviews #reviews #comments ol.commentlist li img.avatar { position: static; float: left; width: calc(50 * var(--tc-d)); height: calc(50 * var(--tc-d)); padding: 0; border: 0; border-radius: 50%; margin-right: calc(20 * var(--tc-d)); }
.tc-card-real-reviews #reviews #comments ol.commentlist li .comment-text { margin: 0; border: 0; padding: 0; }
.tc-card-real-reviews #reviews #comments .comment-text .meta { font-size: calc(22 * var(--tc-d)) !important; line-height: 1.2; margin: calc(10 * var(--tc-d)) 0 calc(28 * var(--tc-d)) !important; }
.tc-card-real-reviews #reviews #comments .comment-text .meta time,
.tc-card-real-reviews #reviews #comments .woocommerce-review__dash { display: none; }
.tc-card-real-reviews #reviews #comments .woocommerce-review__author { font-weight: 500; }
.tc-card-real-reviews #reviews #comments .description { font-size: calc(14 * var(--tc-d)); line-height: 1.5; clear: both; }
.tc-card-real-reviews #reviews #comments .star-rating { color: #ffa400; font-size: calc(16 * var(--tc-d)); margin: calc(18 * var(--tc-d)) 0 0 calc(12 * var(--tc-d)); }
.tc-card-real-reviews #reviews #comments .tc-review-product-photo { display: block; margin-top: calc(20 * var(--tc-d)); width: calc(86 * var(--tc-d)); }
.tc-review-product-photo img { width: 100%; height: calc(60 * var(--tc-d)); object-fit: contain; border-radius: calc(6 * var(--tc-d)); }
.tc-reviews-more { display: block; margin: calc(40 * var(--tc-d)) auto 0; border: 1px solid var(--tc-theme-accent); color: var(--tc-theme-accent); background: transparent; border-radius: calc(40 * var(--tc-d)); padding: calc(14 * var(--tc-d)) calc(40 * var(--tc-d)); font: inherit; cursor: pointer; }
.tc-card-real-reviews [hidden] { display: none !important; }
.tc-review-dialog { width: min(640px,92vw); max-height: 88dvh; padding: 32px; border: 0; border-radius: 18px; font: 400 16px/1.5 TildaSans,Arial,sans-serif; background: #fff; color: #242326; overflow: auto; }
.tc-review-dialog:not([open]) { display: none; }
.tc-review-dialog::backdrop { background: #0008; backdrop-filter: blur(3px); }
.tc-review-dialog .tc-review-close { border: 0; width: 36px; height: 36px; border-radius: 50%; background: #f8f8f8; float: right; font-size: 28px; line-height: 1; cursor: pointer; }
.tc-review-dialog input:not([type=checkbox]):not([type=submit]), .tc-review-dialog textarea { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 12px; font: inherit; }
.tc-review-dialog #comment { height: 150px; }
.tc-review-dialog p { margin: 16px 0; }
.tc-review-dialog input[type=submit] { background: var(--tc-theme-accent,#6a584c); color: #fff; border: 0; border-radius: 40px; padding: 12px 24px; cursor: pointer; }
.tc-review-dialog label { display: block; }
.tc-review-dialog .comment-form-cookies-consent label { display: inline; }

/* Recommendations use the actual WooCommerce product image and current price. */
.tc-card-recommendations { position: relative; padding: calc(50 * var(--tc-d)) 0; background: transparent !important; }
.tc-card-template-honey .tc-card-recommendations:before,
.tc-card-template-comb .tc-card-recommendations:before { content: ''; position: absolute; inset: 0 calc((100vw - 100%)/-2); background: #fbf5ef; z-index: -1; pointer-events: none; }
/* Final recommendations meet the footer in every product template. */
.tc-product-card:has(> .tc-card-recommendations) { padding-bottom: 0; }
.tc-product-card > .tc-card-recommendations { margin-bottom: 0; }
.tc-card-recommendations .tc-card-related-grid { grid-template-columns: repeat(var(--tc-related-cols,4),minmax(0,1fr)); gap: calc(10 * var(--tc-d)); }
.tc-card-related-grid article { padding: calc(20 * var(--tc-d)); }
.tc-card-related-grid img { height: auto; width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.tc-card-related-grid div:where(.tc-category-name,.tc-related-title) { font-size: calc(22 * var(--tc-d)); margin: calc(20 * var(--tc-d)) 0 calc(10 * var(--tc-d)); }
.tc-card-related-grid .tc-related-price { margin-top: auto; padding-top: calc(20 * var(--tc-d)); border-top: 1px solid #ddd; text-align: right; font-size: calc(32 * var(--tc-d)); font-weight: 700; }
/* Keep WooCommerce's .button defaults from replacing recommendation controls. */
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--tc-d));
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(48 * var(--tc-d));
  margin: calc(12 * var(--tc-d)) 0 0;
  padding: calc(12 * var(--tc-d)) calc(18 * var(--tc-d));
  border: 0;
  border-radius: calc(30 * var(--tc-d));
  background: var(--tc-theme-accent);
  color: #fff;
  font: 500 calc(14 * var(--tc-d))/1.3 TildaSans,Arial,sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button:hover,
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button:focus-visible {
  background: var(--tc-theme-ink);
  color: #fff;
}
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button:focus-visible {
  outline: 2px solid var(--tc-theme-ink);
  outline-offset: 3px;
}
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button .tc-card-cart-icon {
  display: block;
  flex: 0 0 auto;
  width: calc(20 * var(--tc-d));
  height: calc(20 * var(--tc-d));
  margin: 0;
  aspect-ratio: auto;
}
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button.added:after { display: none; }
.tc-product-card .tc-card-related-grid :is(a,button).tc-content-button.loading { opacity: .7; }

/* A viewport-fixed purchase bar, revealed only after the complete first screen. */
.tc-product-card .tc-card-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18 * var(--tc-d));
  width: calc(100vw - 36 * var(--tc-d));
  max-width: none;
  margin: 0;
  padding: calc(12 * var(--tc-d)) calc(20 * var(--tc-d));
  border-radius: calc(12 * var(--tc-d));
  z-index: 900;
}
.tc-card-sticky[hidden] { display: none !important; }
.tc-card-sticky strong { max-width: none; font-size: calc(14 * var(--tc-d)); }
.tc-card-sticky .tc-sticky-price { font-size: calc(22 * var(--tc-d)); }
.tc-card-sticky .tc-content-button { min-width: calc(116 * var(--tc-d)); background: var(--tc-theme-accent); }
body:has(dialog[open]) .tc-card-sticky { visibility: hidden; }

@media(max-width:1199px) {
  .tc-apiary-locations-grid > div + div { padding-left: 20px; }
  .tc-documents-row { flex-wrap: wrap; }
  .tc-documents-row > div:first-child { max-width: 100%; }
}
@media(max-width:767px) {
  .tc-source-section.tc-section-pairing,.tc-source-section.tc-section-production,.tc-source-section.tc-section-apiary,.tc-source-section.tc-section-faq { margin: 32px 0; }
  .tc-source-section .tc-content-body { font-size: 16px; }
  .tc-source-section .tc-content-grid,
  .tc-source-section.tc-section-contraindications .tc-content-grid,
  .tc-card-template-honey .tc-source-section.tc-section-contraindications .tc-content-grid,
  .tc-card-template-comb .tc-source-section.tc-section-contraindications .tc-content-grid,
  .tc-card-template-honey .tc-section-storage .tc-content-grid,
  .tc-card-template-comb .tc-section-storage .tc-content-grid,
  .tc-production-grid,.tc-apiary-cards,.tc-apiary-locations-grid,.tc-delivery-grid { grid-template-columns: 1fr; gap: 16px; }
  .tc-section-pairing .tc-pairing-photo img,.tc-card-template-tea .tc-section-pairing .tc-pairing-photo img { height: 230px; }
  .tc-source-section .tc-content-body h3 { font-size: 22px; line-height: 1.2; }
  .tc-production-photo > img { height: 330px; }
  .tc-production-photo figcaption { max-width: calc(100% - 24px); width: auto; left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .tc-production-photo figcaption p { font-size: 16px; }
  .tc-apiary-photo img { height: 240px; }
  .tc-apiary-locations-grid > div + div { padding: 16px 0 0; border-left: 0; border-top: 1px solid #ddd; }
  .tc-apiary-locations-grid > div { padding-right: 0; }
  .tc-apiary-locations-grid h4 { font-size: 17px; }
  .tc-apiary-locations-grid p { font-size: 16px; }
  .tc-source-section.tc-section-documents { padding: 24px 20px; }
  .tc-section-documents .tc-source-heading { gap: 16px; }
  .tc-section-documents .tc-source-heading h2 { font-size: 26px; }
  .tc-section-documents .tc-source-heading .tc-design-icon-circle { flex-basis: 44px; width: 44px; height: 44px; padding: 11px; }
  .tc-documents-actions { flex-wrap: wrap; flex-shrink: 1; width: 100%; gap: 10px; }
  .tc-documents-actions a { padding: 12px 18px; min-height: 48px; font-size: 15px; }
  .tc-source-note { display: block; padding: 20px; }
  .tc-source-note a { display: inline-block; margin: 16px 0 0; }
  .tc-section-occasion { padding: 16px 0; }
  .tc-section-occasion .tc-content-body { font-size: 24px; }
  .tc-delivery-banner,.tc-delivery-card-heading { gap: 14px; }
  .tc-delivery-banner { padding: 20px; }
  .tc-delivery-banner .tc-design-icon-circle,.tc-delivery-card-heading .tc-design-icon-circle { width: 40px; height: 40px; flex-basis: 40px; padding: 9px; }
  .tc-delivery-logos img { max-width: 120px; height: 34px; }
  .tc-delivery-card-body h4 { font-size: 16px; }
  .tc-section-faq .tc-content-grid { margin: 20px 0 0; gap: 6px; }
  .tc-section-faq .tc-content-grid details { padding: 18px; }
  .tc-section-faq .tc-content-grid summary { font-size: 17px; line-height: 1.4; }
  .tc-section-faq .tc-content-grid details > div { font-size: 16px; }
  .tc-card-template-honey .tc-card-specs-grid,.tc-card-template-comb .tc-card-specs-grid { grid-template-columns: 1fr; }
  .tc-card-real-reviews #reviews #comments ol.commentlist { grid-template-columns: 1fr; }
  .tc-card-real-reviews #reviews #comments .comment-text .meta { font-size: 19px !important; }
  .tc-card-real-reviews #reviews #comments .star-rating { font-size: 14px; }
  .tc-reviews-total { font-size: 15px; }
  .tc-review-write { margin-left: 0; }
  .tc-review-dialog { padding: 22px; }
  .tc-card-recommendations .tc-card-related-grid { grid-template-columns: 1fr 1fr; }
  .tc-card-related-grid article { padding: 12px; }
  .tc-card-related-grid div:where(.tc-category-name,.tc-related-title) { font-size: 16px; }
  .tc-card-related-grid .tc-related-price { font-size: 22px; }
  .tc-product-card .tc-card-related-grid :is(a,button).tc-content-button { min-height: 44px; font-size: 13px; padding: 10px 8px; gap: 6px; }
  .tc-product-card .tc-card-sticky { left: 12px; transform: none; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 12px; gap: 10px; }
  .tc-card-sticky > div { display: block; min-width: 0; }
  .tc-card-sticky strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.3; }
  .tc-card-sticky .tc-sticky-price { font-size: 20px; }
  .tc-card-sticky .tc-content-button { min-width: 76px; font-size: 14px; padding: 10px 18px; }
}
.tc-product-card .tc-section-pairing .tc-pairing-photo img { height: calc(210 * var(--tc-d)); }
.tc-product-card.tc-card-template-tea .tc-section-pairing .tc-pairing-photo img { height: calc(280 * var(--tc-d)); }
.tc-section-documents .tc-documents-actions a { padding: calc(16 * var(--tc-d)) calc(28 * var(--tc-d)); min-height: calc(54 * var(--tc-d)); }
.tc-card-recommendation-intro { margin: 0 0 calc(40 * var(--tc-d)); font-size: calc(16 * var(--tc-d)); line-height: 1.5; }
.tc-related-caption { color: var(--tc-theme-accent); font-size: calc(16 * var(--tc-d)); line-height: 1.3; font-weight: 600; margin-bottom: calc(18 * var(--tc-d)); }
.tc-related-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: calc(20 * var(--tc-d)); border-top: 1px solid #ddd; }
.tc-related-bottom .tc-related-price { margin: 0; padding: 0; border: 0; }
.tc-related-weight { font-size: calc(14 * var(--tc-d)); }
.tc-card-related-grid .tc-card-cart-icon { width: calc(20 * var(--tc-d)); height: calc(20 * var(--tc-d)); aspect-ratio: auto; }
@media(max-width:767px) {
  .tc-product-card .tc-section-pairing .tc-pairing-photo img,.tc-product-card.tc-card-template-tea .tc-section-pairing .tc-pairing-photo img { height: 230px; }
  .tc-section-documents .tc-documents-actions a { min-height: 48px; padding: 12px 18px; }
  .tc-card-recommendation-intro { font-size: 16px; margin-bottom: 24px; }
  .tc-related-caption { font-size: 14px; }
}

body.tc-purchase-bar-visible .tc-floating-store { bottom: calc(var(--tc-purchase-bar-height,90px) + 32px); }
body:has(.tc-review-dialog[open]) .tc-floating-store { visibility: hidden; }
.tc-review-dialog #reply-title { display: block; font-size: 26px; font-weight: 500; line-height: 1.2; margin: 0 40px 20px 0; }
.tc-review-dialog #respond input#submit { background: var(--tc-theme-accent,#6a584c) !important; color: #fff !important; border: 0; border-radius: 40px; padding: 14px 28px; font: 400 16px/1.3 TildaSans,Arial,sans-serif; }
.tc-review-dialog p.stars a { color: #ffa400 !important; }
.tc-apiary-card { line-height: 1.3; min-height: calc(180 * var(--tc-d)); }
.tc-apiary-card-1 a { line-height: 1.3; }
.tc-card-real-reviews #reviews #comments ol.commentlist:before,
.tc-card-real-reviews #reviews #comments ol.commentlist:after { content: none !important; display: none !important; }
.tc-card-template-comb .tc-card-specs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tc-card-template-tea .tc-section-storage article > p:last-child:has(strong) { color: var(--tc-theme-ink); }
.tc-card-template-honey .tc-source-section .tc-content-body a:not(.tc-content-button),
.tc-card-template-comb .tc-source-section .tc-content-body a:not(.tc-content-button) { color: var(--tc-theme-ink); }
.tc-card-template-honey .tc-card-sticky .tc-content-button,
.tc-card-template-comb .tc-card-sticky .tc-content-button { background: var(--tc-theme-ink); }
body.tc-purchase-bar-visible .tc-floating-store { bottom: calc(var(--tc-purchase-bar-height,90px) + var(--tc-purchase-bar-bottom,18px) + 16px); }
@media(max-width:767px) { .tc-card-template-comb .tc-card-specs-grid { grid-template-columns: 1fr; } }
.tc-source-section.tc-section-documents .tc-documents-actions a + a { color: var(--tc-theme-accent) !important; }
.tc-section-documents .tc-source-heading .tc-design-icon-circle { color: #fff; }

/* Icon slots keep their template dimensions, independently of image dimensions. */
.tc-product-card .tc-design-icon { flex-shrink: 0; }
.tc-product-card .tc-design-icon > :is(img,svg) {
  display: block; width: 100%; height: 100%; min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%; flex-shrink: 0;
  object-fit: contain; object-position: center; border-radius: 0;
}
.tc-product-card .tc-sense-icon > img,
.tc-product-card .tc-card-features article > img {
  display: block; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%;
  flex-shrink: 0; object-fit: contain; object-position: center; border-radius: 0;
}

/* The same live cart control as category previews, at the source card scale. */
.tc-card-related-grid .tc-preview-cart { --tc-preview-height:calc(48 * var(--tc-d)); --tc-preview-font:calc(14 * var(--tc-d)); }
.tc-product-card .tc-card-related-grid .tc-preview-add { margin:0; }
@media(max-width:600px) { .tc-card-related-grid .tc-preview-cart { --tc-preview-height:44px; --tc-preview-font:13px; } }
.tc-card-related-grid .tc-preview-quantity { border-radius:calc(30 * var(--tc-d)); }
.tc-card-related-grid .tc-preview-quantity button { border-radius:inherit; }

/* Four tea advantages keep two even rows on tablets. Three-card products retain their layout. */
@media (min-width:768px) and (max-width:1199px) {
  .tc-card-template-tea .tc-card-features:has(> article:nth-child(4):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tc-card-template-tea .tc-card-features:has(> article:nth-child(4):last-child) > article:nth-child(3) { border-left:0; padding-left:0; }
}
