/* ═══════════════════════════════════════════════════════
   Wishlist — heart buttons + page
   ═══════════════════════════════════════════════════════ */

/* Heart button (cards + single product) */
.mkw-heart {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    transition: color 0.2s, transform 0.15s;
    padding: 4px;
    line-height: 1;
}
.mkw-heart:hover { color: #1a1a1a; transform: scale(1.08); }
.mkw-heart.active { color: #1a1a1a; }
.mkw-heart.active svg { fill: #1a1a1a; }
.mkw-heart-loop { position: absolute; top: 10px; right: 10px; z-index: 5; }
.mkw-heart-single { margin-left: 10px; vertical-align: middle; }

/* ═══════════════════════════════════════════════════════
   Wishlist page (rendered by [mockup_wishlist_page])
   ═══════════════════════════════════════════════════════ */

.mkw-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 5% 60px;
    font-family: 'FiraGO', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
}

/* Page header */
.mkw-page-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e2dd;
    margin-bottom: 28px;
}
.mkw-page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -.01em;
}
.mkw-page-meta {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Empty state */
.mkw-page-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border: 1px solid #e5e2dd;
    border-radius: 16px;
}
.mkw-page-empty svg {
    color: #d0d0d0;
    margin-bottom: 20px;
}
.mkw-page-empty-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a1a;
}
.mkw-page-empty-text {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
}
.mkw-page-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.mkw-page-cta:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Card grid */
.mkw-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Wishlist cards — visually identical to archive .mk-card:
 * 5px radius, square 1:1 image at 80% max, hover lift. */
.mkw-page-card {
    background: #fff;
    border: 1px solid #e5e2dd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.mkw-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.mkw-page-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    /* Match the archive card's centered-image pattern */
    display: flex;
    align-items: center;
    justify-content: center;
}
.mkw-page-card__media img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    width: auto;
    height: auto;
    padding: 0;
    transition: transform .4s ease;
}
/* Cover mode mirrors the archive card behaviour for products that
 * opted into _mk_image_cover. Image fills the square edge-to-edge. */
.mkw-page-card__media[data-fit="cover"] img {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mkw-page-card:hover .mkw-page-card__media img {
    transform: scale(1.04);
}
.mkw-page-card__body {
    padding: 11px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.mkw-page-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
}
.mkw-page-card__name:hover { color: #000; }
.mkw-page-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2px;
    letter-spacing: .01em;
}
.mkw-page-card__price .mkw-page-price-from {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    margin-right: 2px;
}
.mkw-page-card__remove {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: transparent;
    color: #888;
    border: 1px solid #e5e2dd;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.mkw-page-card__remove:hover {
    color: #d63638;
    border-color: #d63638;
    background: #fff5f5;
}
.mkw-page-card__remove svg { stroke-width: 2.2; }

/* Type badge on the image */
.mkw-page-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
}
.mkw-badge--stock {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e2dd;
}
.mkw-badge--catalog {
    background: #F2EC19;
    color: #1a1a1a;
}

/* Keep-shopping link */
.mkw-page-keep-shopping {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
}
.mkw-page-keep-shopping a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}
.mkw-page-keep-shopping a:hover { color: #000; }

@media (max-width: 480px) {
    .mkw-page { padding: 24px 16px 40px; }
    .mkw-page-title { font-size: 24px; }
    .mkw-page-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mkw-page-card__body { padding: 10px 12px 12px; }
}
