/* ============================================================
   NKD Flash Sale Widget
   ============================================================ */

:root {
    --nkd-fs-bg: #2a4698;
    --nkd-fs-red-color: #e53e3e;
}

.nkd-flash-sale {
    background: var(--nkd-fs-bg);
    border-radius: 12px;
    padding: 0 20px 24px;
    position: relative;
}

/* ---- Ornate title frame: white hatched banner, corner triangles ---- */
.nkd-fs-title-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    background-image: url(/wp-content/uploads/2026/03/xyz-e1773931651625.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: -30px;
}

/* Centered pill label */
.nkd-fs-title-pill {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: var(--nkd-fs-bg);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 40px;
    border-radius: 30px;
    white-space: nowrap;
}

/* ---- Countdown row: right-aligned below the frame ---- */
.nkd-fs-countdown-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
    position: absolute;
    z-index: 1;
    top: 15px;
    right: 10px;
}

/* ---- Countdown — large yellow digits ---- */
.nkd-fs-countdown {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nkd-fs-digit {
    font-size: 48px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    min-width: 58px;
    text-align: center;
    line-height: 1;
}

.nkd-fs-sep {
    font-size: 40px;
    font-weight: 700;
    color: white;
    line-height: 1;
    padding-bottom: 4px;
    opacity: 0.9;
}

/* ---- Product Grid ---- */
.nkd-fs-products {
    display: grid;
    grid-template-columns: repeat(var(--nkd-fs-cols, 4), 1fr);
    gap: 14px;
}

/* ---- Product Card ---- */
.nkd-fs-product-card {
    background: #fff;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Discount badge */


.nkd-fs-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.nkd-fs-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nkd-fs-img-wrap:hover img {
    transform: scale(1.04);
}

.nkd-fs-no-img {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.nkd-fs-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nkd-fs-product-name {
    font-size: 14px;
    color: #222;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    font-weight: 600;
}
.discount-bade {
    position: absolute;
    left: -.25rem;
    top: .5rem;
    display: block;
    padding-bottom: .25rem;
}
.discount-bade::before
{
        content: " ";
    position: absolute;
    left: 0;
    top: 1px;
    margin-top: 1px;
    height: 100%;
    width: .25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-left-radius: 0.25rem;
    background-color: hsl(0 80.37% 31.96%);
}
span.nkd-fs-badge {
    z-index: 1;
    position: relative;
    height: 1.25rem;
    white-space: nowrap;
    border-radius: 0.25rem;
    border-bottom-left-radius: 0;
    background-color: hsl(0 88.89% 54.12%);
    padding: .25rem .5rem;
    font-size: .75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / 1);
}
.nkd-fs-product-name:hover { color: var(--nkd-fs-bg); }

.nkd-fs-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nkd-fs-price-flash {
    font-size: 17px;
    font-weight: 700;
    color: var(--nkd-fs-red-color);
}

.nkd-fs-price-regular {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}

.nkd-fs-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1.5px solid var(--nkd-fs-bg);
    color: var(--nkd-fs-bg);
    border-radius: 6px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nkd-fs-btn-buy:hover {
    background: var(--nkd-fs-bg);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nkd-fs-products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nkd-fs-digit      { font-size: 28px; min-width: 34px; }
    .nkd-fs-sep        { font-size: 24px; }
    .nkd-fs-title-pill { font-size: 13px; padding: 8px 24px; letter-spacing: 1px; }

    /* Fix countdown overflow on mobile */
    .nkd-fs-countdown-row {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        justify-content: center !important;
        margin-top: -20px;
        margin-bottom: 10px;
    }

    .nkd-flash-sale {
        padding: 0 12px 18px;
    }

    /* Title frame — scale background for mobile */
    .nkd-fs-title-frame {
        min-height: 60px;
        background-size: 100% auto;
        top: -20px;
    }

    /* Product card text */
    .nkd-fs-product-name {
        font-size: 13px;
    }

    .nkd-fs-price-flash {
        font-size: 15px;
    }

    .nkd-fs-card-body {
        padding: 10px 10px 12px;
    }
}

@media (max-width: 480px) {
    .nkd-fs-products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nkd-flash-sale { padding: 0 10px 14px; }

    .nkd-fs-digit      { font-size: 22px; min-width: 28px; }
    .nkd-fs-sep        { font-size: 18px; }
    .nkd-fs-title-pill { font-size: 11px; padding: 6px 16px; }
}

