body:has(.myd-products__wrapper) {
  background: #f8f6ef;
  color: #254638;
}
.myd-products__wrapper {
  --myd-color-surface-muted: #eeeee3;
  --myd-color-border: #deded0;
  width: min(100%, 68rem);
  max-width: none !important;
  margin-inline: auto;
}
.myd-products__wrapper .myd-product-list {
  gap: 0.75rem;
}
.myd-products__wrapper .myd-product-item {
  min-width: 0;
  border: 1px solid #deded0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: none;
}
.myd-products__wrapper .myd-product-item__desc:empty,
.myd-products__wrapper .myd-product-item__img:not(:has(img)),
.myd-products__wrapper .myd-product-item__divider {
  display: none;
}
.myd-products__wrapper .myd-product-list__title {
  color: #254638;
  padding: .65rem .85rem;
}
@media (max-width: 600px) {
  body:has(.myd-products__wrapper) .wp-site-blocks {
    --wp--style--root--padding-left: 12px;
    --wp--style--root--padding-right: 12px;
  }
  .myd-products__wrapper .myd-product-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .myd-products__wrapper .myd-content-filter__categories {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .myd-products__wrapper .myd-product-item__title {
    overflow-wrap: anywhere;
  }
}
body:has(.myd-products__wrapper) .wp-site-blocks > header,
body:has(.myd-products__wrapper) .wp-site-blocks > footer {
  display: none;
}
body:has(.myd-products__wrapper) main {
  padding-block: clamp(1rem, 4vw, 3rem) max(5rem, env(safe-area-inset-bottom));
}
body:has(.myd-products__wrapper) main h1 {
  color: #254638;
  font-size: clamp(1.65rem, 5vw, 3.25rem);
  line-height: 1.12;
}

/* Keep product cards in normal grid flow, including MyD's mobile layout. */
body:has(.myd-products__wrapper) { background: #fff; color: #202020; }
.myd-products__wrapper {
  --myd-color-border: #e7e7e7;
  --myd-color-price: #a92534;
  width: min(100%, 80rem);
  min-width: 0;
}
.myd-products__wrapper .myd-content-filter {
  border-block: 1px solid var(--myd-color-border);
  padding-block: .7rem;
}
.myd-products__wrapper .myd-product-list__title {
  background: transparent;
  border: 0;
  color: #202020;
  padding: 0;
  text-align: start;
  font-size: 1.25rem;
}
.myd-products__wrapper .myd-product-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 1rem;
}
.myd-products__wrapper .myd-product-list > .myd-product-item {
  position: relative;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding: clamp(.9rem, 2vw, 1.4rem);
  gap: 1rem;
  border: 1px solid var(--myd-color-border);
  border-radius: .55rem;
  box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
}
.myd-products__wrapper .myd-product-item__content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: .5rem;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
}
.myd-products__wrapper .myd-product-item__title { color: #202020; }
.myd-products__wrapper .myd-product-item__desc {
  display: block;
  max-height: none;
  overflow: visible;
  color: #606060;
  font-size: .925rem;
}
.myd-products__wrapper .myd-product-item__actions { margin-top: auto; }
.myd-products__wrapper .myd-product-item__img {
  flex: 0 0 35%;
  align-self: center;
  aspect-ratio: 4 / 3;
}
@media (max-width: 700px) {
  .myd-products__wrapper .myd-product-list { grid-template-columns: minmax(0, 1fr); }
  .myd-products__wrapper .myd-content-filter { flex-direction: column; align-items: stretch; }
  .myd-products__wrapper .myd-content-filter__categories { min-width: 0; }
  .myd-products__wrapper .myd-content-filter__search-wrapper { min-width: 0; width: 100%; max-width: none; box-sizing: border-box; }
  .myd-products__wrapper .myd-search-products { min-width: 0; }
}

body:has(.myd-products__wrapper) .vane-profile {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 3vw, 1.5rem);
  width: min(100%, 80rem);
  max-width: none;
  margin-inline: auto;
}
.vane-profile .vane-profile__image {
  flex: none;
  width: clamp(3.5rem, 15vw, 5rem);
  height: clamp(3.5rem, 15vw, 5rem);
  object-fit: cover;
  border-radius: 50%;
}
body:has(.myd-products__wrapper) .vane-profile .wp-block-post-title {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2.65rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.myd-products__wrapper .myd-content-filter__categories {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  overflow: visible;
}
.myd-products__wrapper .myd-content-filter__tag {
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(.myd-products__wrapper) .myd-float {
  box-sizing: border-box;
  inset-inline: 0;
  width: min(25rem, calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin: 0 auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  padding-inline: clamp(.75rem, 4vw, 1.25rem);
  transform: none;
  gap: .5rem;
}
body:has(.myd-products__wrapper) .myd-float__title {
  white-space: nowrap;
}
body:has(.myd-products__wrapper) .myd-float__title svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}

body:has(.myd-products__wrapper) .vane-profile {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  flex-wrap: wrap;
  min-height: 9rem;
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: .85rem;
  overflow: hidden;
  background: #254638;
}
.vane-profile__cover,
.vane-profile::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vane-profile__cover { object-fit: cover; }
.vane-profile::after {
  content: "";
  background: linear-gradient(90deg, rgb(18 30 23 / 92%), rgb(18 30 23 / 59%));
}
body:has(.myd-products__wrapper) .vane-profile .wp-block-post-title {
  flex: 1 1 8rem;
  color: #fff;
}
.vane-profile__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 1rem;
  border-radius: 2rem;
  background: #fff;
  color: #254638;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}
.myd-products__wrapper .myd-content-filter__categories {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  margin: 0;
  scrollbar-width: thin;
}
.myd-products__wrapper .myd-content-filter__tag {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .myd-products__wrapper .myd-content-filter__categories { width: 100%; box-sizing: border-box; }
  body:has(.myd-products__wrapper) .myd-cart {
    box-sizing: border-box;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 0;
  }
  body:has(.myd-products__wrapper) .myd-cart__content { min-height: 0; }
  body:has(.myd-products__wrapper) .myd-cart__footer {
    box-sizing: border-box;
    flex-shrink: 0;
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
  }
  body:has(.myd-products__wrapper) .myd-cart__button { box-sizing: border-box; }
}
.vane-profile__links { display: flex; flex-wrap: wrap; gap: .5rem; }
body:has(.myd-products__wrapper) #input-delivery-neighborhood:is(select) {
  box-sizing: border-box;
  min-height: 48px;
  padding: .65rem .85rem;
  background-color: #fff;
  color: #202020;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.vane-delivery-slot { width: 100%; margin-block: .75rem; }
.vane-delivery-slot[hidden] { display: none; }
.vane-delivery-slot select { min-height: 48px; padding-inline: .8rem; }
#vane-delivery-slot-status { margin: .15rem 0; font-size: .875rem; }
#vane-delivery-slot-status:empty { display: none; }
