/* =========================================================
   SOUTHWARD — WISHLIST + PRODUCT WISHLIST UI
========================================================= */

.sw-card-visual-wrap {
    position: relative;
}

.sw-card-wishlist-form {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    margin: 0;
}

.sw-card-wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #d7d7d2;
    background: rgba(255, 255, 255, .96);
    color: #111;
    text-decoration: none;
    font: inherit;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sw-card-wishlist-form .sw-card-wishlist-btn {
    position: static;
}

.sw-card-wishlist-btn:hover,
.sw-card-wishlist-btn.is-active {
    border-color: #000;
    background: #000;
    color: #fff;
}


/* PRODUCT PAGE WISHLIST */

.pd-wishlist-form {
    width: 100%;
    margin: 0;
}

.pd-wishlist-form .pd-wishlist-btn {
    width: 100%;
}

.pd-wishlist-btn {
    box-sizing: border-box;
}

.pd-wishlist-btn.is-active .pd-heart {
    font-size: 18px;
}


/* WISHLIST PAGE */

.sw-wishlist-page {
    min-height: calc(100vh - 140px);
    padding: 72px 24px 96px;
    background: #f4f4f2;
    color: #111;
}

.sw-wishlist-shell {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.sw-wishlist-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 42px;
    border-bottom: 1px solid #d7d7d2;
}

.sw-wishlist-kicker {
    display: block;
    margin-bottom: 16px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
    color: #666;
}

.sw-wishlist-top h1 {
    margin: 0;
    font-size: clamp(70px, 9vw, 138px);
    line-height: .78;
    font-weight: 900;
    letter-spacing: -.07em;
    color: #000;
}

.sw-wishlist-count {
    min-width: 170px;
    padding-top: 15px;
    border-top: 1px solid #111;
    text-align: right;
}

.sw-wishlist-count span {
    display: block;
    margin-bottom: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
    color: #777;
}

.sw-wishlist-count strong {
    font-size: 30px;
    line-height: 1;
    color: #111;
}

.sw-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.sw-wishlist-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #d7d7d2;
}

.sw-wishlist-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ececea;
}

.sw-wishlist-visual > a {
    display: block;
    width: 100%;
    height: 100%;
}

.sw-wishlist-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.sw-wishlist-card:hover .sw-wishlist-visual img {
    transform: scale(1.025);
}

.sw-wishlist-heart-form {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
}

.sw-wishlist-heart {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #111;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.sw-wishlist-heart:hover {
    background: #fff;
    color: #000;
}

.sw-wishlist-card-body {
    padding: 22px;
}

.sw-wishlist-product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.sw-wishlist-category {
    display: block;
    margin-bottom: 7px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #888;
}

.sw-wishlist-name {
    display: inline-block;
    text-decoration: none;
    color: #111;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.sw-wishlist-name:hover {
    text-decoration: underline;
}

.sw-wishlist-price {
    flex: 0 0 auto;
    font-size: 15px;
    color: #111;
}

.sw-wishlist-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding-top: 18px;
    border-top: 1px solid #ecece8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #555;
}

.sw-wishlist-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
}

.sw-wishlist-stock-dot.is-sold {
    background: #aaa;
}

.sw-wishlist-cart-form,
.sw-wishlist-remove-form {
    margin: 0;
}

.sw-wishlist-add-cart {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
}

.sw-wishlist-add-cart:hover {
    background: #222;
}

.sw-wishlist-add-cart.is-disabled {
    justify-content: center;
    border-color: #d0d0cc;
    background: #e7e7e3;
    color: #888;
    cursor: not-allowed;
}

.sw-wishlist-remove {
    margin-top: 8px;
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7d7d2;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    cursor: pointer;
}

.sw-wishlist-remove:hover {
    border-color: #000;
}

.sw-wishlist-empty {
    min-height: 480px;
    margin-top: 36px;
    padding: 56px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #050505;
    color: #fff;
    text-align: center;
}

.sw-wishlist-empty-kicker {
    margin-bottom: 18px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .22em;
    color: #888;
}

.sw-wishlist-empty h2 {
    margin: 0;
    font-size: clamp(58px, 7vw, 100px);
    line-height: .84;
    font-weight: 900;
    letter-spacing: -.06em;
    color: #fff;
}

.sw-wishlist-empty p {
    max-width: 520px;
    margin: 26px auto 30px;
    font-size: 13px;
    line-height: 1.7;
    color: #aaa;
}

.sw-wishlist-shop-btn {
    width: min(310px, 100%);
    min-height: 58px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.sw-wishlist-shop-btn:hover {
    background: #e9e9e6;
}

.sw-wishlist-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #d7d7d2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.sw-wishlist-bottom a {
    color: #111;
    text-decoration: none;
}

.sw-wishlist-bottom a:hover {
    text-decoration: underline;
}

.sw-wishlist-bottom span {
    color: #777;
}

@media (max-width: 980px) {
    .sw-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sw-wishlist-page {
        padding: 30px 12px 56px;
    }

    .sw-wishlist-top {
        display: block;
        padding-bottom: 28px;
    }

    .sw-wishlist-top h1 {
        font-size: clamp(62px, 20vw, 92px);
    }

    .sw-wishlist-count {
        width: 100%;
        min-width: 0;
        margin-top: 30px;
        text-align: left;
    }

    .sw-wishlist-grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .sw-wishlist-empty {
        min-height: 380px;
        margin-top: 24px;
    }

    .sw-wishlist-empty h2 {
        font-size: clamp(48px, 16vw, 72px);
    }

    .sw-wishlist-bottom {
        display: block;
    }

    .sw-wishlist-bottom span {
        display: block;
        margin-top: 10px;
    }
}
