/* =========================================================================
   Satva Gold — Wishlist page modern redesign
   Scoped under .wishlist-v2 so legacy styles cannot bleed in.
   All functional links/hooks (form/wishlist.php?delete=... and product
   page links) are preserved.
   ========================================================================= */

:root {
    --wv2-gold: #b58b44;
    --wv2-gold-soft: #d4a84b;
    --wv2-gold-deep: #8a6932;
    --wv2-gold-tint: #faf6ed;
    --wv2-cream: #fcfaf5;
    --wv2-charcoal: #1a1a1a;
    --wv2-ink: #2b2620;
    --wv2-text: #4a4540;
    --wv2-muted: #8c857c;
    --wv2-border: #ece4d2;
    --wv2-divider: #f1ebde;
    --wv2-shadow-soft: 0 1px 6px rgba(40, 30, 10, 0.04);
    --wv2-shadow: 0 8px 28px rgba(40, 30, 10, 0.08);
    --wv2-radius: 18px;
    --wv2-radius-sm: 12px;
    --wv2-radius-pill: 999px;
}

.wishlist-v2 *,
.wishlist-v2 *::before,
.wishlist-v2 *::after { box-sizing: border-box; }

.wishlist-v2 {
    background: #fcfbf7;
    padding: 0 0 80px;
    color: var(--wv2-text);
    font-family: 'Mulish', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.wishlist-v2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .wishlist-v2-container { padding: 0 16px; }
}

/* ---- Hero header ---- */
.wishlist-v2-hero {
    padding: 38px 24px 28px;
    text-align: center;
    border-bottom: 1px solid var(--wv2-divider);
    background: linear-gradient(180deg, var(--wv2-cream) 0%, #fcfbf7 100%);
    margin-bottom: 32px;
}

.wishlist-v2-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--wv2-gold-deep);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
    padding: 0 22px;
}

.wishlist-v2-eyebrow::before,
.wishlist-v2-eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--wv2-gold);
    opacity: 0.5;
}

.wishlist-v2-eyebrow::before { left: 0; }
.wishlist-v2-eyebrow::after { right: 0; }

.wishlist-v2-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--wv2-charcoal);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.wishlist-v2-crumb {
    font-size: 12px;
    color: var(--wv2-muted);
    letter-spacing: 1px;
}

.wishlist-v2-crumb a {
    color: var(--wv2-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.wishlist-v2-crumb a:hover { color: var(--wv2-gold); }
.wishlist-v2-crumb-sep { margin: 0 10px; opacity: 0.6; }
.wishlist-v2-crumb-current { color: var(--wv2-ink); font-weight: 600; }

.wishlist-v2-count {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    background: var(--wv2-gold-tint);
    color: var(--wv2-gold-deep);
    border-radius: var(--wv2-radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

/* ---- Empty state ---- */
.wishlist-v2-empty {
    text-align: center;
    padding: 80px 24px 100px;
    max-width: 520px;
    margin: 0 auto;
}

.wishlist-v2-empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--wv2-gold-tint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--wv2-gold);
}

.wishlist-v2-empty-icon svg {
    width: 44px;
    height: 44px;
}

.wishlist-v2-empty h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--wv2-charcoal);
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.wishlist-v2-empty p {
    font-size: 14px;
    color: var(--wv2-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.wishlist-v2-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--wv2-charcoal) 0%, #2a2a2a 100%);
    color: #fff !important;
    border-radius: var(--wv2-radius-pill);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, border-color 0.2s ease;
    border: 2px solid var(--wv2-charcoal);
}

.wishlist-v2-shop-btn:hover {
    background: linear-gradient(135deg, var(--wv2-gold) 0%, var(--wv2-gold-deep) 100%);
    border-color: var(--wv2-gold);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(181, 139, 68, 0.25);
}

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

@media (max-width: 600px) {
    .wishlist-v2-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
    }
}

/* ---- Product card ---- */
.wishlist-v2-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--wv2-border);
    border-radius: var(--wv2-radius);
    box-shadow: var(--wv2-shadow-soft);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-v2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(40, 30, 10, 0.10);
    border-color: rgba(181, 139, 68, 0.30);
}

/* Image wrapper */
.wishlist-v2-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f4f4f0;
    overflow: hidden;
    display: block;
}

.wishlist-v2-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wishlist-v2-card:hover .wishlist-v2-card-img img {
    transform: scale(1.05);
}

/* Remove (×) button — top-right */
.wishlist-v2-card .delete {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(40, 30, 10, 0.06);
    color: #b13a3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(40, 30, 10, 0.08);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.wishlist-v2-card .delete:hover {
    background: #fdecec;
    color: #8e2929;
    transform: scale(1.08);
}

.wishlist-v2-card .delete .fa { color: inherit; font-size: 12px; }

/* Body */
.wishlist-v2-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.wishlist-v2-card-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--wv2-ink);
    line-height: 1.35;
    text-transform: capitalize;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.wishlist-v2-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wishlist-v2-card-name a:hover { color: var(--wv2-gold-deep); }

.wishlist-v2-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 11.5px;
    color: var(--wv2-muted);
    letter-spacing: 0.4px;
}

.wishlist-v2-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.wishlist-v2-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--wv2-border);
    display: inline-block;
}

.wishlist-v2-card-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--wv2-divider);
    font-size: 18px;
    font-weight: 800;
    color: var(--wv2-charcoal);
    letter-spacing: -0.3px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wishlist-v2-card-price .symbol {
    font-size: 14px;
    font-weight: 700;
    color: var(--wv2-gold-deep);
}

/* Get Now CTA */
.wishlist-v2-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 18px;
    background: var(--wv2-charcoal);
    color: #fff !important;
    border: 2px solid var(--wv2-charcoal);
    border-radius: var(--wv2-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
    width: 100%;
}

.wishlist-v2-card-cta:hover {
    background: linear-gradient(135deg, var(--wv2-gold) 0%, var(--wv2-gold-deep) 100%);
    border-color: var(--wv2-gold);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(181, 139, 68, 0.25);
}

.wishlist-v2-card-cta svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.wishlist-v2-card-cta:hover svg { transform: translateX(3px); }

/* ---- Pagination ---- */
.wishlist-v2-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.wishlist-v2-pagination .pagination {
    padding: 0 !important;
    gap: 6px;
}

.wishlist-v2-pagination .pagination li a {
    border-radius: 10px !important;
    border: 1px solid var(--wv2-border) !important;
    background: #fff !important;
    color: var(--wv2-ink) !important;
    font-weight: 700 !important;
}

.wishlist-v2-pagination .pagination li a.current,
.wishlist-v2-pagination .pagination li a:hover {
    background: var(--wv2-charcoal) !important;
    border-color: var(--wv2-charcoal) !important;
    color: #fff !important;
}
