/* ============================================
   RECENTLY VIEWED PRODUCTS SECTION
   ============================================ */

.hh-rv-section {
    background: var(--hh-gray-100);
    border-top: 1px solid var(--hh-gray-200);
}

.hh-rv__header {
    margin-bottom: 2rem;
}

.hh-rv__header h2 {
    margin-bottom: 0;
}

.hh-rv__outer {
    position: relative;
}

.hh-rv__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.hh-rv__track::-webkit-scrollbar {
    display: none;
}

.hh-rv__card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--hh-white);
    border: 1px solid var(--hh-gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hh-rv__card:hover {
    transform: translateY(-4px);
    border-color: var(--hh-yellow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--hh-yellow);
}

.hh-rv__card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hh-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hh-rv__card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform var(--transition);
}

.hh-rv__card:hover .hh-rv__card-img img {
    transform: scale(1.06);
}

.hh-rv__card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 3px solid transparent;
    transition: border-color var(--transition);
}

.hh-rv__card:hover .hh-rv__card-body {
    border-color: var(--hh-yellow);
}

.hh-rv__card-brand {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hh-gray-500);
    margin-bottom: 0.3rem;
    display: block;
}

.hh-rv__card-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hh-black);
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hh-rv__card-price {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hh-black);
    line-height: 1;
}

.hh-rv__card-price .woocommerce-Price-amount {
    color: var(--hh-black);
}

.hh-rv__card-price del {
    color: var(--hh-gray-500);
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 0.2rem;
    opacity: 0.7;
}

.hh-rv__card-price ins {
    text-decoration: none;
    color: #c0392b;
}

.hh-rv__outer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--hh-gray-100));
    pointer-events: none;
}

@media (max-width: 600px) {
    .hh-rv__card {
        flex: 0 0 160px;
    }
}
