/* ============================================================
   SH CITY STORE — FEATURES STYLESHEET
   Search/Filter toolbars · Wishlist · Product detail modals
   Matches the Modern Minimal Purple theme (style.css vars)
   ============================================================ */

/* ─────────────────────────────────────────────
   SEARCH / FILTER TOOLBAR
   ───────────────────────────────────────────── */
.sh-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 auto 28px;
    max-width: 1360px;
}

.sh-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 240px;
    min-width: 220px;
    max-width: 420px;
    padding: 11px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sh-search:focus-within {
    border-color: var(--border2);
    box-shadow: var(--glow-sm);
}

.sh-search i { color: var(--tx3); font-size: 0.9rem; }

.sh-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--tx1);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.sh-search input::placeholder { color: var(--tx3); }

.sh-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-chip {
    padding: 8px 16px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--tx2);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.22s var(--ease);
    white-space: nowrap;
}

.sh-chip:hover {
    border-color: var(--border2);
    color: var(--tx1);
}

.sh-chip.active {
    background: linear-gradient(135deg, var(--p600), var(--p700));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.sh-result-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--tx3);
    white-space: nowrap;
}

.sh-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--tx3);
    font-size: 0.95rem;
}

.sh-no-results i { font-size: 2rem; display: block; margin-bottom: 14px; opacity: 0.5; }

/* ─────────────────────────────────────────────
   FAVORITE (HEART) BUTTON ON CARDS
   ───────────────────────────────────────────── */
.sh-has-fav { position: relative; }

.sh-fav-btn {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 6;
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(7,5,15,0.6);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s var(--ease);
}

.sh-fav-btn:hover {
    border-color: rgba(239,68,68,0.4);
    color: #f87171;
    transform: scale(1.08);
}

.sh-fav-btn.active {
    background: rgba(239,68,68,0.16);
    border-color: rgba(239,68,68,0.45);
    color: #ef4444;
}

.sh-fav-btn.active i { animation: shHeartPop 0.4s var(--ease-spring); }

@keyframes shHeartPop {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* clickable media for detail modal */
.sh-detail-trigger { cursor: pointer; }

/* ─────────────────────────────────────────────
   HEADER WISHLIST BUTTON
   ───────────────────────────────────────────── */
.sh-btn-fav {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2) !important;
    color: #f87171;
}

.sh-btn-fav:hover {
    background: rgba(239,68,68,0.16);
    border-color: rgba(239,68,68,0.4) !important;
    box-shadow: 0 0 14px rgba(239,68,68,0.25);
    transform: translateY(-2px);
}

.sh-fav-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239,68,68,0.5);
}

/* ─────────────────────────────────────────────
   WISHLIST SIDEBAR
   ───────────────────────────────────────────── */
.sh-wish-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    z-index: 2200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.sh-wish-overlay.active { opacity: 1; visibility: visible; }

.sh-wish-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 380px; max-width: 100vw;
    height: 100vh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    z-index: 2300;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
}
.sh-wish-sidebar.active { transform: translateX(0); }

.sh-wish-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sh-wish-header h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sh-wish-close {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--tx2);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s ease;
}
.sh-wish-close:hover { background: rgba(168,85,247,0.15); color: var(--p300); border-color: var(--border2); }

.sh-wish-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.sh-wish-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--tx3);
    font-size: 0.9rem;
}
.sh-wish-empty i { font-size: 2.2rem; display: block; margin-bottom: 16px; opacity: 0.4; }

.sh-wish-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: border-color 0.22s ease;
}
.sh-wish-item:hover { border-color: var(--border2); }

.sh-wish-thumb {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg3);
    flex-shrink: 0;
}

.sh-wish-info { flex: 1; min-width: 0; }
.sh-wish-info h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tx1);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sh-wish-info p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--p400);
    font-weight: 600;
}

.sh-wish-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

.sh-wish-add, .sh-wish-remove {
    width: 32px; height: 32px;
    border-radius: 9px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    transition: all 0.22s ease;
    border: 1px solid;
}
.sh-wish-add {
    background: rgba(168,85,247,0.1);
    border-color: var(--border2);
    color: var(--p300);
}
.sh-wish-add:hover { background: rgba(168,85,247,0.22); }
.sh-wish-remove {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.2);
    color: rgba(239,68,68,0.7);
}
.sh-wish-remove:hover { background: rgba(239,68,68,0.18); color: #ef4444; }

.sh-wish-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
}
.sh-wish-addall {
    width: 100%;
    padding: 13px;
    border-radius: 13px;
    border: none;
    background: linear-gradient(135deg, var(--p600), var(--p700));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.28s var(--ease);
    letter-spacing: 0.03em;
}
.sh-wish-addall:hover { background: linear-gradient(135deg, var(--p500), var(--p600)); box-shadow: 0 8px 28px rgba(124,58,237,0.5); transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   PRODUCT DETAIL MODAL
   ───────────────────────────────────────────── */
.sh-dt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(14px);
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.sh-dt-overlay.active { opacity: 1; visibility: visible; }

.sh-dt-modal {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 40px 90px rgba(0,0,0,0.7), var(--glow-md);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
}
.sh-dt-overlay.active .sh-dt-modal { transform: translateY(0) scale(1); }

.sh-dt-close {
    position: absolute;
    top: 14px; right: 16px;
    z-index: 4;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(7,5,15,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--tx2);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.22s ease;
}
.sh-dt-close:hover { background: rgba(239,68,68,0.16); color: #f87171; border-color: rgba(239,68,68,0.4); }

.sh-dt-media {
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 20px;
}
.sh-dt-media img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
}

.sh-dt-info {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.sh-dt-cat {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--p400);
    margin-bottom: 12px;
}

.sh-dt-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tx1);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.sh-dt-desc {
    font-size: 0.9rem;
    color: var(--tx2);
    line-height: 1.7;
    margin-bottom: 22px;
}

.sh-dt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.sh-dt-stat {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}
.sh-dt-stat .lbl {
    font-size: 0.64rem;
    color: var(--tx3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.sh-dt-stat .val {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--p300);
}

.sh-dt-price {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--p300);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.sh-dt-price .currency {
    font-size: 0.8rem;
    color: var(--tx3);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sh-dt-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sh-dt-btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 13px 18px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.28s var(--ease);
    text-decoration: none;
}
.sh-dt-cart {
    background: linear-gradient(135deg, var(--p600), var(--p700));
    color: #fff;
}
.sh-dt-cart:hover { background: linear-gradient(135deg, var(--p500), var(--p600)); box-shadow: 0 8px 28px rgba(124,58,237,0.5); transform: translateY(-2px); }

.sh-dt-wish {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    color: #f87171;
    flex: 0 0 auto;
    min-width: 52px;
}
.sh-dt-wish:hover { background: rgba(239,68,68,0.18); }
.sh-dt-wish.active { background: rgba(239,68,68,0.2); color: #ef4444; }

.sh-dt-view {
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.25);
    color: #ff5a5a;
}
.sh-dt-view:hover { background: rgba(255,0,0,0.2); }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 720px) {
    .sh-dt-modal { grid-template-columns: 1fr; max-height: 88vh; }
    .sh-dt-media { min-height: 200px; }
    .sh-dt-info { padding: 26px 22px; }
    .sh-result-count { margin-left: 0; width: 100%; }
}
