/* =========================================================
   PHONG KÍNH - Kính Mắt Thời Trang
   CSS with prefix: khanhbeauty_shop_
   SEO-optimized, Accessible, Responsive
   ========================================================= */

/* ==================== CSS VARIABLES ==================== */
:root {
    --pk-primary: #d99282;
    --pk-primary-light: #e6b8ae;
    --pk-primary-dark: #b86e5e;
    --pk-accent: #f97316;
    --pk-accent-light: #fb923c;
    --pk-success: #10b981;
    --pk-danger: #ef4444;
    --pk-gold: #eab308;

    --pk-bg: #ffffff;
    --pk-bg-light: #fafafa;
    --pk-bg-gray: #f8fafc;
    --pk-bg-dark: #0f172a;

    --pk-text: #1e293b;
    --pk-text-secondary: #475569;
    --pk-text-muted: #94a3b8;
    --pk-text-light: #ffffff;

    --pk-border: #f1f5f9;
    --pk-border-light: #f8fafc;
    --pk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --pk-shadow: 0 4px 20px -2px rgba(236, 72, 153, 0.08);
    --pk-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
    --pk-shadow-card: 0 4px 16px rgba(15, 23, 42, 0.04);

    --pk-radius-sm: 8px;
    --pk-radius: 12px;
    --pk-radius-lg: 18px;
    --pk-radius-xl: 24px;
    --pk-radius-full: 9999px;

    --pk-font:
        "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont,
        Roboto, sans-serif;
    --pk-font-size: 15px;
    --pk-line: 1.6;

    --pk-container: 1240px;
    --pk-gap: 20px;
    --khanhbeauty-shop-header-height: 72px;
    --khanhbeauty-shop-nav-height: 52px;

    --pk-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --pk-transition-slow: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--pk-font-size);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--pk-font);
    color: var(--pk-text);
    background: var(--pk-bg);
    line-height: var(--pk-line);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--pk-transition);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

svg {
    display: block;
    flex-shrink: 0;
}

/* ==================== SKIP LINK (Accessibility) ==================== */
.khanhbeauty_shop_skip_link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pk-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}

.khanhbeauty_shop_skip_link:focus {
    top: 0;
}

/* ==================== CONTAINER ==================== */
.khanhbeauty_shop_container {
    width: 100%;
    max-width: var(--pk-container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== TOP BAR ==================== */
.khanhbeauty_shop_topbar {
    background: var(--pk-primary);
    color: white;
    font-size: 12px;
    padding: 6px 0;
}

.khanhbeauty_shop_topbar_inner {
    max-width: var(--pk-container);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.khanhbeauty_shop_topbar_text {
    font-weight: 500;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.khanhbeauty_shop_topbar_right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.khanhbeauty_shop_topbar_link {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--pk-transition);
    font-weight: 600;
}

.khanhbeauty_shop_topbar_link:hover {
    color: white;
    text-decoration: underline;
}

.khanhbeauty_shop_topbar_sep {
    opacity: 0.5;
}

/* ==================== HEADER ==================== */
.khanhbeauty_shop_header {
    background: #ffffff;
    border-bottom: 1px solid var(--pk-border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--pk-shadow-sm);
    left: 0;
    right: 0;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.khanhbeauty_shop_header_inner {
    max-width: var(--pk-container);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--khanhbeauty-shop-header-height);
}

/* Logo */
.khanhbeauty_shop_logo_link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.khanhbeauty_shop_logo_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--pk-bg-light);
    border-radius: var(--pk-radius);
    border: 1.5px solid var(--pk-border);
}

.khanhbeauty_shop_logo_media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.khanhbeauty_shop_logo_text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.khanhbeauty_shop_logo_name {
    font-size: 16px;
    font-weight: 800;
    color: var(--pk-primary);
    letter-spacing: 0.04em;
}

.khanhbeauty_shop_logo_sub {
    font-size: 10px;
    color: var(--pk-text-muted);
    font-weight: 400;
}

/* Search */
.khanhbeauty_shop_search {
    flex: 1;
    max-width: 540px;
}

.khanhbeauty_shop_search_form {
    display: flex;
    align-items: center;
    background: var(--pk-bg-gray);
    border: 1.5px solid var(--pk-border);
    border-radius: var(--pk-radius-full);
    overflow: hidden;
    transition:
        border-color var(--pk-transition),
        box-shadow var(--pk-transition);
}

.khanhbeauty_shop_search_form:focus-within {
    border-color: var(--pk-primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1);
}

.khanhbeauty_shop_search_input {
    flex: 1;
    min-width: 0;
    padding: 10px 18px;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--pk-text);
}

.khanhbeauty_shop_search_input::placeholder {
    color: var(--pk-text-muted);
}

.khanhbeauty_shop_search_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    background: var(--pk-primary);
    color: white;
    border-radius: 0 var(--pk-radius-full) var(--pk-radius-full) 0;
    transition: background var(--pk-transition);
    flex-shrink: 0;
}

.khanhbeauty_shop_search_btn:hover {
    background: var(--pk-primary-light);
}

/* Header Actions */
.khanhbeauty_shop_header_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.khanhbeauty_shop_action_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--pk-radius);
    color: var(--pk-text);
    transition:
        background var(--pk-transition),
        color var(--pk-transition);
    min-width: 64px;
}

.khanhbeauty_shop_action_btn:hover {
    background: var(--pk-bg-gray);
    color: var(--pk-primary);
}

.khanhbeauty_shop_action_label {
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

.khanhbeauty_shop_cart_icon_wrap {
    position: relative;
    display: flex;
}

.khanhbeauty_shop_cart_count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--pk-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Mobile Toggle */
.khanhbeauty_shop_mobile_toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--pk-radius-sm);
}

.khanhbeauty_shop_mobile_toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pk-text);
    border-radius: 2px;
    transition:
        transform var(--pk-transition),
        opacity var(--pk-transition);
}

.khanhbeauty_shop_mobile_toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.khanhbeauty_shop_mobile_toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.khanhbeauty_shop_mobile_toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== NAVIGATION ==================== */
.khanhbeauty_shop_nav {
    background: white;
    border-bottom: 1px solid var(--pk-border);
    position: sticky;
    top: var(--khanhbeauty-shop-header-height);
    z-index: 800;
    left: 0;
    right: 0;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition:
        top 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease,
        box-shadow 0.32s ease,
        background-color 0.32s ease,
        border-color 0.32s ease;
    will-change: top, transform;
}

.khanhbeauty_shop_nav_inner {
    max-width: var(--pk-container);
    margin: 0 auto;
    padding: 0 16px;
}

.khanhbeauty_shop_nav_list {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.khanhbeauty_shop_nav_item {
    position: relative;
}

.khanhbeauty_shop_nav_link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pk-text);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition:
        color var(--pk-transition),
        border-color var(--pk-transition);
}

.khanhbeauty_shop_nav_link:hover,
.khanhbeauty_shop_nav_link.khanhbeauty_shop_nav_active {
    color: var(--pk-primary);
    border-bottom-color: var(--pk-primary);
}

.khanhbeauty_shop_nav_sale {
    color: var(--pk-danger) !important;
}

.khanhbeauty_shop_nav_sale:hover {
    border-bottom-color: var(--pk-danger) !important;
}

/* Dropdown */
.khanhbeauty_shop_dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--pk-border);
    border-top: 3px solid var(--pk-primary);
    border-radius: 0 0 var(--pk-radius) var(--pk-radius);
    box-shadow: var(--pk-shadow-lg);
    min-width: 500px;
    z-index: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity var(--pk-transition),
        transform var(--pk-transition),
        visibility var(--pk-transition);
}

.khanhbeauty_shop_dropdown--single {
    min-width: 280px;
}

.khanhbeauty_shop_nav_has_dropdown:hover .khanhbeauty_shop_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.khanhbeauty_shop_dropdown_inner {
    display: flex;
    gap: 0;
    padding: 20px;
}

.khanhbeauty_shop_dropdown_col {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid var(--pk-border-light);
}

.khanhbeauty_shop_dropdown_col:last-child {
    border-right: none;
}

.khanhbeauty_shop_dropdown_title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--pk-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.khanhbeauty_shop_dropdown_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.khanhbeauty_shop_dropdown_list a {
    font-size: 13.5px;
    color: var(--pk-text);
    padding: 3px 0;
    transition:
        color var(--pk-transition),
        padding-left var(--pk-transition);
}

.khanhbeauty_shop_dropdown_list a:hover {
    color: var(--pk-primary);
    padding-left: 6px;
}

.khanhbeauty_shop_dropdown_list a.khanhbeauty_shop_dropdown_active {
    color: var(--pk-primary);
    padding-left: 6px;
    font-weight: 700;
}

@media (min-width: 992px) {
    .khanhbeauty_shop_header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 68px;
        z-index: 920;
        background: #ffffff;
        border-bottom: 1px solid var(--pk-border);
        transition:
            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.25s ease;
        box-sizing: border-box;
    }

    .khanhbeauty_shop_header.is-scrolled {
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    }

    .khanhbeauty_shop_header.nav-hidden {
        transform: translateY(-100%);
    }

    .khanhbeauty_shop_nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        height: 50px;
        z-index: 910;
        background: #ffffff;
        border-bottom: 1px solid var(--pk-border);
        transition:
            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.25s ease;
        box-sizing: border-box;
    }

    .khanhbeauty_shop_nav.is-scrolled {
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    }

    .khanhbeauty_shop_nav.nav-hidden {
        transform: translateY(-68px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    }

    body {
        padding-top: 118px;
    }
}

/* ==================== BUTTONS ==================== */
.khanhbeauty_shop_btn_primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--pk-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--pk-radius-full);
    border: 2px solid var(--pk-primary);
    transition: all var(--pk-transition);
    white-space: nowrap;
}

.khanhbeauty_shop_btn_primary:hover {
    background: var(--pk-primary-light);
    border-color: var(--pk-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 60, 110, 0.3);
}

.khanhbeauty_shop_btn_outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--pk-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--pk-radius-full);
    border: 2px solid var(--pk-primary);
    transition: all var(--pk-transition);
    white-space: nowrap;
}

.khanhbeauty_shop_btn_outline:hover {
    background: var(--pk-primary);
    color: white;
}

.khanhbeauty_shop_btn_white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--pk-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: var(--pk-radius-full);
    border: 2px solid white;
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_btn_white:hover {
    background: transparent;
    color: white;
}

.khanhbeauty_shop_btn_outline_white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 28px;
    border-radius: var(--pk-radius-full);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_btn_outline_white:hover {
    background: white;
    color: var(--pk-text);
}

/* ==================== SECTIONS ==================== */
.khanhbeauty_shop_products_section {
    padding: 48px 0;
}

.khanhbeauty_shop_products_section:nth-child(even) {
    background: var(--pk-bg-light);
}

.khanhbeauty_shop_section_header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.khanhbeauty_shop_section_header_center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.khanhbeauty_shop_section_title_wrap {
}

.khanhbeauty_shop_section_title {
    font-size: 24px;
    font-weight: 800;
    color: var(--pk-primary-dark);
    position: relative;
    padding-left: 14px;
}

.khanhbeauty_shop_section_title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--pk-primary);
    border-radius: 2px;
}

.khanhbeauty_shop_section_header_center .khanhbeauty_shop_section_title {
    padding-left: 0;
}

.khanhbeauty_shop_section_header_center
    .khanhbeauty_shop_section_title::before {
    display: none;
}

.khanhbeauty_shop_section_sub {
    font-size: 13.5px;
    color: var(--pk-text-muted);
    margin-top: 4px;
}

.khanhbeauty_shop_view_all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pk-primary);
    white-space: nowrap;
    padding: 8px 16px;
    border: 1.5px solid var(--pk-primary);
    border-radius: var(--pk-radius-full);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_view_all:hover {
    background: var(--pk-primary);
    color: white;
}

/* ==================== PRODUCT GRID ==================== */
.khanhbeauty_shop_products_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.khanhbeauty_shop_product_card {
    background: white;
    border: 1.5px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    overflow: hidden;
    transition: all var(--pk-transition);
    position: relative;
}

.khanhbeauty_shop_product_card:hover {
    border-color: var(--pk-primary);
    box-shadow: var(--pk-shadow-card);
    transform: translateY(-3px);
}

.khanhbeauty_shop_product_img_wrap {
    position: relative;
    background: var(--pk-bg-light);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.khanhbeauty_shop_product_img_wrap svg {
    width: 100%;
    max-width: 140px;
    height: auto;
    transition: transform 0.3s ease;
}

.khanhbeauty_shop_product_card:hover .khanhbeauty_shop_product_img_wrap svg {
    transform: scale(1.06);
}

.khanhbeauty_shop_product_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pk-danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--pk-radius-full);
    z-index: 2;
}

.khanhbeauty_shop_product_badge_new {
    background: var(--pk-success);
}

.khanhbeauty_shop_product_badge_hot {
    background: var(--pk-accent);
}

.khanhbeauty_shop_product_wishlist {
    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(--pk-shadow-sm);
    opacity: 0;
    transition: opacity var(--pk-transition);
    color: var(--pk-text-muted);
}

.khanhbeauty_shop_product_card:hover .khanhbeauty_shop_product_wishlist {
    opacity: 1;
}

.khanhbeauty_shop_product_wishlist:hover {
    color: var(--pk-danger);
}

.khanhbeauty_shop_product_wishlist.is-active {
    opacity: 1;
    color: var(--pk-danger);
    background: rgba(237, 100, 166, 0.14);
}

.khanhbeauty_shop_product_wishlist svg {
    width: 16px;
    height: 16px;
}

.khanhbeauty_shop_product_colors {
    display: flex;
    gap: 4px;
    padding: 0 14px 8px;
}

.khanhbeauty_shop_color_swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--pk-border);
    cursor: pointer;
    transition: transform var(--pk-transition);
}

.khanhbeauty_shop_color_swatch:hover,
.khanhbeauty_shop_color_swatch.active {
    transform: scale(1.3);
    border-color: var(--pk-text);
}

.khanhbeauty_shop_product_info {
    padding: 10px 14px 14px;
}

.khanhbeauty_shop_product_brand {
    font-size: 10.5px;
    color: var(--pk-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.khanhbeauty_shop_product_name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pk-text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.khanhbeauty_shop_product_stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
}

.khanhbeauty_shop_star_icon {
    color: var(--pk-gold);
    font-size: 12px;
    line-height: 1;
}

.khanhbeauty_shop_product_review_count {
    font-size: 11px;
    color: var(--pk-text-muted);
}

.khanhbeauty_shop_product_price_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.khanhbeauty_shop_product_price {
    font-size: 16px;
    font-weight: 800;
    color: var(--pk-danger);
}

.khanhbeauty_shop_product_price_original {
    font-size: 12px;
    color: var(--pk-text-muted);
    text-decoration: line-through;
}

.khanhbeauty_shop_product_cart_btn {
    width: 32px;
    height: 32px;
    background: var(--pk-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--pk-transition);
    flex-shrink: 0;
}

.khanhbeauty_shop_product_cart_btn:hover {
    background: var(--pk-accent);
    transform: scale(1.1);
}

.khanhbeauty_shop_product_cart_btn svg {
    width: 14px;
    height: 14px;
}

/* ==================== FOOTER ==================== */
.khanhbeauty_shop_footer {
    background: #0d1b2a;
    color: rgba(255, 255, 255, 0.8);
}

.khanhbeauty_shop_footer_top {
    padding: 52px 0 36px;
}

.khanhbeauty_shop_footer_grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.khanhbeauty_shop_footer_logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.khanhbeauty_shop_footer_logo_media {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.khanhbeauty_shop_footer_desc {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.khanhbeauty_shop_footer_socials {
    display: flex;
    gap: 10px;
}

.khanhbeauty_shop_social_link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_social_link:hover {
    background: var(--pk-primary);
    color: white;
    transform: translateY(-2px);
}

.khanhbeauty_shop_footer_col_title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.khanhbeauty_shop_footer_links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.khanhbeauty_shop_footer_links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    transition:
        color var(--pk-transition),
        padding-left var(--pk-transition);
}

.khanhbeauty_shop_footer_links a:hover {
    color: white;
    padding-left: 4px;
}

.khanhbeauty_shop_footer_contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;
    margin-bottom: 16px;
}

.khanhbeauty_shop_footer_contact_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.khanhbeauty_shop_footer_contact_item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.khanhbeauty_shop_footer_contact_item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--pk-transition);
}

.khanhbeauty_shop_footer_contact_item a:hover {
    color: white;
}

.khanhbeauty_shop_footer_payment {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.khanhbeauty_shop_payment_badge {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Newsletter */
.khanhbeauty_shop_newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
}

.khanhbeauty_shop_newsletter_inner {
    max-width: var(--pk-container);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.khanhbeauty_shop_newsletter_text h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.khanhbeauty_shop_newsletter_text p {
    font-size: 13px;
    opacity: 0.7;
}

.khanhbeauty_shop_newsletter_form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 440px;
}

.khanhbeauty_shop_newsletter_input {
    flex: 1;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--pk-radius-full);
    color: white;
    font-size: 14px;
    outline: none;
    transition:
        border-color var(--pk-transition),
        background var(--pk-transition);
}

.khanhbeauty_shop_newsletter_input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.khanhbeauty_shop_newsletter_input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.khanhbeauty_shop_newsletter_btn {
    padding: 10px 24px;
    background: var(--pk-accent);
    color: white;
    border-radius: var(--pk-radius-full);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background var(--pk-transition),
        transform var(--pk-transition);
}

.khanhbeauty_shop_newsletter_btn:hover {
    background: var(--pk-accent-light);
    transform: translateY(-1px);
}

/* Footer Bottom */
.khanhbeauty_shop_footer_bottom {
    padding: 18px 0;
}

.khanhbeauty_shop_footer_bottom_inner {
    max-width: var(--pk-container);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.khanhbeauty_shop_footer_bottom p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.45);
}

.khanhbeauty_shop_footer_bottom a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--pk-transition);
}

.khanhbeauty_shop_footer_bottom a:hover {
    color: white;
}

.khanhbeauty_shop_seo_audit_link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_seo_audit_link:hover {
    color: var(--pk-gold) !important;
    border-color: var(--pk-gold);
}

/* ==================== BACK TO TOP ==================== */
.khanhbeauty_shop_back_top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 800;
    width: 44px;
    height: 44px;
    background: var(--pk-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pk-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_back_top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.khanhbeauty_shop_back_top:hover {
    background: var(--pk-primary-light);
    transform: translateY(-3px) !important;
}

/* ==================== CART DRAWER ==================== */
.khanhbeauty_shop_cart_drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
}

.khanhbeauty_shop_cart_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity var(--pk-transition-slow);
}

.khanhbeauty_shop_cart_panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--pk-transition-slow);
    box-shadow: none;
}

.khanhbeauty_shop_cart_drawer.open {
    pointer-events: all;
    visibility: visible;
}

.khanhbeauty_shop_cart_drawer.open .khanhbeauty_shop_cart_overlay {
    opacity: 1;
}

.khanhbeauty_shop_cart_drawer.open .khanhbeauty_shop_cart_panel {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
}

.khanhbeauty_shop_cart_panel_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pk-border);
}

.khanhbeauty_shop_cart_panel_header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pk-text);
}

.khanhbeauty_shop_cart_close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--pk-text-muted);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_cart_close:hover {
    background: var(--pk-bg-gray);
    color: var(--pk-text);
}

.khanhbeauty_shop_cart_panel_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.khanhbeauty_shop_cart_item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--pk-border);
}

.khanhbeauty_shop_cart_item_img {
    width: 72px;
    height: 56px;
    background: var(--pk-bg-light);
    border-radius: var(--pk-radius);
    border: 1px solid var(--pk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.khanhbeauty_shop_cart_item_img svg {
    width: 100%;
    height: auto;
}

.khanhbeauty_shop_cart_item_info {
    flex: 1;
}

.khanhbeauty_shop_cart_item_name {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.khanhbeauty_shop_cart_item_price {
    font-size: 14px;
    font-weight: 700;
    color: var(--pk-danger);
}

.khanhbeauty_shop_cart_item_qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.khanhbeauty_shop_qty_btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--pk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--pk-text);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_qty_btn:hover {
    background: var(--pk-primary);
    color: white;
    border-color: var(--pk-primary);
}

.khanhbeauty_shop_qty_val {
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.khanhbeauty_shop_cart_item_remove {
    color: var(--pk-text-muted);
    font-size: 14px;
    transition: color var(--pk-transition);
    align-self: flex-start;
    padding: 4px;
}

.khanhbeauty_shop_cart_item_remove:hover {
    color: var(--pk-danger);
}

.khanhbeauty_shop_cart_panel_footer {
    padding: 16px 24px;
    border-top: 1px solid var(--pk-border);
}

.khanhbeauty_shop_cart_total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pk-text);
}

.khanhbeauty_shop_cart_total strong {
    color: var(--pk-danger);
    font-size: 20px;
}

.khanhbeauty_shop_checkout_btn {
    width: 100%;
    justify-content: center;
}

/* ==================== LOADING SKELETON ==================== */
.khanhbeauty_shop_skeleton {
    background: linear-gradient(
        90deg,
        var(--pk-bg-gray) 25%,
        var(--pk-border) 50%,
        var(--pk-bg-gray) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--pk-radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== NOTIFICATION TOAST ==================== */
.khanhbeauty_shop_toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--pk-primary-dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--pk-radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--pk-transition);
    white-space: nowrap;
    box-shadow: var(--pk-shadow-lg);
}

.khanhbeauty_shop_toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .khanhbeauty_shop_products_grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .khanhbeauty_shop_footer_grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --khanhbeauty-shop-header-height: 60px;
    }

    body.khanhbeauty_shop-shell-scrolled {
        padding-top: 0;
    }

    .khanhbeauty_shop_topbar_inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .khanhbeauty_shop_header_inner {
        gap: 12px;
        height: 60px;
    }

    .khanhbeauty_shop_logo_sub {
        display: none;
    }

    .khanhbeauty_shop_search {
        max-width: none;
    }

    .khanhbeauty_shop_action_label {
        display: none;
    }

    .khanhbeauty_shop_action_btn {
        min-width: auto;
        padding: 6px 8px;
    }

    .khanhbeauty_shop_mobile_toggle {
        display: flex;
    }

    .khanhbeauty_shop_nav {
        position: fixed;
        top: 128px;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateX(-100%);
        background: white;
        z-index: 800;
        overflow-y: auto;
        border-bottom: none;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform var(--pk-transition-slow),
            visibility var(--pk-transition-slow);
    }

    .khanhbeauty_shop_nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .khanhbeauty_shop_nav_inner {
        padding: 0;
    }

    .khanhbeauty_shop_nav_list {
        flex-direction: column;
        gap: 0;
    }

    .khanhbeauty_shop_nav_link {
        padding: 16px 20px;
        border-bottom: 1px solid var(--pk-border);
        border-left: 3px solid transparent;
    }

    .khanhbeauty_shop_nav_link.khanhbeauty_shop_nav_active,
    .khanhbeauty_shop_nav_link:hover {
        border-bottom-color: transparent;
        border-left-color: var(--pk-primary);
    }

    .khanhbeauty_shop_dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        min-width: 0;
        border-radius: 0;
    }

    .khanhbeauty_shop_dropdown_inner {
        flex-direction: column;
        padding: 10px 20px;
    }

    .khanhbeauty_shop_dropdown_col {
        border-right: none;
        border-bottom: 1px solid var(--pk-border-light);
        padding: 10px 0;
    }

    .khanhbeauty_shop_products_grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .khanhbeauty_shop_footer_grid {
        grid-template-columns: 1fr 1fr;
    }

    .khanhbeauty_shop_newsletter_inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .khanhbeauty_shop_footer_bottom_inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    :root {
        --pk-font-size: 14px;
    }

    .khanhbeauty_shop_products_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .khanhbeauty_shop_footer_grid {
        grid-template-columns: 1fr;
    }

    .khanhbeauty_shop_newsletter_form {
        flex-direction: column;
    }

    .khanhbeauty_shop_cart_panel {
        width: 100%;
    }
}

/* ==================== FOCUS STYLES (Accessibility) ==================== */
:focus-visible {
    outline: 3px solid var(--pk-primary);
    outline-offset: 2px;
    border-radius: var(--pk-radius-sm);
}

a:focus-visible,
button:focus-visible {
    outline-color: var(--pk-primary);
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .khanhbeauty_shop_topbar,
    .khanhbeauty_shop_nav,
    .khanhbeauty_shop_back_top,
    .khanhbeauty_shop_cart_drawer {
        display: none !important;
    }

    .khanhbeauty_shop_footer {
        background: white !important;
        color: black !important;
    }
}

/* ==================== ANIMATIONS ==================== */
.khanhbeauty_shop_fade_in {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.khanhbeauty_shop_fade_in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== DARK MODE ==================== */
body.dark-mode {
    --pk-bg: #111116;
    --pk-bg-light: #1a1a2e;
    --pk-bg-gray: #252a36;
    --pk-bg-dark: #0a0a0f;
    --pk-text: #f0f4f8;
    --pk-text-secondary: #cbd5e1;
    --pk-text-muted: #94a3b8;
    --pk-border: #334155;
    --pk-border-light: #1e293b;
    --pk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --pk-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    --pk-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --pk-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.5);
    --pk-primary-dark: #fce4ec;
}

body.dark-mode .khanhbeauty_shop_header,
body.dark-mode .khanhbeauty_shop_nav,
body.dark-mode .khanhbeauty_shop_dropdown,
body.dark-mode .khanhbeauty_shop_cart_panel,
body.dark-mode .khanhbeauty_shop_product_card,
body.dark-mode .khanhbeauty_shop_product_wishlist {
    background: var(--pk-bg);
}

body.dark-mode .khanhbeauty_shop_product_wishlist.is-active {
    background: rgba(237, 100, 166, 0.22);
}

body.dark-mode .khanhbeauty_shop_search_form {
    background: var(--pk-bg-gray);
}

body.dark-mode .khanhbeauty_shop_cart_item_img {
    background: var(--pk-bg-gray);
}

.khanhbeauty_shop_theme_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--pk-text);
    background: var(--pk-bg-gray);
    transition: all var(--pk-transition);
}

.khanhbeauty_shop_theme_btn:hover {
    background: var(--pk-primary);
    color: white;
}

.khanhbeauty_shop_topbar_text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.khanhbeauty_shop_topbar_part {
    display: inline-block;
}

/* ==================== RESPONSIVE HEADER & TOPBAR ==================== */
@media (max-width: 991px) {
    .khanhbeauty_shop_topbar {
        padding: 6px 8px;
        background: var(--pk-primary);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .khanhbeauty_shop_topbar_inner {
        padding: 0 4px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: auto;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .khanhbeauty_shop_topbar_text {
        font-size: 11px;
        line-height: 1.4;
        opacity: 0.95;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        gap: 2px 6px;
    }

    .khanhbeauty_shop_topbar_part {
        white-space: normal;
        word-break: break-word;
    }

    .khanhbeauty_shop_topbar_right {
        font-size: 10.5px;
        gap: 8px;
    }

    .khanhbeauty_shop_topbar_link {
        font-size: 10.5px;
    }

    /* Header: Row 1 = Logo (Left) + Actions Icons (Right); Row 2 = Search Bar (Full Width) */
    .khanhbeauty_shop_header_inner {
        height: auto;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo actions"
            "search search";
        gap: 8px 6px;
        align-items: center;
    }

    .khanhbeauty_shop_logo {
        grid-area: logo;
    }

    .khanhbeauty_shop_logo_link {
        gap: 6px;
    }

    .khanhbeauty_shop_logo_icon {
        width: 32px;
        height: 32px;
    }

    .khanhbeauty_shop_logo_name {
        font-size: 14px;
        letter-spacing: 0.02em;
    }

    .khanhbeauty_shop_logo_sub {
        display: none;
    }

    .khanhbeauty_shop_header_actions {
        grid-area: actions;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
    }

    .khanhbeauty_shop_action_label {
        display: none;
    }

    .khanhbeauty_shop_action_btn {
        padding: 4px;
        min-width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .khanhbeauty_shop_action_btn svg {
        width: 18px;
        height: 18px;
    }

    .khanhbeauty_shop_search {
        grid-area: search;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .khanhbeauty_shop_search_input {
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .khanhbeauty_shop_search_btn {
        width: 36px;
        height: 34px;
    }

    .khanhbeauty_shop_mobile_toggle {
        margin-left: 0;
    }
}
