/**
 * Wishlist Page Styles — Premium Luxury Design
 */

/* ============================================
   WISHLIST SECTION
   ============================================ */
.jewelry-wishlist-section {
    padding: 40px 0 100px;
    min-height: 60vh;
}

/* Page header with eyebrow + title */
.jewelry-wishlist-header {
    text-align: center;
    margin-bottom: 40px;
}

.jewelry-wishlist-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--jewelry-accent, #C9A96E);
    margin-bottom: 8px;
}

h1.jewelry-wishlist-page-title {
    font-family: var(--jewelry-font-heading, 'Nunito Sans'), sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--jewelry-text, #614535);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

h1.jewelry-wishlist-page-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--jewelry-primary, #86614a);
}

.jewelry-wishlist-subtitle {
    font-size: 15px;
    color: #8a7a6e;
    margin: 0;
    line-height: 1.5;
}

/* Item count badge */
.jewelry-wishlist-item-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 16px;
    background: rgba(252, 247, 241, 0.7);
    border: 1px solid rgba(134, 97, 74, 0.08);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jewelry-primary, #86614a);
}

.jewelry-wishlist-item-count svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   WISHLIST GRID
   ============================================ */
.jewelry-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ============================================
   WISHLIST CARD — Premium
   ============================================ */
.jewelry-wishlist-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(134, 97, 74, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(134, 97, 74, 0.04);
}

.jewelry-wishlist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(134, 97, 74, 0.12);
    border-color: rgba(201, 169, 110, 0.2);
}

/* Remove Button — redesigned as subtle trash icon */
.jewelry-wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #8a7a6e;
}

.jewelry-wishlist-card:hover .jewelry-wishlist-remove {
    opacity: 1;
    transform: scale(1);
}

.jewelry-wishlist-remove:hover {
    background: #fff;
    color: #e25555;
    box-shadow: 0 4px 14px rgba(226, 85, 85, 0.18);
    transform: scale(1.1) !important;
}

.jewelry-wishlist-remove svg {
    width: 14px;
    height: 14px;
}

/* Image */
.jewelry-wishlist-image-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--jewelry-bg-light, #fcf7f1);
}

.jewelry-wishlist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jewelry-wishlist-card:hover .jewelry-wishlist-image {
    transform: scale(1.06);
}

/* Info */
.jewelry-wishlist-info {
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #fff 0%, rgba(252, 247, 241, 0.3) 100%);
}

.jewelry-wishlist-info .jewelry-product-category {
    font-size: 0.7rem;
    color: var(--jewelry-accent, #C9A96E);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 5px;
    font-weight: 700;
}

a.jewelry-wishlist-title {
    font-family: var(--jewelry-font-heading, 'Nunito Sans'), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--jewelry-text, #614535);
    margin-bottom: 6px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.1px;
    text-align: left;
}

a.jewelry-wishlist-title:hover {
    color: var(--jewelry-primary, #86614a);
}

.jewelry-wishlist-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--jewelry-primary, #86614a);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.jewelry-wishlist-view-btn {
    width: 100%;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    background: var(--jewelry-primary, #86614a);
    color: #fff;
    border-radius: 10px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.jewelry-wishlist-view-btn:hover {
    background: var(--jewelry-text, #614535);
}

/* ============================================
   EMPTY STATE — Premium
   ============================================ */
.jewelry-empty-wishlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 1px solid rgba(134, 97, 74, 0.06);
}

.jewelry-empty-icon {
    margin-bottom: 24px;
    opacity: 0.15;
}

.jewelry-empty-wishlist h2 {
    font-family: var(--jewelry-font-heading, 'Nunito Sans'), sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--jewelry-text, #614535);
    margin-bottom: 8px;
}

.jewelry-empty-wishlist p {
    font-size: 15px;
    color: #8a7a6e;
    margin-bottom: 28px;
    max-width: 340px;
    line-height: 1.5;
}

.jewelry-empty-wishlist .jewelry-btn-primary {
    background: var(--jewelry-primary, #86614a);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.jewelry-empty-wishlist .jewelry-btn-primary:hover {
    background: var(--jewelry-text, #614535);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 97, 74, 0.2);
}

/* ============================================
   WISHLIST COUNT BADGE (Header)
   ============================================ */
.jewelry-wishlist-count {
    position: absolute;
    top: -9px;
    right: -19px;
    background: rgba(226, 85, 85, 0.1);
    color: #e25555;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: transform 0.3s ease;
}

.jewelry-wishlist-count.updating {
    animation: wishlistBadgeBounce 0.5s ease;
}

@keyframes wishlistBadgeBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ============================================
   LOADING STATE
   ============================================ */
.jewelry-loading {
    text-align: center;
    padding: 60px 20px;
    color: #8a7a6e;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .jewelry-wishlist-section {
        padding: 30px 0 60px;
    }

    .jewelry-wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    h1.jewelry-wishlist-page-title {
        font-size: 26px;
    }

    .jewelry-wishlist-subtitle {
        font-size: 14px;
    }

    .jewelry-wishlist-info {
        padding: 12px 14px 14px;
    }

    a.jewelry-wishlist-title {
        font-size: 13px;
    }

    .jewelry-wishlist-price {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .jewelry-wishlist-view-btn {
        padding: 9px;
        font-size: 12px;
    }

    .jewelry-wishlist-remove {
        opacity: 1;
        transform: scale(1);
        width: 28px;
        height: 28px;
    }
}
