/**
 * å•†å“è©³ç´°ãƒšãƒ¼ã‚¸ ã‚»ãƒ¼ãƒ«æœŸé–“ã‚«ã‚¦ãƒ³ãƒˆãƒ€ã‚¦ãƒ³ã‚¿ã‚¤ãƒžãƒ¼
 */

 #product-sale-countdown {
    background: linear-gradient(135deg, #6e00d5 0%, #da2c55 50%, #ffaa44 100%);
    color: #fff;
    padding: 15px 16px 9px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(192, 18, 12, 0.4);
    position: relative;
    overflow: hidden;
    width: 90%;
    text-align: center;
}

/* å…‰æ²¢ãƒ©ã‚¤ãƒ³ */
#product-sale-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -160%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: pscShimmer 3s infinite;
    pointer-events: none;
}

@keyframes pscShimmer {
    0%   { left: -160%; }
    100% { left: 160%; }
}

/* ---- ãƒ¡ã‚¤ãƒ³è¡Œï¼ˆãƒãƒƒã‚¸ï¼‹ãƒ©ãƒ™ãƒ« ï½œ ã‚¿ã‚¤ãƒžãƒ¼ï¼‰ ---- */
.psc-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

/* å·¦å´ï¼šãƒãƒƒã‚¸ï¼‹ã€Œæ®‹ã‚Šæ™‚é–“ã€ */
.psc-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
}

.psc-badge {
    display: inline-block;
    background: #fff;
    color: #bc0c97;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
}

.psc-remaining-label {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* å³å´ï¼šã‚¿ã‚¤ãƒžãƒ¼æ•°å­— */
.psc-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.psc-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 6px 8px 4px;
    min-width: 52px;
}

.psc-number {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    font-variant-numeric: tabular-nums;
    display: block;
    text-align: center;
}

.psc-label {
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.85;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.psc-sep {
    font-size: 22px;
    font-weight: 900;
    color: rgba(255,255,255,0.7);
    animation: pscBlink 2s step-start infinite;
    margin-bottom: 12px;
    flex-shrink: 0;
}

@keyframes pscBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.2; }
}

/* ---- ãƒ•ãƒƒã‚¿ãƒ¼ ---- */
.psc-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 1px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ---- ç·Šæ€¥æ¼”å‡ºï¼ˆæ®‹ã‚Š1æ™‚é–“æœªæº€ï¼‰ ---- */
#product-sale-countdown.is-urgent {
    animation: pscUrgentPulse 1s ease-in-out infinite;
}

@keyframes pscUrgentPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(192,18,12,0.4); }
    50%       { box-shadow: 0 6px 24px rgba(192,18,12,0.7); }
}

/* ---- çµ‚äº†è¡¨ç¤º ---- */
#product-sale-countdown.is-expired {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    box-shadow: none;
}

#product-sale-countdown.is-expired::before {
    display: none;
}

/* ---- ãƒ¬ã‚¹ãƒãƒ³ã‚·ãƒ– ---- */
@media (max-width: 900px) {
    #product-sale-countdown{
        width:100%;
    }
    .psc-number {
        font-size: 22px;
    }

    .psc-unit {
        min-width: 44px;
        padding: 5px 6px 3px;
    }

    .psc-sep {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .psc-main-row {
        gap: 8px;
    }

    .psc-number {
        font-size: 20px;
    }

    .psc-unit {
        min-width: 38px;
        padding: 4px 5px 3px;
    }

    .psc-sep {
        font-size: 16px;
    }

    .psc-label {
        font-size: 9px;
    }
}
