/* ==========================================================================
   WESTORX Recently Viewed strip
   ========================================================================== */

.wstx-recent-section {
    padding: 60px 0 80px;
    background: var(--color-gray-1);
    border-top: 1px solid var(--color-gray-2);
}

.wstx-recent-header {
    text-align: center;
    margin-bottom: 36px;
}

.wstx-recent-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 10px 0;
}

.wstx-recent-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    letter-spacing: 0.01em;
}

/* ── Grid of cards ──────────────────────────────────────────────────────── */
.wstx-recent-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.wstx-recent-card {
    background: var(--color-white);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid transparent;
}
.wstx-recent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-gray-2);
}

.wstx-recent-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-1);
    transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.wstx-recent-card:hover .wstx-recent-card-image {
    transform: scale(1.04);
}

.wstx-recent-card-body {
    padding: 14px 14px 18px;
}

.wstx-recent-card-cat {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gray-3);
    margin: 0 0 4px 0;
}

.wstx-recent-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 6px 0;
    line-height: 1.3;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.wstx-recent-card-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-black);
}
.wstx-recent-card-price del {
    color: var(--color-gray-3);
    font-weight: 400;
    margin-right: 4px;
    font-size: 0.8rem;
}
.wstx-recent-card-price ins {
    text-decoration: none;
    color: var(--color-accent);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .wstx-recent-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .wstx-recent-card:nth-child(5),
    .wstx-recent-card:nth-child(6) {
        display: none;
    }
}

@media (max-width: 767px) {
    .wstx-recent-section {
        padding: 40px 0 60px;
    }
    .wstx-recent-header {
        margin-bottom: 24px;
    }
    .wstx-recent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .wstx-recent-card:nth-child(n+5) {
        display: block;
    }
    .wstx-recent-card-body {
        padding: 12px 12px 16px;
    }
    .wstx-recent-card-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .wstx-recent-card-cat {
        font-size: 0.55rem;
    }
}
