/*
 Theme Name:     K-Beauty GP Child
 Theme URI:      https://kbeautycontent.com
 Description:    GeneratePress child theme for K-Beauty Content — ingredient-science e-commerce + content hybrid
 Author:         Sam Konneh
 Author URI:     https://kbeautycontent.com
 Template:       generatepress
 Version:        1.1.0
 License:        GPL-2.0-or-later
*/


/* ============================================================
   DESIGN TOKENS — K-Beauty "Science Meets Seoul" Brand System
   ============================================================ */
:root {
    /* PRIMARY — Warm, premium, approachable */
    --kb-blush:        #f8b4b8;   /* Hero accents, CTAs */
    --kb-peach:        #fcc8a2;   /* Secondary accent, highlights */
    --kb-cream:        #fdf6f0;   /* Page backgrounds, card fills */

    /* NEUTRALS — Clean, editorial */
    --kb-dark:         #1e1e2f;   /* Headlines, nav, footer */
    --kb-text:         #3d3d4e;   /* Body copy */
    --kb-text-muted:   #7c7c8a;   /* Captions, meta text */
    --kb-border:       #e8e4e0;   /* Dividers, card borders */
    --kb-white:        #ffffff;   /* Cards, content areas */

    /* SCIENCE ACCENTS — Trust, ingredients, data */
    --kb-mint:         #a8e6cf;   /* "Natural" badges, ingredient tags */
    --kb-lavender:     #d5d0ec;   /* Category pills, soft highlights */
    --kb-blue:         #6ea8d7;   /* Links, trust signals, verified badges */

    /* FUNCTIONAL */
    --kb-success:      #2ecc71;   /* In stock, verified, safe */
    --kb-warning:      #f1c40f;   /* Caution, patch test recommended */
    --kb-cta:          #b8412a;   /* "Shop Now", "Add to Cart" — warm coral, AA-compliant (5.0:1 with white text) */
    --kb-cta-hover:    #963318;

    /* LEGACY TOKENS (backward compat with existing content) */
    --brand-pink:      #ffb6b9;
    --brand-peach:     #ffc8a2;
    --brand-mint:      #a8e6cf;
    --brand-lavender:  #dcd6f7;
    --brand-cream:     #fff5ee;
    --brand-dark:      #2d2d3f;
    --brand-text:      #4a4a5a;
    --brand-primary:   #ffb6b9;
    --brand-secondary: #fae3d9;
    --brand-accent:    #bbded6;
    --brand-white:     #ffffff;
    --brand-light-bg:  #f8f9fa;
    --brand-border:    #e2e8f0;
    --brand-text-muted: #64748b;

    /* TYPOGRAPHY */
    --font-heading:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent:     'Playfair Display', serif;

    /* Fluid Type Scale */
    --fs-hero:  clamp(2rem, 5vw, 3.25rem);
    --fs-h2:    clamp(1.5rem, 3vw, 2rem);
    --fs-h3:    clamp(1.1rem, 2vw, 1.4rem);
    --fs-body:  1rem;
    --fs-small: 0.875rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.12);
    --shadow-pink: 0 8px 30px rgba(255,182,185,0.35);

    /* Motion */
    --ease-out-cubic:  cubic-bezier(0.33, 1, 0.68, 1);
    --transition-fast: 0.2s var(--ease-out-cubic);
    --transition-med:  0.3s var(--ease-out-cubic);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
}


/* ============================================================
   GLOBAL BASE — Fonts & Body (GP selectors)
   ============================================================ */
body {
    font-family: var(--font-body);
    color: var(--kb-text);
    background-color: var(--kb-cream);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--kb-dark);
    font-weight: 700;
    line-height: 1.3;
}

p, .entry-content, .site-content {
    font-family: var(--font-body);
    color: var(--kb-text);
}

a {
    color: var(--kb-blue);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--kb-cta);
}


/* ============================================================
   HEADER — GP uses #masthead .site-header
   (Replaces Divi #main-header, #et-main-nav, #et-secondary-nav, .et-fixed-header)
   ============================================================ */
.site-header {
    background-color: var(--kb-white);
    box-shadow: 0 2px 20px rgba(30, 30, 47, 0.06);
    border-bottom: 1px solid var(--kb-border);
}

.inside-header {
    padding: 12px 40px;
}

/* Navigation links */
.main-navigation a,
.main-navigation .main-nav ul li a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: 0.3px;
    color: var(--kb-dark);
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .main-nav ul li a:hover {
    color: var(--kb-blush);
}

/* Current menu item */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
    color: var(--kb-blush);
    font-weight: 700;
}

/* ============================================================
   DROPDOWN / MEGA MENU — added 2026-05-13
   Replaces GP's default single-column submenu with a card-grid
   mega menu. Stable hover (no disappear-on-click), branded.
   ============================================================ */
.main-navigation ul ul {
    background-color: var(--kb-white);
    border: 1px solid var(--kb-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    padding: 14px;
    /* Stable hover: 8px bridge from trigger so mouse can't fall off */
    margin-top: 0 !important;
    /* Delay closing on mouse-leave so clicks don't lose the panel */
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
    transition-delay: 0s;
}
.main-navigation .main-nav ul li:hover > ul,
.main-navigation .main-nav ul li:focus-within > ul {
    transition-delay: 0s;
}
.main-navigation .main-nav ul li > ul {
    transition-delay: .2s;  /* slow fade-out lets click land */
}

/* Submenu items as cards */
.main-navigation ul ul li {
    list-style: none;
}
.main-navigation ul ul a {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    padding: 12px 14px !important;
    border-radius: 8px;
    color: var(--kb-dark);
    line-height: 1.35;
    transition: background-color .12s ease;
    white-space: normal;  /* allow desc wrap */
}
.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus {
    background-color: #fff5f5;  /* very light blush */
    color: var(--kb-dark);
}
.main-navigation ul ul .kb-menu-title {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--kb-dark);
}
.main-navigation ul ul .kb-menu-desc {
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.1px;
    color: #6b7280;  /* slate-500 */
    text-transform: none;
}

/* GRID MODE — fires when the menu walker tags a parent with kb-mega-grid */
.main-navigation .kb-mega-grid > .sub-menu,
.main-navigation .kb-mega-grid > ul {
    display: grid !important;
    gap: 4px;
    min-width: 520px;
    max-width: 760px;
    padding: 18px;
}
.main-navigation .kb-mega-grid-2col > .sub-menu,
.main-navigation .kb-mega-grid-2col > ul {
    grid-template-columns: repeat(2, 1fr);
}
.main-navigation .kb-mega-grid-3col > .sub-menu,
.main-navigation .kb-mega-grid-3col > ul {
    grid-template-columns: repeat(3, 1fr);
    min-width: 720px;
    max-width: 960px;
}

/* Position the mega menu centered under its trigger when wider than parent */
.main-navigation .kb-mega-grid {
    position: relative;
}
.main-navigation .kb-mega-grid > .sub-menu,
.main-navigation .kb-mega-grid > ul {
    top: 100% !important;       /* anchor flush under the LI — closes the 77px hover-kill gap */
    margin-top: 0 !important;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile: collapse grid to single column, expand on tap */
@media (max-width: 768px) {
    .main-navigation .kb-mega-grid > .sub-menu,
    .main-navigation .kb-mega-grid > ul,
    .main-navigation .kb-mega-grid-2col > .sub-menu,
    .main-navigation .kb-mega-grid-3col > .sub-menu {
        display: block !important;
        min-width: 0;
        max-width: none;
        padding: 8px;
        transform: none;
        left: auto;
    }
    .main-navigation ul ul a {
        padding: 10px 12px !important;
    }
}

/* Cart icon in nav */
.wc-menu-item .count {
    background-color: var(--kb-blush);
    color: var(--kb-dark);
    font-weight: 700;
}

/* Search icon in nav + slide-down panel */
.kb-search-item { display: flex; align-items: center; }
.kb-search-toggle {
    background: none;
    border: none;
    color: var(--kb-dark);
    cursor: pointer;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast);
    line-height: 1;
}
.kb-search-toggle:hover,
.kb-search-toggle:focus-visible { color: var(--kb-blush); }
.kb-search-toggle:focus-visible {
    outline: 2px solid var(--kb-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

.kb-search-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--kb-white);
    border-bottom: 1px solid var(--kb-border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    z-index: 100000;
    transform: translateY(-100%);
    transition: transform .2s var(--ease-out-cubic);
    padding: 16px 24px;
}
.kb-search-panel.is-open { transform: translateY(0); }
.kb-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}
.kb-search-form input[type="search"] {
    flex: 1;
    border: 1px solid var(--kb-border);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--kb-text);
    background: var(--kb-cream);
}
.kb-search-form input[type="search"]:focus {
    outline: 2px solid var(--kb-cta);
    outline-offset: 2px;
    background: var(--kb-white);
}
.kb-search-submit,
.kb-search-close {
    background: none;
    border: none;
    color: var(--kb-dark);
    cursor: pointer;
    padding: 8px 12px;
    line-height: 1;
}
.kb-search-close {
    font-size: 28px;
    color: var(--kb-text-muted);
}
.kb-search-close:hover { color: var(--kb-dark); }


/* Nav fit — keep all 6 top-level items on one row when admin bar is
   visible or viewport is mid-width. Tightens font + padding without
   touching mega-menu rules above. */
@media (max-width: 1199px) {
    .inside-header { padding: 12px 20px; }
    .main-navigation .main-nav ul li a {
        font-size: 13px;
        letter-spacing: 0.1px;
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* ============================================================
   PROMOTIONAL TICKER BAR
   (Retargeted from #main-header to .site-header / generate_before_header)
   ============================================================ */
/* Static single-CTA promo strip — no auto-scroll (WCAG 2.2.2 compliant),
   single line on desktop, hidden on mobile (audit 2026-05-14). */
.ticker-wrap {
    width: 100%;
    background: linear-gradient(90deg, #ffb6b9, #fae3d9, #ffb6b9);
    background-size: 200% auto;
    color: var(--kb-dark);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 99999;
    padding: 8px 0;
    box-shadow: 0 3px 12px rgba(255,182,185,0.25);
}

.ticker {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ticker__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 28px;
    padding: 0 20px;
    max-width: 1400px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--kb-dark);
    white-space: nowrap;
}

.ticker-item strong {
    font-weight: 900;
    background: var(--kb-dark);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin: 0 10px;
    letter-spacing: 1px;
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: opacity .15s ease;
    display: inline-flex;
    align-items: center;
}
.ticker-item a:hover,
.ticker-item a:focus-visible {
    opacity: 0.75;
}
.ticker-item a:hover strong,
.ticker-item a:focus-visible strong {
    background: #c2185b;
}
.ticker-item a:focus-visible {
    outline: 2px solid var(--kb-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Hide promo bar entirely on mobile — header alone owns above-the-fold */
@media (max-width: 767px) {
    .ticker-wrap { display: none; }
}


/* ============================================================
   HERO SECTION — GP Elements / GenerateBlocks
   (Replaces .et_pb_slider, .et_pb_slide_button, .et_pb_slide_title)
   ============================================================ */
.kb-hero {
    background-color: var(--kb-cream);
    padding: var(--space-xl) 0;
    text-align: center;
}

.kb-hero h1,
.kb-hero .hero-headline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-hero);
    color: var(--kb-dark);
    margin-bottom: var(--space-sm);
}

.kb-hero .hero-subhead {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--kb-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* Trust bar below hero */
.kb-trust-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--kb-border);
    margin-top: var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--kb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ============================================================
   BUTTONS — GP uses a.button, .wp-block-button__link
   (Replaces .et_pb_button, .et_pb_button_style_1, .et_pb_promo .et_pb_button)
   ============================================================ */
/* Primary coral CTA */
.kb-btn-primary,
a.kb-btn-primary,
.wp-block-button__link {
    background-color: var(--kb-cta);
    border: none;
    color: var(--kb-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    transition: all var(--transition-med);
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.kb-btn-primary:hover,
a.kb-btn-primary:hover,
.wp-block-button__link:hover {
    background-color: var(--kb-cta-hover);
    color: var(--kb-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.4);
}

/* Secondary outline button */
.kb-btn-secondary,
a.kb-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--kb-dark);
    color: var(--kb-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 12px 30px;
    transition: all var(--transition-med);
    display: inline-block;
    text-decoration: none;
}

.kb-btn-secondary:hover,
a.kb-btn-secondary:hover {
    background-color: var(--kb-dark);
    color: var(--kb-white);
    transform: translateY(-2px);
}

/* Blush accent button (legacy brand-pink style) */
.kb-btn-blush,
a.kb-btn-blush {
    background-color: var(--kb-blush);
    border: none;
    color: var(--kb-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    transition: all var(--transition-med);
    box-shadow: var(--shadow-pink);
    display: inline-block;
    text-decoration: none;
}

.kb-btn-blush:hover,
a.kb-btn-blush:hover {
    background-color: var(--kb-dark);
    color: var(--kb-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ============================================================
   CONTENT CARDS — GP uses .inside-article, GenerateBlocks containers
   (Replaces .et_pb_blurb, .et_pb_blurb_title, .et_pb_blurb_description)
   ============================================================ */
.kb-card,
.gb-container.kb-card {
    background: var(--kb-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    border: 1px solid var(--kb-border);
}

.kb-card:hover,
.gb-container.kb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.kb-card .kb-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-h3);
    color: var(--kb-dark);
    margin-bottom: var(--space-xs);
}

.kb-card .kb-card-desc {
    font-family: var(--font-body);
    color: var(--kb-text-muted);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* Card hover utility (reusable) */
.card-hover {
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    border-radius: var(--radius-md);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}


/* ============================================================
   SECTION HEADINGS
   (Replaces .et_pb_text h2, .et_pb_text h3, .et_pb_column > .et_pb_text h2)
   ============================================================ */
.kb-section-title,
.site-content h2,
.inside-article h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--kb-dark);
    font-size: var(--fs-h2);
    margin-bottom: var(--space-sm);
    position: relative;
}

/* Decorative underline on section headings */
.kb-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--kb-blush), var(--kb-mint));
    border-radius: var(--radius-pill);
    margin-top: 10px;
}


/* ============================================================
   IMAGES & GALLERY
   (Replaces .et_pb_image_wrap, .et_pb_gallery_item, .et_pb_image)
   ============================================================ */
.wp-block-image img,
.gb-container img,
.inside-article img {
    border-radius: var(--radius-md);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.wp-block-image:hover img,
.gb-container:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}


/* ============================================================
   WOOCOMMERCE — Product Grid & Cards
   (Carries over from Divi child — these are WooCommerce-native selectors)
   ============================================================ */

/* Product card */
.woocommerce ul.products li.product {
    background: var(--kb-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--kb-border);
    padding: var(--space-md);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--kb-dark);
}

/* Product price */
.woocommerce .price,
.woocommerce-Price-amount {
    color: var(--kb-cta);
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Sale badge */
.woocommerce span.onsale {
    background-color: var(--kb-cta);
    color: var(--kb-white);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-pill);
    min-width: 3em;
    min-height: 3em;
    line-height: 3em;
    padding: 0 8px;
}

/* WooCommerce buttons */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background-color: var(--kb-cta);
    color: var(--kb-white);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    padding: 12px 24px;
    transition: all var(--transition-med);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: var(--kb-cta-hover);
    color: var(--kb-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
}

/* WooCommerce notices — soft mint instead of harsh blue */
.woocommerce-info,
.woocommerce-message {
    background-color: #e8f8f1;
    border-top-color: var(--kb-mint);
    color: var(--kb-dark);
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

.woocommerce-info::before,
.woocommerce-message::before {
    color: var(--kb-mint);
}

/* WooCommerce error */
.woocommerce-error {
    border-top-color: var(--kb-cta);
    border-radius: var(--radius-md);
}

/* Product page heading */
.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--kb-dark);
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--kb-text-muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--kb-dark);
}

/* Concern tags on product cards */
.kb-concern-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}

.kb-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.kb-tag--hydration       { background: #e3f5ff; color: #1a6fa0; }
.kb-tag--brightening     { background: #fff8e1; color: #b57300; }
.kb-tag--acne            { background: #e8f5e9; color: #2e7d32; }
.kb-tag--anti-aging      { background: #f3e5f5; color: #7b1fa2; }
.kb-tag--sensitive       { background: #fce4ec; color: #c62828; }
.kb-tag--sun-protection  { background: #fff3e0; color: #e65100; }
.kb-tag--dark-spots      { background: #ede7f6; color: #4527a0; }

/* Dual currency price */
.kb-krw-price {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--kb-text-muted);
    font-weight: 500;
}

/* Ingredient breakdown panel */
.kb-ingredients-panel {
    margin-top: var(--space-md);
    border: 1px solid var(--kb-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.kb-accordion-trigger {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--kb-dark);
    padding: var(--space-sm) var(--space-md);
    background: var(--kb-cream);
    cursor: pointer;
    margin: 0;
    border-bottom: 1px solid var(--kb-border);
}

.kb-accordion-content {
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    line-height: 1.7;
    color: var(--kb-text);
}

/* How to Use section */
.kb-how-to-use {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--kb-cream);
    border-radius: var(--radius-md);
}

.kb-how-to-use h3 {
    font-size: 16px;
    margin-bottom: var(--space-xs);
}


/* ============================================================
   FOOTER — GP uses .site-footer
   (Replaces #main-footer, .et-l--footer, .et_pb_footer_bottom_bar, #footer-bottom)
   ============================================================ */
.site-footer {
    background-color: var(--kb-dark);
    color: rgba(255,255,255,0.75);
}

.inside-site-info,
.footer-widgets-container {
    padding: var(--space-xl) 40px;
}

.site-footer .footer-widgets .widget-title,
.site-footer h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--kb-white);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.site-footer a {
    color: rgba(255,255,255,0.65);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--kb-blush);
}

.site-info {
    background-color: #151521;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-body);
    color: rgba(255,255,255,0.5);
    font-size: var(--fs-small);
    padding: var(--space-sm) 40px;
}


/* ============================================================
   BLOG / CONTENT CARDS — GP .inside-article
   (Replaces .et_pb_section, .et_pb_row, .et_pb_column layout selectors)
   ============================================================ */
.inside-article {
    background: var(--kb-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--kb-border);
}

.entry-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--kb-dark);
}

.entry-title a {
    color: var(--kb-dark);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--kb-cta);
}

.entry-meta {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--kb-text-muted);
}

/* Category pills */
.cat-links a {
    display: inline-block;
    background: var(--kb-lavender);
    color: var(--kb-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* ============================================================
   B2B CALLOUT SECTION
   ============================================================ */
.kb-b2b-callout {
    background-color: var(--kb-dark);
    color: var(--kb-white);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.kb-b2b-callout h2 {
    color: var(--kb-white);
    font-size: var(--fs-h2);
    margin-bottom: var(--space-sm);
}

.kb-b2b-callout p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}


/* ============================================================
   SKIN CONCERN GRID — Shop by Concern
   ============================================================ */
.kb-concern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg) 0;
}

.kb-concern-card {
    background: var(--kb-white);
    border: 1px solid var(--kb-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all var(--transition-med);
    text-decoration: none;
    display: block;
}

.kb-concern-card:hover {
    border-color: var(--kb-blush);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.kb-concern-card .concern-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.kb-concern-card .concern-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--kb-dark);
}


/* ============================================================
   INGREDIENT SPOTLIGHT SECTION
   ============================================================ */
.kb-ingredient-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
}

.kb-ingredient-spotlight img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
}

.kb-ingredient-spotlight .spotlight-content h2 {
    font-size: var(--fs-h2);
}

.kb-ingredient-spotlight .spotlight-content p {
    color: var(--kb-text);
    line-height: 1.8;
}


/* ============================================================
   CTA BUTTON PULSE ANIMATION
   ============================================================ */
@keyframes kb-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(231,111,81,0.3); }
    50%      { transform: scale(1.02); box-shadow: 0 8px 30px rgba(231,111,81,0.45); }
}

.cta-pulse:hover {
    animation: kb-pulse 1.5s ease-in-out infinite;
}


/* ============================================================
   AOS SAFETY NET
   ============================================================ */
/* AOS handles its own opacity via inline styles.
   Do NOT set [data-aos] { opacity: 0 } here — it blocks
   content when AOS fails to init or loads late.
   AOS adds .aos-animate class on scroll to trigger animations. */
html:not(.aos-initialized) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}


/* ============================================================
   GP SPECIFIC LAYOUT OVERRIDES
   ============================================================ */
/* Full width content area on pages */
.page .site-content {
    max-width: 100%;
}

/* Contained articles */
.single .inside-article,
.page .inside-article {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Separate containers mode (GP setting) */
.separate-containers .inside-article {
    border-radius: var(--radius-md);
    border: 1px solid var(--kb-border);
}


/* ============================================================
   RESPONSIVE — Mobile Optimisations
   ============================================================ */
@media (max-width: 980px) {
    .inside-header {
        padding: 10px 20px;
    }

    .kb-ingredient-spotlight {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .kb-trust-bar {
        gap: var(--space-sm);
        font-size: 11px;
    }

    .kb-concern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ticker-item {
        font-size: 11px;
        padding-right: 30px;
    }

    .kb-hero h1,
    .kb-hero .hero-headline {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .kb-concern-grid {
        grid-template-columns: 1fr;
    }

    .kb-btn-primary,
    a.kb-btn-primary,
    .kb-btn-blush,
    a.kb-btn-blush {
        padding: 12px 24px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .kb-section-title::after {
        display: none;
    }

    .inside-header {
        padding: 8px 15px;
    }

    .inside-site-info,
    .footer-widgets-container {
        padding: var(--space-lg) 20px;
    }
}


/* ============================================================
   HOMEPAGE — Template-specific Styles
   ============================================================ */

/* Full-width homepage — break out of GP's .grid-container (max-width:1200px) */
.kb-homepage .grid-container {
    max-width: 100%;
    padding: 0;
}

.kb-homepage-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.kb-homepage-content .inside-article {
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
}

/* Full-bleed sections: extend bg to edges via box-shadow trick (no vw reflow) */
.kb-hero,
.kb-concerns-section,
.kb-spotlight-section,
.kb-products-section,
.kb-blog-section {
    padding-left: 20px;
    padding-right: 20px;
}

.kb-b2b-callout {
    padding-left: 20px;
    padding-right: 20px;
}

.kb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.kb-section {
    padding: var(--space-xl) 0;
}

.kb-section-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--kb-text-muted);
    margin-top: -0.5em;
    margin-bottom: var(--space-lg);
}

.kb-section-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Hero — enhanced layout */
.kb-hero {
    background: linear-gradient(180deg, var(--kb-cream) 0%, var(--kb-white) 100%);
    padding: var(--space-xl) 20px calc(var(--space-xl) + 1rem);
}

.kb-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.kb-hero-pretitle {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--kb-cta);
    margin-bottom: var(--space-sm);
}

.kb-hero-ctas {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Concern section */
.kb-concerns-section {
    background-color: var(--kb-white);
    border-top: 1px solid var(--kb-border);
}

.kb-concern-card .concern-desc {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--kb-text-muted);
    margin-top: 4px;
}

/* Spotlight section */
.kb-spotlight-section {
    background-color: var(--kb-white);
    border-top: 1px solid var(--kb-border);
    border-bottom: 1px solid var(--kb-border);
}

.spotlight-image-placeholder {
    background: linear-gradient(135deg, var(--kb-lavender) 0%, var(--kb-mint) 100%);
    border-radius: var(--radius-lg);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.spotlight-image-placeholder .placeholder-icon {
    font-size: 4rem;
}

.spotlight-image-placeholder .placeholder-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--kb-dark);
}

.kb-ingredient-spotlight .spotlight-content .kb-tag {
    margin-bottom: var(--space-sm);
}

/* Products section */
.kb-products-section {
    background-color: var(--kb-white);
    border-top: 1px solid var(--kb-border);
    border-bottom: 1px solid var(--kb-border);
}

.kb-product-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.kb-placeholder-product {
    text-align: center;
    padding: var(--space-md);
}

.kb-placeholder-img {
    background: linear-gradient(135deg, var(--kb-cream) 0%, var(--kb-border) 100%);
    border-radius: var(--radius-md);
    min-height: 200px;
    margin-bottom: var(--space-sm);
}

.kb-placeholder-price {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--kb-cta);
    font-size: 20px;
    margin: var(--space-xs) 0;
}

.kb-btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

/* Blog section */
.kb-blog-section {
    background-color: var(--kb-cream);
}

.kb-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.kb-blog-card {
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-md);
}

.kb-blog-card .kb-blog-card-img {
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.kb-blog-card .kb-blog-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.kb-blog-card-body {
    padding: var(--space-md);
}

.kb-blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.kb-read-time {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--kb-text-muted);
}

.kb-blog-card .kb-card-title a {
    color: var(--kb-dark);
    text-decoration: none;
}

.kb-blog-card .kb-card-title a:hover {
    color: var(--kb-cta);
}

/* B2B Callout — stats row */
.kb-b2b-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.kb-b2b-stat {
    text-align: center;
}

.kb-b2b-stat .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--kb-blush);
}

.kb-b2b-stat .stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Responsive — homepage specific */
@media (max-width: 767px) {
    .kb-hero {
        padding: var(--space-lg) 15px;
    }

    .kb-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .kb-b2b-stats {
        gap: var(--space-md);
    }

    .kb-b2b-stat .stat-number {
        font-size: 1.5rem;
    }

    .kb-blog-grid {
        grid-template-columns: 1fr;
    }

    .kb-product-placeholder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .ticker-wrap,
    .site-header,
    .site-footer,
    .kb-b2b-callout { display: none !important; }
    body { font-family: Georgia, serif !important; color: #000 !important; background: #fff !important; }
    .inside-article { border: none; box-shadow: none; }
}


/* =============================================================
   HOMEPAGE — 3-Tier Category Cards
   ============================================================= */
.kb-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.kb-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--kb-white, #fff);
    border: 1px solid var(--kb-border, #e8e4e0);
    border-radius: 16px;
    text-decoration: none;
    color: var(--kb-dark, #1e1e2f);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kb-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.kb-category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.kb-category-name {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kb-category-desc {
    font-size: 0.95rem;
    color: var(--kb-text-muted, #7c7c8a);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .kb-category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =============================================================
   HOMEPAGE — Trust Signals / Why Us
   ============================================================= */
.kb-trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.kb-trust-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.kb-trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.kb-trust-title {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--kb-dark, #1e1e2f);
}

.kb-trust-desc {
    font-size: 0.85rem;
    color: var(--kb-text-muted, #7c7c8a);
    line-height: 1.4;
}

@media (max-width: 980px) {
    .kb-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .kb-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =============================================================
   AI CHAT WIDGET
   ============================================================= */
#kb-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-body, 'Inter', sans-serif);
}

#kb-chat-widget.kb-chat-closed .kb-chat-header,
#kb-chat-widget.kb-chat-closed .kb-chat-body,
#kb-chat-widget.kb-chat-closed .kb-chat-input-area {
    display: none;
}

.kb-chat-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--kb-blush, #f8b4b8);
    color: var(--kb-dark, #1e1e2f);
    border: none;
    box-shadow: 0 4px 16px rgba(248, 180, 184, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 28px;
}

.kb-chat-launcher:hover {
    transform: scale(1.1);
    background: var(--kb-cta, #e76f51);
    color: #fff;
}

#kb-chat-widget.kb-chat-open {
    width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
}

#kb-chat-widget.kb-chat-open .kb-chat-launcher {
    display: none;
}

.kb-chat-header {
    background: var(--kb-blush, #f8b4b8);
    color: var(--kb-dark, #1e1e2f);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kb-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.kb-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: block;
}

.kb-chat-controls {
    display: flex;
    gap: 8px;
}

.kb-chat-controls button,
.kb-chat-controls a {
    background: none;
    border: none;
    color: var(--kb-dark, #1e1e2f);
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
    font-size: 18px;
    text-decoration: none;
}

.kb-chat-controls button:hover,
.kb-chat-controls a:hover {
    opacity: 1;
}

.kb-chat-body {
    flex: 1;
    padding: 16px;
    background: var(--kb-cream, #fdf6f0);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.kb-chat-msg.bot {
    background: #fff;
    color: var(--kb-text, #3d3d4e);
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kb-chat-msg.user {
    background: var(--kb-cta, #e76f51);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.kb-chat-msg.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.kb-chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--kb-border, #e8e4e0);
    display: flex;
    gap: 8px;
    background: #fff;
}

#kb-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--kb-border, #e8e4e0);
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    font-family: var(--font-body, 'Inter', sans-serif);
}

#kb-chat-input:focus {
    border-color: var(--kb-blush, #f8b4b8);
}

#kb-chat-input:disabled {
    opacity: 0.5;
    cursor: wait;
}

#kb-chat-send {
    background: var(--kb-blush, #f8b4b8);
    color: var(--kb-dark, #1e1e2f);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 16px;
}

#kb-chat-send:hover {
    background: var(--kb-cta, #e76f51);
    color: #fff;
}

#kb-chat-send:disabled {
    opacity: 0.4;
    cursor: wait;
}

/* Chat lead capture button */
.kb-chat-action-area {
    margin-top: 8px;
}

.kb-chat-wholesale-btn {
    background: var(--kb-cta, #e76f51);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.kb-chat-wholesale-btn:hover {
    background: var(--kb-cta-hover, #d35d41);
    transform: translateY(-1px);
}

/* Typing dots */
.kb-typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 1.2em;
}

.kb-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--kb-text-muted, #7c7c8a);
    border-radius: 50%;
    animation: kb-dot-pulse 1.4s infinite ease-in-out both;
}

.kb-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.kb-typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes kb-dot-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Mobile responsive */
@media (max-width: 480px) {
    #kb-chat-widget.kb-chat-open {
        width: calc(100vw - 20px);
        height: 70vh;
        bottom: 10px;
        right: 10px;
    }
}


/* =============================================================
   WHATSAPP MOBILE STICKY BAR
   ============================================================= */
.kb-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 9998;
}

.kb-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.kb-bar-whatsapp {
    background: #25D366;
}

.kb-bar-inquiry {
    background: var(--kb-cta, #e76f51);
}

@media (max-width: 768px) {
    .kb-mobile-sticky-bar {
        display: flex;
    }
    /* Push chat widget above sticky bar */
    #kb-chat-widget {
        bottom: 65px;
    }
}


/* ============================================================
   FUNCTIONAL ANIMATIONS — Polished micro-interactions
   ============================================================ */

/* --- 1. Hero Gradient Shimmer --- */
.kb-hero {
    position: relative;
    overflow: hidden;
}

.kb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(248,180,184,0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 50%,
        rgba(168,230,207,0.1) 0%,
        transparent 50%
    );
    animation: kb-hero-shimmer 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.kb-hero > * {
    position: relative;
    z-index: 1;
}

@keyframes kb-hero-shimmer {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(3%, 2%) rotate(1deg); }
}

/* --- 2. Staggered Hero Text Entrance --- */
.kb-hero .kb-hero-pretitle {
    opacity: 0;
    transform: translateY(20px);
    animation: kb-text-reveal 0.7s var(--ease-out-cubic) 0.2s forwards;
}

.kb-hero .hero-headline {
    opacity: 0;
    transform: translateY(25px);
    animation: kb-text-reveal 0.7s var(--ease-out-cubic) 0.4s forwards;
}

.kb-hero .hero-subhead {
    opacity: 0;
    transform: translateY(20px);
    animation: kb-text-reveal 0.6s var(--ease-out-cubic) 0.6s forwards;
}

.kb-hero .kb-hero-ctas {
    opacity: 0;
    transform: translateY(15px);
    animation: kb-text-reveal 0.6s var(--ease-out-cubic) 0.8s forwards;
}

.kb-hero .kb-trust-bar {
    opacity: 0;
    transform: translateY(10px);
    animation: kb-text-reveal 0.5s var(--ease-out-cubic) 1s forwards;
}

@keyframes kb-text-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 3. Category Card Hover Glow + Shine --- */
.kb-category-card {
    position: relative;
    overflow: hidden;
}

.kb-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: none;
    pointer-events: none;
}

.kb-category-card:hover::after {
    animation: kb-card-shine 0.6s ease forwards;
}

.kb-category-card:hover {
    box-shadow: 0 8px 32px rgba(248,180,184,0.3), 0 0 0 1px rgba(248,180,184,0.2);
}

@keyframes kb-card-shine {
    to { left: 150%; }
}

/* --- 4. Category Icon Float --- */
.kb-category-card .category-icon {
    display: inline-block;
    transition: transform 0.4s var(--ease-out-cubic);
}

.kb-category-card:hover .category-icon {
    animation: kb-icon-float 1.5s ease-in-out infinite;
}

@keyframes kb-icon-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* --- 5. Trust Pillar Icon Spin on Scroll --- */
.kb-trust-pillar .trust-icon {
    display: inline-block;
    font-size: 2rem;
    transition: transform 0.5s var(--ease-out-cubic);
}

.kb-trust-pillar.aos-animate .trust-icon {
    animation: kb-trust-pop 0.6s var(--ease-out-cubic) forwards;
}

@keyframes kb-trust-pop {
    0%   { transform: scale(0.3) rotate(-15deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.kb-trust-pillar:hover .trust-icon {
    transform: scale(1.2) rotate(5deg);
}

/* --- 6. Section Title Underline Grow --- */
.kb-section-title {
    position: relative;
    display: inline-block;
}

.kb-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kb-blush), var(--kb-mint));
    border-radius: 2px;
    transition: width 0.6s var(--ease-out-cubic);
}

.kb-section-title.aos-animate::after,
[data-aos].aos-animate .kb-section-title::after {
    width: 60px;
}

/* --- 7. B2B Stat Counter Glow --- */
.kb-b2b-stat {
    transition: transform var(--transition-med);
}

.kb-b2b-stat:hover {
    transform: translateY(-4px);
}

.kb-b2b-stat .stat-number {
    position: relative;
    display: inline-block;
}

.kb-b2b-stat:hover .stat-number {
    animation: kb-stat-glow 0.4s ease forwards;
}

@keyframes kb-stat-glow {
    0%   { text-shadow: none; }
    100% { text-shadow: 0 0 20px rgba(248,180,184,0.5), 0 0 40px rgba(248,180,184,0.2); }
}

/* --- 8. Button Ripple Effect --- */
.kb-btn-primary,
.kb-btn-secondary,
.kb-btn-blush {
    position: relative;
    overflow: hidden;
}

.kb-btn-primary .kb-ripple,
.kb-btn-secondary .kb-ripple,
.kb-btn-blush .kb-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: kb-ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes kb-ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- 9. Blog Card Image Zoom --- */
.kb-blog-card .kb-blog-card-img {
    overflow: hidden;
}

.kb-blog-card .kb-blog-card-img img {
    transition: transform 0.5s var(--ease-out-cubic);
}

.kb-blog-card:hover .kb-blog-card-img img {
    transform: scale(1.06);
}

/* --- 10. Placeholder Product Shimmer --- */
.kb-placeholder-img {
    position: relative;
    overflow: hidden;
}

.kb-placeholder-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: kb-shimmer-load 2s infinite;
}

@keyframes kb-shimmer-load {
    to { left: 100%; }
}

/* --- 11. Chat Widget Bouncy Entrance --- */
.kb-chat-launcher {
    animation: kb-chat-entrance 0.8s var(--ease-out-cubic) 1.5s both;
}

@keyframes kb-chat-entrance {
    0%   { opacity: 0; transform: scale(0) translateY(20px); }
    60%  { transform: scale(1.15) translateY(-3px); }
    80%  { transform: scale(0.95) translateY(1px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- 12. Scroll Progress Indicator --- */
.kb-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kb-blush), var(--kb-cta), var(--kb-mint));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* --- 13. Trust Bar Items Stagger --- */
.kb-trust-bar span {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
}

.kb-trust-bar span:nth-child(1) { animation: kb-text-reveal 0.4s var(--ease-out-cubic) 1.1s forwards; }
.kb-trust-bar span:nth-child(2) { animation: kb-text-reveal 0.4s var(--ease-out-cubic) 1.25s forwards; }
.kb-trust-bar span:nth-child(3) { animation: kb-text-reveal 0.4s var(--ease-out-cubic) 1.4s forwards; }
.kb-trust-bar span:nth-child(4) { animation: kb-text-reveal 0.4s var(--ease-out-cubic) 1.55s forwards; }

/* --- 14. Smooth Section Transitions --- */
.kb-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-cubic), transform 0.7s var(--ease-out-cubic);
}

.kb-section.kb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 15. B2B Callout Background Pulse --- */
.kb-b2b-callout {
    position: relative;
    overflow: hidden;
}

.kb-b2b-callout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.06) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: kb-b2b-pulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes kb-b2b-pulse {
    0%   { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.15); }
}

/* --- 16. SVG Organic Wave Section Dividers --- */
.kb-section-divider {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.kb-section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kb-wave-top {
    margin-top: -1px;
}

.kb-wave-bottom {
    margin-bottom: -1px;
    transform: rotate(180deg);
}

.kb-wave-fill-cream { fill: var(--kb-cream); }
.kb-wave-fill-white { fill: var(--kb-white); }
.kb-wave-fill-dark  { fill: var(--kb-dark); }

/* Animate the wave path on load */
.kb-section-divider svg path {
    opacity: 0;
    animation: kb-wave-draw 1.2s var(--ease-out-cubic) 0.3s forwards;
}

@keyframes kb-wave-draw {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- 17. AI Badge Shimmer --- */
.kb-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--kb-dark);
    background: linear-gradient(135deg, var(--kb-cream), var(--kb-lavender));
    border-radius: var(--radius-pill);
    position: relative;
    overflow: hidden;
}

.kb-ai-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 25%,
        rgba(255,255,255,0.5) 50%,
        transparent 75%
    );
    animation: kb-ai-shimmer 3s ease-in-out infinite;
}

@keyframes kb-ai-shimmer {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* Pulsing glow ring around AI sections (signals personalized content) */
.kb-ai-glow {
    position: relative;
}

.kb-ai-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--kb-blush), var(--kb-mint), var(--kb-lavender), var(--kb-blush));
    background-size: 300% 300%;
    z-index: -1;
    animation: kb-glow-rotate 4s ease infinite;
    opacity: 0.6;
    filter: blur(6px);
}

@keyframes kb-glow-rotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 18. Character-by-Character Text Reveal --- */
.kb-text-split span {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px) rotate(2deg);
    animation: kb-char-reveal 0.4s var(--ease-out-cubic) forwards;
}

@keyframes kb-char-reveal {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Word-level variant (less CPU than per-character) */
.kb-word-reveal .kb-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: kb-text-reveal 0.5s var(--ease-out-cubic) forwards;
}

/* --- 19. Gradient Border Glow on Product Cards --- */
.kb-gradient-border {
    position: relative;
    background: var(--kb-white);
    border-radius: var(--radius-md);
    z-index: 0;
}

.kb-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--kb-blush), var(--kb-mint), var(--kb-lavender));
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-cubic);
    animation: kb-gradient-shift 3s ease infinite;
    z-index: -1;
}

.kb-gradient-border:hover::before {
    opacity: 1;
}

@keyframes kb-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 20. Floating Ingredient Particles (Hero decorative) --- */
.kb-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.kb-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: kb-float-particle linear infinite;
}

.kb-particle:nth-child(1) {
    width: 8px; height: 8px;
    background: var(--kb-blush);
    left: 15%; top: 20%;
    animation-duration: 6s;
}

.kb-particle:nth-child(2) {
    width: 12px; height: 12px;
    background: var(--kb-mint);
    left: 70%; top: 40%;
    animation-duration: 8s;
    animation-delay: -2s;
}

.kb-particle:nth-child(3) {
    width: 6px; height: 6px;
    background: var(--kb-lavender);
    left: 40%; top: 60%;
    animation-duration: 7s;
    animation-delay: -4s;
}

.kb-particle:nth-child(4) {
    width: 10px; height: 10px;
    background: var(--kb-peach);
    left: 85%; top: 15%;
    animation-duration: 9s;
    animation-delay: -1s;
}

.kb-particle:nth-child(5) {
    width: 7px; height: 7px;
    background: var(--kb-mint);
    left: 25%; top: 75%;
    animation-duration: 7.5s;
    animation-delay: -3s;
}

@keyframes kb-float-particle {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.15; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}

/* --- Mobile Performance: Disable expensive animations --- */
@media (max-width: 768px) {
    /* Kill particles — decorative, wastes GPU on mobile */
    .kb-particles { display: none; }

    /* Disable hero parallax transform (JS also checks) */
    .kb-hero .kb-hero-inner {
        transform: none !important;
        opacity: 1 !important;
    }

    /* Simpler wave dividers on mobile */
    .kb-section-divider { height: 30px; }

    /* Word reveal: show immediately, no per-word animation */
    .kb-word-reveal .kb-word {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Disable gradient border (compositing cost) */
    .kb-gradient-border::before { display: none; }

    /* Disable AI glow ring (blur filter is expensive) */
    .kb-ai-glow::after { display: none; }

    /* Simpler card hovers (no 3D tilt on touch) */
    .kb-category-card:hover {
        transform: translateY(-4px) !important;
    }

    /* Reduce AOS animation duration on mobile */
    [data-aos] {
        transition-duration: 400ms !important;
    }

    /* Disable stat glow hover (no hover on touch) */
    .kb-b2b-stat:hover { transform: none; }
    .kb-b2b-stat:hover .stat-number { animation: none; }

    /* Disable hero shimmer background (compositing) */
    .kb-hero::before { display: none; }

    /* Disable B2B background pulse */
    .kb-b2b-callout::before { display: none; }
}

/* ============================================================
   GP PREMIUM POLISH — Added 2026-04-16
   Sticky header, breadcrumbs, form buttons, blog card hover,
   footer widget title accent
   ============================================================ */

/* Sticky header — GP Premium sticky nav enhancement */
.navigation-stick {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(30, 30, 47, 0.08);
    transition: all 0.3s ease;
}

.navigation-stick .main-navigation a {
    transition: color 0.2s ease;
}

/* Breadcrumb styling — Rank Math */
.rank-math-breadcrumb {
    font-size: 13px;
    color: var(--kb-text-muted);
    padding: 12px 0;
    font-family: var(--font-body);
}

.rank-math-breadcrumb a {
    color: var(--kb-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.rank-math-breadcrumb a:hover {
    color: var(--kb-blush);
}

.rank-math-breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* Global form buttons — ensure GP-generated buttons match brand */
button:not(.kb-btn-primary):not(.kb-btn-secondary),
input[type="submit"],
.generate-back-to-top {
    background-color: var(--kb-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

button:not(.kb-btn-primary):not(.kb-btn-secondary):hover,
input[type="submit"]:hover {
    background-color: var(--kb-cta-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

/* Back to top button */
.generate-back-to-top {
    padding: 10px 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.generate-back-to-top:hover {
    background-color: var(--kb-cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Blog archive card hover effect */
.inside-article {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inside-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--kb-blush);
}

/* Entry meta styling */
.entry-meta {
    font-size: 13px;
    color: var(--kb-text-muted);
    font-family: var(--font-body);
}

.entry-meta a {
    color: var(--kb-text-muted);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--kb-blush);
}

/* Footer widget title accent border */
.site-footer .footer-widgets .widget-title {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--kb-blush);
    margin-bottom: 20px;
}

/* WooCommerce sale badge — brand blush */
.woocommerce span.onsale {
    background-color: var(--kb-blush);
    color: var(--kb-dark);
}

/* ============================================================
   END GP PREMIUM POLISH
   ============================================================ */


/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .kb-scroll-progress { display: none; }
    .kb-particles { display: none; }
    .kb-ai-glow::after { display: none; }
}


/* =============================================================
   WHOLESALE PLUGIN FORM + RESPONSIVE HARDENING
   ============================================================= */
.kb-wholesale-plugin-form {
    background: var(--kb-white);
    border: 1px solid var(--kb-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.kb-wholesale-plugin-form .kbeauty-wholesale-application-container {
    max-width: none;
    margin: 0;
    font-family: var(--font-body);
}

.kb-wholesale-plugin-form .form-header {
    background: linear-gradient(135deg, var(--kb-cta), var(--kb-blush));
    color: var(--kb-white);
}

.kb-wholesale-plugin-form .form-header h2,
.kb-wholesale-plugin-form .form-header p {
    color: var(--kb-white);
}

.kb-wholesale-plugin-form .application-progress,
.kb-wholesale-plugin-form .application-review,
.kb-wholesale-plugin-form .wholesale-login-notice,
.kb-wholesale-plugin-form .wholesale-status-notice {
    background: var(--kb-cream);
}

.kb-wholesale-plugin-form .progress-fill,
.kb-wholesale-plugin-form .button-primary {
    background: var(--kb-cta);
}

.kb-wholesale-plugin-form .button-primary:hover {
    background: var(--kb-cta-hover);
}

.kb-wholesale-plugin-form .progress-steps .step.active {
    color: var(--kb-cta);
}

.kb-wholesale-plugin-form input,
.kb-wholesale-plugin-form select,
.kb-wholesale-plugin-form textarea {
    border: 2px solid var(--kb-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.kb-wholesale-plugin-form input:focus,
.kb-wholesale-plugin-form select:focus,
.kb-wholesale-plugin-form textarea:focus {
    border-color: var(--kb-cta);
    outline: 3px solid rgba(231, 111, 81, 0.16);
}

.kb-moq-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kb-moq-table {
    min-width: 720px;
}

@media (max-width: 980px) {
    .kb-wholesale-headline {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .kb-why-grid,
    .kb-hiw-steps {
        grid-template-columns: 1fr 1fr;
    }

    .kb-inquiry-wrap {
        grid-template-columns: 1fr;
    }

    .kb-hiw-arrow {
        display: none;
    }
}

@media (max-width: 767px) {
    .kb-wholesale-hero,
    .kb-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .kb-wholesale-headline {
        font-size: clamp(1.85rem, 9vw, 2.5rem);
        overflow-wrap: anywhere;
    }

    .kb-wholesale-subhead,
    .kb-section-subtitle {
        font-size: 0.98rem;
    }

    .kb-wholesale-trust-row,
    .kb-tier-badges,
    .kb-hero-ctas {
        align-items: stretch;
        flex-direction: column;
    }

    .kb-why-grid,
    .kb-hiw-steps,
    .kb-form-row,
    .kb-wholesale-plugin-form .form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kb-wholesale-plugin-form .wholesale-application-form {
        padding: 20px;
    }

    .kb-wholesale-plugin-form .progress-steps {
        gap: 8px;
    }

    .kb-wholesale-plugin-form .progress-steps .step-label {
        display: block;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .kb-wholesale-plugin-form .step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .kb-wholesale-plugin-form .button {
        width: 100%;
    }
}
