/* RC34 — wishlist, visually separate from the theme's header colors. */
.md-wishlist-header{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;min-width:42px;height:42px;padding:0 8px;border:1px solid rgba(130,145,164,.32);border-radius:12px;background:#fff;color:#be185d!important;text-decoration:none;box-sizing:border-box;isolation:isolate;transition:background .2s,transform .2s}
.md-wishlist-header:hover{background:#fff1f7;transform:translateY(-1px)}
.md-wishlist-header .md-svg-icon{width:21px;height:21px;display:grid;place-items:center}.md-wishlist-header .md-svg-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.md-wishlist-count{position:absolute;inset-inline-end:-7px;inset-block-start:-7px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:50px;background:var(--md-primary,#df3f9c);color:#fff;font:700 10px/1 sans-serif;border:2px solid #fff;box-sizing:border-box}
.md-header-actions .md-wishlist-header{width:42px}
.md-topbar .md-wishlist-header{width:31px;height:31px;min-width:31px;padding:5px;border-color:rgba(255,255,255,.23);background:rgba(255,255,255,.12);color:#fff!important;border-radius:9px}
.md-topbar .md-wishlist-header .md-svg-icon{width:18px;height:18px}
.md-mobile-quick-actions .md-wishlist-header{display:inline-flex;min-height:42px;gap:8px;width:auto;padding:8px 11px;color:var(--md-heading,#111827)!important}
.md-mobile-quick-actions .md-wishlist-header .md-wishlist-count{position:static;border:0}
.md21-actions .md-wishlist-header{width:42px;height:42px;min-width:42px}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{position:relative}
.woocommerce ul.products li.product>.md-wishlist-toggle-loop,.woocommerce-page ul.products li.product>.md-wishlist-toggle-loop{position:absolute;inset-block-start:20px;inset-inline-end:20px;z-index:9}
.md-wishlist-toggle{display:grid!important;place-items:center!important;flex:0 0 auto;width:41px!important;height:41px!important;min-height:41px!important;margin:0!important;padding:9px!important;border:1px solid #d9dee9!important;border-radius:13px!important;background:rgba(255,255,255,.98)!important;color:#be185d!important;box-shadow:0 5px 18px rgba(15,23,42,.20),0 1px 5px rgba(15,23,42,.1);cursor:pointer;transition:transform .2s,border-color .2s,background .2s;box-sizing:border-box;line-height:1}
.md-wishlist-toggle .md-svg-icon{width:22px;height:22px;display:block!important;margin:0!important}.md-wishlist-toggle svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.05;stroke-linecap:round;stroke-linejoin:round}
.md-wishlist-toggle:hover{transform:scale(1.06);border-color:#be185d!important;background:#fff!important}
.md-wishlist-toggle.is-favorite{background:#fff0f6!important;border-color:#f6a8c8!important;color:#d61d72!important}
.md-wishlist-toggle.is-favorite svg{fill:currentColor;stroke:currentColor}
.md-wishlist-toggle:focus-visible{outline:3px solid #db2777;outline-offset:3px}
.md-wishlist-toggle[disabled]{opacity:.65;cursor:wait}
.md-single-wishlist{display:flex;align-items:center;gap:11px;margin:14px 0 20px;color:#64748b;font-size:13px;font-weight:700}
.md-single-wishlist .md-wishlist-toggle-single{width:45px!important;height:45px!important}
.md-wishlist-page{width:100%;min-width:0}
.md-wishlist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:18px 0 32px}
.md-wishlist-loading,.md-wishlist-empty{grid-column:1/-1;padding:32px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:#64748b;background:#fff}
.md-wishlist-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--md-border,#e2e8f0);border-radius:16px;padding:12px;box-shadow:0 8px 25px rgba(15,23,42,.06)}
.md-wishlist-card-media{position:relative;border-radius:12px;overflow:hidden;background:#f8fafc;aspect-ratio:1/1}.md-wishlist-card-media>a{display:block;width:100%;height:100%}.md-wishlist-card-media img{width:100%;height:100%;object-fit:contain;display:block}.md-wishlist-card-media .md-wishlist-toggle{position:absolute;z-index:2;inset-inline-end:9px;inset-block-start:9px}
.md-wishlist-card-body{display:flex;flex-direction:column;flex:1;gap:13px;padding:14px 3px 3px}.md-wishlist-card-name{color:var(--md-heading,#111827);font-weight:800;text-decoration:none;line-height:1.6}.md-wishlist-card-price{margin-top:auto;font-weight:800;color:var(--md-primary,#df3f9c)}.md-wishlist-card-view{display:block;padding:11px 12px;text-align:center;background:var(--md-primary,#df3f9c);color:#fff!important;border-radius:10px;text-decoration:none;font-weight:800}
.logged-in.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--md-wishlist{--md-account-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-9-5.8-9-12a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.2-9 12-9 12Z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
@media(max-width:1024px){.md-wishlist-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:640px){.md-wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.md-wishlist-card{padding:9px;border-radius:12px}.woocommerce ul.products li.product>.md-wishlist-toggle-loop{inset-block-start:13px;inset-inline-end:13px}.md-wishlist-toggle{width:37px!important;height:37px!important;min-height:37px!important;padding:7px!important}.md-wishlist-card-name{font-size:12px}}


/* RC35 — Place the wishlist heart BELOW the product photograph, not on top of it.
   The photo has a fixed responsive height in woocommerce.css; reserve a separate
   unobstructed heart row by adding space after the image. No buttons inside links. */
.woocommerce ul.products li.product:not(.product-category),
.woocommerce-page ul.products li.product:not(.product-category){
  --md-wishlist-photo-height:clamp(160px,18vw,210px);
  --md-wishlist-card-padding:12px;
}
.woocommerce ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img,
.woocommerce-page ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img{
  margin-bottom:58px!important;
}
.woocommerce ul.products li.product>.md-wishlist-toggle-loop,
.woocommerce-page ul.products li.product>.md-wishlist-toggle-loop{
  position:absolute!important;
  inset-inline-end:var(--md-wishlist-card-padding)!important;
  inset-block-start:calc(var(--md-wishlist-card-padding) + var(--md-wishlist-photo-height) + 7px)!important;
  z-index:3;
  border-radius:12px!important;
  box-shadow:0 4px 16px rgba(15,23,42,.11)!important;
}
.md-single-wishlist-label{color:var(--md-heading,#0f172a);font-size:13px;font-weight:750;}
@media(max-width:767px){
  .woocommerce ul.products li.product:not(.product-category),
  .woocommerce-page ul.products li.product:not(.product-category){
    --md-wishlist-photo-height:clamp(116px,31vw,160px);
    --md-wishlist-card-padding:9px;
  }
  .woocommerce ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img,
  .woocommerce-page ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img{
    margin-bottom:54px!important;
  }
}

/* Saved-product cards also keep the heart outside the photograph. */
.md-wishlist-card > .md-wishlist-toggle-card{
  position:static!important;
  align-self:flex-end!important;
  margin:10px 3px 0!important;
  box-shadow:0 3px 12px rgba(15,23,42,.09)!important;
}


/* Compact, consistent card footer without changing cart actions or price values. */
.woocommerce ul.products li.product:not(.product-category) > .button,
.woocommerce-page ul.products li.product:not(.product-category) > .button{
    min-height:44px!important;
    line-height:1.3!important;
    padding:10px 12px!important;
    box-sizing:border-box;
}
.woocommerce ul.products li.product:not(.product-category) .price,
.woocommerce-page ul.products li.product:not(.product-category) .price{
    padding-top:8px!important;
    margin-bottom:8px!important;
}

/* RC36 — Compact catalog meta row: category and wishlist heart share the
   same visual line without putting a button inside the product <a> link.
   WooCommerce renders category INSIDE the link and the button as a sibling. */
.woocommerce ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img,
.woocommerce-page ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img{
    margin-bottom:8px!important;
}
.woocommerce ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > .md-product-category,
.woocommerce-page ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > .md-product-category{
    display:flex!important;
    align-items:center;
    justify-content:flex-start;
    gap:5px;
    width:100%;
    min-width:0;
    min-height:38px;
    margin:0 0 3px!important;
    padding:4px 46px 4px 4px;
    padding-inline-start:3px;
    padding-inline-end:46px;
    box-sizing:border-box;
    color:#64748b;
    font-size:11px;
    font-weight:700;
    line-height:1.35;
    letter-spacing:0;
    text-transform:none;
}
.woocommerce ul.products li.product:not(.product-category) .md-product-category .md-svg-icon,
.woocommerce-page ul.products li.product:not(.product-category) .md-product-category .md-svg-icon{
    flex:0 0 auto;
}
.woocommerce ul.products li.product:not(.product-category) .md-product-category span,
.woocommerce-page ul.products li.product:not(.product-category) .md-product-category span{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.woocommerce ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop,
.woocommerce-page ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop{
    position:absolute!important;
    inset-block-start:calc(var(--md-wishlist-card-padding) + var(--md-wishlist-photo-height) + 10px)!important;
    inset-inline-end:var(--md-wishlist-card-padding)!important;
    inset-inline-start:auto!important;
    width:35px!important;
    height:35px!important;
    min-height:35px!important;
    padding:7px!important;
    border-radius:11px!important;
    box-shadow:0 3px 12px rgba(15,23,42,.09)!important;
}
.woocommerce ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop .md-svg-icon,
.woocommerce-page ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop .md-svg-icon{
    width:19px;
    height:19px;
}
/* Keep a heart-only meta row when the category display is disabled or the
   product has no assigned category. Avoid placing the heart on the title. */
body.md-woocommerce:not(.md-woo-show-category) ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > img,
.woocommerce ul.products li.product:not(.product-category):not(:has(.md-product-category)) .woocommerce-LoopProduct-link > img{
    margin-bottom:46px!important;
}
@media(max-width:767px){
    .woocommerce ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > .md-product-category,
    .woocommerce-page ul.products li.product:not(.product-category) .woocommerce-LoopProduct-link > .md-product-category{
        min-height:35px;
        padding-inline-end:40px;
        font-size:10px;
        gap:4px;
    }
    .woocommerce ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop,
    .woocommerce-page ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop{
        inset-block-start:calc(var(--md-wishlist-card-padding) + var(--md-wishlist-photo-height) + 10px)!important;
        width:32px!important;
        height:32px!important;
        min-height:32px!important;
        padding:6px!important;
    }
    .woocommerce ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop .md-svg-icon,
    .woocommerce-page ul.products li.product:not(.product-category) > .md-wishlist-toggle-loop .md-svg-icon{
        width:18px;
        height:18px;
    }
}
