/* =========================================================
   CENLUX Product Card
   Giao diện card sản phẩm giống mẫu ảnh
   ========================================================= */

.product-small.ks-product-loop-item,
.products .ks-product-loop-item,
.woocommerce .products .ks-product-loop-item {
    list-style: none;
}

.ks-product-loop-item .col-inner {
    height: 100%;
}

.ks-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ks-product-card:hover {
    transform: translateY(-3px);
    border-color: #e5e5e5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ks-product-card__thumb-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ks-product-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
}

.ks-product-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.35s ease;
}

.ks-product-card:hover .ks-product-card__thumb img {
    transform: scale(1.04);
}

.ks-product-card__sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 7px;
    background: #e60012;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ks-product-card__stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 7px;
    background: #333333;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ks-product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px 10px 10px;
}

.ks-product-card__category {
    margin-bottom: 5px;
    color: #f00000;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.ks-product-card__title-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ks-product-card__title {
    min-height: 39px;
    margin: 0 0 6px;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.1px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-product-card__title-link:hover .ks-product-card__title {
    color: #e60012;
}

.ks-product-card__rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 16px;
    margin-bottom: 7px;
}

.ks-product-card__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #dddddd;
    font-size: 12px;
    line-height: 1;
}

.ks-product-card__stars span {
    display: inline-block;
    color: #dddddd;
}

.ks-product-card__stars span.is-active {
    color: #ffb400;
}

.ks-product-card__review-count {
    color: #777777;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}

.ks-product-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 10px;
    color: #e60012;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.ks-product-card__price .amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.ks-product-card__price ins {
    color: #e60012;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.ks-product-card__price ins .amount {
    color: #e60012;
    font-size: 15px;
    font-weight: 800;
}

.ks-product-card__price del {
    color: #999999;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.25;
    opacity: 1;
    text-decoration: line-through;
}

.ks-product-card__price del .amount {
    color: #999999;
    font-size: 11.5px;
    font-weight: 500;
}

.ks-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 34px;
    margin-top: auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, #ff1b1b 0%, #e60012 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ks-product-card__button:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #f00000 0%, #c90010 100%);
    box-shadow: 0 5px 14px rgba(230, 0, 18, 0.35);
    transform: translateY(-1px);
}

.ks-product-card__button:focus {
    color: #ffffff;
    outline: none;
}

.ks-product-card__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}

.ks-product-card .added_to_cart {
    display: none !important;
}

/* Fix style mặc định của Flatsome/WooCommerce chèn vào button */
.ks-product-card__button.add_to_cart_button,
.ks-product-card__button.ajax_add_to_cart,
.ks-product-card__button.button {
    margin: auto 0 0;
    text-transform: none;
}

/* Desktop lớn */
@media (min-width: 1200px) {
    .ks-product-card {
        border-radius: 15px;
    }

    .ks-product-card__content {
        padding: 9px 11px 11px;
    }

    .ks-product-card__title {
        font-size: 13.5px;
    }

    .ks-product-card__price,
    .ks-product-card__price ins,
    .ks-product-card__price ins .amount {
        font-size: 15.5px;
    }
}

/* Tablet */
@media (max-width: 849px) {
    .ks-product-card {
        border-radius: 13px;
    }

    .ks-product-card:hover {
        transform: none;
    }

    .ks-product-card__thumb img {
        padding: 14px;
    }

    .ks-product-card__content {
        padding: 8px 9px 10px;
    }

    .ks-product-card__category {
        font-size: 9px;
    }

    .ks-product-card__title {
        min-height: 37px;
        margin-bottom: 6px;
        font-size: 12.5px;
        line-height: 1.48;
    }

    .ks-product-card__price,
    .ks-product-card__price ins,
    .ks-product-card__price ins .amount {
        font-size: 14.5px;
    }

    .ks-product-card__button {
        min-height: 33px;
        font-size: 11.5px;
    }
}

/* Mobile */
@media (max-width: 549px) {
    .ks-product-card {
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    }

    .ks-product-card:hover {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    }

    .ks-product-card__thumb img {
        padding: 12px;
    }

    .ks-product-card__sale-badge,
    .ks-product-card__stock-badge {
        top: 8px;
        min-height: 20px;
        padding: 4px 7px;
        border-radius: 6px;
        font-size: 10px;
    }

    .ks-product-card__sale-badge {
        left: 8px;
    }

    .ks-product-card__stock-badge {
        right: 8px;
    }

    .ks-product-card__content {
        padding: 7px 8px 9px;
    }

    .ks-product-card__category {
        margin-bottom: 4px;
        font-size: 8.5px;
    }

    .ks-product-card__title {
        min-height: 35px;
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.45;
    }

    .ks-product-card__rating-row {
        gap: 3px;
        margin-bottom: 6px;
    }

    .ks-product-card__stars {
        font-size: 11px;
    }

    .ks-product-card__review-count {
        font-size: 10.5px;
    }

    .ks-product-card__price {
        gap: 4px;
        margin-bottom: 8px;
    }

    .ks-product-card__price,
    .ks-product-card__price ins,
    .ks-product-card__price ins .amount {
        font-size: 13.5px;
    }

    .ks-product-card__price del,
    .ks-product-card__price del .amount {
        font-size: 10.5px;
    }

    .ks-product-card__button {
        min-height: 31px;
        padding: 7px 9px;
        border-radius: 6px;
        font-size: 11px;
    }

    .ks-product-card__button-icon {
        font-size: 12px;
    }
}

/* Mobile rất nhỏ */
@media (max-width: 374px) {
    .ks-product-card__thumb img {
        padding: 10px;
    }

    .ks-product-card__content {
        padding: 7px;
    }

    .ks-product-card__title {
        font-size: 11.5px;
    }

    .ks-product-card__price,
    .ks-product-card__price ins,
    .ks-product-card__price ins .amount {
        font-size: 13px;
    }

    .ks-product-card__button {
        font-size: 10.5px;
    }
}






/* =========================================================
   CENLUX - SHOP PAGE / WOOCOMMERCE ARCHIVE
   Center layout + Sidebar nổi bật danh mục con
========================================================= */

#main {
    --clx-shop-main: #e60000;
    --clx-shop-main-dark: #b90000;
    --clx-shop-soft: #fff1f1;
    --clx-shop-soft-2: #fff7f7;
    --clx-shop-text: #111827;
    --clx-shop-muted: #667085;
    --clx-shop-border: #e5e7eb;
    --clx-shop-bg: #f6f6f6;
    --clx-shop-white: #ffffff;

    background: var(--clx-shop-bg);
}

/* Căn giữa toàn bộ shop */
#main .category-page-row {
    width: min(1560px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 30px 0 50px !important;
    background: transparent;
    display: flex;
    align-items: flex-start;
    gap: 34px;
    box-sizing: border-box;
}

#main .category-page-row *,
#main .category-page-row *::before,
#main .category-page-row *::after {
    box-sizing: border-box;
}

#main .category-page-row>.col.large-3 {
    flex: 0 0 250px !important;
    max-width: 250px !important;
    width: 250px !important;
    padding: 0 !important;
}

#main .category-page-row>.col.large-9 {
    flex: 1 1 auto !important;
    max-width: calc(100% - 284px) !important;
    width: auto !important;
    padding: 0 !important;
    min-width: 0;
}

/* =========================================================
   SIDEBAR
========================================================= */

#shop-sidebar {
    position: sticky;
    top: 92px;
}

#shop-sidebar .widget {
    margin: 0 0 20px;
    padding: 20px 16px;
    background: var(--clx-shop-white);
    border: 1px solid var(--clx-shop-border);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

#shop-sidebar .widget-title.shop-sidebar {
    display: block;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--clx-shop-border);
    color: var(--clx-shop-text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#shop-sidebar .is-divider {
    display: none;
}

/* Danh mục cha */
#shop-sidebar .product-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

#shop-sidebar .product-categories li {
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eeeeee;
}

#shop-sidebar .product-categories li:last-child {
    border-bottom: 0;
}

#shop-sidebar .product-categories li>a {
    display: block;
    padding: 11px 34px 11px 0;
    color: var(--clx-shop-text);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#shop-sidebar .product-categories li>a:hover {
    color: var(--clx-shop-main);
    padding-left: 4px;
}

/* Nút xổ danh mục */
#shop-sidebar .toggle {
    position: absolute;
    top: 7px;
    right: 0;
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--clx-shop-soft);
    color: var(--clx-shop-main);
    line-height: 1;
}

/* =========================================================
   DANH MỤC CON - LÀM NỔI BẬT
========================================================= */

#shop-sidebar .product-categories .children {
    margin: 4px 0 12px;
    padding: 8px 8px 8px 12px;
    list-style: none;
    background: linear-gradient(180deg, #fffafa 0%, #fff3f3 100%);
    border-left: 3px solid var(--clx-shop-main);
    border-radius: 0 10px 10px 0;
    box-shadow: inset 0 0 0 1px rgba(230, 0, 0, 0.06);
}

#shop-sidebar .product-categories .children li {
    border-bottom: 0;
    margin: 0 0 4px;
}

#shop-sidebar .product-categories .children li:last-child {
    margin-bottom: 0;
}

#shop-sidebar .product-categories .children li>a {
    position: relative;
    display: block;
    padding: 7px 8px 7px 20px;
    color: #5f6b7a;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

#shop-sidebar .product-categories .children li>a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--clx-shop-main);
    border-radius: 999px;
    transform: translateY(-50%);
    opacity: 0.8;
}

#shop-sidebar .product-categories .children li>a:hover {
    padding-left: 24px;
    background: #ffffff;
    color: var(--clx-shop-main);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.08);
}

/* Danh mục đang active */
#shop-sidebar .product-categories li.current-cat>a,
#shop-sidebar .product-categories li.current-cat-parent>a,
#shop-sidebar .product-categories li.current-cat-ancestor>a {
    color: var(--clx-shop-main);
}

#shop-sidebar .product-categories .children li.current-cat>a {
    background: #ffffff;
    color: var(--clx-shop-main);
    font-weight: 900;
}

/* =========================================================
   LỌC GIÁ
========================================================= */

#shop-sidebar .price_slider_wrapper {
    padding-top: 6px;
}

#shop-sidebar .price_slider {
    height: 5px;
    margin: 16px 7px 22px;
    background: #edf0f3;
    border: 0;
    border-radius: 999px;
}

#shop-sidebar .ui-slider-range {
    background: var(--clx-shop-main);
}

#shop-sidebar .ui-slider-handle {
    width: 16px;
    height: 16px;
    top: -5px;
    border: 2px solid var(--clx-shop-main);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(230, 0, 0, 0.2);
}

#shop-sidebar .price_slider_amount {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#shop-sidebar .price_slider_amount .button {
    width: 100%;
    height: 38px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background: var(--clx-shop-main);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

#shop-sidebar .price_label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    color: var(--clx-shop-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

#shop-sidebar .price_label .from,
#shop-sidebar .price_label .to {
    display: inline !important;
    color: var(--clx-shop-muted);
    font-size: inherit;
    font-weight: 800;
    line-height: inherit;
    white-space: nowrap;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.shop-container {
    width: 100%;
}

.shop-container .products.row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    margin: 0 !important;
}

.shop-container .products.row::before,
.shop-container .products.row::after {
    display: none !important;
}

.shop-container .products.row>.product-small.col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.shop-container .products.row>.product-small.col .col-inner {
    height: 100%;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.ks-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--clx-shop-white);
    border: 1px solid var(--clx-shop-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ks-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 0, 0, 0.32);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.ks-product-card__thumb-link {
    display: block;
    text-decoration: none;
}

.ks-product-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.ks-product-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.ks-product-card:hover .ks-product-card__thumb img {
    transform: scale(1.04);
}

.ks-product-card__stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    height: 28px;
    border-radius: 999px;
    background: var(--clx-shop-main);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.ks-product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 16px;
}

.ks-product-card__category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 9px;
    padding: 4px 9px;
    background: var(--clx-shop-soft);
    color: var(--clx-shop-main);
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1.3;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-product-card__title-link {
    color: var(--clx-shop-text);
    text-decoration: none;
}

.ks-product-card__title {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 9px;
    color: var(--clx-shop-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
    text-transform: none;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ks-product-card__title-link:hover .ks-product-card__title {
    color: var(--clx-shop-main);
}

.ks-product-card__rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    margin-bottom: 8px;
}

.ks-product-card__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #d0d5dd;
    font-size: 13px;
    line-height: 1;
}

.ks-product-card__stars .is-active {
    color: #f5a300;
}

.ks-product-card__review-count {
    color: var(--clx-shop-muted);
    font-size: 12px;
}

.ks-product-card__price {
    margin: 0 0 12px;
    color: var(--clx-shop-main);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.ks-product-card__price .amount {
    color: var(--clx-shop-main);
    font-weight: 900;
}

.ks-product-card__button {
    margin-top: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border: 1px solid var(--clx-shop-main);
    border-radius: 10px;
    background: var(--clx-shop-main);
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ks-product-card__button:hover {
    background: var(--clx-shop-main-dark);
    border-color: var(--clx-shop-main-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.ks-product-card__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
}

.ks-product-card__button-icon img {
    width: 15px !important;
    height: 15px !important;
    filter: brightness(0) invert(1);
}

/* =========================================================
   PAGINATION
========================================================= */

.shop-container .woocommerce-pagination {
    margin-top: 34px;
}

.shop-container .nav-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.shop-container .nav-pagination li {
    margin: 0;
}

.shop-container .page-number {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--clx-shop-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--clx-shop-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.shop-container .page-number.current,
.shop-container .page-number:hover {
    background: var(--clx-shop-main);
    border-color: var(--clx-shop-main);
    color: #ffffff;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    #main .category-page-row {
        width: min(100% - 32px, 960px) !important;
        padding: 24px 0 42px !important;
        display: block;
    }

    #main .category-page-row>.col.large-3,
    #main .category-page-row>.col.large-9 {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    #shop-sidebar {
        position: static;
        margin-bottom: 22px;
    }

    .shop-container .products.row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .ks-product-card__content {
        padding: 12px;
    }

    .ks-product-card__title {
        font-size: 14px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    #main .category-page-row {
        width: calc(100% - 20px) !important;
        padding: 16px 0 34px !important;
    }

    .shop-container .products.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ks-product-card {
        border-radius: 14px;
    }

    .ks-product-card__thumb img {
        padding: 12px;
    }

    .ks-product-card__content {
        padding: 10px;
    }

    .ks-product-card__category {
        margin-bottom: 7px;
        padding: 3px 7px;
        font-size: 9.5px;
    }

    .ks-product-card__title {
        min-height: 38px;
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.45;
    }

    .ks-product-card__rating-row {
        gap: 4px;
        margin-bottom: 7px;
    }

    .ks-product-card__stars {
        font-size: 11px;
    }

    .ks-product-card__review-count {
        font-size: 11px;
    }

    .ks-product-card__price {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .ks-product-card__button {
        height: 36px;
        border-radius: 9px;
        font-size: 12px;
    }

    .ks-product-card__button-icon,
    .ks-product-card__button-icon img {
        width: 14px !important;
        height: 14px !important;
    }

    .shop-container .woocommerce-pagination {
        margin-top: 26px;
    }

    .shop-container .page-number {
        min-width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 13px;
    }
}

/* Mobile nhỏ */
@media (max-width: 390px) {
    .shop-container .products.row {
        gap: 10px;
    }

    .ks-product-card__title {
        font-size: 12.5px;
    }

    .ks-product-card__button {
        font-size: 11.5px;
    }
}







/* =========================================================
   CENLUX - HEADER TRANG DANH MỤC SẢN PHẨM / SHOP
   Giao diện đồng bộ với sidebar + product card bên dưới
========================================================= */

.shop-page-title.category-page-title.page-title {
    --clx-shop-main: #e60000;
    --clx-shop-main-dark: #b90000;
    --clx-shop-soft: #fff3f3;
    --clx-shop-text: #111827;
    --clx-shop-muted: #667085;
    --clx-shop-border: #e5e7eb;
    --clx-shop-bg: #f6f6f6;
    --clx-shop-white: #ffffff;

    width: 100%;
    margin: 0;
    padding: 22px 0 8px;
    background: var(--clx-shop-bg);
    border: 0;
}

.shop-page-title.category-page-title.page-title *,
.shop-page-title.category-page-title.page-title *::before,
.shop-page-title.category-page-title.page-title *::after {
    box-sizing: border-box;
}

/* Khung header cùng width với shop bên dưới */
.shop-page-title .page-title-inner {
    width: min(1560px, calc(100% - 48px)) !important;
    max-width: none !important;
    min-height: 64px;
    margin: 0 auto !important;
    padding: 14px 18px !important;

    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: #ffffff;
    border: 1px solid var(--clx-shop-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

/* Reset style cũ nếu đã dán trước đó */
.shop-page-title .woocommerce-breadcrumb.breadcrumbs::before,
.shop-page-title .woocommerce-breadcrumb.breadcrumbs::after {
    content: none !important;
    display: none !important;
}

.shop-page-title .woocommerce-breadcrumb.breadcrumbs {
    font-size: 14px !important;
}

/* Cột trái */
.shop-page-title .page-title-inner>.flex-col:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-page-title .is-large {
    line-height: 1;
}

/* Breadcrumb */
.shop-page-title .woocommerce-breadcrumb.breadcrumbs {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0 0 0 16px;
    color: var(--clx-shop-text);
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Vạch đỏ nhỏ bên trái thay cho icon vuông */
.shop-page-title .woocommerce-breadcrumb.breadcrumbs::marker {
    display: none;
}

.shop-page-title .woocommerce-breadcrumb.breadcrumbs {
    border-left: 4px solid var(--clx-shop-main);
}

.shop-page-title .woocommerce-breadcrumb.breadcrumbs a {
    color: var(--clx-shop-muted);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
}

.shop-page-title .woocommerce-breadcrumb.breadcrumbs a:hover {
    color: var(--clx-shop-main);
}

.shop-page-title .woocommerce-breadcrumb.breadcrumbs .divider {
    color: #c5cad3;
    font-weight: 400;
}

.shop-page-title .woocommerce-breadcrumb.breadcrumbs {
    color: var(--clx-shop-text);
    font-size: 15px;
    font-weight: 900;
}

/* Mobile filter */
.shop-page-title .category-filtering {
    margin-top: 12px;
}

.shop-page-title .filter-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 15px;
    border: 1px solid var(--clx-shop-main);
    border-radius: 9px;
    background: var(--clx-shop-main);
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
}

.shop-page-title .filter-button i,
.shop-page-title .filter-button strong {
    color: #ffffff;
}

/* Cột phải */
.shop-page-title .page-title-inner>.flex-col:last-child {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Số lượng sản phẩm */
.shop-page-title .woocommerce-result-count {
    margin: 0;
    color: var(--clx-shop-muted);
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}

/* Select sắp xếp */
.shop-page-title .woocommerce-ordering {
    margin: 0;
}

.shop-page-title .woocommerce-ordering select.orderby {
    min-width: 260px;
    height: 42px;
    margin: 0;
    padding: 0 42px 0 14px;
    border: 1px solid var(--clx-shop-border);
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--clx-shop-text);
    font-size: 13.5px;
    line-height: 1;
    font-weight: 500;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}

.shop-page-title .woocommerce-ordering select.orderby:hover {
    border-color: #d0d5dd;
}

.shop-page-title .woocommerce-ordering select.orderby:focus {
    border-color: var(--clx-shop-main);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.08);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .shop-page-title.category-page-title.page-title {
        padding: 18px 0 6px;
    }

    .shop-page-title .page-title-inner {
        width: min(960px, calc(100% - 32px)) !important;
        min-height: auto;
        padding: 16px !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 14px;
    }

    .shop-page-title .page-title-inner>.flex-col:first-child,
    .shop-page-title .page-title-inner>.flex-col:last-child {
        width: 100%;
        flex: none;
        text-align: left !important;
    }

    .shop-page-title .page-title-inner>.flex-col:last-child {
        justify-content: flex-start;
    }

    .shop-page-title .woocommerce-ordering {
        width: 100%;
    }

    .shop-page-title .woocommerce-ordering select.orderby {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .shop-page-title.category-page-title.page-title {
        padding: 14px 0 4px;
    }

    .shop-page-title .page-title-inner {
        width: calc(100% - 20px) !important;
        padding: 14px !important;
        border-radius: 12px;
    }

    .shop-page-title .woocommerce-breadcrumb.breadcrumbs {
        gap: 7px;
        padding-left: 12px;
        font-size: 14px !important;
        border-left-width: 3px;
    }

    .shop-page-title .woocommerce-breadcrumb.breadcrumbs a,
    .shop-page-title .woocommerce-breadcrumb.breadcrumbs .divider {
        font-size: 12.5px;
    }

    .shop-page-title .filter-button {
        width: 100%;
        height: 38px;
    }

    .shop-page-title .woocommerce-ordering select.orderby {
        height: 40px;
        font-size: 13px;
        border-radius: 9px;
    }
}

/* Mobile nhỏ */
@media (max-width: 390px) {
    .shop-page-title .woocommerce-breadcrumb.breadcrumbs {
        font-size: 13px !important;
    }

    .shop-page-title .woocommerce-breadcrumb.breadcrumbs a,
    .shop-page-title .woocommerce-breadcrumb.breadcrumbs .divider {
        font-size: 12px;
    }
}