/* front-flash-sale.css — extracted from front-page.php inline <style> (v1.7.0)
   Source lines 342-617. Loaded only on the front page, after theme styles. */
    /* FLASH SALE */
    .bf-flash-section { margin-top: 24px !important; }
    .bf-flash-note { margin: -8px 0 12px !important; padding: 0 4px; color: #6b7280; font-size: 12px; font-weight: 600; }

    .bf-flash-header {
        display: grid;
        grid-template-columns: auto minmax(0,1fr) auto auto;
        align-items: center; gap: 22px;
        padding: 18px 22px; border-radius: 18px;
        background:
            #111111;
        box-shadow: 0 14px 30px rgba(129,215,66,.35);
        color: #ffffff; margin-bottom: 16px;
    }
    .bf-flash-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .bf-flash-icon {
        width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
        display: inline-flex; align-items: center; justify-content: center;
        background: #ffffff; box-shadow: 0 8px 18px rgba(0,0,0,.14);
        font-size: 24px; line-height: 1; color: var(--asbd-primary-hover, #69bd35);
    }
    .bf-flash-label {
        display: block; font-size: 11px; font-weight: 800;
        letter-spacing: 1.5px; text-transform: uppercase;
        color: rgba(255,255,255,.92); margin-bottom: 4px;
    }
    .bf-flash-title {
        margin: 0 !important; color: #ffffff !important;
        font-size: 26px !important; line-height: 1.1 !important;
        font-weight: 900 !important; letter-spacing: -.4px;
    }
    .bf-flash-desc {
        font-size: 12.5px; line-height: 1.55;
        color: rgba(255,255,255,.92);
        max-width: 420px; font-weight: 500;
    }

    .bf-flash-timer { display: flex; align-items: center; gap: 8px; }
    .bf-flash-time {
        min-width: 56px; padding: 8px 6px; border-radius: 10px;
        background: rgba(0,0,0,.28);
        border: 1px solid rgba(255,255,255,.20);
        display: flex; flex-direction: column; align-items: center;
        gap: 2px; line-height: 1;
    }
    .bf-flash-time strong {
        display: block; font-family: 'Courier New', monospace;
        font-size: 22px; font-weight: 800; color: #ffffff; letter-spacing: .5px;
    }
    .bf-flash-time span {
        display: block; font-size: 9px; font-weight: 700;
        letter-spacing: 1px; color: rgba(255,255,255,.75); text-transform: uppercase;
    }
    .bf-flash-colon { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.55); transform: translateY(-6px); }

    .bf-flash-viewall {
        display: inline-flex; align-items: center; gap: 6px;
        min-height: 42px; padding: 0 18px; border-radius: 999px;
        background: #ffffff !important;
        color: var(--asbd-primary-hover, #69bd35) !important;
        font-size: 13px; font-weight: 800;
        text-decoration: none !important;
        box-shadow: 0 8px 20px rgba(0,0,0,.14);
        white-space: nowrap;
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .bf-flash-viewall:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0,0,0,.20);
        color: var(--asbd-primary-hover, #69bd35) !important;
    }

    /* --- FLASH SALE SLIDER WRAPPER & ARROWS --- */
    .bf-flash-slider-wrapper {
        position: relative;
        width: 100%;
    }
    .bf-flash-slider {
        position: relative; width: 100%; overflow: hidden; padding: 6px 0;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    }
    .bf-flash-track {
        display: flex; gap: 14px; width: max-content;
        animation: bfFlashScroll 60s linear infinite;
        will-change: transform;
    }
    .bf-flash-slider:hover .bf-flash-track { animation-play-state: paused; }
    @keyframes bfFlashScroll {
        0%   { transform: translate3d(0, 0, 0); }
        100% { transform: translate3d(-50%, 0, 0); }
    }

    /* ARROWS */
    .bf-flash-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        color: #111827;
        transition: all 0.2s ease;
        padding: 0;
        outline: none;
    }
    .bf-flash-arrow:hover {
        background: var(--asbd-primary, #81d742);
        border-color: var(--asbd-primary, #81d742);
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(129, 215, 66, 0.4);
    }
    .bf-flash-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        pointer-events: none;
        background: #ffffff;
        border-color: #e5e7eb;
        color: #111827;
    }
    .bf-flash-arrow svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
    .bf-flash-arrow-prev { left: -16px; }
    .bf-flash-arrow-next { right: -16px; }

    @media (max-width: 1024px){
        .bf-flash-header { grid-template-columns: auto 1fr auto; row-gap: 14px; }
        .bf-flash-desc { grid-column: 1 / -1; order: 3; max-width: none; }
        .bf-flash-viewall { order: 2; }
        .bf-flash-arrow-prev { left: -8px; }
        .bf-flash-arrow-next { right: -8px; }
    }
    @media (max-width: 767px){
        .bf-flash-section { margin-top: 16px !important; }
        .bf-flash-header { display: block; padding: 16px; border-radius: 16px; }
        .bf-flash-header-left { margin-bottom: 12px; }
        .bf-flash-title { font-size: 22px !important; }
        .bf-flash-desc { font-size: 12px; margin-bottom: 14px; }
        .bf-flash-timer { justify-content: flex-start; margin-bottom: 12px; }
        .bf-flash-time { min-width: 48px; padding: 6px 4px; }
        .bf-flash-time strong { font-size: 18px; }
        .bf-flash-viewall { width: 100%; justify-content: center; }
        .bf-flash-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 20px; }
        .bf-flash-card { flex: 0 0 168px; width: 168px; max-width: 168px; }
        .bf-flash-track { gap: 10px; animation-duration: 45s; }
        .bf-flash-name { min-height: 32px; max-height: 32px; }
        .bf-flash-name a { font-size: 12px; }
        .bf-flash-price .bf-new { font-size: 14px; }
        /* Hide arrows on mobile */
        .bf-flash-arrow { display: none !important; }
    }
    @media (max-width: 400px){
        .bf-flash-card { flex: 0 0 155px; width: 155px; max-width: 155px; padding: 8px 8px 10px; }
        .bf-flash-cart { font-size: 11px; min-height: 32px; }
    }
    @media (prefers-reduced-motion: reduce){
        .bf-flash-track { animation: none; }
        .bf-flash-arrow { display: none; }
    }

    .bf-flash-card {
        position: relative; flex: 0 0 210px; width: 210px; max-width: 210px;
        display: flex; flex-direction: column; padding: 10px 10px 12px;
        background: #ffffff; border: 1px solid #eceff3; border-radius: 14px;
        box-shadow: 0 4px 14px rgba(0,0,0,.05);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        overflow: hidden; box-sizing: border-box;
    }
    .bf-flash-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(0,0,0,.12);
        border-color: rgba(129,215,66,.45);
    }
    .bf-flash-discount {
        position: absolute; top: 10px; left: 10px; z-index: 3;
        padding: 4px 8px; border-radius: 6px;
        background: var(--asbd-primary, #81d742); color: #ffffff;
        font-size: 11px; font-weight: 800; line-height: 1;
        letter-spacing: .2px; box-shadow: 0 4px 10px rgba(129,215,66,.40);
    }
    .bf-flash-img {
        display: flex; align-items: center; justify-content: center;
        width: 100%; aspect-ratio: 1 / 1; margin-bottom: 10px;
        background: #f7f8fb; border-radius: 10px; overflow: hidden;
        text-decoration: none !important;
    }
    .bf-flash-img img {
        display: block; width: 100%; height: 100%;
        object-fit: contain; transition: transform .3s ease;
    }
    .bf-flash-card:hover .bf-flash-img img { transform: scale(1.06); }
    .bf-flash-name {
        margin-bottom: 8px; min-height: 36px; max-height: 36px; overflow: hidden;
    }
    .bf-flash-name a {
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden; color: #111827 !important;
        font-size: 12.5px; line-height: 1.4; font-weight: 600;
        text-decoration: none !important;
    }
    .bf-flash-name a:hover { color: var(--asbd-primary-hover, #69bd35) !important; }
    .bf-flash-price {
        display: flex; align-items: baseline; gap: 6px;
        margin-bottom: 6px; flex-wrap: wrap; line-height: 1.1;
    }
    .bf-flash-price .bf-new { color: #111827 !important; font-size: 16px; font-weight: 800; }
    .bf-flash-price .bf-new .woocommerce-Price-amount,
    .bf-flash-price .bf-new .woocommerce-Price-currencySymbol {
        color: inherit !important; font-size: inherit !important; font-weight: inherit !important;
    }
    .bf-flash-price .bf-old {
        color: #9ca3af !important; font-size: 12px; font-weight: 600;
        text-decoration: line-through;
    }
    .bf-flash-price .bf-old .woocommerce-Price-amount,
    .bf-flash-price .bf-old .woocommerce-Price-currencySymbol {
        color: inherit !important; font-size: inherit !important; font-weight: inherit !important;
    }
    .bf-flash-price .bf-off { color: var(--asbd-primary-hover, #69bd35) !important; font-size: 12px; font-weight: 800; }
    .bf-flash-footer {
        margin-top: auto; padding-top: 8px;
        display: flex; align-items: center; gap: 8px;
    }
    .bf-flash-new {
        display: inline-flex; align-items: center; justify-content: center;
        padding: 3px 7px; border-radius: 5px;
        background: var(--asbd-primary-soft, rgba(129,215,66,.14));
        color: var(--asbd-primary-hover, #69bd35);
        font-size: 9.5px; font-weight: 800; line-height: 1;
        letter-spacing: .2px; flex: 0 0 auto;
    }
    .bf-flash-progress { flex: 1 1 auto; min-width: 0; }
    .bf-flash-bar {
        width: 100%; height: 5px; border-radius: 999px;
        background: #e5e7eb; overflow: hidden; margin-bottom: 4px;
    }
    .bf-flash-bar > span {
        display: block; height: 100%; border-radius: 999px;
        background: linear-gradient(90deg,
            var(--asbd-primary, #81d742) 0%,
            var(--asbd-primary-hover, #69bd35) 100%);
        transition: width .3s ease;
    }
    .bf-flash-progress-text {
        display: flex; align-items: center; justify-content: space-between;
        gap: 4px; font-size: 10px; line-height: 1;
        color: #6b7280; font-weight: 600; white-space: nowrap;
    }
    .bf-flash-progress-text .bf-flash-sold { color: #111827; font-weight: 800; }
    .bf-flash-cart {
        display: flex; align-items: center; justify-content: center;
        width: 100%; min-height: 34px; margin-top: 8px; padding: 0 10px;
        border: 0 !important; border-radius: 9px !important;
        background: var(--asbd-primary, #81d742) !important;
        color: #ffffff !important; font-size: 12px; font-weight: 800;
        text-decoration: none !important; cursor: pointer;
        font-family: inherit; box-shadow: none; line-height: 1;
        transition: background .18s ease, transform .18s ease;
    }
    .bf-flash-cart:hover, .bf-flash-cart:focus {
        background: var(--asbd-primary-hover, #69bd35) !important;
        color: #ffffff !important; transform: translateY(-1px);
    }
    .bf-flash-cart.is-loading { opacity: .65; pointer-events: none; }
