/* Silver Luxury Manager – Frontend CSS v2.0.0 */
:root {
    --slm-gold:   #d4af37;
    --slm-navy:   #1a1a2e;
    --slm-green:  #10b981;
    --slm-red:    #dc2626;
    --slm-radius: 10px;
}

/* ── Announcement Bar ───────────────────────────────────────────────── */
.slm-announcement-bar {
    width: 100%; padding: 10px 20px; text-align: center;
    font-size: 14px; font-weight: 600; display: flex;
    align-items: center; justify-content: center; gap: 12px;
    position: relative; z-index: 9999; letter-spacing: .3px;
}
.slm-ann-inner { flex: 1; }
.slm-ann-close {
    background: none; border: none; cursor: pointer; font-size: 16px;
    color: inherit; opacity: .7; padding: 4px 8px; flex-shrink: 0;
}
.slm-ann-close:hover { opacity: 1; }

/* ── Countdown Timer ────────────────────────────────────────────────── */
.slm-countdown-wrap { padding: 14px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 12px 0; }
.slm-countdown-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #666; display: block; margin-bottom: 8px; font-weight: 700; }
.slm-countdown { display: flex; align-items: center; gap: 6px; }
.slm-cd-block { background: var(--slm-navy); color: var(--slm-gold); border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 60px; }
.slm-cd-block span { font-size: 24px; font-weight: 800; display: block; line-height: 1; }
.slm-cd-block small { font-size: 10px; color: rgba(255,255,255,.6); text-transform: uppercase; }
.slm-cd-sep { font-size: 22px; font-weight: 800; color: var(--slm-navy); }

/* ── Stock Urgency ─────────────────────────────────────────────────── */
.slm-stock-urgency { margin: 12px 0; }
.slm-stock-bar { height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.slm-stock-fill { height: 100%; border-radius: 4px; transition: width .5s; }
.slm-stock-text { font-size: 14px; color: #374151; margin: 0; font-weight: 600; }
.slm-out-of-stock { color: var(--slm-red); }

/* ── Trust Badges ──────────────────────────────────────────────────── */
.slm-trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 14px; background: #f9fafb; border-radius: var(--slm-radius); border: 1px solid #e5e7eb; }
.slm-badge-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; font-weight: 600; }
.slm-badge-icon { font-size: 16px; }

/* ── Social Proof ──────────────────────────────────────────────────── */
.slm-social-proof { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--slm-radius); margin: 12px 0; font-size: 14px; }
.slm-sp-pulse { width: 10px; height: 10px; background: var(--slm-green); border-radius: 50%; animation: slm-pulse-fe 1.5s infinite; flex-shrink: 0; }
@keyframes slm-pulse-fe { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }

/* ── Wishlist Button ─────────────────────────────────────────────────── */
.slm-wishlist-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
    border: 2px solid #e5e7eb; border-radius: 8px; background: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer; color: #374151;
    transition: all .2s; margin: 8px 0;
}
.slm-wishlist-btn:hover { border-color: var(--slm-gold); color: var(--slm-navy); }
.slm-wl-loop { padding: 6px 10px; margin: 4px; }
.slm-wl-active { border-color: #fca5a5; color: var(--slm-red); background: #fff7f7; }

/* ── Quick View Button ───────────────────────────────────────────────── */
.slm-quick-view-btn {
    display: block; width: 100%; padding: 8px; background: rgba(26,26,46,.9);
    color: var(--slm-gold); border: none; cursor: pointer; font-size: 13px; font-weight: 700;
    transition: opacity .2s; margin-top: 4px; border-radius: 0 0 6px 6px;
}
.slm-quick-view-btn:hover { opacity: .8; }

/* ── Modals ────────────────────────────────────────────────────────── */
.slm-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.slm-modal-overlay.slm-modal-open { opacity: 1; pointer-events: all; }
.slm-modal {
    background: #fff; border-radius: 16px; max-width: 800px; width: 95%;
    max-height: 90vh; overflow-y: auto; position: relative;
    transform: scale(.95); transition: transform .25s;
}
.slm-modal-overlay.slm-modal-open .slm-modal { transform: scale(1); }
.slm-modal-body { padding: 32px; }
.slm-modal-close {
    position: absolute; top: 16px; right: 16px; background: var(--slm-navy);
    color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px;
    cursor: pointer; font-size: 14px; z-index: 10; transition: background .2s;
}
.slm-modal-close:hover { background: var(--slm-red); }

/* Quick View inside modal */
.slm-qv-product { display: flex; gap: 28px; flex-wrap: wrap; }
.slm-qv-gallery { flex: 0 0 300px; max-width: 100%; }
.slm-qv-main-img { width: 100%; border-radius: 10px; object-fit: cover; max-height: 320px; }
.slm-qv-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.slm-qv-thumb { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid #e5e7eb; transition: border-color .2s; }
.slm-qv-thumb:hover, .slm-qv-thumb-active { border-color: var(--slm-gold); }
.slm-qv-info { flex: 1; min-width: 200px; }
.slm-qv-title { font-size: 22px; font-weight: 800; color: var(--slm-navy); margin: 0 0 10px; }
.slm-qv-rating { margin-bottom: 10px; }
.slm-qv-price { font-size: 26px; font-weight: 800; color: var(--slm-navy); margin: 12px 0; }
.slm-qv-desc { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.6; }
.slm-qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.slm-btn-qv { padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.slm-btn-qv-primary { background: linear-gradient(135deg, var(--slm-gold), #b8960c); color: var(--slm-navy); border: none; }
.slm-btn-qv-primary:hover { box-shadow: 0 4px 16px rgba(212,175,55,.4); }
.slm-btn-qv-outline { background: #fff; color: var(--slm-navy); border: 2px solid #e5e7eb; }
.slm-btn-qv-outline:hover { border-color: var(--slm-gold); }

/* Size Guide Modal */
.slm-sg-modal { max-width: 440px; }
.slm-sg-header { display: flex; align-items: center; gap: 10px; padding: 24px 24px 0; font-size: 20px; }
.slm-sg-header h3 { margin: 0; color: var(--slm-navy); font-weight: 800; }
.slm-sg-body { padding: 16px 24px 24px; }
.slm-sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.slm-sg-table th { background: var(--slm-navy); color: var(--slm-gold); padding: 10px 16px; text-align: left; }
.slm-sg-table td { padding: 10px 16px; border-bottom: 1px solid #f3f4f6; }
.slm-sg-table tr:hover td { background: #fafafa; }

/* ── Size Guide Button ───────────────────────────────────────────────── */
.slm-size-guide-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    background: #f0f4ff; color: var(--slm-navy); border: 1px solid #c7d2fe;
    border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
    margin: 8px 0; transition: all .2s;
}
.slm-size-guide-btn:hover { background: var(--slm-navy); color: var(--slm-gold); }

/* ── Wishlist Drawer ─────────────────────────────────────────────────── */
.slm-wishlist-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99998;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.slm-overlay-open { opacity: 1 !important; pointer-events: all !important; }
.slm-wishlist-drawer {
    position: fixed; top: 0; right: -400px; width: 380px; max-width: 95vw;
    height: 100vh; background: #fff; z-index: 99999; box-shadow: -4px 0 32px rgba(0,0,0,.15);
    display: flex; flex-direction: column; transition: right .3s cubic-bezier(.4,0,.2,1);
}
.slm-drawer-open { right: 0 !important; }
.slm-wl-header { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; background: var(--slm-navy); }
.slm-wl-header h3 { color: var(--slm-gold); margin: 0; font-size: 18px; }
.slm-wl-close { background: none; border: none; color: rgba(255,255,255,.8); font-size: 20px; cursor: pointer; }
.slm-wl-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.slm-wl-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: #f9fafb; border-radius: 10px; }
.slm-wl-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.slm-wl-item-info { flex: 1; min-width: 0; }
.slm-wl-item-info a { font-size: 14px; font-weight: 600; color: var(--slm-navy); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slm-wl-item-info span { font-size: 13px; color: #059669; font-weight: 700; }
.slm-wl-empty { text-align: center; color: #9ca3af; font-size: 14px; padding: 40px 0; }
.slm-wl-footer { padding: 16px 24px; border-top: 1px solid #f3f4f6; }
.slm-wl-trigger {
    position: fixed; bottom: 90px; right: 20px; background: var(--slm-navy);
    color: var(--slm-gold); border: 2px solid var(--slm-gold); border-radius: 30px;
    padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
    z-index: 9997; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .2s;
}
.slm-wl-trigger:hover { transform: scale(1.05); }

/* ── Sticky Cart ────────────────────────────────────────────────────── */
.slm-sticky-cart {
    position: fixed; bottom: -100px; left: 0; right: 0; background: var(--slm-navy);
    z-index: 9996; padding: 14px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,.2);
    transition: bottom .35s cubic-bezier(.4,0,.2,1); border-top: 3px solid var(--slm-gold);
}
.slm-sticky-visible { bottom: 0 !important; }
.slm-sticky-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slm-sticky-info { display: flex; align-items: center; gap: 12px; color: #fff; }
.slm-sticky-info img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 2px solid var(--slm-gold); }
.slm-sticky-info strong { display: block; font-size: 15px; color: #fff; }
.slm-sticky-info span { color: var(--slm-gold); font-weight: 700; font-size: 15px; }
.slm-sticky-atc { background: linear-gradient(135deg, var(--slm-gold), #b8960c); color: var(--slm-navy); border: none; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: all .2s; }
.slm-sticky-atc:hover { box-shadow: 0 4px 16px rgba(212,175,55,.5); }

/* ── Back to Top ────────────────────────────────────────────────────── */
.slm-back-top {
    position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
    background: var(--slm-navy); color: var(--slm-gold); border: 2px solid var(--slm-gold);
    border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 9995;
    opacity: 0; transform: translateY(20px); transition: all .3s;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.slm-btt-visible { opacity: 1 !important; transform: translateY(0) !important; }
.slm-back-top:hover { background: var(--slm-gold); color: var(--slm-navy); }

/* ── Recently Viewed ────────────────────────────────────────────────── */
.slm-recently-viewed { padding: 32px 0; border-top: 2px solid #f3f4f6; margin-top: 32px; }
.slm-recently-viewed h3 { font-size: 20px; color: var(--slm-navy); margin: 0 0 20px; font-weight: 800; }
.slm-rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.slm-rv-item { display: flex; flex-direction: column; text-decoration: none; gap: 8px; transition: transform .2s; }
.slm-rv-item:hover { transform: translateY(-3px); }
.slm-rv-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid #e5e7eb; }
.slm-rv-name { font-size: 13px; color: var(--slm-navy); font-weight: 600; line-height: 1.3; }
.slm-rv-price { font-size: 14px; color: var(--slm-gold); font-weight: 800; }

/* ── Toasts ─────────────────────────────────────────────────────────── */
.slm-toast-container { position: fixed; top: 24px; right: 24px; z-index: 200000; display: flex; flex-direction: column; gap: 10px; }
.slm-toast { background: var(--slm-navy); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.2); transform: translateX(120%); transition: transform .3s; max-width: 320px; border-left: 4px solid var(--slm-gold); }
.slm-toast-show { transform: translateX(0); }
.slm-toast-success { border-left-color: var(--slm-green); }
.slm-toast-error   { border-left-color: var(--slm-red); }

/* ── Cookie Consent ─────────────────────────────────────────────────── */
.slm-cookie-bar {
    position: fixed; bottom: -100px; left: 0; right: 0; background: var(--slm-navy);
    color: #fff; padding: 16px 24px; z-index: 200001; display: flex;
    align-items: center; gap: 16px; flex-wrap: wrap; border-top: 3px solid var(--slm-gold);
    transition: bottom .35s;
}
.slm-cookie-show { bottom: 0 !important; }
.slm-cookie-bar p { flex: 1; margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }
.slm-cookie-accept { background: var(--slm-gold); color: var(--slm-navy); border: none; padding: 9px 20px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; }
.slm-cookie-decline { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); padding: 9px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }

/* ── Frontend Spinner ────────────────────────────────────────────────── */
.slm-spinner-fe {
    width: 36px; height: 36px; border: 3px solid #f3f4f6;
    border-top-color: var(--slm-gold); border-radius: 50%;
    animation: slm-spin-fe .7s linear infinite; margin: 40px auto; display: block;
}
@keyframes slm-spin-fe { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .slm-qv-product { flex-direction: column; }
    .slm-qv-gallery { flex: 1 1 100%; }
    .slm-rv-grid { grid-template-columns: repeat(2, 1fr); }
    .slm-sticky-info strong, .slm-sticky-info span { font-size: 13px; }
    .slm-sticky-atc { padding: 10px 16px; font-size: 13px; }
}
