/* =============================================================================
   Flash sale — Lightning deal
   ============================================================================= */

.shop-section--flash {
    margin-top: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    overflow: visible;
}

.shop-flash {
    position: relative;
    overflow: visible;
    border-radius: 22px;
    padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.25rem, 3.5vw, 2.5rem);
    background-color: var(--accent);
    box-shadow: 0 12px 32px var(--accent-shadow);
}

.shop-flash__layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 3.5vw, 2.5rem);
}

.shop-flash__copy {
    flex: 1 1 16rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.shop-flash__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    width: fit-content;
    padding: 0.35rem 0.8rem 0.35rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: color-mix(in srgb, #fff 22%, var(--accent-dark));
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.shop-flash__eyebrow-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65);
    animation: shop-flash-pulse 1.4s ease-out infinite;
}

@keyframes shop-flash-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.shop-flash__title {
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 12ch;
    color: #fff;
}

.shop-flash__lead {
    margin: 0;
    max-width: 28rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.shop-flash__timer {
    display: inline-flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-top: 0.15rem;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.shop-flash__timer-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.shop-flash__timer-value {
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    min-width: 4.2ch;
}

.shop-flash__timer-value.is-urgent {
    animation: shop-flash-timer-blink 0.9s ease-in-out infinite;
}

@keyframes shop-flash-timer-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.shop-flash__stage {
    flex: 0 0 auto;
    width: min(100%, 17.5rem);
    margin-block: clamp(-2.75rem, -6vw, -1.75rem);
    transform: rotate(3.5deg) scale(1.08);
    transform-origin: center center;
    animation: shop-flash-card-float 4.2s ease-in-out infinite;
    filter: drop-shadow(0 14px 28px rgba(44, 18, 59, 0.28));
    z-index: 2;
    position: relative;
    min-height: 18rem;
}

.shop-flash__stage.is-transitioning {
    pointer-events: none;
}

.shop-flash__stage .shop-card {
    width: 100%;
    transition:
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-flash__stage .shop-card.is-exiting {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(-28%) scale(0.9) rotate(-3deg);
    pointer-events: none;
    z-index: 1;
}

.shop-flash__stage .shop-card.is-entering {
    opacity: 0;
    transform: translateX(28%) scale(0.9) rotate(3deg);
}

.shop-flash__stage .shop-card.is-active {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
}

@keyframes shop-flash-card-float {
    0%, 100% { transform: rotate(3.5deg) scale(1.08) translateY(0); }
    50% { transform: rotate(2deg) scale(1.08) translateY(-6px); }
}

.shop-card--flash {
    position: relative;
}

.shop-card__flash-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 4;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 4px 12px var(--accent-shadow);
    animation: shop-flash-badge-pop 2.2s ease-in-out infinite;
}

.shop-card--flash .shop-card__fighter-badge {
    top: 2.65rem;
    right: 0.75rem;
}

@keyframes shop-flash-badge-pop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    40% { transform: scale(1.08) rotate(-4deg); }
    70% { transform: scale(1.02) rotate(2deg); }
}

.shop-card__price--flash {
    align-items: center;
}

.shop-card__price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    gap: 0.1rem;
}

.shop-card__price-was {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(44, 18, 59, 0.45);
    text-decoration: line-through;
}

html[data-theme="dark"] .shop-card__price-was {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 720px) {
    .shop-flash__layout {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .shop-flash__stage {
        width: min(100%, 15.5rem);
        margin: clamp(-1.5rem, -4vw, -0.75rem) auto;
        transform: rotate(2.5deg) scale(1.05);
        animation-name: shop-flash-card-float-mobile;
    }

    @keyframes shop-flash-card-float-mobile {
        0%, 100% { transform: rotate(2.5deg) scale(1.05) translateY(0); }
        50% { transform: rotate(1.2deg) scale(1.05) translateY(-5px); }
    }

    .shop-flash__title {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-flash__eyebrow-pulse,
    .shop-flash__stage,
    .shop-card__flash-badge,
    .shop-flash__timer-value.is-urgent {
        animation: none;
    }

    .shop-flash__stage .shop-card {
        transition: none;
    }
}
