.mtw {
  --mtw-accent: var(--mtw-manual-accent, var(--wp--preset--color--primary, var(--e-global-color-primary, var(--ast-global-color-0, currentColor))));
  color: inherit;
  font: inherit;
}

.mtw-button,
.mtw-remove {
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--wp--custom--border--radius, 999px);
  box-shadow: none;
  color: var(--mtw-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font: inherit;
  font-size: .875em;
  font-weight: 600;
  line-height: 1.2;
  padding: .72em 1.15em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.mtw-button:hover,
.mtw-remove:hover {
  background: color-mix(in srgb, currentColor 9%, transparent);
  transform: translateY(-1px);
}

.mtw-button:focus-visible,
.mtw-remove:focus-visible,
.mtw-count-link:focus-visible,
.mtw-view:focus-visible,
.mtw-shop-link:focus-visible {
  outline: 2px solid var(--mtw-accent);
  outline-offset: 3px;
}

.mtw-button:disabled,
.mtw-remove:disabled { cursor: wait; opacity: .6; }

.mtw-heart { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; flex: none; }
.is-saved .mtw-heart { fill: currentColor; }

.woocommerce ul.products li.product .mtw-button { margin-top: .75em; }
.single-product .summary .mtw-button { margin-top: 1em; }

.mtw-count-link { color: inherit; display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.mtw-count { font-size: .8em; min-width: 1.5em; text-align: center; }

.header-actions .mtw-header-link, .mm-actions .mtw-header-link { text-decoration: none; }
.header-actions .mtw-header-link .mtw-heart, .mm-actions .mtw-header-link .mtw-heart { width: 24px; height: 24px; }
.header-actions .mtw-header-link:focus-visible, .mm-actions .mtw-header-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.header-actions .mtw-header-count, .mm-actions .mtw-header-count { pointer-events: none; }
body.wp-child-theme-mooiste-meisie-concept-child .header-actions .mm-wishlist-link,
body.wp-child-theme-mooiste-meisie-concept-child .mm-actions .mm-wishlist-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  color: #251b19;
}
body.wp-child-theme-mooiste-meisie-concept-child .header-actions .mm-wishlist-link .mm-cart-count,
body.wp-child-theme-mooiste-meisie-concept-child .mm-actions .mm-wishlist-link .mm-cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
}

.mtw-wishlist { width: 100%; }
.mtw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.mtw-card { min-width: 0; background: var(--wp--preset--color--base, transparent); border: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-radius: var(--wp--custom--border--radius, 12px); overflow: hidden; }
.mtw-card-image { display: block; aspect-ratio: 1; overflow: hidden; background: color-mix(in srgb, currentColor 4%, transparent); }
.mtw-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mtw-card-image:hover img { transform: scale(1.035); }
.mtw-card-body { padding: 1rem; }
.mtw-card-title { font: inherit; font-size: 1.05em; line-height: 1.35; margin: 0 0 .5rem; }
.mtw-card-title a { color: inherit; text-decoration: none; }
.mtw-card-price { margin-bottom: 1rem; }
.mtw-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.mtw-view, .mtw-shop-link { color: var(--mtw-accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.mtw-remove { border: 0; padding: .25em 0; border-radius: 0; font-size: .85em; text-decoration: underline; text-underline-offset: .2em; }
.mtw-empty { border: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-radius: var(--wp--custom--border--radius, 12px); padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.mtw-empty p { margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  .mtw-button, .mtw-remove, .mtw-card-image img { transition: none; }
}

/* The public Mooiste Meisie child theme uses ivory cards, rounded corners and serif product names. */
body.wp-child-theme-mooiste-meisie-concept-child .mtw {
  --mtw-accent: var(--mtw-manual-accent, #704a4b);
}
body.wp-child-theme-mooiste-meisie-concept-child .mtw-card {
  background: #fffcf9;
  border-color: #e7ded8;
  border-radius: 14px;
}
body.wp-child-theme-mooiste-meisie-concept-child .mtw-card-title {
  color: #251b19;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 400;
}
body.wp-child-theme-mooiste-meisie-concept-child .mtw-card-price {
  color: #251b19;
}
body.wp-child-theme-mooiste-meisie-concept-child .mtw-view {
  color: var(--mtw-accent);
}
body.wp-child-theme-mooiste-meisie-concept-child.woocommerce ul.products li.product {
  position: relative;
}
body.wp-child-theme-mooiste-meisie-concept-child.woocommerce ul.products li.product .mtw-button {
  position: absolute;
  z-index: 3;
  top: 1.35rem;
  right: 1.35rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: var(--mtw-accent);
  background: #fffaf6;
  border: 1px solid #e7ded8;
  border-radius: 50%;
}
body.wp-child-theme-mooiste-meisie-concept-child.woocommerce ul.products li.product .mtw-button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.wp-child-theme-mooiste-meisie-concept-child.woocommerce ul.products li.product .mtw-button:hover {
  background: #f2e5df;
}
