/* =====================================================
   YKB Clothing — Wishlist
   Design language: streetwear / Gen Z drop.
   Tokens shared with cart.css, checkout.css, orders.css
   ----------------------------------------------------- */

:root {
    --teal:      #088178;
    --teal-dark: #066b63;
    --teal-tint: #e6f6f4;
    --ink:       #0e1414;
    --ink-70:    rgba(14,20,20,.68);
    --stone:     #9aa3a2;
    --line:      rgba(8,129,120,.22);
    --white:     #ffffff;
    --pop:       #ff5a4e;
    --pop-dark:  #d6473d;

    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "Space Mono", monospace;

    --radius-lg: 20px;
    --radius-sm: 10px;
    --shadow-card: 0 16px 32px rgba(8,129,120,.10);
    --shadow-card-hover: 0 22px 42px rgba(8,129,120,.18);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--teal-tint);
    font-family: var(--font-body);
    color: var(--ink);
}

/* ===== Top bar ===== */

.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 8%;
    background: var(--white);
    border-bottom: 1.5px solid var(--line);
}

.site-bar__mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--teal);
    text-decoration: none;
}

.site-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-70);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.site-bar__back:hover { color: var(--teal); }

/* ===== Page ===== */

#wishlist-page {
    min-height: 100vh;
    padding: 60px 8% 120px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== Header ===== */

.wishlist-header {
    text-align: center;
    padding: 30px 20px 46px;
    border-bottom: 1.5px solid var(--line);
    margin-bottom: 50px;
}

.wishlist-header__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-dark);
    background: var(--teal-tint);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.wishlist-header h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.5px;
    font-size: clamp(34px, 5vw, 52px);
    margin: 0 0 14px;
    color: var(--ink);
}

.wishlist-header p {
    font-size: 16px;
    color: var(--ink-70);
    margin: 0;
}

/* ===== Toolbar ===== */

.wishlist-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 46px;
}

.wishlist-count {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--teal-dark);
    background: var(--white);
    border: 1.5px solid var(--line);
    padding: 10px 22px;
    border-radius: 50px;
}

/* ===== Grid ===== */

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 290px));
    justify-content: center;
    gap: 46px 34px;
}

/* ===== Product card — flat card, subtle teal border, sticker index tag ===== */

.wish-card {
    --tilt: 0deg;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    animation: cardIn .45s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wish-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--teal);
    z-index: 2;
}

/* Loop icon becomes a small sticker badge instead of a hang-tag hole */

.wish-card__loop {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 30px;
    height: 30px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.wish-card__loop svg { width: 16px; height: 16px; display: block; }

/* Tag index number, styled like a drop-number stamp */

.wish-card__index {
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--teal-dark);
    background: var(--teal-tint);
    padding: 3px 9px;
    border-radius: 50px;
    z-index: 2;
}

/* Image */

.wish-card__image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--teal-tint);
}

.wish-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.wish-card:hover .wish-card__image img { transform: scale(1.08); }

.wish-card__perf {
    height: 0;
    border-top: 1.5px dashed var(--line);
    margin: 0 18px;
}

/* Info */

.wish-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wish-card__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    min-height: 50px;
    color: var(--ink);
}

.wish-card__price {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 700;
    color: var(--teal-dark);
    margin: 4px 0 16px;
}

/* Buttons — pill-shaped, matching the rest of the site */

.wish-buttons {
    display: flex;
    gap: 10px;
}

.move-cart,
.remove-wish {
    flex: 1;
    border: none;
    padding: 13px 10px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.move-cart {
    background: var(--ink);
    color: var(--white);
}

.move-cart:hover:not(:disabled) {
    background: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(8,129,120,.28);
}

.remove-wish {
    background: transparent;
    color: var(--pop);
    border: 1.5px solid var(--pop);
}

.remove-wish:hover:not(:disabled) {
    background: var(--pop);
    color: var(--white);
    transform: translateY(-3px);
}

.move-cart:disabled,
.remove-wish:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.wish-card.is-removing {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .3s ease, transform .3s ease;
}

/* ===== Loading skeletons ===== */

.wish-skeleton {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.wish-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(8,129,120,.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    from { background-position: 150% 0; }
    to   { background-position: -50% 0; }
}

/* ===== Empty / error states ===== */

.wishlist-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 40px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--teal-tint);
}

.wishlist-state__loop {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
}

.wishlist-state__loop svg { width: 100%; height: 100%; }

.wishlist-state h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}

.wishlist-state p {
    font-size: 15px;
    color: var(--ink-70);
    margin: 0 0 26px;
}

.wishlist-state .shop-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform .2s ease, background .2s ease;
}

.wishlist-state .shop-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-3px);
}

.wishlist-state.is-error h2 { color: var(--pop-dark); }

/* ===== Toasts ===== */

.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.toast {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
    animation: toastIn .25s ease;
    max-width: 320px;
}

.toast.toast--success { background: var(--teal-dark); }
.toast.toast--error { background: var(--pop-dark); }

.toast.is-leaving {
    animation: toastOut .25s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
    .site-bar { padding: 18px 6%; }

    #wishlist-page { padding: 40px 6% 90px; }

    .wishlist-header { padding: 10px 10px 34px; margin-bottom: 34px; }

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

    .wish-buttons { flex-direction: column; }

    .toast-stack { left: 16px; right: 16px; bottom: 16px; }
    .toast { max-width: none; }
}