@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.wishlist-page {
    min-height: 70vh;
    padding: 54px 0 76px;
    background: #fbf7ec;
    color: #183d33;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.wishlist-shell {
    width: min(1320px, 92%);
    margin: 0 auto;
}

.wishlist-heading {
    margin-bottom: 30px;
    text-align: center;
}

.wishlist-heading span {
    color: #5f8537;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.wishlist-heading h1 {
    margin: 8px 0;
    color: #183d33;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
}

.wishlist-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: #677064;
}

.wishlist-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 42px 28px;
    border: 1px solid #e8deca;
    border-radius: 24px;
    background: #fffaf0;
    box-shadow: 0 16px 42px rgba(24, 61, 51, 0.08);
    text-align: center;
}

.wishlist-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f8537;
    background: #eef5e6;
    font-size: 30px;
}

.wishlist-empty h2 {
    color: #183d33;
    font-size: 24px;
    font-weight: 800;
}

.wishlist-empty p {
    color: #666;
}

.wishlist-empty a,
.wishlist-actions a,
.wishlist-actions button {
    min-height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
}

.wishlist-empty a,
.wishlist-actions a {
    padding: 0 20px;
    color: #fff;
    background: #183d33;
}

.wishlist-empty a:hover,
.wishlist-actions a:hover {
    color: #fff;
    background: #5f8537;
    text-decoration: none;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.wishlist-card {
    overflow: hidden;
    border: 1px solid #e8deca;
    border-radius: 22px;
    background: #fffaf0;
    box-shadow: 0 12px 32px rgba(24, 61, 51, 0.08);
}

.wishlist-card-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f1e7;
}

.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .wishlist-card-image img {
    transform: scale(1.04);
}

.wishlist-card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.wishlist-card-body p,
.wishlist-card-body span {
    margin: 0;
    color: #667166;
    font-size: 13px;
    font-weight: 600;
}

.wishlist-card-body h2 {
    margin: 0;
    min-height: 48px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
}

.wishlist-card-body h2 a {
    color: #183d33;
    text-decoration: none;
}

.wishlist-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.wishlist-price strong {
    color: #5f8537;
    font-size: 17px;
    font-weight: 900;
}

.wishlist-price del {
    color: #8c948d;
    font-size: 13px;
}

.wishlist-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 4px;
}

.wishlist-actions button {
    gap: 8px;
    border: 1px solid #e3c8c8;
    color: #9f2c2c;
    background: #fff;
    cursor: pointer;
}

.wishlist-actions button:hover {
    color: #fff;
    background: #c14141;
}

.wishlist-toggle-btn {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(24, 61, 51, 0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #183d33;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(24, 61, 51, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.wishlist-toggle-btn:hover {
    color: #c14141;
    transform: translateY(-2px);
}

.wishlist-toggle-btn.is-active {
    color: #fff;
    background: #c14141;
    border-color: #c14141;
}

.wishlist-toggle-btn i {
    pointer-events: none;
}

.pd-detail-wishlist {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #d8ccb6;
    border-radius: 999px;
    color: #183d33;
    background: #fffaf0;
    font-weight: 800;
    cursor: pointer;
}

.pd-detail-wishlist.is-active,
.pd-detail-wishlist:hover {
    color: #fff;
    background: #c14141;
    border-color: #c14141;
}

.pd-image-wishlist {
    top: 22px;
    right: 22px;
    left: auto;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #183d33;
    background: rgba(255, 250, 240, 0.92);
    border-color: rgba(216, 204, 182, 0.9);
    box-shadow: 0 12px 28px rgba(24, 61, 51, 0.16);
    backdrop-filter: blur(8px);
}

.pd-image-wishlist:hover,
.pd-image-wishlist.is-active {
    color: #fff;
    background: #c14141;
    border-color: #c14141;
}

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

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

@media (max-width: 480px) {
    .wishlist-page {
        padding: 36px 0 54px;
    }

    .wishlist-shell {
        width: min(100% - 24px, 420px);
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .pd-image-wishlist {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
    }
}
