/* =========================================================
   rr-features.css — Wishlist, Compare, Quick View, Recents
   ========================================================= */

/* Wishlist button */
.rr-wish-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; color: #ccc; line-height: 1;
    padding: 2px 4px; transition: color .12s, transform .12s;
    position: absolute; top: 6px; right: 6px; z-index: 2;
    border-radius: 50%; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.rr-wish-btn:hover { color: #e74c3c; transform: scale(1.15); }
.rr-wish-btn.rr-wish-active { color: #e74c3c; }

/* Compare button */
.rr-cmp-btn {
    background: #f5f5f5; border: 1px solid #ddd; cursor: pointer;
    font-size: .7rem; color: #666; padding: 3px 7px; border-radius: 4px;
    transition: all .12s; white-space: nowrap;
}
.rr-cmp-btn:hover { border-color: #c0392b; color: #c0392b; background: #fff5f4; }
.rr-cmp-btn.rr-cmp-active { border-color: #c0392b; color: #fff; background: #c0392b; }

/* Quick view button */
.rr-qv-btn {
    background: rgba(255,255,255,.9); border: 1px solid #e0e0e0;
    cursor: pointer; font-size: .75rem; color: #555; padding: 4px 10px;
    border-radius: 4px; transition: all .12s; width: 100%;
    display: none;
}
.part-card:hover .rr-qv-btn { display: block; }
.rr-qv-btn:hover { background: #fff; border-color: #c0392b; color: #c0392b; }

/* Part card: needs position:relative for wishlist abs positioning */
.part-card { position: relative; }

/* In-stock pulse */
@keyframes rr-pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.stock-dot-green { animation: rr-pulse 2.5s ease-in-out infinite; }

/* Compare bar */
#rrCompareBar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    background: #1a1a1a; color: #fff;
    padding: 10px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,.3);
    display: none;
}
.rr-cmpbar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 1200px; margin: 0 auto; }
.rr-cmpbar-label { font-size: .82rem; font-weight: 700; color: #aaa; white-space: nowrap; }
.rr-cmpbar-item { background: #333; border-radius: 5px; padding: 4px 10px; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.rr-cmpbar-rm { background: none; border: none; color: #aaa; cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }
.rr-cmpbar-rm:hover { color: #e74c3c; }
.rr-cmpbar-clear { font-size: .75rem !important; }
.rr-cmpbar-go { font-size: .82rem !important; }

/* Recently Viewed tray */
#rrRecentsTray {
    background: #fff; border-top: 3px solid #c0392b;
    padding: 14px 20px 14px; margin-top: 32px;
    border-radius: 0 0 8px 8px; border: 1px solid #e5e5e5;
    display: none;
}
.rr-recents-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: 10px; }
.rr-recents-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.rr-recents-scroll::-webkit-scrollbar { height: 3px; }
.rr-recents-scroll::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }
.rr-recent-item { display: flex; flex-direction: column; text-decoration: none; color: #333; flex-shrink: 0; width: 100px; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; transition: border-color .12s; }
.rr-recent-item:hover { border-color: #c0392b; color: #c0392b; }
.rr-recent-item img { width: 100%; height: 70px; object-fit: contain; background: #f8f8f8; }
.rr-recent-ph { width: 100%; height: 70px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.rr-recent-info { padding: 5px 6px; }
.rr-recent-name { font-size: .68rem; line-height: 1.3; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rr-recent-brand { font-size: .62rem; color: #aaa; }
.rr-recent-price { font-size: .72rem; color: #c0392b; font-weight: 700; margin-top: 2px; }

/* Quick View modal */
.rr-qv-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; }
.rr-qv-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 8px; }
@media (max-width: 576px) { .rr-qv-grid { grid-template-columns: 1fr; } }
.rr-qv-img { background: #f8f8f8; border-radius: 10px; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.rr-qv-img img { max-height: 220px; max-width: 100%; object-fit: contain; padding: 16px; }
.rr-qv-nophoto { font-size: 3rem; color: #ddd; }
.rr-qv-brand { font-size: .78rem; color: #c0392b; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.rr-qv-name { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.rr-qv-price { font-size: 1.7rem; font-weight: 900; color: #c0392b; line-height: 1.1; }

/* Wishlist nav icon */
.nav-wish-link { position: relative; }
#navWishCount { position: absolute; top: -6px; right: -8px; background: #c0392b; color: #fff; font-size: .6rem; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Compare page */
.cmp-table th { background: #f5f5f5; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; white-space: nowrap; }
.cmp-table td { font-size: .86rem; vertical-align: top; }
.cmp-table .cmp-img { width: 100%; max-height: 140px; object-fit: contain; background: #f8f8f8; border-radius: 6px; padding: 8px; }
.cmp-table .cmp-price { font-size: 1.2rem; font-weight: 800; color: #c0392b; }
.cmp-table .cmp-best { background: #eafaf1 !important; }
.cmp-table .cmp-worst { background: #fef9e7 !important; }
