.mm-fav-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px !important;
  border: 1px solid #dedede !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: #858585 !important;
  cursor: pointer;
  box-shadow: 0 2px 9px rgba(0,0,0,.1);
  line-height: 1 !important;
  transition: transform .15s ease, color .15s ease;
}
.mm-fav-toggle svg { display: block; width: 25px; height: 25px; }
.mm-fav-toggle[aria-pressed="true"] { color: #e63b38 !important; border-color: #eec4c2 !important; }
.mm-fav-toggle[aria-pressed="true"] svg { fill: #e63b38; }
.mm-fav-toggle:focus-visible, .mm-bottom-nav__link:focus-visible { outline: 3px solid #e63b38; outline-offset: 2px; }
ul.products li.product { position: relative; }
ul.products li.product > .mm-fav-toggle { position: absolute; top: 10px; right: 10px; z-index: 4; margin: 0 !important; }
.mm-fav-single-wrap { display: flex; align-items: center; gap: 9px; margin: 3px 0 12px; font-weight: 600; font-size: 15px; }
.mm-fav-single { position: static; width: 38px; height: 38px; }
.mm-mobile-bottom-nav { display: none; }

.mm-favorites-page { max-width: 1150px; margin: 0 auto 50px; }
.mm-favorites-page h1 { margin-bottom: 12px; }
.mm-favorites-intro { color: #555; }
.mm-favorites-empty { padding: 20px; background: #f8f8f8; border-radius: 12px; }
.mm-favorites-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.mm-favorites-card { padding: 14px; border: 1px solid #e7e7e7; border-radius: 12px; background: #fff; min-width: 0; }
.mm-favorites-card > a { color: inherit; text-decoration: none; }
.mm-favorites-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.mm-favorites-card h2 { font-size: 17px; line-height: 1.35; margin: 12px 0; }
.mm-favorites-price { font-size: 22px; font-weight: 700; }
.mm-favorites-stock { color: #22943c; font-size: 14px; margin-top: 4px; }
.mm-favorites-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 13px; }
.mm-favorites-actions .button { flex: 1; text-align: center; font-size: 14px; }
.mm-fav-remove { padding: 10px 3px !important; color: #6d6d6d !important; background: none !important; font-size: 13px; }

@media(max-width: 767px) {
  /* The original header stays at the top initially; it slides away on down-scroll. */
  body #page { overflow: visible; }
  body #masthead.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    background: #fff !important;
    transform: translateY(0);
    transition: transform .23s ease;
    will-change: transform;
  }
  body.admin-bar #masthead.site-header { top: 46px; }
  body.mm-header-hidden #masthead.site-header { transform: translateY(calc(-100% - 2px)); pointer-events: none; }
  body.mm-header-hidden #masthead .mm-mega { display: none !important; }
  .mm-mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    box-sizing: border-box;
    min-height: 65px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e4e4e4;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  }
  .mm-bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    color: #656565 !important;
    text-decoration: none !important;
    font: 500 11px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    padding: 0 2px;
  }
  .mm-bottom-nav__link.is-current, .mm-bottom-nav__link:hover { color: #e23a35 !important; }
  .mm-bottom-nav__icon { display: inline-flex; position: relative; align-items: center; justify-content: center; height: 29px; }
  .mm-bottom-nav__icon svg { width: 26px; height: 26px; }
  .mm-bottom-nav__badge { position: absolute; top: -5px; right: -11px; border: 2px solid #fff; border-radius: 20px; min-width: 18px; height: 18px; padding: 0 3px; box-sizing: border-box; color: #fff; background: #e23a35; text-align: center; font-size: 10px; line-height: 15px; }
  .mm-bottom-nav__badge[hidden] { display: none !important; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  .woot-widget-bubble { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
  .woot-widget-holder { bottom: calc(144px + env(safe-area-inset-bottom, 0px)) !important; }
  ul.products li.product > .mm-fav-toggle { top: 6px; right: 6px; width: 36px; height: 36px; padding: 7px !important; }
  ul.products li.product > .mm-fav-toggle svg { width: 23px; height: 23px; }
  .mm-favorites-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .mm-favorites-card { padding: 9px; }
  .mm-favorites-card h2 { font-size: 14px; }
  .mm-favorites-price { font-size: 18px; }
  .mm-favorites-actions { gap: 2px; }
  .mm-favorites-actions .button { font-size: 12px; padding: 10px 6px; }
  .mm-fav-remove { font-size: 12px; }
}
@media (max-width: 360px) {
  .mm-bottom-nav__label { font-size: 10px; }
  .mm-bottom-nav__icon svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body #masthead.site-header, .mm-fav-toggle { transition: none !important; }
}
