/**
 * POG.VN – 20-flash-deals.css
 * Dải trượt ngang Minimalist Carousel (Chuẩn Apple / Muji / Lock&Lock)
 * Nền trắng tinh khiết #FFFFFF 100%, tinh giản, sang trọng, thanh thoát.
 */

/* Section Container */
.pog-flash-deals {
    background: #FFFFFF !important;
    padding: 32px 0 38px;
    position: relative;
    border-top: 1px solid #F1F5F9;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header Bar */
.pog-fd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
    gap: 16px;
    flex-wrap: wrap;
}

.pog-fd-header__left {
    display: flex;
    flex-direction: column;
}

.pog-fd-header__eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    color: #FA4F26;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.pog-fd-header__title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 5px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.pog-fd-header__sub {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    font-weight: 500;
}

.pog-fd-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pog-fd-header__all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pog-fd-header__all:hover {
    color: #FA4F26;
    transform: translateX(2px);
}

/* Nav Controls */
.pog-fd-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pog-fd-nav__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.pog-fd-nav__btn:hover {
    border-color: #FA4F26;
    color: #FA4F26;
    background: rgba(250, 79, 38, 0.05);
    transform: scale(1.05);
}

.pog-fd-nav__btn:active {
    transform: scale(0.95);
}

/* Carousel Track */
.pog-fd-carousel {
    position: relative;
    width: 100%;
}

.pog-fd-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pog-fd-track::-webkit-scrollbar {
    display: none;
}

/* Minimalist Item Card */
.pog-fd-item {
    flex: 0 0 calc((100% - 3 * 18px) / 4);
    max-width: calc((100% - 3 * 18px) / 4);
    scroll-snap-align: start;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F1F5F9;
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pog-fd-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.06);
    border-color: rgba(250, 79, 38, 0.3);
}

.pog-fd-item__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #F8FAFC;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.pog-fd-item__img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pog-fd-item__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.pog-fd-item:hover .pog-fd-item__img {
    transform: scale(1.05);
}

.pog-fd-item__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #FA4F26;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(250, 79, 38, 0.25);
}

.pog-fd-item__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pog-fd-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 10px;
    min-height: 40px;
}

.pog-fd-item__title a {
    color: #1E293B;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.pog-fd-item__title a:hover {
    color: #FA4F26;
}

.pog-fd-item__prices {
    font-size: 16px;
    font-weight: 700;
    color: #FA4F26;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.pog-fd-item__prices .woocommerce-Price-amount {
    color: #FA4F26;
    font-size: 16px;
    font-weight: 800;
}

.pog-fd-item__prices del {
    color: #94A3B8;
    font-size: 13px;
    font-weight: 500;
}

.pog-fd-item__prices del .woocommerce-Price-amount {
    color: #94A3B8;
    font-size: 13px;
    font-weight: 500;
}

.pog-fd-item__prices ins {
    text-decoration: none;
}

.pog-fd-item__action {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #F1F5F9;
}

.pog-fd-item__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: #F8FAFC;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.pog-fd-item__btn:hover {
    background: #FA4F26;
    color: #FFFFFF;
    border-color: #FA4F26;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .pog-fd-item {
        flex: 0 0 calc((100% - 2 * 16px) / 3);
        max-width: calc((100% - 2 * 16px) / 3);
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .pog-flash-deals {
        padding: 22px 0 28px;
    }

    .pog-fd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .pog-fd-header__title {
        font-size: 20px;
    }

    .pog-fd-header__right {
        width: 100%;
        justify-content: space-between;
    }

    /* Ẩn nút điều hướng trên mobile để người dùng vuốt tay tự nhiên */
    .pog-fd-nav {
        display: none;
    }

    .pog-fd-track {
        gap: 12px;
        padding: 2px 2px 10px;
    }

    /* Hiển thị ~1.3 thẻ để kích thích vuốt ngang */
    .pog-fd-item {
        flex: 0 0 68%;
        max-width: 68%;
        padding: 10px;
        border-radius: 12px;
    }

    .pog-fd-item__media {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .pog-fd-item__title {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 6px;
    }

    .pog-fd-item__prices {
        margin-bottom: 8px;
    }

    .pog-fd-item__prices .woocommerce-Price-amount {
        font-size: 15px;
    }
}
