/* wrapper để làm mốc định vị */
.product-Section .featured-wrap {
    position: relative;
}

.product-Section .section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 14px;
    flex-wrap: nowrap;
}

.product-Section .section-title {
    position: relative;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

.product-Section .section-title i {
    color: var(--accent);
}

.product-Section .header-line {
    flex: 1 1 auto;
    height: 1px;
    background: #dcdcdc;
    transform: translateY(2px);
}

.product-Section .nav-buttons {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.product-Section .nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-secondary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.product-Section .nav-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Swiper làm mốc cho overlay */
.product-Section .featured-swiper {
    position: relative;
}

/* ===== MOBILE STYLE (≤576px) ===== */
@media (max-width: 576px) {
    .product-Section .header-line {
        display: none;
    }

    /* bớt chật */
    .product-Section .section-header {
        margin-bottom: 8px;
    }

    /* Đặt nút overlay trên slider, 2 bên, căn giữa dọc */
    .product-Section .nav-buttons {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        justify-content: space-between;
        padding: 0 6px;
        pointer-events: none;
    }

    .product-Section .nav-buttons .nav-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    }

    /* Ẩn viền, tăng hit area giống app TMĐT */
    .product-Section .nav-buttons .nav-btn {
        border-color: transparent;
    }
}

/* Có thể thêm hover mạnh hơn ở desktop */
@media (min-width: 577px) {
    .product-Section .nav-buttons {
        position: static;
        transform: none;
        padding: 0;
        justify-content: flex-end;
        pointer-events: auto;
    }
}


/* ===== Section layout ===== */
.coop-section .section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.coop-section .section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.coop-section .section-title i {
    color: var(--accent);
}

.coop-section .header-line {
    flex: 1 1 auto;
    height: 1px;
    background: #dcdcdc;
    transform: translateY(2px);
}

.coop-section .coop-nav {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.coop-section .nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-secondary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.coop-section .nav-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ===== Banner "Deal Of The Day" ===== */
.deal-banner {
    border: 2px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--light-bg);
    height: 100%;
}

.deal-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deal-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-primary);
    font-weight: 700;
    background: rgba(255, 255, 255, .9);
    padding: 6px 10px;
    border-radius: 10px;
}

.deal-divider {
    width: 60px;
    height: 2px;
    background: #e1e1e1;
    border-radius: 2px;
    margin-left: .5rem;
}

/* ===== Product list item (horizontal card) ===== */
.product-row {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    padding: 14px;
    transition: .2s;
}

.product-row:hover {
    box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
    transform: translateY(-1px);
}

.thumb {
    position: relative;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--light-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pct-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 2px 6px;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 6px;
    color: var(--text-primary);
}

.meta {
    flex: 1 1 auto;
    min-width: 0;
}

.rating {
    color: #f59e0b;
    font-size: .85rem;
}

.title {
    margin: 4px 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.price .sale {
    font-weight: 800;
    color: var(--text-primary);
}

.price .base {
    text-decoration: line-through;
    color: var(--muted);
    font-size: .9rem;
}

/* ===== Swiper sizing ===== */
.coop-swiper {
    position: relative;
}

.vlist {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.swiper-slide {
    height: auto;
}

/* để list tự cao */

/* ===== Mobile UX: overlay arrows 2 bên slider ===== */
@media (max-width: 576px) {
    .coop-section .header-line {
        display: none;
    }

    .coop-section .coop-nav {
        position: absolute;
        top: 50%;
        /*left: 0;*/
        right: 0;
        transform: translateY(-50%);
        justify-content: space-between;
        padding: 0 6px;
        pointer-events: none;
    }

    .coop-section .coop-nav .nav-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    }
}
