/* Shared compact store shelf used by Common Room and article product widgets. */

body.wc-dark-mode:not(.wc-room-page) .wc-room-store.wc-room-tokens {
    --room-primary: #a119a6;
    --room-secondary: #c93dd4;
    --room-ink: #e9e6ef;
    --room-muted: #a9a3b8;
    --room-panel: #17151f;
    --room-panel-2: #1f1c2a;
    --room-border: rgba(255, 255, 255, 0.09);
    --room-radius: 18px;
    color: var(--room-ink);
    font-family: "Estedad", Tahoma, sans-serif;
}

.wc-room-store {
    position: relative;
    z-index: 2;
    max-width: 964px;
    margin: 8px auto 46px;
    padding: 15px 16px 17px;
    box-sizing: border-box;
    border: 1px solid var(--room-border);
    border-radius: var(--room-radius);
    background: linear-gradient(180deg, var(--room-panel-2), var(--room-panel));
    box-shadow: 0 12px 34px -22px rgba(0, 0, 0, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.wc-room-store--compact {
    max-width: none;
    margin: 34px auto 42px;
}

.wc-room-store-li {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    background: none;
    border: 0;
}

.wc-room-store--inline {
    max-width: none;
    margin: 0;
}

.wc-room-store-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.wc-room-store-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--room-ink);
}

.wc-room-store-eyebrow i {
    color: var(--room-primary);
    font-size: 0.95em;
}

.wc-room-store-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--room-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.wc-room-store-all:hover {
    color: var(--room-primary);
}

.wc-room-store-all i {
    font-size: 0.8em;
}

.wc-room-store-shelf {
    position: relative;
}

.wc-room-store-track {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 2px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: inline proximity;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
}

.wc-room-store-track::-webkit-scrollbar {
    display: none;
}

.wc-room-store-card {
    flex: 0 0 auto;
    width: 150px;
    scroll-snap-align: start;
}

.wc-room-store-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    border: 1px solid var(--room-border);
    border-radius: 14px;
    background: var(--room-panel);
    color: var(--room-ink);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wc-room-store-link:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--room-primary) 55%, transparent);
    box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--room-primary) 70%, black);
}

.wc-room-store-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 9px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--room-panel-2);
    color: var(--room-muted);
}

.wc-room-store-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-room-store-thumb i {
    font-size: 1.8rem;
}

.wc-room-store-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(0.82rem * 1.5 * 2);
    margin-bottom: 6px;
    overflow: hidden;
    color: var(--room-ink);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

.wc-room-store-price {
    margin-bottom: 9px;
    color: var(--room-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.wc-room-store-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 7px 10px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--room-primary), var(--room-secondary));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.wc-room-store-buy i {
    font-size: 0.9em;
}

.wc-room-store-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    visibility: hidden;
    transform: translateY(-50%);
    border: 1px solid var(--room-border);
    border-radius: 50%;
    opacity: 0;
    background: var(--room-panel-2);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.85);
    color: var(--room-ink);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.18s ease, visibility 0.18s ease,
                background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wc-room-store-nav.is-shown {
    visibility: visible;
    opacity: 1;
}

.wc-room-store-nav:hover,
.wc-room-store-nav:focus-visible {
    border-color: color-mix(in srgb, var(--room-primary) 70%, transparent);
    background: linear-gradient(135deg, var(--room-primary), var(--room-secondary));
    color: #fff;
}

.wc-room-store-nav--start {
    inset-inline-start: -7px;
}

.wc-room-store-nav--end {
    inset-inline-end: -7px;
}

@media (max-width: 480px) {
    .wc-room-store {
        margin-bottom: 38px;
        padding: 13px 12px 15px;
    }

    .wc-room-store--compact {
        margin-top: 26px;
    }

    .wc-room-store-card {
        width: 134px;
    }

    .wc-room-store-eyebrow {
        font-size: 0.88rem;
    }

    .wc-room-store-thumb i {
        font-size: 1.6rem;
    }

    .wc-room-store-nav {
        width: 29px;
        height: 29px;
        font-size: 0.9rem;
    }

    .wc-room-store-nav--start {
        inset-inline-start: -4px;
    }

    .wc-room-store-nav--end {
        inset-inline-end: -4px;
    }
}
