/* ===== TỦ SÁCH DOANH NHÂN HBR ===== */
.book-collection {
    --hbr-navy: rgba(0, 40, 90, 1);
    --hbr-red: #e11414;
    padding: 30px 0 50px;

    /* Biến cho card .hbr-book-card (vốn được định nghĩa trong .hbr-shop của shop.css)
       — khai báo lại ở đây để tái dùng card trang sách ngoài phạm vi .hbr-shop */
    --navy: #00285a;
    --navy-soft: #2c6ab8;
    --muted: #6b7280;
    --line: #e6eaf0;
    --card: #ffffff;
    --radius: 14px;
    --shadow-hover: 0 16px 40px rgba(15, 42, 81, .16);
    --grad-navy: linear-gradient(135deg, #2c6ab8 0%, #00285a 100%);
    --grad-red: linear-gradient(90deg, #cf2027 0%, #7c1317 100%);
}

.book-collection__head {
    margin-bottom: 18px;
}

.book-collection__title {
    font-family: 'UTM-Bebas', 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 55px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--hbr-navy);
    margin: 0;
    text-transform: uppercase;
}

.book-collection__title::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    background: rgba(203, 32, 39, 1);
    margin-top: 10px;
}

.book-collection__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    color: var(--hbr-navy);
    margin: 10px 0 0;
}

/* Header row: title block + "Xem tất cả" top-right */
.book-collection__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.book-collection__viewall-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--hbr-navy);
    color: var(--hbr-navy);
    background: #fff;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}

.book-collection__viewall-top:hover {
    background: var(--hbr-navy);
    color: #fff;
}

/* ===== Filter tabs ===== */
.book-collection__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.book-collection__tab {
    min-width: 123px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--hbr-navy);
    border-radius: 6px;
    background: rgba(255, 255, 255, 1);
    color: var(--hbr-navy);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.book-collection__tab.is-active {
    background: var(--hbr-navy);
    border: 1px solid var(--hbr-navy);
    color: #fff;
}

/* ===== Box carousel ===== */
.book-collection__box {
    position: relative;
    max-width: 1340px;
    margin: 0 auto;
    border-radius: 20px;
    background-image: url('/templates/kaizen/images/book-collection-bg.png');
    background-size: cover;
    background-position: center;
    background-color: var(--hbr-navy);
    padding: 36px 28px;
}

.book-collection__box .owl-stage { display: flex; }
.book-collection__box .owl-item { display: flex; height: auto; }

/* Nav arrows */
.book-collection__box .owl-nav {
    margin: 0;
}

.book-collection__box .owl-nav button.owl-prev,
.book-collection__box .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9) !important;
    color: var(--hbr-navy) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: all .2s ease;
}

.book-collection__box .owl-nav button.owl-prev { left: -20px; }
.book-collection__box .owl-nav button.owl-next { right: -20px; }

.book-collection__box .owl-nav button.owl-prev:hover,
.book-collection__box .owl-nav button.owl-next:hover {
    background: #fff !important;
}

.book-collection__box .owl-nav button.disabled { opacity: .4; }

/* Card trang sách (.hbr-book-card) trong carousel: cố định 290x433 */
.book-collection__box .hbr-book-card {
    width: 290px;
    max-width: 100%;
    height: 480px;
    margin: 0 auto;
}

.book-collection__box .hbr-book-card__media {
    aspect-ratio: auto;
    height: 240px;
    flex: 0 0 auto;
}

.book-collection__box .hbr-book-card__body {
    flex: 1 1 auto;
    overflow: hidden;
}

.book-collection__box .hbr-price__now {
    color: rgba(207, 32, 39, 1);
    font-family: 'UTM-Bebas', 'UTM Bebas', 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
}

/* Bottom "Xem tất cả" pill */
.book-collection__viewall-bottom-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.book-collection__viewall-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 999px;
    padding: 10px 26px;
    color: var(--hbr-navy);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transition: all .2s ease;
}

.book-collection__viewall-bottom:hover {
    background: var(--hbr-navy);
    color: #fff;
    border-color: var(--hbr-navy);
}

/* Empty state when a tab has no books */
.book-collection__empty {
    display: none;
    text-align: center;
    color: #fff;
    padding: 40px 0;
    font-size: 16px;
}

.book-collection__empty.is-shown { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .book-collection__title { font-size: 44px; }
    .book-collection__box .owl-nav button.owl-prev { left: 4px; }
    .book-collection__box .owl-nav button.owl-next { right: 4px; }
}

@media (max-width: 767px) {
    .book-collection { padding: 20px 0 30px; }
    .book-collection__title { font-size: 34px; }
    .book-collection__subtitle { font-size: 16px; }
    .book-collection__tab { min-width: auto; flex: 1 0 auto; }
    .book-collection__box { padding: 22px 16px; border-radius: 14px; }
    .book-collection__viewall-top { display: none; }
}
