/* ============================================================
   FAVORITES / WISHLIST PAGE — wishlist.css
   CS2 skin store style: dark, red accent, glow + scan-line noise.
   Cards reuse .prod-card / .prod-fav / .btn-prod-buy from shop.css
   (loaded globally), so the wishlist matches the shop / front page.
   Accent: var(--cs-red)  |  Fonts: Barlow Condensed (UI) + Manrope (body)
   ============================================================ */


/* ── Page wrapper ─────────────────────────────────────────── */
.wishlist-page {
    position: relative;
    background: var(--cs-bg-0, #080A0E);
    overflow: hidden;
    min-height: 100vh; /* keep footer pinned to the bottom on short lists */
}


/* ── Compact hero (About Us style): title + description only ──
   No eyebrow label, no min-height: 100vh. */
.wishlist-hero {
    position: relative;
    background: var(--cs-bg-0, #080A0E);
    padding-top: calc(var(--header-h, 80px) + 56px);
    padding-bottom: 48px;
    overflow: hidden;
    text-align: center;
}

/* Red radial glow at top */
.wishlist-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 420px;
    background: radial-gradient(ellipse at top, rgba(245,34,45,0.11) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle scan-line texture (noise) */
.wishlist-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.010) 2px,
        rgba(255,255,255,0.010) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.wishlist-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.wishlist-hero__heading {
    font-family: 'Barlow Condensed', 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin: 0 0 16px;
}

.wishlist-hero__heading em {
    color: var(--cs-red, #F5222D);
    font-style: normal;
    text-shadow: 0 0 24px rgba(245,34,45,0.45);
}

.wishlist-hero__text {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--cs-txt2, #8B8F9A);
    max-width: 540px;
    margin: 0 auto;
}


/* ── List area ────────────────────────────────────────────── */
.wishlist-page__container {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(48px, 6vw, 90px);
}

.wishlist-page__bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--cs-bdr, rgba(255,255,255,0.07));
    margin-bottom: clamp(20px, 3vw, 32px);
}

.wishlist-page__count {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--cs-txt3, #4A4E5A);
    white-space: nowrap;
}


/* ── Grid — desktop grid / tablet 2–3 / mobile 1–2 ────────── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

@media (max-width: 1024px) { .wishlist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 430px)  { .wishlist-grid { grid-template-columns: repeat(1, 1fr); gap: 12px; } }

/* The heart on a wishlist card acts as the REMOVE control:
   always visible, red (active), with a clear hover. */
.wl-card .prod-fav { opacity: 1; }
.wl-card .prod-fav.active {
    background: rgba(245,34,45,0.16);
    border-color: rgba(245,34,45,0.40);
    color: var(--cs-red, #F5222D);
}
.wl-card .prod-fav:hover {
    background: rgba(245,34,45,0.30);
    border-color: rgba(245,34,45,0.70);
    transform: scale(1.12);
}

/* Comfortable tap targets on touch screens */
@media (max-width: 760px) {
    .wl-card .prod-fav { width: 34px; height: 34px; }
    .wl-card .btn-prod-buy { font-size: 11px; padding: 9px 16px; }
}

/* Defensive: keep the price from overflowing and pushing out the Buy button */
.wl-card .prod-price-row { flex-wrap: nowrap; }
.wl-card .prod-price {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ── Empty state (no emoji) ───────────────────────────────── */
.wishlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(48px, 8vw, 90px) 20px;
}

/* Pulse rings around the heart icon */
.wishlist-empty__visual {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-empty__visual::before,
.wishlist-empty__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245,34,45,0.14);
    border-radius: 50%;
    animation: wlPulse 3s ease-in-out infinite;
}

.wishlist-empty__visual::after {
    animation-delay: 1.5s;
    inset: -18px;
    border-color: rgba(245,34,45,0.07);
}

@keyframes wlPulse {
    0%, 100% { transform: scale(1);   opacity: 1;    }
    50%      { transform: scale(1.1); opacity: 0.55; }
}

.wishlist-empty__icon {
    position: relative;
    z-index: 1;
    color: rgba(245,34,45,0.55);
    filter: drop-shadow(0 0 16px rgba(245,34,45,0.30));
}

.wishlist-empty__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cs-txt, #F0F2F8);
    margin-bottom: 12px;
}

.wishlist-empty__text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--cs-txt2, #8B8F9A);
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 32px;
}

/* "Browse skins" button — front-page style (red→orange, clipped corner) */
.wishlist-empty__btn,
.wishlist-empty .btn-cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 36px;
    background: linear-gradient(135deg, var(--cs-red, #F5222D), var(--cs-orange, #FF6B00));
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: box-shadow .3s, transform .15s;
}

.wishlist-empty__btn:hover,
.wishlist-empty .btn-cs:hover {
    box-shadow: 0 8px 32px rgba(245,34,45,0.40);
    transform: translateY(-2px);
    color: #fff;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
    .wishlist-hero {
        padding-top: calc(var(--header-h, 80px) + 36px);
        padding-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .wishlist-empty__visual { width: 80px; height: 80px; }
}
