/* Wishlist page (wishlist.php), 2026-11 redesign. Self-contained. */
.wl { --ink: #0f172a; --body: #334155; --muted: #64748b; --faint: #94a3b8; --line: #e2e8f0; --soft: #f6f8fb; --brand: #008a00; --brand-dark: #006d00; --brand-soft: #e7f6e7; --red: #dc2626;
      max-width: 1240px; margin: 0 auto; padding: 22px 16px 40px; font-family: 'Montserrat', sans-serif; color: var(--body); }
.wl *, .wl *::before, .wl *::after { box-sizing: border-box; }
.wl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.wl-head h1 { margin: 0; font-size: clamp(24px, 1.2rem + 1.4vw, 34px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.wl-head h1 i { color: var(--red); font-size: .8em; }
.wl-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 13.5px 'Montserrat', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.wl-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.wl-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .wl-btn.primary:hover { background: var(--brand-dark); color: #fff; }
.wl-btn.ghost-red:hover { border-color: #fecaca; color: var(--red); background: #fef2f2; }
.wl-btn:disabled { opacity: .5; cursor: default; }
.wl-btn.sm { height: 38px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }

.wl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.wl-stat { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.wl-stat small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.wl-stat b { display: block; margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--ink); }
.wl-stat.sale b { color: var(--red); } .wl-stat.out b { color: #b45309; }
.wl-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: #fffaeb; border: 1px solid #fde9a8; color: #7a5a00; font-size: 13.5px; font-weight: 600; }
.wl-guest a { color: var(--brand-dark); font-weight: 800; }

.wl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wl-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wl-tabs button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 700 12.5px 'Montserrat', sans-serif; color: var(--body); cursor: pointer; }
.wl-tabs button span { margin-left: 4px; color: var(--faint); }
.wl-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; } .wl-tabs button.on span { color: rgba(255,255,255,.6); }
.wl-bar select { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 12px; font: 700 12.5px 'Montserrat', sans-serif; color: var(--body); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; -webkit-appearance: none; cursor: pointer; }

.wl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.wl-card:hover { box-shadow: 0 22px 44px -26px rgba(15,23,42,.4); transform: translateY(-2px); }
.wl-card.is-out .wl-img img { opacity: .5; filter: grayscale(.5); }
.wl-img { position: relative; display: block; aspect-ratio: 1; background: var(--soft); }
.wl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.wl-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.wl-tag { padding: 4px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; background: var(--ink); color: #fff; }
.wl-tag.sale { background: var(--red); } .wl-tag.drop { background: #0369a1; } .wl-tag.out { background: #64748b; } .wl-tag.low { background: #c2410c; }
.wl-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--muted); cursor: pointer; font-size: 13px; }
.wl-x:hover { color: var(--red); border-color: #fecaca; }
.wl-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.wl-cat { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.wl-body h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-body h3 a { color: inherit; text-decoration: none; } .wl-body h3 a:hover { color: var(--brand-dark); }
.wl-price { margin: auto 0 0; padding-top: 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.wl-price s { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.wl-note { margin: 0; font-size: 12px; font-weight: 700; } .wl-note.good { color: #15803d; } .wl-note.warn { color: #b45309; } .wl-note.muted { color: var(--muted); font-weight: 600; }
.wl-card .wl-btn { width: 100%; margin-top: 8px; }

.wl-empty { text-align: center; padding: 44px 20px; border: 1.5px dashed var(--line); border-radius: 24px; background: #fff; }
.wl-empty .ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #fef2f2; color: var(--red); font-size: 32px; }
.wl-empty h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--ink); }
.wl-empty p { margin: 0 auto 18px; max-width: 420px; color: var(--muted); font-size: 14px; }

.wl-sec { margin-top: 40px; }
.wl-sec h2 { margin: 0; font-size: clamp(19px, 1rem + .8vw, 24px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.wl-sec h2 i { color: var(--brand); font-size: .85em; }
.wl-sec > p { margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.wl-why { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-pick-save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--muted); cursor: pointer; font-size: 14px; }
.wl-pick-save:hover, .wl-pick-save.on { color: var(--red); border-color: #fecaca; }
.wl-skel { height: 320px; border-radius: 20px; background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%); background-size: 200% 100%; animation: wlSk 1.4s infinite; }
@keyframes wlSk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
:is(.wl-btn, .wl-x, .wl-pick-save, .wl-tabs button):focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,138,0,.25); }

@media (max-width: 560px) {
    .wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wl-body { padding: 10px 10px 12px; }
    .wl-body h3 { font-size: 13px; }
    .wl-price { font-size: 15px; }
    .wl-card .wl-btn { height: 40px; font-size: 12.5px; padding: 0 8px; }
    .wl-stats { grid-template-columns: repeat(2, 1fr); }
    .wl-actions { width: 100%; } .wl-actions .wl-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .wl-card, .wl-skel { transition: none; animation: none; } }

/* phones: keep the back-to-top button clear of the footer links */
@media (max-width: 767px) {
    footer { padding-bottom: 90px !important; }
    #back-to-top { width: 44px !important; height: 44px !important; right: 12px !important; }
}
