/* ==========================================================
   WC Flash Sale Pro — Frontend Styles
   ========================================================== */

/* ── Root / CSS Variables ─────────────────────────────── */
#wcfs-root {
    --wcfs-accent:    #a3e635;
    --wcfs-bg:        #111111;
    --wcfs-text:      #ffffff;
    --wcfs-badge-bg:  #a3e635;
    --wcfs-badge-txt: #000000;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Header Block ─────────────────────────────────────── */
.wcfs-header-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--wcfs-bg);
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
}

.wcfs-sale-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 2px;
    line-height: 1.1;
}

.wcfs-sale-subtitle {
    color: #aaa;
    margin: 0;
    font-size: 0.85rem;
}

/* ── Countdown ────────────────────────────────────────── */
.wcfs-countdown {
    display: flex;
    gap: 8px;
}

.wcfs-cd-unit {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: baseline;
    gap: 3px;
    min-width: 52px;
    justify-content: center;
}

.wcfs-cd-num {
    color: var(--wcfs-accent);
    font-size: 1.3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.wcfs-cd-label {
    color: #888;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Marquee ──────────────────────────────────────────── */
.wcfs-marquee-wrapper {
    background: var(--wcfs-bg);
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    position: relative;
}

.wcfs-marquee-wrapper::before,
.wcfs-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.wcfs-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--wcfs-bg), transparent);
}
.wcfs-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--wcfs-bg), transparent);
}

.wcfs-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    /* animation applied via JS */
}

.wcfs-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit;
}
.wcfs-marquee-item:hover { opacity: 0.75; }

.wcfs-marquee-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #333;
    flex-shrink: 0;
}

.wcfs-marquee-name {
    color: var(--wcfs-text);
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcfs-marquee-price {
    color: var(--wcfs-accent);
    font-size: 0.95rem;
    font-weight: 700;
}
.wcfs-marquee-price del {
    color: #666;
    font-size: 0.78rem;
    font-weight: 400;
    margin-right: 4px;
}

.wcfs-marquee-badge {
    background: var(--wcfs-badge-bg);
    color: var(--wcfs-badge-txt);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.wcfs-marquee-sep {
    color: #444;
    font-size: 1.2rem;
    padding: 0 8px;
    flex-shrink: 0;
}

/* Keyframes — direction set by JS */
@keyframes wcfs-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes wcfs-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
    .wcfs-header-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .wcfs-countdown {
        flex-wrap: wrap;
    }
}
