:root {
    --kp-bg: #f2f4f7;
    --kp-surface: #ffffff;
    --kp-surface-2: #f8fafc;
    --kp-text: #121826;
    --kp-muted: #667085;
    --kp-border: #e4e7ec;
    --kp-accent: #ff5a1f;
    --kp-accent-2: #ff8a3d;
    --kp-accent-soft: #fff1eb;
    --kp-success: #039855;
    --kp-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

body.kp-store {
    margin: 0;
    background: radial-gradient(1200px 300px at 50% -150px, #ffe1d4, transparent), var(--kp-bg);
    color: var(--kp-text);
    font-family: "Sora", "Manrope", "Trebuchet MS", sans-serif;
}

.kp-topbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--kp-border);
}

.kp-topbar-inner {
    flex-wrap: wrap;
}

.kp-brand {
    text-decoration: none;
    color: var(--kp-text);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.2rem;
}

.kp-brand-accent {
    color: var(--kp-accent);
}

.kp-nav-link {
    text-decoration: none;
    color: var(--kp-muted);
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.kp-nav-link:hover,
.kp-nav-link.active {
    color: var(--kp-text);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--kp-border);
}

.kp-account-btn {
    border: 1px solid var(--kp-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--kp-text);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.42rem 0.72rem;
    background: #fff;
}

.kp-basket-pill {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(130deg, var(--kp-accent), var(--kp-accent-2));
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 90, 31, 0.35);
}

.kp-main {
    padding-bottom: 1.2rem;
}

.kp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, #111827, #1f2937 55%, #0f172a);
    border-radius: 20px;
    padding: 1.3rem;
    color: #fff;
    box-shadow: var(--kp-shadow);
}

.kp-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    right: -80px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.8), transparent 70%);
}

.kp-hero h1,
.kp-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    letter-spacing: -0.02em;
}

.kp-hero p {
    position: relative;
    z-index: 1;
    margin: 0.35rem 0 0;
    color: #d0d5dd;
}

.kp-hero-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 0.9rem;
}

.kp-hero-logo {
    display: block;
    width: min(100%, 420px);
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.kp-card {
    background: var(--kp-surface);
    border: 1px solid var(--kp-border);
    border-radius: 16px;
    box-shadow: var(--kp-shadow);
}

.kp-input,
.kp-select,
.kp-textarea {
    width: 100%;
    border: 1px solid var(--kp-border);
    border-radius: 12px;
    padding: 0.68rem 0.78rem;
    font-size: 0.93rem;
    color: var(--kp-text);
    background: #fff;
}

.kp-textarea {
    min-height: 90px;
}

.kp-input:focus,
.kp-select:focus,
.kp-textarea:focus {
    outline: none;
    border-color: #ffb190;
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

.kp-btn {
    border: none;
    border-radius: 12px;
    padding: 0.68rem 0.95rem;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.kp-btn:hover {
    transform: translateY(-1px);
}

.kp-btn-primary {
    background: linear-gradient(130deg, var(--kp-accent), var(--kp-accent-2));
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 90, 31, 0.3);
}

.kp-btn-soft {
    background: var(--kp-accent-soft);
    color: #b93815;
}

.kp-muted {
    color: var(--kp-muted);
}

.kp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.kp-category-rail {
    position: sticky;
    top: 78px;
    background: var(--kp-surface);
    border: 1px solid var(--kp-border);
    border-radius: 14px;
    padding: 0.55rem;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    box-shadow: var(--kp-shadow);
}

.kp-chip {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--kp-border);
    color: var(--kp-text);
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fff;
}

.kp-chip.active,
.kp-chip:hover {
    border-color: #ffb190;
    background: var(--kp-accent-soft);
    color: #b93815;
}

.kp-item {
    border: 1px solid var(--kp-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kp-item:hover {
    border-color: #ffd7c7;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

.kp-item-body {
    padding: 0.9rem;
}

.kp-item-media {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--kp-border);
}

.kp-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kp-item-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
}

.kp-price {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.kp-tag {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid #ffd7c7;
    background: var(--kp-accent-soft);
    color: #b93815;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
}

.kp-qty {
    width: 72px;
    border: 1px solid var(--kp-border);
    border-radius: 10px;
    padding: 0.45rem 0.4rem;
}

.kp-basket-panel {
    position: sticky;
    top: 84px;
}

.kp-mini-list {
    max-height: 220px;
    overflow: auto;
}

.kp-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.kp-mobile-dock {
    position: sticky;
    bottom: 0;
    z-index: 1080;
    background: #fff;
    border-top: 1px solid var(--kp-border);
    box-shadow: 0 -8px 20px rgba(16, 24, 40, 0.08);
    padding: 0.65rem 0.9rem;
}

.kp-mobile-dock-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.kp-checkout-btn {
    border-radius: 10px;
    background: linear-gradient(130deg, var(--kp-accent), var(--kp-accent-2));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    white-space: nowrap;
}

.kp-order-card {
    border: 1px solid var(--kp-border);
    border-radius: 14px;
    background: #fff;
}

@media (min-width: 992px) {
    .kp-main {
        padding-bottom: 2rem;
    }

    .kp-mobile-dock {
        display: none;
    }
}

@media (max-width: 991px) {
    .kp-basket-panel {
        position: static;
    }

    .kp-top-actions {
        margin-left: auto;
    }

    .kp-basket-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
        gap: 0.3rem;
    }

    .kp-account-btn {
        font-size: 0.78rem;
        padding: 0.38rem 0.58rem;
    }

    .kp-mobile-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .kp-mobile-links .kp-nav-link {
        text-align: center;
        font-size: 0.82rem;
        padding: 0.4rem 0.2rem;
    }
}

@media (max-width: 576px) {
    .kp-topbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .kp-brand {
        font-size: 1rem;
    }

    .kp-basket-pill span:last-child {
        display: none;
    }

    .kp-hero {
        padding: 1rem;
    }

    .kp-hero h1 {
        font-size: 1.25rem;
    }

    .kp-mobile-dock {
        padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    }

    .kp-item-media {
        aspect-ratio: 16 / 9;
    }
}

