/* ==========================================================================
   WESTORX "Complete the Look" cross-sell
   Sits inside the product summary column, below trust badges.
   ========================================================================== */

.wstx-ctl-section {
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--color-gray-2);
}

.wstx-ctl-header {
    margin-bottom: 16px;
}

.wstx-ctl-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 6px 0;
}

.wstx-ctl-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* ── Horizontal scroller (for narrow product summary column) ────────────── */
.wstx-ctl-scroller {
    margin: 0 -8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wstx-ctl-scroller::-webkit-scrollbar { display: none; }

.wstx-ctl-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 140px;
    gap: 10px;
    padding: 4px 8px 8px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.wstx-ctl-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    transition: transform .3s ease;
}
.wstx-ctl-card:hover {
    transform: translateY(-2px);
}

.wstx-ctl-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: var(--color-gray-1);
    overflow: hidden;
}
.wstx-ctl-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .25s ease;
}
.wstx-ctl-card:hover .wstx-ctl-card-image::after {
    background: rgba(0, 0, 0, 0.04);
}

/* Brand chip top-left */
.wstx-ctl-brand-chip {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 8px;
    z-index: 2;
}

/* Add chip top-right (decorative — clicking the card goes to product) */
.wstx-ctl-add-chip {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: var(--color-black);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.wstx-ctl-card:hover .wstx-ctl-add-chip {
    opacity: 1;
    transform: scale(1);
}
.wstx-ctl-card:hover .wstx-ctl-add-chip {
    background: var(--color-accent);
}

/* Body */
.wstx-ctl-card-body {
    padding: 10px 4px 4px;
}

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

.wstx-ctl-card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}

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

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .wstx-ctl-section {
        margin-top: 24px;
        padding-top: 20px;
    }
    .wstx-ctl-title {
        font-size: 1.15rem;
    }
    .wstx-ctl-grid {
        grid-auto-columns: 130px;
    }
}
