/* ==========================================================
   KHÁNH BEAUTY – Collections Page
   style.css  |  prefix: khanhbeauty_collections_
   Pure CSS – No library – SEO Accessible Responsive
   ========================================================== */

/* ==================== VARIABLES ==================== */
:root {
    --kb-pink: #c8005a;
    --kb-pink-dark: #9a0044;
    --kb-pink-light: #f0c6d8;
    --kb-pink-bg: #fdf0f5;
    --kb-black: #1a1a1a;
    --kb-text: #2d2d2d;
    --kb-text-2: #555;
    --kb-text-3: #888;
    --kb-border: #e0e0e0;
    --kb-border-lt: #f0f0f0;
    --kb-bg: #ffffff;
    --kb-bg-lt: #fafafa;
    --kb-bg-gray: #f5f5f5;
    --kb-gold: #f0b429;
    --kb-green: #1e7d42;
    --kb-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
    --kb-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
    --kb-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --kb-r-sm: 4px;
    --kb-r: 8px;
    --kb-r-lg: 12px;
    --kb-r-xl: 20px;
    --kb-r-full: 9999px;
    --kb-font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --kb-container: 1280px;
    --kb-sidebar-w: 230px;
    --kb-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --kb-t: 0.2s var(--kb-ease);
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--kb-font);
    color: var(--kb-text);
    background: var(--kb-bg);
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--kb-t);
}
ul,
ol {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}
input,
select {
    font-family: inherit;
}
svg {
    display: block;
    flex-shrink: 0;
}
address {
    font-style: normal;
}

/* ==================== FOCUS ==================== */
:focus-visible {
    outline: 2.5px solid var(--kb-pink);
    outline-offset: 2px;
    border-radius: var(--kb-r-sm);
}

/* ==================== CONTAINER ==================== */
.khanhbeauty_collections_container {
    width: 100%;
    max-width: var(--kb-container);
    margin: 0 auto;
    padding: 0 18px;
}

/* ==================== TOPBAR ==================== */
.khanhbeauty_collections_topbar {
    background: var(--kb-black);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}
.khanhbeauty_collections_topbar_inner {
    max-width: var(--kb-container);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 22px;
}
.khanhbeauty_collections_topbar_slides {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    position: relative;
    overflow: hidden;
}
.khanhbeauty_collections_topbar_slide {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.45s var(--kb-ease);
    pointer-events: none;
}
.khanhbeauty_collections_topbar_active {
    opacity: 1;
    pointer-events: auto;
}
.khanhbeauty_collections_topbar_slide a {
    color: var(--kb-gold);
    text-decoration: underline;
}
.khanhbeauty_collections_topbar_prev,
.khanhbeauty_collections_topbar_next {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    line-height: 1;
    padding: 0 6px;
    transition: color var(--kb-t);
    flex-shrink: 0;
}
.khanhbeauty_collections_topbar_prev:hover,
.khanhbeauty_collections_topbar_next:hover {
    color: white;
}
.khanhbeauty_collections_topbar_close {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 4px;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_topbar_close:hover {
    color: white;
}

/* ==================== HEADER ==================== */
.khanhbeauty_collections_header {
    background: white;
    border-bottom: 1px solid var(--kb-border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--kb-shadow-sm);
    transition:
        transform 0.3s var(--kb-ease),
        box-shadow 0.3s var(--kb-ease);
}
.khanhbeauty_collections_header.scrolled {
    box-shadow: var(--kb-shadow);
}
.khanhbeauty_collections_header_inner {
    max-width: var(--kb-container);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
}

/* Logo */
.khanhbeauty_collections_logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    white-space: nowrap;
}
.khanhbeauty_collections_logo_mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.khanhbeauty_collections_logo_text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.khanhbeauty_collections_logo_brand {
    font-size: 15px;
    font-weight: 800;
    color: var(--kb-black);
    letter-spacing: 0.04em;
}
.khanhbeauty_collections_logo_sub {
    font-size: 9.5px;
    color: var(--kb-text-3);
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Main Nav */
.khanhbeauty_collections_main_nav {
    flex: 1;
}
.khanhbeauty_collections_nav_list {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 60px;
}
.khanhbeauty_collections_nav_item {
    position: relative;
    display: flex;
    align-items: center;
}
.khanhbeauty_collections_nav_link {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 14px;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-text);
    white-space: nowrap;
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
    transition:
        color var(--kb-t),
        border-color var(--kb-t);
}
.khanhbeauty_collections_nav_link:hover,
.khanhbeauty_collections_nav_active {
    color: var(--kb-pink);
    border-bottom-color: var(--kb-pink);
}
.khanhbeauty_collections_nav_sale {
    color: #d32f2f !important;
}
.khanhbeauty_collections_nav_sale:hover {
    border-bottom-color: #d32f2f !important;
}
.khanhbeauty_collections_caret {
    transition: transform var(--kb-t);
    flex-shrink: 0;
}
.khanhbeauty_collections_has_sub:hover .khanhbeauty_collections_caret {
    transform: rotate(180deg);
}

/* Subnav dropdown */
.khanhbeauty_collections_subnav {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--kb-border);
    border-top: 2px solid var(--kb-pink);
    border-radius: 0 0 var(--kb-r) var(--kb-r);
    box-shadow: var(--kb-shadow-lg);
    min-width: 520px;
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity var(--kb-t),
        transform var(--kb-t),
        visibility var(--kb-t);
}
.khanhbeauty_collections_has_sub:hover .khanhbeauty_collections_subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.khanhbeauty_collections_subnav_inner {
    display: flex;
    gap: 0;
    padding: 20px 24px;
}
.khanhbeauty_collections_subnav_col {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid var(--kb-border-lt);
}
.khanhbeauty_collections_subnav_col:first-child {
    padding-left: 0;
}
.khanhbeauty_collections_subnav_col:last-child {
    border-right: none;
}
.khanhbeauty_collections_subnav_title {
    font-size: 11px;
    font-weight: 700;
    color: var(--kb-text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.khanhbeauty_collections_subnav_col ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.khanhbeauty_collections_subnav_col a {
    font-size: 13.5px;
    color: var(--kb-text);
    transition:
        color var(--kb-t),
        padding-left var(--kb-t);
}
.khanhbeauty_collections_subnav_col a:hover {
    color: var(--kb-pink);
    padding-left: 5px;
}

/* Header actions */
.khanhbeauty_collections_header_actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.khanhbeauty_collections_icon_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--kb-r-sm);
    color: var(--kb-text);
    transition:
        background var(--kb-t),
        color var(--kb-t);
}
.khanhbeauty_collections_icon_btn:hover {
    background: var(--kb-bg-gray);
    color: var(--kb-pink);
}
.khanhbeauty_collections_cart_wrap {
    position: relative;
    display: flex;
}
.khanhbeauty_collections_cart_badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--kb-pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
}

/* Search */
.khanhbeauty_collections_search_wrap {
    position: relative;
}
.khanhbeauty_collections_search_toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: var(--kb-bg-gray);
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-full);
    font-size: 13px;
    color: var(--kb-text-3);
    transition: all var(--kb-t);
    min-width: 150px;
}
.khanhbeauty_collections_search_toggle:hover {
    border-color: var(--kb-pink);
}
.khanhbeauty_collections_search_panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: white;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r);
    box-shadow: var(--kb-shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--kb-t);
}
.khanhbeauty_collections_search_panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.khanhbeauty_collections_search_input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border: none;
    outline: none;
    font-size: 14px;
    border-bottom: 1px solid var(--kb-border-lt);
    border-radius: var(--kb-r) var(--kb-r) 0 0;
}
.khanhbeauty_collections_search_close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: var(--kb-text-3);
    font-size: 16px;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_search_close:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_search_suggest {
    padding: 8px 0;
}
.khanhbeauty_collections_suggest_item {
    padding: 9px 16px;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background var(--kb-t);
}
.khanhbeauty_collections_suggest_item:hover {
    background: var(--kb-bg-lt);
}
.khanhbeauty_collections_suggest_icon {
    color: var(--kb-text-3);
    flex-shrink: 0;
}

/* Hamburger */
.khanhbeauty_collections_hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--kb-r-sm);
}
.khanhbeauty_collections_hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--kb-text);
    border-radius: 2px;
    transition:
        transform var(--kb-t),
        opacity var(--kb-t);
}
.khanhbeauty_collections_hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.khanhbeauty_collections_hamburger.active span:nth-child(2) {
    opacity: 0;
}
.khanhbeauty_collections_hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== BREADCRUMB ==================== */
.khanhbeauty_collections_breadcrumb {
    background: var(--kb-bg-lt);
    border-bottom: 1px solid var(--kb-border);
    padding: 8px 0;
}
.khanhbeauty_collections_bc_list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--kb-text-3);
}
.khanhbeauty_collections_bc_list a {
    color: var(--kb-text-3);
    transition: color var(--kb-t);
}
.khanhbeauty_collections_bc_list a:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_bc_sep {
    font-size: 14px;
    opacity: 0.5;
}
.khanhbeauty_collections_bc_list [aria-current="page"] {
    color: var(--kb-text);
    font-weight: 500;
}

/* ==================== HERO BAR ==================== */
.khanhbeauty_collections_hero_bar {
    background: white;
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--kb-border-lt);
}
.khanhbeauty_collections_hero_title {
    font-size: 22px;
    font-weight: 800;
    color: var(--kb-black);
    margin-bottom: 4px;
    line-height: 1.25;
}
.khanhbeauty_collections_hero_sub {
    font-size: 13px;
    color: var(--kb-text-2);
    margin-bottom: 12px;
}
.khanhbeauty_collections_trust_badges {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.khanhbeauty_collections_badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--kb-text-2);
}
.khanhbeauty_collections_badge svg {
    color: var(--kb-pink);
}

/* ==================== PROMO BANNER ==================== */
.khanhbeauty_collections_promo_banner {
    background: var(--kb-black);
    padding: 14px 0;
}
.khanhbeauty_collections_promo_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.khanhbeauty_collections_promo_text {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.khanhbeauty_collections_promo_tag {
    background: var(--kb-pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--kb-r-full);
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.khanhbeauty_collections_promo_headline {
    font-size: 15px;
    font-weight: 700;
    color: white;
}
.khanhbeauty_collections_promo_sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.khanhbeauty_collections_promo_btn {
    flex-shrink: 0;
    background: white;
    color: var(--kb-black);
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: var(--kb-r-sm);
    transition:
        background var(--kb-t),
        color var(--kb-t);
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.khanhbeauty_collections_promo_btn:hover {
    background: var(--kb-pink);
    color: white;
}

/* ==================== LAYOUT ==================== */
.khanhbeauty_collections_main {
    padding: 20px 0 48px;
}
.khanhbeauty_collections_filter_form {
    display: none;
}
.khanhbeauty_collections_layout {
    display: grid;
    grid-template-columns: var(--kb-sidebar-w) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* ==================== SIDEBAR ==================== */
.khanhbeauty_collections_sidebar {
    width: 100%;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--kb-border) transparent;
}
.khanhbeauty_collections_sidebar::-webkit-scrollbar {
    width: 4px;
}
.khanhbeauty_collections_sidebar::-webkit-scrollbar-thumb {
    background: var(--kb-border);
    border-radius: 2px;
}
.khanhbeauty_collections_sidebar_inner {
    padding-right: 4px;
}
.khanhbeauty_collections_sidebar_hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--kb-black);
}
.khanhbeauty_collections_sidebar_title {
    font-size: 15px;
    font-weight: 700;
    color: var(--kb-black);
}
.khanhbeauty_collections_filter_reset {
    font-size: 12px;
    color: var(--kb-pink);
    font-weight: 600;
    transition: opacity var(--kb-t);
}
.khanhbeauty_collections_filter_reset:hover {
    opacity: 0.7;
}

/* Filter sort (mobile only) */
.khanhbeauty_collections_filter_sort_mobile {
    display: none;
}

/* Filter Group */
.khanhbeauty_collections_filter_group {
    margin-bottom: 18px;
}
.khanhbeauty_collections_filter_group_hd {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--kb-black);
    padding: 8px 0;
    border-top: 1px solid var(--kb-border);
    transition: color var(--kb-t);
}
.khanhbeauty_collections_filter_group_hd:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_filter_group_hd svg {
    transition: transform var(--kb-t);
    flex-shrink: 0;
}
.khanhbeauty_collections_filter_group_hd[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}
.khanhbeauty_collections_filter_label {
    font-size: 13px;
    font-weight: 700;
    color: var(--kb-black);
    display: block;
    margin-bottom: 6px;
}

/* Filter List */
.khanhbeauty_collections_filter_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px 0 8px;
}
.khanhbeauty_collections_filter_collapsed {
    display: none;
}
.khanhbeauty_collections_filter_search {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r);
    background: var(--kb-bg);
    font-size: 13px;
    color: var(--kb-text);
    transition:
        border-color var(--kb-t),
        box-shadow var(--kb-t);
}
.khanhbeauty_collections_filter_search:focus {
    border-color: var(--kb-pink);
    box-shadow: 0 0 0 3px rgba(200, 0, 90, 0.08);
    outline: none;
}
.khanhbeauty_collections_filter_check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--kb-text-2);
    cursor: pointer;
    padding: 2px 0;
    gap: 6px;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_filter_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--kb-text-2);
    transition: color var(--kb-t);
}
.khanhbeauty_collections_filter_link:hover,
.khanhbeauty_collections_filter_link.is-active {
    color: var(--kb-pink);
}
.khanhbeauty_collections_filter_check:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_filter_text {
    flex: 1;
    min-width: 0;
    padding-left: calc(var(--kb-filter-depth, 0) * 14px);
}
.khanhbeauty_collections_filter_check input[type="checkbox"],
.khanhbeauty_collections_filter_check input[type="radio"] {
    accent-color: var(--kb-pink);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.khanhbeauty_collections_filter_count {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--kb-text-3);
}

/* Color swatches */
.khanhbeauty_collections_color_swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 6px 0 8px;
}
.khanhbeauty_collections_color_dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--kb-t);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.khanhbeauty_collections_color_dot:hover,
.khanhbeauty_collections_color_dot.active {
    border-color: var(--kb-black);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--kb-black);
}

/* Sort select */
.khanhbeauty_collections_sort_select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-sm);
    padding: 7px 30px 7px 10px;
    font-size: 13px;
    color: var(--kb-text);
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color var(--kb-t);
}
.khanhbeauty_collections_sort_select:focus {
    border-color: var(--kb-pink);
}

/* ==================== GRID AREA ==================== */
.khanhbeauty_collections_grid_area {
    min-width: 0;
}

/* Toolbar */
.khanhbeauty_collections_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.khanhbeauty_collections_toolbar_left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.khanhbeauty_collections_toolbar_right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.khanhbeauty_collections_filter_toggle_btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--kb-t);
}
.khanhbeauty_collections_filter_toggle_btn:hover {
    border-color: var(--kb-pink);
    color: var(--kb-pink);
}
.khanhbeauty_collections_result_count {
    font-size: 13px;
    color: var(--kb-text-2);
}
.khanhbeauty_collections_result_count strong {
    color: var(--kb-black);
    font-weight: 700;
}
.khanhbeauty_collections_sort_wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.khanhbeauty_collections_sort_label {
    font-size: 13px;
    color: var(--kb-text-2);
    white-space: nowrap;
}
.khanhbeauty_collections_sort_select_wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.khanhbeauty_collections_sort_select_wrap svg {
    position: absolute;
    right: 8px;
    pointer-events: none;
    color: var(--kb-text-3);
}
.khanhbeauty_collections_sort_select_wrap .khanhbeauty_collections_sort_select {
    padding-right: 26px;
}

.khanhbeauty_collections_view_toggle {
    display: flex;
    gap: 4px;
}
.khanhbeauty_collections_view_btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kb-text-3);
    transition: all var(--kb-t);
}
.khanhbeauty_collections_view_btn:hover,
.khanhbeauty_collections_view_active {
    background: var(--kb-black);
    color: white;
    border-color: var(--kb-black);
}

/* Active filters */
.khanhbeauty_collections_active_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 0;
}
.khanhbeauty_collections_active_tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--kb-pink-bg);
    color: var(--kb-pink);
    border: 1px solid var(--kb-pink-light);
    border-radius: var(--kb-r-full);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
}
.khanhbeauty_collections_active_tag button {
    display: flex;
    color: var(--kb-pink);
    font-size: 13px;
    line-height: 1;
    transition: opacity var(--kb-t);
}
.khanhbeauty_collections_active_tag:hover {
    opacity: 0.82;
}

/* ==================== PRODUCT GRID ==================== */
.khanhbeauty_collections_product_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.khanhbeauty_collections_product_grid.list-view {
    grid-template-columns: 1fr;
}

/* Product Card */
.khanhbeauty_collections_product_card {
    background: white;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-lg);
    overflow: hidden;
    position: relative;
    transition:
        border-color var(--kb-t),
        box-shadow var(--kb-t),
        transform var(--kb-t);
    display: flex;
    flex-direction: column;
}
.khanhbeauty_collections_product_card:hover {
    border-color: var(--kb-pink-light);
    box-shadow: 0 6px 24px rgba(200, 0, 90, 0.12);
    transform: translateY(-2px);
}
/* List view card */
.khanhbeauty_collections_product_grid.list-view
    .khanhbeauty_collections_product_card {
    flex-direction: row;
}
.khanhbeauty_collections_product_grid.list-view
    .khanhbeauty_collections_product_img_wrap {
    flex: 0 0 160px;
    aspect-ratio: auto;
    height: 160px;
}
.khanhbeauty_collections_product_grid.list-view
    .khanhbeauty_collections_product_body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.khanhbeauty_collections_product_img_wrap {
    position: relative;
    background: var(--kb-bg-lt);
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.khanhbeauty_collections_product_img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s var(--kb-ease);
}
.khanhbeauty_collections_product_img_wrap svg {
    transition: transform 0.35s var(--kb-ease);
}
.khanhbeauty_collections_product_card:hover
    .khanhbeauty_collections_product_img_wrap
    img,
.khanhbeauty_collections_product_card:hover
    .khanhbeauty_collections_product_img_wrap
    svg {
    transform: scale(1.07);
}

/* Badges */
.khanhbeauty_collections_product_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--kb-r-sm);
    letter-spacing: 0.04em;
}
.khanhbeauty_collections_badge_sale {
    background: var(--kb-pink);
    color: white;
}
.khanhbeauty_collections_badge_new {
    background: var(--kb-green);
    color: white;
}
.khanhbeauty_collections_badge_hot {
    background: #e65c00;
    color: white;
}
.khanhbeauty_collections_badge_bestseller {
    background: var(--kb-gold);
    color: #1a1a1a;
}

.khanhbeauty_collections_product_wish {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--kb-shadow-sm);
    opacity: 0;
    transition: opacity var(--kb-t);
    color: var(--kb-text-3);
}
.khanhbeauty_collections_product_card:hover
    .khanhbeauty_collections_product_wish {
    opacity: 1;
}
.khanhbeauty_collections_product_wish:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_product_wish.wished {
    opacity: 1;
    color: var(--kb-pink);
}
.khanhbeauty_collections_product_wish svg {
    width: 15px;
    height: 15px;
}

/* Color dots row */
.khanhbeauty_collections_product_colors {
    display: flex;
    gap: 4px;
    padding: 8px 12px 4px;
    flex-wrap: wrap;
}
.khanhbeauty_collections_product_swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid var(--kb-border);
    cursor: pointer;
    transition:
        transform var(--kb-t),
        border-color var(--kb-t);
}
.khanhbeauty_collections_product_swatch:hover,
.khanhbeauty_collections_product_swatch.active {
    transform: scale(1.25);
    border-color: var(--kb-black);
}

/* Product body */
.khanhbeauty_collections_product_body {
    padding: 8px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.khanhbeauty_collections_product_brand {
    font-size: 10.5px;
    color: var(--kb-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.khanhbeauty_collections_product_name {
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-text);
    line-height: 1.4;
    margin-bottom: 6px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.khanhbeauty_collections_product_name a {
    color: inherit;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_product_name a:hover {
    color: var(--kb-pink);
}

/* Stars */
.khanhbeauty_collections_product_stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}
.khanhbeauty_collections_star {
    color: var(--kb-gold);
    font-size: 12px;
    line-height: 1;
}
.khanhbeauty_collections_star_empty {
    color: #ddd;
    font-size: 12px;
    line-height: 1;
}
.khanhbeauty_collections_review_ct {
    font-size: 11px;
    color: var(--kb-text-3);
    margin-left: 3px;
}

/* Price row */
.khanhbeauty_collections_product_price_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.khanhbeauty_collections_product_price {
    font-size: 15px;
    font-weight: 800;
    color: var(--kb-pink);
}
.khanhbeauty_collections_product_original {
    font-size: 12px;
    color: var(--kb-text-3);
    text-decoration: line-through;
}
.khanhbeauty_collections_product_discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--kb-pink);
}

/* Sold count */
.khanhbeauty_collections_product_sold {
    font-size: 11px;
    color: var(--kb-text-3);
    margin-bottom: 6px;
}
.khanhbeauty_collections_product_sold strong {
    color: var(--kb-text-2);
    font-weight: 600;
}

/* Add to cart */
.khanhbeauty_collections_product_atc {
    width: 32px;
    height: 32px;
    background: var(--kb-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background var(--kb-t),
        transform var(--kb-t);
}
.khanhbeauty_collections_product_atc:hover {
    background: var(--kb-pink-dark);
    transform: scale(1.08);
}
.khanhbeauty_collections_product_atc svg {
    width: 14px;
    height: 14px;
}

/* Mua ngay button (full width) */
.khanhbeauty_collections_product_buy {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background: var(--kb-black);
    color: white;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: var(--kb-r-sm);
    transition: background var(--kb-t);
}
.khanhbeauty_collections_product_buy:hover {
    background: var(--kb-pink);
}

.khanhbeauty_collections_empty_state {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    padding: 32px 20px;
    border: 1px dashed var(--kb-border);
    border-radius: var(--kb-r-lg);
    background: var(--kb-bg-lt);
    color: var(--kb-text-2);
}
.khanhbeauty_collections_empty_icon {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 12px;
}
.khanhbeauty_collections_empty_title {
    font-size: 18px;
    font-weight: 700;
    color: var(--kb-black);
    margin-bottom: 6px;
}
.khanhbeauty_collections_empty_sub {
    font-size: 13px;
    max-width: 420px;
}
.khanhbeauty_collections_empty_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: var(--kb-r-sm);
    background: var(--kb-black);
    color: white;
    font-size: 12.5px;
    font-weight: 700;
    transition: background var(--kb-t);
}
.khanhbeauty_collections_empty_btn:hover {
    background: var(--kb-pink);
}

.khanhbeauty_collections_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}
.khanhbeauty_collections_pagination_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-sm);
    background: white;
    color: var(--kb-text);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--kb-t);
}
.khanhbeauty_collections_pagination_link:hover,
.khanhbeauty_collections_pagination_link.is-active {
    border-color: var(--kb-black);
    background: var(--kb-black);
    color: white;
}

/* ==================== MID BANNER ==================== */
.khanhbeauty_collections_mid_banner {
    background: var(--kb-black);
    border-radius: var(--kb-r-lg);
    padding: 0;
    margin: 4px 0 20px;
    overflow: hidden;
}
.khanhbeauty_collections_mid_banner_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
}
.khanhbeauty_collections_mid_banner_text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: white;
}
.khanhbeauty_collections_mid_banner_tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--kb-gold);
    text-transform: uppercase;
}
.khanhbeauty_collections_mid_banner_text strong {
    font-size: 15px;
    font-weight: 700;
}
.khanhbeauty_collections_mid_banner_btn {
    flex-shrink: 0;
    background: white;
    color: var(--kb-black);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: var(--kb-r-sm);
    letter-spacing: 0.05em;
    transition:
        background var(--kb-t),
        color var(--kb-t);
}
.khanhbeauty_collections_mid_banner_btn:hover {
    background: var(--kb-pink);
    color: white;
}
.khanhbeauty_collections_mid_banner_img {
    flex-shrink: 0;
    width: 80px;
    opacity: 0.8;
}
.khanhbeauty_collections_mid_banner_img svg {
    width: 100%;
    height: auto;
}

/* ==================== LOAD MORE ==================== */
.khanhbeauty_collections_loadmore_wrap {
    text-align: center;
    margin: 10px 0 32px;
}
.khanhbeauty_collections_loadmore_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 40px;
    border: 1.5px solid var(--kb-border);
    border-radius: var(--kb-r-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--kb-text);
    transition: all var(--kb-t);
    background: white;
}
.khanhbeauty_collections_loadmore_btn:hover {
    border-color: var(--kb-pink);
    color: var(--kb-pink);
}
.khanhbeauty_collections_loadmore_btn.loading {
    opacity: 0.7;
    pointer-events: none;
}
.khanhbeauty_collections_spin_icon {
    animation: kbSpin 1s linear infinite;
}
@keyframes kbSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== SEO SECTION ==================== */
.khanhbeauty_collections_seo_section {
    background: var(--kb-bg-lt);
    border-top: 1px solid var(--kb-border);
    padding: 36px 0 48px;
}
.khanhbeauty_collections_seo_inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
}
.khanhbeauty_collections_seo_text h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--kb-black);
    margin-bottom: 12px;
}
.khanhbeauty_collections_seo_text p {
    font-size: 13.5px;
    color: var(--kb-text-2);
    line-height: 1.75;
    margin-bottom: 10px;
}
.khanhbeauty_collections_seo_text strong {
    color: var(--kb-black);
    font-weight: 700;
}
.khanhbeauty_collections_seo_readmore {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--kb-ease);
}
.khanhbeauty_collections_seo_readmore.open {
    max-height: 400px;
}
.khanhbeauty_collections_seo_toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kb-pink);
    margin-top: 6px;
    transition: opacity var(--kb-t);
}
.khanhbeauty_collections_seo_toggle:hover {
    opacity: 0.7;
}

/* FAQ */
.khanhbeauty_collections_faq_title {
    font-size: 19px;
    font-weight: 800;
    color: var(--kb-black);
    margin-bottom: 14px;
}
.khanhbeauty_collections_faq_list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.khanhbeauty_collections_faq_item {
    border-bottom: 1px solid var(--kb-border);
}
.khanhbeauty_collections_faq_item:first-child {
    border-top: 1px solid var(--kb-border);
}
.khanhbeauty_collections_faq_q {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--kb-text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_faq_q:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_faq_ico {
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform var(--kb-t);
}
.khanhbeauty_collections_faq_item.open .khanhbeauty_collections_faq_ico {
    transform: rotate(90deg);
}
.khanhbeauty_collections_faq_item.open .khanhbeauty_collections_faq_q {
    color: var(--kb-pink);
}
.khanhbeauty_collections_faq_a {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s var(--kb-ease),
        padding 0.3s var(--kb-ease);
    padding: 0 0 0 22px;
}
.khanhbeauty_collections_faq_item.open .khanhbeauty_collections_faq_a {
    max-height: 200px;
    padding-bottom: 14px;
}
.khanhbeauty_collections_faq_a p {
    font-size: 13px;
    color: var(--kb-text-2);
    line-height: 1.65;
}

/* Related categories */
.khanhbeauty_collections_related_cats {
    margin-top: 28px;
}
.khanhbeauty_collections_related_title {
    font-size: 15px;
    font-weight: 700;
    color: var(--kb-black);
    margin-bottom: 10px;
}
.khanhbeauty_collections_related_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.khanhbeauty_collections_related_tag {
    display: inline-flex;
    padding: 6px 14px;
    background: white;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-r-full);
    font-size: 12.5px;
    color: var(--kb-text-2);
    transition: all var(--kb-t);
}
.khanhbeauty_collections_related_tag:hover {
    border-color: var(--kb-pink);
    color: var(--kb-pink);
    background: var(--kb-pink-bg);
}

/* ==================== CTA BANNER ==================== */
.khanhbeauty_collections_cta_banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d0020 50%, #4a0030 100%);
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    text-align: center;
}
.khanhbeauty_collections_cta_banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
}
.khanhbeauty_collections_cta_overlay {
    position: relative;
    z-index: 1;
}
.khanhbeauty_collections_cta_title {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}
.khanhbeauty_collections_cta_sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}
.khanhbeauty_collections_cta_btn {
    display: inline-flex;
    padding: 12px 36px;
    background: white;
    color: var(--kb-black);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--kb-r-sm);
    transition: all var(--kb-t);
}
.khanhbeauty_collections_cta_btn:hover {
    background: var(--kb-pink);
    color: white;
}

/* ==================== FOOTER ==================== */
.khanhbeauty_collections_footer {
    background: #111;
    color: rgba(255, 255, 255, 0.7);
}
.khanhbeauty_collections_footer_top {
    padding: 44px 0 28px;
}
.khanhbeauty_collections_footer_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}
.khanhbeauty_collections_footer_col_title {
    font-size: 12.5px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.khanhbeauty_collections_footer_links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.khanhbeauty_collections_footer_links a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    transition:
        color var(--kb-t),
        padding-left var(--kb-t);
}
.khanhbeauty_collections_footer_links a:hover {
    color: white;
    padding-left: 4px;
}
.khanhbeauty_collections_footer_bottom_area {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.khanhbeauty_collections_footer_social {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.khanhbeauty_collections_social_link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--kb-t);
}
.khanhbeauty_collections_social_link:hover {
    background: var(--kb-pink);
    color: white;
    transform: translateY(-2px);
}
.khanhbeauty_collections_footer_company {
    flex: 1;
}
.khanhbeauty_collections_footer_company p {
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1.6;
}
.khanhbeauty_collections_footer_company a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--kb-t);
}
.khanhbeauty_collections_footer_company a:hover {
    color: white;
}
.khanhbeauty_collections_footer_copy {
    color: rgba(255, 255, 255, 0.3) !important;
    margin-top: 8px;
}

/* ==================== CART DRAWER ==================== */
.khanhbeauty_collections_cart_drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}
.khanhbeauty_collections_cart_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s var(--kb-ease);
}
.khanhbeauty_collections_cart_panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s var(--kb-ease);
    box-shadow: -6px 0 32px rgba(0, 0, 0, 0.18);
}
.khanhbeauty_collections_cart_drawer.open {
    pointer-events: all;
}
.khanhbeauty_collections_cart_drawer.open
    .khanhbeauty_collections_cart_overlay {
    opacity: 1;
}
.khanhbeauty_collections_cart_drawer.open .khanhbeauty_collections_cart_panel {
    transform: translateX(0);
}
.khanhbeauty_collections_cart_hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--kb-border);
}
.khanhbeauty_collections_cart_hd h2 {
    font-size: 16px;
    font-weight: 700;
}
.khanhbeauty_collections_cart_close {
    font-size: 18px;
    color: var(--kb-text-3);
    padding: 4px;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_cart_close:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_cart_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.khanhbeauty_collections_cart_item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--kb-border-lt);
}
.khanhbeauty_collections_cart_item_img {
    width: 64px;
    height: 64px;
    background: var(--kb-bg-lt);
    border-radius: var(--kb-r);
    border: 1px solid var(--kb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.khanhbeauty_collections_cart_item_img svg {
    width: 48px;
    height: auto;
}
.khanhbeauty_collections_cart_item_info {
    flex: 1;
}
.khanhbeauty_collections_cart_item_name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}
.khanhbeauty_collections_cart_item_price {
    font-size: 14px;
    font-weight: 800;
    color: var(--kb-pink);
    margin-bottom: 8px;
}
.khanhbeauty_collections_cart_qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.khanhbeauty_collections_qty_btn {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--kb-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all var(--kb-t);
}
.khanhbeauty_collections_qty_btn:hover {
    background: var(--kb-pink);
    color: white;
    border-color: var(--kb-pink);
}
.khanhbeauty_collections_qty_val {
    font-size: 13.5px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}
.khanhbeauty_collections_cart_remove {
    font-size: 14px;
    color: var(--kb-text-3);
    align-self: flex-start;
    padding: 2px;
    transition: color var(--kb-t);
}
.khanhbeauty_collections_cart_remove:hover {
    color: var(--kb-pink);
}
.khanhbeauty_collections_cart_foot {
    padding: 16px 20px;
    border-top: 1px solid var(--kb-border);
}
.khanhbeauty_collections_cart_total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}
.khanhbeauty_collections_cart_total strong {
    color: var(--kb-pink);
    font-size: 18px;
}
.khanhbeauty_collections_cart_checkout {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--kb-pink);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--kb-r-sm);
    transition: background var(--kb-t);
}
.khanhbeauty_collections_cart_checkout:hover {
    background: var(--kb-pink-dark);
}

/* ==================== TOAST ==================== */
.khanhbeauty_collections_toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--kb-black);
    color: white;
    padding: 10px 22px;
    border-radius: var(--kb-r-full);
    font-size: 13.5px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s var(--kb-ease);
    white-space: nowrap;
}
.khanhbeauty_collections_toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== BACK TO TOP ==================== */
.khanhbeauty_collections_btt {
    position: fixed;
    bottom: 68px;
    right: 18px;
    z-index: 800;
    width: 40px;
    height: 40px;
    background: var(--kb-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--kb-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--kb-t);
}
.khanhbeauty_collections_btt.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.khanhbeauty_collections_btt:hover {
    background: var(--kb-pink);
    transform: translateY(-2px);
}

/* ==================== FLOAT CHAT ==================== */
.khanhbeauty_collections_float_chat {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 800;
    width: 48px;
    height: 48px;
    background: var(--kb-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(200, 0, 90, 0.4);
    transition: all var(--kb-t);
    animation: kbPulse 2.5s ease-in-out infinite;
}
.khanhbeauty_collections_float_chat:hover {
    background: var(--kb-pink-dark);
    transform: scale(1.08);
    animation: none;
}
@keyframes kbPulse {
    0%,
    100% {
        box-shadow: 0 4px 18px rgba(200, 0, 90, 0.4);
    }
    50% {
        box-shadow: 0 4px 28px rgba(200, 0, 90, 0.65);
    }
}

/* ==================== SCROLL PROGRESS ==================== */
.khanhbeauty_collections_scroll_progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--kb-pink), #ff6baa);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==================== SKELETON ==================== */
.khanhbeauty_collections_skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: kbShimmer 1.4s infinite;
    border-radius: var(--kb-r-sm);
}
@keyframes kbShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== FADE IN ==================== */
.khanhbeauty_collections_fade {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.45s var(--kb-ease),
        transform 0.45s var(--kb-ease);
}
.khanhbeauty_collections_fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    :root {
        --kb-sidebar-w: 200px;
    }
    .khanhbeauty_collections_product_grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .khanhbeauty_collections_footer_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .khanhbeauty_collections_main_nav {
        display: none;
    }
    .khanhbeauty_collections_hamburger {
        display: flex;
    }
    .khanhbeauty_collections_search_toggle span {
        display: none;
    }
    .khanhbeauty_collections_search_toggle {
        min-width: auto;
        padding: 7px;
    }
    /* Mobile nav overlay */
    .khanhbeauty_collections_main_nav.mobile-open {
        display: block;
        position: fixed;
        inset: 60px 0 0;
        background: white;
        z-index: 850;
        overflow-y: auto;
        padding: 16px 0;
        border-top: 1px solid var(--kb-border);
    }
    .khanhbeauty_collections_nav_list {
        flex-direction: column;
        height: auto;
    }
    .khanhbeauty_collections_nav_link {
        padding: 14px 20px;
        border-bottom: 1px solid var(--kb-border-lt);
        height: auto;
        border-left: 3px solid transparent;
    }
    .khanhbeauty_collections_nav_active,
    .khanhbeauty_collections_nav_link:hover {
        border-bottom-color: var(--kb-border-lt) !important;
        border-left-color: var(--kb-pink);
    }
    .khanhbeauty_collections_subnav {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--kb-bg-lt);
    }
    .khanhbeauty_collections_subnav_inner {
        flex-direction: column;
        gap: 0;
        padding: 10px 24px;
    }
    .khanhbeauty_collections_subnav_col {
        border-right: none;
        border-bottom: 1px solid var(--kb-border-lt);
        padding: 8px 0;
    }

    .khanhbeauty_collections_layout {
        grid-template-columns: auto;
    }
    .khanhbeauty_collections_sidebar {
        display: none;
        width: 100%;
        position: static;
        max-height: none;
    }
    .khanhbeauty_collections_sidebar.mobile-open {
        display: block;
    }
    .khanhbeauty_collections_filter_toggle_btn {
        display: inline-flex;
    }
    .khanhbeauty_collections_filter_sort_mobile {
        display: block;
    }

    .khanhbeauty_collections_product_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .khanhbeauty_collections_seo_inner {
        grid-template-columns: 1fr;
    }
    .khanhbeauty_collections_footer_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .khanhbeauty_collections_promo_text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .khanhbeauty_collections_search_panel {
        right: -60px;
        width: 300px;
    }
}

@media (max-width: 600px) {
    .khanhbeauty_collections_topbar {
        display: none;
    }
    .khanhbeauty_collections_hero_title {
        font-size: 18px;
    }
    .khanhbeauty_collections_trust_badges {
        gap: 10px;
    }
    .khanhbeauty_collections_product_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .khanhbeauty_collections_footer_grid {
        grid-template-columns: 1fr 1fr;
    }
    .khanhbeauty_collections_cta_title {
        font-size: 20px;
    }
    .khanhbeauty_collections_cart_panel {
        width: 100%;
    }
    .khanhbeauty_collections_mid_banner_inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .khanhbeauty_collections_mid_banner_img {
        display: none;
    }
}

@media print {
    .khanhbeauty_collections_header,
    .khanhbeauty_collections_topbar,
    .khanhbeauty_collections_sidebar,
    .khanhbeauty_collections_btt,
    .khanhbeauty_collections_float_chat,
    .khanhbeauty_collections_cart_drawer {
        display: none !important;
    }
}
