/* =====================================================================
   KAME HOUSE — Design System
   Dragon Ball inspired theme for the Kame House store + importaciones
   Palette based on the Kame House Posadas logo: orange / black / white
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    /* Brand core */
    --kh-orange: #FF6B00;
    --kh-orange-dark: #E55A00;
    --kh-orange-light: #FF8A33;
    --kh-orange-glow: rgba(255, 107, 0, 0.45);
    --kh-orange-glow-soft: rgba(255, 107, 0, 0.15);
    --kh-gold: #FFD700;
    --kh-gold-dark: #E5BF00;
    --kh-gold-glow: rgba(255, 215, 0, 0.35);

    /* Backgrounds */
    --kh-black: #0B0B0F;
    --kh-night: #12121A;
    --kh-night-2: #181823;
    --kh-panel: #1E1E2B;
    --kh-panel-2: #262635;
    --kh-panel-3: #33334A;

    /* Text */
    --kh-white: #F5F0E8;
    --kh-white-pure: #FFFFFF;
    --kh-muted: #A1A1B3;
    --kh-muted-2: #6E6E85;
    --kh-border: rgba(255, 107, 0, 0.18);
    --kh-border-soft: rgba(255, 255, 255, 0.08);

    /* Status */
    --kh-red: #EF4444;
    --kh-red-glow: rgba(239, 68, 68, 0.35);
    --kh-green: #22C55E;
    --kh-green-glow: rgba(34, 197, 94, 0.35);
    --kh-blue: #06B6D4;
    --kh-purple: #A855F7;

    /* Gradients */
    --kh-grad-hero: linear-gradient(135deg, #0B0B0F 0%, #1B0E05 45%, #FF6B00 130%);
    --kh-grad-orange: linear-gradient(135deg, #FF6B00 0%, #FFD700 100%);
    --kh-grad-card: linear-gradient(180deg, #1E1E2B 0%, #14141E 100%);
    --kh-grad-glow: radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.25) 0%, transparent 70%);

    /* Radii */
    --kh-r-sm: 6px;
    --kh-r-md: 10px;
    --kh-r-lg: 16px;
    --kh-r-xl: 24px;
    --kh-r-full: 9999px;

    /* Shadows */
    --kh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --kh-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --kh-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
    --kh-shadow-glow: 0 0 15px var(--kh-orange-glow), 0 0 40px var(--kh-orange-glow-soft);
    --kh-shadow-gold: 0 0 20px var(--kh-gold-glow);

    /* Transitions */
    --kh-t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --kh-t-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --kh-t-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Fonts */
    --kh-font-display: 'Rajdhani', sans-serif;
    --kh-font-body: 'Outfit', sans-serif;
    --kh-font-mono: 'Space Mono', monospace;
    --kh-font-jp: 'Noto Sans JP', sans-serif;

    /* Z-index */
    --kh-z-nav: 100;
    --kh-z-drawer: 300;
    --kh-z-modal: 500;
    --kh-z-toast: 600;
}

/* =====================================================================
   RESET + BASE
   ===================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.kame-body {
    font-family: var(--kh-font-body);
    background: var(--kh-black);
    color: var(--kh-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle dot/grid pattern overlay */
body.kame-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 107, 0, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(255, 215, 0, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

/* Noisy pattern like the logo's dotted background */
body.kame-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 107, 0, 0.025) 1px, transparent 1.2px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

main, .kame-main {
    position: relative;
    z-index: 1;
}

a { color: var(--kh-orange); text-decoration: none; }
a:hover { color: var(--kh-orange-light); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kh-font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--kh-white);
}

/* =====================================================================
   CONTAINER
   ===================================================================== */

.kh-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) { .kh-container { padding: 0 2rem; } }

/* =====================================================================
   NAVBAR
   ===================================================================== */

.kh-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--kh-z-nav);
    padding: 1rem 0;
    transition: all var(--kh-t-normal);
}

.kh-nav.scrolled {
    background: rgba(11, 11, 15, 0.88);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--kh-border);
    padding: 0.6rem 0;
}

.kh-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.kh-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--kh-white);
    font-family: var(--kh-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    transition: transform var(--kh-t-normal);
}

.kh-logo:hover { transform: scale(1.03); color: var(--kh-white); }

.kh-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--kh-r-md);
    background: var(--kh-grad-orange);
    display: grid;
    place-items: center;
    font-family: var(--kh-font-jp);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--kh-black);
    box-shadow: var(--kh-shadow-glow);
    position: relative;
    overflow: hidden;
}

.kh-logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 60%);
}

.kh-logo-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.kh-logo-name strong {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}
.kh-logo-name span {
    font-size: 0.68rem;
    color: var(--kh-orange);
    font-family: var(--kh-font-mono);
    letter-spacing: 0.12em;
}

.kh-nav-links {
    display: none;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

@media (min-width: 980px) { .kh-nav-links { display: flex; } }

.kh-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    color: var(--kh-white);
    font-family: var(--kh-font-display);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--kh-r-md);
    transition: all var(--kh-t-fast);
    position: relative;
}

.kh-nav-links a:hover, .kh-nav-links a.active {
    color: var(--kh-orange);
    background: rgba(255, 107, 0, 0.08);
}

.kh-nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--kh-grad-orange);
    transition: transform var(--kh-t-normal);
    border-radius: 2px;
}
.kh-nav-links a:hover::after, .kh-nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.kh-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kh-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--kh-r-md);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--kh-border-soft);
    color: var(--kh-white);
    cursor: pointer;
    position: relative;
    transition: all var(--kh-t-fast);
    font-size: 1.15rem;
}
.kh-icon-btn:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--kh-orange);
    color: var(--kh-orange);
    transform: translateY(-1px);
}

.kh-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--kh-orange);
    color: var(--kh-black);
    font-family: var(--kh-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--kh-r-full);
    min-width: 20px;
    text-align: center;
    border: 2px solid var(--kh-black);
}

.kh-menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--kh-r-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--kh-border-soft);
    color: var(--kh-white);
    cursor: pointer;
    font-size: 1.3rem;
}
@media (min-width: 980px) { .kh-menu-toggle { display: none; } }

/* Mobile drawer */
.kh-mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 88%;
    max-width: 360px;
    height: 100vh;
    background: var(--kh-night);
    border-left: 1px solid var(--kh-border);
    z-index: var(--kh-z-drawer);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--kh-t-bounce);
    overflow-y: auto;
}
.kh-mobile-drawer.open { transform: translateX(0); box-shadow: var(--kh-shadow-lg); }
.kh-mobile-drawer a {
    display: block;
    padding: 1rem 0.5rem;
    color: var(--kh-white);
    font-family: var(--kh-font-display);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--kh-border-soft);
}
.kh-mobile-drawer a:hover { color: var(--kh-orange); }

.kh-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: calc(var(--kh-z-drawer) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--kh-t-normal);
}
.kh-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* =====================================================================
   BUTTONS
   ===================================================================== */

.kh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-family: var(--kh-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--kh-r-md);
    cursor: pointer;
    transition: all var(--kh-t-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 1.1;
}

.kh-btn:active { transform: scale(0.97); }

.kh-btn-primary {
    background: var(--kh-grad-orange);
    color: var(--kh-black);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}
.kh-btn-primary:hover {
    box-shadow: var(--kh-shadow-glow), 0 10px 30px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
    color: var(--kh-black);
}

.kh-btn-secondary {
    background: transparent;
    color: var(--kh-orange);
    border-color: var(--kh-orange);
}
.kh-btn-secondary:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--kh-orange-light);
    box-shadow: var(--kh-shadow-glow);
}

.kh-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--kh-white);
    border-color: var(--kh-border-soft);
}
.kh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--kh-orange);
    color: var(--kh-orange);
}

.tcg-game-tab.tcg-active {
    background: var(--kh-orange);
    color: #000;
    border-color: var(--kh-orange);
    font-weight: 700;
}
.tcg-result-row:hover {
    background: rgba(255, 107, 0, 0.08);
}

.kh-btn-danger {
    background: var(--kh-red);
    color: white;
}
.kh-btn-danger:hover {
    background: #DC2626;
    box-shadow: 0 0 20px var(--kh-red-glow);
}

.kh-btn-gold {
    background: linear-gradient(135deg, var(--kh-gold), var(--kh-gold-dark));
    color: var(--kh-black);
}
.kh-btn-gold:hover {
    box-shadow: var(--kh-shadow-gold);
    transform: translateY(-2px);
    color: var(--kh-black);
}

.kh-btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.kh-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.kh-btn-xl { padding: 1.15rem 2.5rem; font-size: 1.2rem; }
.kh-btn-block { width: 100%; display: flex; }

.kh-btn[disabled], .kh-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pulsing ki charge effect — for main CTAs */
.kh-btn-charge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--kh-grad-orange);
    opacity: 0.4;
    filter: blur(10px);
    animation: kh-pulse 2.2s ease-in-out infinite;
    z-index: -1;
}

@keyframes kh-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.98); }
    50% { opacity: 0.55; transform: scale(1.04); }
}

/* =====================================================================
   HERO
   ===================================================================== */

.kh-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 3rem;
    overflow: hidden;
    background: var(--kh-grad-hero);
}

.kh-hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, var(--kh-black) 100%);
    z-index: 3;
    pointer-events: none;
}

.kh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 0.3;
    filter: saturate(1.2) brightness(0.7);
}

.kh-hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.35;
    filter: saturate(1.3) brightness(0.6);
}

.kh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(255, 107, 0, 0.35) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 40%);
    z-index: 1;
}

.kh-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.5;
    z-index: 1;
}

.kh-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
}

.kh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid var(--kh-orange);
    color: var(--kh-orange);
    border-radius: var(--kh-r-full);
    font-family: var(--kh-font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
    animation: kh-fade-down 0.8s ease-out 0.1s both;
}

.kh-hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    animation: kh-power-up 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}
.kh-hero-title span {
    background: var(--kh-grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(255, 107, 0, 0.4);
}

.kh-hero-subtitle {
    font-family: var(--kh-font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--kh-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: kh-fade-up 0.8s ease-out 0.4s both;
}

.kh-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: kh-fade-up 0.8s ease-out 0.6s both;
}

.kh-hero-stats {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: kh-fade-up 0.8s ease-out 0.8s both;
}

.kh-hero-stat {
    text-align: center;
}
.kh-hero-stat-num {
    font-family: var(--kh-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: var(--kh-grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kh-hero-stat-label {
    font-family: var(--kh-font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--kh-muted);
    margin-top: 0.25rem;
}

/* Hero scroll indicator */
.kh-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--kh-muted);
    font-family: var(--kh-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: kh-bounce 2s ease-in-out infinite;
}
.kh-hero-scroll::before {
    content: '';
    display: block;
    width: 1px;
    height: 28px;
    margin: 0 auto 0.5rem;
    background: linear-gradient(to bottom, transparent, var(--kh-orange));
}

/* =================================================================
   SECTION ART — Atmospheric character backgrounds
   Large, properly masked, feels intentional not decorative
   ================================================================= */
.kh-section-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.kh-section-art img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: auto;
    max-width: none;
    opacity: 0.2;
    filter: saturate(1.3) brightness(0.65);
    object-fit: contain;
    right: -4%;
    mask-image: radial-gradient(ellipse 75% 85% at 82% 50%, black 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 82% 50%, black 0%, black 30%, transparent 75%);
}
/* Left-aligned art (Dark Magician) */
.kh-section-art--left img {
    right: auto;
    left: -4%;
    mask-image: radial-gradient(ellipse 75% 85% at 18% 50%, black 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 18% 50%, black 0%, black 30%, transparent 75%);
}
@media (max-width: 640px) {
    .kh-section-art img { opacity: 0.1; }
}

/* =================================================================
   TOURNAMENT BANNER — Cinematic section header
   ================================================================= */
.kh-tournament-banner {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: var(--kh-r-lg);
    margin-bottom: 2.5rem;
}
.kh-tournament-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.45) saturate(1.4);
}
.kh-tournament-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--kh-black) 0%, rgba(11,11,15,0.4) 40%, transparent 70%),
        linear-gradient(to bottom, rgba(11,11,15,0.5) 0%, transparent 30%);
    pointer-events: none;
}
.kh-tournament-banner-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    font-family: var(--kh-font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--kh-white);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.kh-tournament-banner-text span {
    color: var(--kh-orange);
}
@media (max-width: 768px) { .kh-tournament-banner { height: 180px; } }

@keyframes kh-power-up {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
@keyframes kh-fade-up { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes kh-fade-down { from { opacity: 0; transform: translateY(-20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes kh-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6;}
    50% { transform: translateX(-50%) translateY(6px); opacity: 1;}
}

/* Ki particles decorative layer */
.kh-ki-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.kh-ki-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--kh-orange);
    box-shadow: 0 0 10px var(--kh-orange), 0 0 20px var(--kh-orange-glow);
    opacity: 0;
    animation: kh-drift linear infinite;
}
@keyframes kh-drift {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-400px) translateX(var(--drift, 30px)) scale(0.3); opacity: 0; }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */

.kh-section {
    padding: 5rem 0;
    position: relative;
}

.kh-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.kh-section-eyebrow {
    display: inline-block;
    font-family: var(--kh-font-mono);
    font-size: 0.75rem;
    color: var(--kh-orange);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 0.8rem;
}

.kh-section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.kh-section-title span {
    color: var(--kh-orange);
}

.kh-section-subtitle {
    color: var(--kh-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

/* Energy line separator */
.kh-energy-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kh-orange), var(--kh-gold), var(--kh-orange), transparent);
    max-width: 300px;
    margin: 2rem auto;
    position: relative;
    border-radius: 2px;
}
.kh-energy-line::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
}

/* =====================================================================
   CATEGORY GRID
   ===================================================================== */

.kh-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.kh-category-card {
    position: relative;
    min-height: 200px;
    padding: 1.75rem;
    background: var(--kh-grad-card);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--kh-t-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--kh-white);
    text-decoration: none;
}

.kh-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cat-color, var(--kh-orange));
    opacity: 0.12;
    z-index: 0;
    transition: opacity var(--kh-t-normal);
}
.kh-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: var(--cat-color, var(--kh-orange));
    opacity: 0.25;
    filter: blur(60px);
    border-radius: 50%;
    transition: all var(--kh-t-normal);
}

.kh-category-card:hover {
    transform: translateY(-6px);
    border-color: var(--cat-color, var(--kh-orange));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 0, 0.15);
    color: var(--kh-white);
}
.kh-category-card:hover::before { opacity: 0.2; }
.kh-category-card:hover::after { width: 200px; height: 200px; opacity: 0.35; }

.kh-category-card > * { position: relative; z-index: 1; }

.kh-category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--cat-color, var(--kh-orange)));
}
.kh-category-name {
    font-family: var(--kh-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.kh-category-desc {
    color: var(--kh-muted);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    line-height: 1.45;
}
.kh-category-count {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cat-color, var(--kh-orange));
    color: var(--cat-color, var(--kh-orange));
    border-radius: var(--kh-r-full);
    font-family: var(--kh-font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =====================================================================
   PRODUCT CARD
   ===================================================================== */

.kh-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
@media (max-width: 600px) {
    .kh-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

.kh-product-card {
    background: var(--kh-grad-card);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
    transition: all var(--kh-t-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: var(--kh-white);
}

.kh-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--kh-orange);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 107, 0, 0.2);
    color: var(--kh-white);
}

.kh-product-image {
    aspect-ratio: 1 / 1;
    position: relative;
    background: var(--kh-panel-2);
    overflow: hidden;
}
.kh-product-image img,
.kh-product-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--kh-t-normal);
}
.kh-product-card:hover .kh-product-image img,
.kh-product-card:hover .kh-product-image svg {
    transform: scale(1.08);
}

.kh-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3rem;
    opacity: 0.3;
}

.kh-badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-family: var(--kh-font-display);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--kh-r-sm);
    z-index: 2;
}
.kh-badge-new { left: 0.75rem; background: var(--kh-orange); color: var(--kh-black); }
.kh-badge-sale { right: 0.75rem; background: var(--kh-red); color: white; }
.kh-badge-out { right: 0.75rem; background: var(--kh-panel-3); color: var(--kh-muted); }
.kh-badge-featured { left: 0.75rem; background: var(--kh-gold); color: var(--kh-black); }

.kh-product-body {
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.kh-product-cat {
    display: inline-block;
    font-family: var(--kh-font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cat-color, var(--kh-orange));
}

.kh-product-name {
    font-family: var(--kh-font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--kh-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.kh-product-price {
    font-family: var(--kh-font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kh-orange);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
}
.kh-product-price-old {
    font-size: 0.85rem;
    color: var(--kh-muted-2);
    text-decoration: line-through;
    font-weight: 400;
}
.kh-product-price-consult {
    font-size: 1rem;
    background: linear-gradient(90deg, var(--kh-gold) 0%, var(--kh-orange) 50%, var(--kh-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kh-shimmer 3s linear infinite;
}

@keyframes kh-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.kh-product-stock {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--kh-font-mono);
    font-size: 0.72rem;
    color: var(--kh-muted);
}
.kh-product-stock::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--kh-green);
    box-shadow: 0 0 6px var(--kh-green-glow);
}
.kh-product-stock.low::before { background: var(--kh-orange); box-shadow: 0 0 6px var(--kh-orange-glow); }
.kh-product-stock.out::before { background: var(--kh-red); box-shadow: 0 0 6px var(--kh-red-glow); }

.kh-product-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.4rem;
}
.kh-product-actions .kh-btn { flex: 1; padding: 0.55rem 0.75rem; font-size: 0.8rem; }

/* =====================================================================
   CART DRAWER
   ===================================================================== */

.kh-cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--kh-night);
    border-left: 1px solid var(--kh-border);
    z-index: var(--kh-z-drawer);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--kh-t-bounce);
}
.kh-cart-drawer.open { transform: translateX(0); box-shadow: var(--kh-shadow-lg); }

.kh-cart-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--kh-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kh-cart-head h3 {
    font-family: var(--kh-font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.kh-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.kh-cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--kh-border-soft);
}
.kh-cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--kh-r-md);
    background: var(--kh-panel-2);
}
.kh-cart-item-info h4 {
    font-family: var(--kh-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}
.kh-cart-item-price {
    font-family: var(--kh-font-mono);
    font-size: 0.85rem;
    color: var(--kh-orange);
    font-weight: 700;
}
.kh-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.kh-cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: var(--kh-r-sm);
    border: 1px solid var(--kh-border-soft);
    background: var(--kh-panel-2);
    color: var(--kh-white);
    cursor: pointer;
    font-weight: 700;
}
.kh-cart-item-qty button:hover { border-color: var(--kh-orange); color: var(--kh-orange); }
.kh-cart-item-qty span {
    min-width: 22px;
    text-align: center;
    font-family: var(--kh-font-mono);
    font-weight: 700;
}
.kh-cart-item-remove {
    background: transparent;
    border: none;
    color: var(--kh-muted);
    cursor: pointer;
    font-size: 1rem;
    align-self: start;
    padding: 0.25rem;
}
.kh-cart-item-remove:hover { color: var(--kh-red); }

.kh-cart-foot {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--kh-border-soft);
    background: var(--kh-panel);
}
.kh-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    font-family: var(--kh-font-display);
}
.kh-cart-total span:first-child {
    color: var(--kh-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.kh-cart-total span:last-child {
    font-family: var(--kh-font-mono);
    font-size: 1.5rem;
    color: var(--kh-orange);
    font-weight: 700;
}

.kh-cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}
.kh-cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}
.kh-cart-empty h3 {
    font-family: var(--kh-font-display);
    margin-bottom: 0.5rem;
}
.kh-cart-empty p {
    color: var(--kh-muted);
    margin-bottom: 1.5rem;
}

/* =====================================================================
   FORMS
   ===================================================================== */

.kh-form-group {
    margin-bottom: 1.2rem;
}
.kh-label {
    display: block;
    font-family: var(--kh-font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kh-muted);
    margin-bottom: 0.5rem;
}
.kh-input, .kh-textarea, .kh-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--kh-panel);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-md);
    color: var(--kh-white);
    font-family: var(--kh-font-body);
    font-size: 0.95rem;
    transition: all var(--kh-t-fast);
    min-height: 44px;
}
.kh-textarea { resize: vertical; min-height: 100px; }
.kh-input:focus, .kh-textarea:focus, .kh-select:focus {
    outline: none;
    border-color: var(--kh-orange);
    box-shadow: 0 0 0 3px var(--kh-orange-glow-soft);
}
.kh-input::placeholder, .kh-textarea::placeholder { color: var(--kh-muted-2); }

.kh-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 18px;
    padding-right: 2.5rem;
}

.kh-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--kh-muted);
}
.kh-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--kh-orange);
    margin-top: 0.15rem;
}

/* =====================================================================
   MODAL
   ===================================================================== */

.kh-modal {
    position: fixed;
    inset: 0;
    z-index: var(--kh-z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.kh-modal.open { display: flex; animation: kh-fade-in 0.25s ease-out; }
.kh-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.kh-modal-content {
    position: relative;
    background: var(--kh-night);
    border: 1px solid var(--kh-border);
    border-radius: var(--kh-r-lg);
    box-shadow: var(--kh-shadow-lg), 0 0 40px var(--kh-orange-glow-soft);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: kh-scale-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kh-modal-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--kh-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kh-modal-head h3 {
    font-family: var(--kh-font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
}
.kh-modal-body { padding: 1.5rem; }
.kh-modal-foot {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--kh-border-soft);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@keyframes kh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kh-scale-in { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* =====================================================================
   TOAST
   ===================================================================== */

.kh-toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: var(--kh-z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.kh-toast {
    background: var(--kh-night);
    border: 1px solid var(--kh-border);
    border-left: 4px solid var(--kh-orange);
    border-radius: var(--kh-r-md);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--kh-shadow-md);
    min-width: 260px;
    max-width: 400px;
    pointer-events: auto;
    animation: kh-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kh-toast.success { border-left-color: var(--kh-green); }
.kh-toast.error { border-left-color: var(--kh-red); }
.kh-toast h4 { font-family: var(--kh-font-display); font-size: 0.88rem; text-transform: uppercase; margin-bottom: 0.2rem; }
.kh-toast p { font-size: 0.85rem; color: var(--kh-muted); }

@keyframes kh-toast-in {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.kh-footer {
    background: var(--kh-night);
    border-top: 1px solid var(--kh-border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}
.kh-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .kh-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.kh-footer-col h4 {
    font-family: var(--kh-font-display);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--kh-orange);
    margin-bottom: 1rem;
}
.kh-footer-col a {
    display: block;
    color: var(--kh-muted);
    font-size: 0.92rem;
    padding: 0.25rem 0;
    transition: color var(--kh-t-fast);
}
.kh-footer-col a:hover { color: var(--kh-orange); }

.kh-footer-about p {
    color: var(--kh-muted);
    font-size: 0.9rem;
    margin: 0.8rem 0 1rem;
    line-height: 1.6;
}

.kh-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--kh-border-soft);
    color: var(--kh-muted-2);
    font-size: 0.82rem;
    font-family: var(--kh-font-mono);
}

/* =====================================================================
   WHATSAPP FAB
   ===================================================================== */

.kh-whatsapp-fab {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5);
    z-index: calc(var(--kh-z-toast) - 1);
    animation: kh-wa-pulse 2.5s ease-in-out infinite;
    text-decoration: none;
    transition: all var(--kh-t-normal);
}
.kh-whatsapp-fab:hover {
    transform: scale(1.08);
    color: white;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}
@keyframes kh-wa-pulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* =====================================================================
   FILTER SIDEBAR (catalog)
   ===================================================================== */

.kh-catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}
@media (max-width: 900px) {
    .kh-catalog-layout { grid-template-columns: 1fr; }
}
.kh-filter-sidebar {
    background: var(--kh-panel);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-lg);
    padding: 1.25rem;
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}
@media (max-width: 900px) {
    .kh-filter-sidebar { position: static; max-height: none; }
}
.kh-filter-group { margin-bottom: 1.5rem; }
.kh-filter-group h4 {
    font-family: var(--kh-font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kh-orange);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--kh-border-soft);
    padding-bottom: 0.5rem;
}
.kh-filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--kh-white);
    cursor: pointer;
}
.kh-filter-item input { accent-color: var(--kh-orange); }
.kh-filter-item span.count {
    margin-left: auto;
    color: var(--kh-muted-2);
    font-family: var(--kh-font-mono);
    font-size: 0.75rem;
}

/* =====================================================================
   PRODUCT DETAIL
   ===================================================================== */

.kh-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .kh-product-detail { grid-template-columns: 1fr; gap: 2rem; }
}
.kh-product-gallery-main {
    aspect-ratio: 1 / 1;
    background: var(--kh-panel);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
    position: relative;
}
.kh-product-gallery-main img,
.kh-product-gallery-main svg { width: 100%; height: 100%; object-fit: cover; }

.kh-product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.kh-product-gallery-thumbs img,
.kh-product-gallery-thumbs svg {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--kh-r-sm);
    border: 2px solid var(--kh-border-soft);
    cursor: pointer;
}
.kh-product-gallery-thumbs img.active,
.kh-product-gallery-thumbs svg.active { border-color: var(--kh-orange); }

.kh-product-info h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
    text-transform: none;
}
.kh-product-specs {
    margin-top: 2rem;
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-md);
    overflow: hidden;
}
.kh-product-specs table { width: 100%; border-collapse: collapse; }
.kh-product-specs tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.kh-product-specs th,
.kh-product-specs td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}
.kh-product-specs th {
    color: var(--kh-muted);
    font-family: var(--kh-font-display);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    width: 40%;
    font-weight: 600;
}

.kh-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
    flex-wrap: wrap;
}
.kh-price-main {
    font-family: var(--kh-font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--kh-orange);
}
.kh-price-old {
    font-family: var(--kh-font-mono);
    font-size: 1.1rem;
    color: var(--kh-muted-2);
    text-decoration: line-through;
}
.kh-price-discount {
    background: var(--kh-red);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--kh-r-sm);
    font-family: var(--kh-font-display);
    font-size: 0.85rem;
    font-weight: 700;
}

.kh-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.kh-qty-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--kh-panel);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-md);
    padding: 0.25rem;
}
.kh-qty-input button {
    width: 32px;
    height: 32px;
    border-radius: var(--kh-r-sm);
    background: transparent;
    border: none;
    color: var(--kh-white);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}
.kh-qty-input button:hover { color: var(--kh-orange); }
.kh-qty-input input {
    width: 40px;
    background: transparent;
    border: none;
    color: var(--kh-white);
    text-align: center;
    font-family: var(--kh-font-mono);
    font-weight: 700;
    font-size: 1rem;
}
.kh-qty-input input:focus { outline: none; }

/* =====================================================================
   ORDER TRACKING TIMELINE
   ===================================================================== */

.kh-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}
.kh-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--kh-border-soft);
}
.kh-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.kh-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kh-panel-3);
    border: 3px solid var(--kh-night);
}
.kh-timeline-item.done::before {
    background: var(--kh-orange);
    box-shadow: 0 0 15px var(--kh-orange-glow);
}
.kh-timeline-item.current::before {
    background: var(--kh-gold);
    box-shadow: 0 0 20px var(--kh-gold-glow);
    animation: kh-pulse-dot 2s ease-in-out infinite;
}
.kh-timeline-item h4 {
    font-family: var(--kh-font-display);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.kh-timeline-item p {
    color: var(--kh-muted);
    font-size: 0.88rem;
}
.kh-timeline-item time {
    display: block;
    color: var(--kh-muted-2);
    font-family: var(--kh-font-mono);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}
@keyframes kh-pulse-dot {
    0%, 100% { box-shadow: 0 0 20px var(--kh-gold-glow); }
    50% { box-shadow: 0 0 35px var(--kh-gold-glow), 0 0 10px var(--kh-gold); }
}

.kh-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--kh-r-full);
    font-family: var(--kh-font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid;
}
.kh-status-RECEIVED { background: rgba(255, 215, 0, 0.1); color: var(--kh-gold); border-color: var(--kh-gold); }
.kh-status-APPROVED { background: rgba(255, 107, 0, 0.1); color: var(--kh-orange); border-color: var(--kh-orange); }
.kh-status-WAITING_PAYMENT { background: rgba(6, 182, 212, 0.1); color: var(--kh-blue); border-color: var(--kh-blue); }
.kh-status-PAYMENT_CONFIRMED { background: rgba(34, 197, 94, 0.1); color: var(--kh-green); border-color: var(--kh-green); }
.kh-status-SHIPPING { background: rgba(168, 85, 247, 0.1); color: var(--kh-purple); border-color: var(--kh-purple); }
.kh-status-DELIVERED { background: rgba(34, 197, 94, 0.1); color: var(--kh-green); border-color: var(--kh-green); }
.kh-status-CANCELLED { background: rgba(239, 68, 68, 0.1); color: var(--kh-red); border-color: var(--kh-red); }

/* =====================================================================
   ADMIN TABLE
   ===================================================================== */

.kh-admin-table {
    background: var(--kh-panel);
    border: 1px solid var(--kh-border-soft);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
}
.kh-admin-table table {
    width: 100%;
    border-collapse: collapse;
}
.kh-admin-table th,
.kh-admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}
.kh-admin-table th {
    background: var(--kh-night);
    font-family: var(--kh-font-display);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--kh-muted);
    border-bottom: 1px solid var(--kh-border-soft);
}
.kh-admin-table tr { border-bottom: 1px solid var(--kh-border-soft); }
.kh-admin-table tr:last-child { border-bottom: none; }
.kh-admin-table tr:hover { background: rgba(255, 107, 0, 0.04); }

/* KPI cards */
.kh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.kh-kpi {
    background: var(--kh-grad-card);
    border: 1px solid var(--kh-border-soft);
    border-left: 4px solid var(--kh-orange);
    border-radius: var(--kh-r-lg);
    padding: 1.25rem;
    transition: all var(--kh-t-normal);
}
.kh-kpi:hover {
    transform: translateY(-3px);
    border-color: var(--kh-orange);
}
.kh-kpi-label {
    font-family: var(--kh-font-mono);
    font-size: 0.72rem;
    color: var(--kh-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.kh-kpi-value {
    font-family: var(--kh-font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--kh-white);
    line-height: 1;
}
.kh-kpi-sub {
    font-size: 0.78rem;
    color: var(--kh-muted-2);
    margin-top: 0.4rem;
}

/* =====================================================================
   UTILITIES
   ===================================================================== */

.kh-text-center { text-align: center; }
.kh-text-muted { color: var(--kh-muted); }
.kh-text-orange { color: var(--kh-orange); }
.kh-text-gold { color: var(--kh-gold); }
.kh-mt-1 { margin-top: 0.5rem; }
.kh-mt-2 { margin-top: 1rem; }
.kh-mt-3 { margin-top: 1.5rem; }
.kh-mt-4 { margin-top: 2rem; }
.kh-mb-2 { margin-bottom: 1rem; }
.kh-mb-3 { margin-bottom: 1.5rem; }
.kh-flex { display: flex; }
.kh-flex-col { flex-direction: column; }
.kh-items-center { align-items: center; }
.kh-justify-between { justify-content: space-between; }
.kh-gap-2 { gap: 0.5rem; }
.kh-gap-3 { gap: 1rem; }
.kh-hidden { display: none !important; }

@media (max-width: 768px) {
    .kh-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .kh-hide-desktop { display: none !important; }
}

/* Scrollbar — thematic */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--kh-night); }
::-webkit-scrollbar-thumb {
    background: var(--kh-panel-3);
    border-radius: 10px;
    border: 2px solid var(--kh-night);
}
::-webkit-scrollbar-thumb:hover { background: var(--kh-orange); }

/* Reveal on scroll helper */
.kh-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.kh-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger helper */
.kh-reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.kh-reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}
.kh-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.kh-reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.kh-reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.kh-reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.kh-reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.kh-reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.kh-reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.kh-reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }
