.tmd-home { background: var(--tmd-ivory); }
.tmd-home .tmd-bound {
  width: min(100% - 2 * var(--tmd-inset), var(--tmd-max));
  margin-inline: auto;
}

.tmd-home .tmd-hero { background: #f2ebe4; }
.tmd-home .tmd-hero-layout,
.tmd-home .tmd-story {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(15px, 3vw, 36px);
}
.tmd-home .tmd-hero-layout { min-height: clamp(330px, 30vw, 445px); }
.tmd-home .tmd-hero-copy { padding-block: clamp(25px, 4vw, 50px); align-items: flex-start; }
.tmd-home .tmd-kicker .elementor-heading-title {
  font: 600 .79rem/1.4 var(--tmd-body);
  letter-spacing: .22em;
  color: var(--tmd-button-hover);
}
.tmd-home .tmd-hero .tmd-title .elementor-heading-title {
  font-size: clamp(2.55rem, 4.7vw, 4.6rem);
  letter-spacing: -.035em;
  line-height: .97;
}
.tmd-home .tmd-hero-copy .elementor-widget-text-editor { max-width: 36ch; color: var(--tmd-muted); font-size: clamp(1rem, 1.45vw, 1.15rem); }
.tmd-home .tmd-hero-image img { display: block; width: 100%; height: clamp(285px, 30vw, 420px); object-fit: contain; }
.tmd-home .tmd-hero-figure { position: relative; }
.tmd-home .tmd-caption .elementor-heading-title { font-size: 1.03rem; font-style: italic; text-align: center; }

.tmd-home .tmd-reassurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 14px 0;
  border-block: 1px solid var(--tmd-gold);
  padding-block: 8px;
}
.tmd-home .tmd-reassurance-item:not(:first-child) { border-inline-start: 1px solid var(--tmd-border); }
.tmd-home .tmd-reassurance .elementor-heading-title { font: 500 .9rem/1.3 var(--tmd-body); }
.tmd-home .tmd-reassurance .elementor-icon { color: var(--tmd-button-hover); font-size: 24px; }

.tmd-home .tmd-category-section { padding-block: 18px 20px; }
.tmd-home .tmd-heading .elementor-heading-title { font-size: clamp(2.15rem, 4.1vw, 3.65rem); letter-spacing: -.024em; }
.tmd-home .tmd-centered .elementor-heading-title { text-align: center; }
.tmd-home .tmd-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.75vw, 22px);
}
.tmd-home .tmd-category-tile { position: relative; background: var(--tmd-sand); }
.tmd-home .tmd-category-tile .elementor-widget-heading,
.tmd-home .tmd-category-tile .elementor-widget-container { position: static; }
.tmd-home .tmd-category-tile img,
.tmd-product-card .tmd-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eee5dc;
}
.tmd-home .tmd-category-tile .elementor-heading-title {
  font: 600 .75rem/1.25 var(--tmd-body);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: center;
}
.tmd-home .tmd-category-tile a { display: grid; place-items: center; min-height: 44px; }
.tmd-home .tmd-category-tile a::after { position: absolute; inset: 0; content: ''; }
.tmd-home .tmd-category-tile a:hover { text-decoration: underline; }

.tmd-home .tmd-featured { padding-block: 0 22px; }
.tmd-home .tmd-featured-copy { color: var(--tmd-muted); }
.tmd-home .tmd-curated-grid .elementor-loop-container { column-gap: clamp(10px, 1.75vw, 22px); row-gap: 16px; }
.tmd-product-card { min-width: 0; height: 100%; background: var(--tmd-ivory); border: 1px solid var(--tmd-border); text-align: center; }
.tmd-product-card .tmd-card-body { padding: 8px 10px 10px; flex: 1 0 auto; }
.tmd-product-card .tmd-card-title .elementor-heading-title { font-size: clamp(1.15rem, 1.65vw, 1.38rem); line-height: 1.08; overflow-wrap: anywhere; }
.tmd-product-card .elementor-widget-woocommerce-product-price .price {
  margin: 0;
  color: var(--tmd-button-hover);
  font: 600 1rem/1.4 var(--tmd-body);
}
.tmd-product-card .tmd-card-action { margin-top: auto; }
.tmd-product-card .tmd-card-action .elementor-button { width: 100%; padding-inline: 8px; }

.tmd-home .tmd-story { padding-block: 0 20px; }
.tmd-home .tmd-story-image img { display: block; width: 100%; height: clamp(130px, 14vw, 200px); object-fit: cover; object-position: center 28%; }
.tmd-home .tmd-story-copy { border-inline-start: 1px solid var(--tmd-gold); padding-inline-start: clamp(13px, 2vw, 25px); }
.tmd-home .tmd-story .elementor-heading-title { font-style: italic; }
.tmd-home .tmd-story-copy .elementor-widget-text-editor, .tmd-home .tmd-custom .elementor-widget-text-editor { color: var(--tmd-muted); }

.tmd-home .tmd-reviews { padding-block: 14px 20px; background: #f3ece5; text-align: center; }
.tmd-home .tmd-review-note { color: var(--tmd-muted); font-size: .82rem; }
.tmd-home .tmd-carousel { padding-inline: 32px; }
.tmd-home .tmd-carousel .swiper-slide {
  padding: 16px 12px;
  height: auto;
  background: var(--tmd-ivory);
  border: 1px solid var(--tmd-border);
}
.tmd-home .tmd-carousel .elementor-testimonial__content::before {
  content: '“';
  display: block;
  color: var(--tmd-gold);
  font: 600 2.5rem/.64 var(--tmd-display);
}
.tmd-home .tmd-carousel .elementor-testimonial__text { color: var(--tmd-ink); font: italic 600 1.23rem/1.1 var(--tmd-display); }
.tmd-home .tmd-carousel .elementor-testimonial__name { color: var(--tmd-muted); font: 600 .63rem/1.25 var(--tmd-body); letter-spacing: .14em; }
.tmd-home .tmd-carousel .elementor-swiper-button { color: var(--tmd-button-hover); }
.tmd-home .tmd-carousel :is(.swiper-button-lock, .swiper-pagination-lock) { display: none; }
@media (min-width: 1025px) {
  .tmd-home .tmd-carousel .swiper-wrapper:has(> .swiper-slide:nth-child(3):last-child) ~ :is(.elementor-swiper-button, .swiper-pagination) { display: none; }
}

.tmd-home .tmd-custom { padding-block: 12px; background: var(--tmd-sand); }
.tmd-home .tmd-custom-layout { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(10px, 2vw, 28px); align-items: center; }
.tmd-home .tmd-custom .elementor-heading-title { font-size: clamp(1.9rem, 3.15vw, 2.75rem); font-style: italic; }

@media (max-width: 1024px) {
  .tmd-home .tmd-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tmd-home .tmd-hero-layout, .tmd-home .tmd-story, .tmd-home .tmd-custom-layout { grid-template-columns: minmax(0, 1fr); }
  .tmd-home .tmd-hero-copy { padding-bottom: 2px; }
  .tmd-home .tmd-hero-image img { height: clamp(185px, 65vw, 305px); }
  .tmd-home .tmd-hero-figure { padding-bottom: 14px; }
  .tmd-home .tmd-reassurance .elementor-heading-title { font-size: .71rem; text-align: center; }
  .tmd-home .tmd-reassurance .tmd-reassurance-item { flex-direction: column; gap: 4px; }
  .tmd-home .tmd-story-copy { padding-bottom: 4px; }
  .tmd-home .tmd-custom { padding-block: 18px; }
}
@media (max-width: 355px) {
  .tmd-product-card .tmd-card-title .elementor-heading-title { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tmd-home .tmd-carousel .swiper-wrapper { transition-duration: 0ms !important; }
}
.tmd-home .tmd-featured-intro { width: auto; }
.tmd-home .tmd-caption-status { text-align: center; font-size: .8rem; color: var(--tmd-muted); }
.tmd-home .tmd-featured .elementor-widget-shortcode:has(.elementor-shortcode:empty),
.tmd-home .tmd-caption-status:has(.elementor-shortcode:empty) { display: none; }
/* Soften the original product photograph into the hero without changing the piece. */
.tmd-home .tmd-hero-image img {
  filter: brightness(1.28) saturate(1.08) sepia(.08);
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 50%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 60% at 50% 50%, #000 48%, transparent 100%);
}
.tmd-home .tmd-hero-figure .tmd-caption { display:none; }
