/* =========================================================
   TTG CATEGORY PAGE - V7 COMPLETE STYLES & FIXES
   FONT: Be Vietnam Pro | MÀU CHỦ ĐẠO: #f09e16
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --ttg-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --ttg-brand: #f09e16;
    --ttg-brand-hover: #d98b0d;
    --ttg-black: #1a1a1a;
    --ttg-gray-bg: #f8f9fa;
    --ttg-border: #eaeaea;
    --ttg-zalo: #1688f8;
}

.ttg-category-page,
.ttg-category-page * {
    font-family: var(--ttg-font) !important;
    box-sizing: border-box;
}

/* 01. ẨN TIÊU ĐỀ CŨ, TOÀN BỘ MIÊU TẢ THỪA VÀ SIDEBAR GỐC FLATSOME */
.ttg-category-page .shop-page-title,
.ttg-category-page .page-title,
.ttg-category-page>#wrapper>.breadcrumbs,
.ttg-category-page #shop-sidebar,
.ttg-category-page .term-description,
.ttg-category-page .taxonomy-description,
.ttg-category-page .category-description,
.ttg-category-page .woocommerce-products-header,
.ttg-category-page .woocommerce-result-count,
.ttg-category-page .ttg-seo-box-wrap,
.ttg-category-page .ttg-seo-box {
    display: none !important;
}


/* 02. HERO BANNER FULL WIDTH */
.ttg-cat-hero {
    position: relative;
    width: 100%;
    min-height: 250px;
    padding-top: 130px !important;
    padding-bottom: 35px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.ttg-cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.ttg-cat-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    color: #fff;
}

.ttg-cat-breadcrumbs {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
}

.ttg-cat-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.ttg-cat-breadcrumbs .divider {
    margin: 0 6px;
    color: #aaa;
}

.ttg-cat-hero-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ttg-cat-hero-desc {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
    max-width: 650px;
    line-height: 1.5;
}


/* 03. TOP CATEGORY PILLS (DRAG TO SCROLL & BUTTONS) */
.ttg-top-pills-wrap {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.ttg-top-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    width: 100%;
}

.ttg-top-pills:active {
    cursor: grabbing;
}

.ttg-top-pills::-webkit-scrollbar {
    display: none;
}

.ttg-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ttg-border);
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ttg-pill-item:hover {
    border-color: var(--ttg-brand);
    color: var(--ttg-brand);
}

.ttg-pill-item.is-active {
    background: var(--ttg-brand);
    border-color: var(--ttg-brand);
    color: #fff;
}

.ttg-pill-item.is-active svg {
    stroke: #fff;
}

.ttg-pill-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #444;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.ttg-pill-nav:hover {
    background: var(--ttg-brand);
    color: #fff;
    border-color: var(--ttg-brand);
}


/* 04. KHUNG BỐ CỤC 2 CỘT */
.ttg-shop-main-layout {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.ttg-sidebar-filter {
    flex: 0 0 280px;
    width: 280px;
    background: #fff;
    border: 1px solid var(--ttg-border);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.ttg-products-main-col {
    flex: 1 1 0;
    min-width: 0;
}

.ttg-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.ttg-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.ttg-filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.ttg-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    margin-bottom: 12px;
}

.ttg-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ttg-cat-list li {
    margin-bottom: 6px;
}

.ttg-cat-list li.ttg-cat-hidden {
    display: none;
}

.ttg-cat-list.is-expanded li.ttg-cat-hidden {
    display: block;
}

.ttg-cat-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--ttg-brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 0;
    margin-top: 4px;
    outline: none;
}

.ttg-cat-more-btn:hover {
    color: var(--ttg-brand-hover);
}

.ttg-cat-list li a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ttg-cat-list li.is-active a,
.ttg-cat-list li a:hover {
    background: #fff6eb;
    color: var(--ttg-brand);
    font-weight: 600;
}

.ttg-cat-list .cat-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.ttg-cat-list .cat-name {
    flex: 1;
}

.ttg-cat-list .cat-count {
    color: #999;
    font-size: 12px;
}

.ttg-cat-list li.is-active .cat-count {
    color: var(--ttg-brand);
}

/* PRICE SLIDER & QUICK TAGS */
.ttg-price-slider-wrap {
    margin-bottom: 15px;
}

.ttg-range-slider {
    width: 100%;
    accent-color: var(--ttg-brand);
    cursor: pointer;
}

.ttg-price-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-top: 6px;
}

.ttg-quick-price-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ttg-price-tag {
    display: block;
    text-align: center;
    padding: 6px 4px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ttg-price-tag:hover {
    background: var(--ttg-brand);
    border-color: var(--ttg-brand);
    color: #fff;
}


/* 05. KHỐI TƯ VẤN STICKY */
.ttg-support-box {
    background: #fffaf5;
    border: 1px solid rgba(240, 158, 22, 0.3);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-top: 25px;
}

.ttg-support-head h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.ttg-support-head p {
    font-size: 11px;
    color: #777;
    margin: 0 0 12px;
}

.ttg-support-avatar img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: block;
}

.ttg-support-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ttg-btn-zalo,
.ttg-btn-hotline {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.ttg-btn-zalo {
    background: var(--ttg-zalo);
    color: #fff;
}

.ttg-btn-zalo img {
    width: 16px;
    height: 16px;
}

.ttg-btn-hotline {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.ttg-support-phone {
    display: block;
    width: 100%;
    height: 38px;
    line-height: 38px;
    background: var(--ttg-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
}


/* 06. LƯỚI SẢN PHẨM & CARD CHUẨN */
.ttg-products-main-col .products.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.ttg-products-main-col .products .product {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 20px;
}

.product-small.box {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}

.product-small.box:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

/* BADGE % GIẢM GIÁ CAM #f09e16 */
.product-small .badge-container,
.product-small .badge {
    left: 8px !important;
    top: 8px !important;
    right: auto !important;
    margin: 0 !important;
    display: block !important;
    z-index: 5 !important;
}

.product-small .badge-inner.on-sale,
.product-small .onsale,
.product-small .badge-inner {
    background: var(--ttg-brand) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.product-small .box-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f9f9f9;
}

.product-small .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-small .box-text {
    position: relative;
    padding: 12px 14px 14px !important;
    text-align: left;
}

.product-small .title-wrapper .product-title a {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

/* 07. RATING 5 SAO VÀNG CAM #f09e16 */
.ttg-card-rating {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin: 4px 0 6px !important;
    color: var(--ttg-brand) !important;
    font-size: 13px !important;
}

.ttg-card-rating .stars {
    color: var(--ttg-brand) !important;
    letter-spacing: 1px;
}

.ttg-card-rating .count {
    color: #888 !important;
    font-size: 11px !important;
    font-weight: 400;
}

.product-small .star-rating {
    display: none !important;
}


/* 08. GIÁ TIỀN & ICON ZALO CHUNG 1 HÀNG FLEXBOX */
.product-small .price-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.product-small .price {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin: 0 !important;
    width: 100% !important;
}

.product-small .ttg-price-text {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px !important;
    line-height: 1.25 !important;
}

/* ĐỔI TOÀN BỘ CHỮ GIÁ TIỀN SANG MÀU CAM THƯƠNG HIỆU #f09e16 */
.product-small .price,
.product-small .price *,
.product-small .ttg-price-text,
.product-small .ttg-price-text * {
    color: var(--ttg-brand) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.product-small .price del,
.product-small .price del * {
    color: #999 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

/* NÚT ZALO TRÒN 32PX NẰM CẠNH GIÁ TIỀN */
.ttg-card-zalo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1.5px solid var(--ttg-zalo) !important;
    box-shadow: 0 2px 6px rgba(22, 136, 248, 0.15) !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.ttg-card-zalo-icon:hover {
    background: var(--ttg-zalo) !important;
    transform: scale(1.08);
}

.ttg-card-zalo-icon img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain !important;
    display: block !important;
}


/* =========================================================
   09. THANH USP 4 CAM KẾT Ở CHÂN TRANG
========================================================= */
.ttg-shop-usp-bar {
    margin-top: 35px;
    margin-bottom: 25px;
}

.ttg-shop-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 18px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ttg-shop-usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.ttg-shop-usp-item:last-child {
    border-right: none;
}

.ttg-shop-usp-item .usp-icon {
    color: var(--ttg-brand);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ttg-shop-usp-item .usp-text strong {
    display: block;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.ttg-shop-usp-item .usp-text small {
    display: block;
    color: #777;
    font-size: 11px;
}


/* =========================================================
   10. MOBILE & TABLET RESPONSIVE
========================================================= */
@media (max-width: 849px) {
    .ttg-shop-main-layout {
        flex-direction: column;
    }

    .ttg-sidebar-filter {
        width: 100%;
        flex: 0 0 100%;
    }

    .ttg-products-main-col .products .product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .ttg-cat-hero {
        min-height: 190px;
        padding-top: 100px !important;
    }

    .ttg-cat-hero-title {
        font-size: 26px;
    }

    .ttg-shop-usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ttg-shop-usp-item:nth-child(2) {
        border-right: none;
    }
}
/* =========================================================
   PHÂN TRANG 1 2 3 4 CHUẨN MÀU THƯƠNG HIỆU #f09e16
========================================================= */
.woocommerce-pagination {
    text-align: center !important;
    margin-top: 35px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Nút số trang */
.woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

/* Rê chuột vào số trang */
.woocommerce-pagination .page-numbers:hover {
    border-color: #f09e16 !important;
    color: #f09e16 !important;
    background: #fff8f0 !important;
}

/* Trang hiện tại đang xem (Màu cam thương hiệu) */
.woocommerce-pagination .page-numbers.current {
    background: #f09e16 !important;
    border-color: #f09e16 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 8px rgba(240, 158, 22, 0.3) !important;
}