/* Kachi Seed - Public Styles */

:root {
    --ks-green-dark: #1e4620;
    --ks-green: #2e7d32;
    --ks-green-light: #4caf50;
    --ks-gold: #f0b429;
    --ks-gold-dark: #d99a13;
    --ks-cream: #f7f5ef;
    --ks-text: #2b2b2b;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ks-text);
    background: #fff;
}

/* Navbar */
.ks-navbar {
    background: linear-gradient(90deg, var(--ks-green-dark), var(--ks-green));
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.ks-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    margin: 0 .35rem;
    transition: color .2s;
}
.ks-navbar .nav-link:hover,
.ks-navbar .nav-link.active {
    color: #fff !important;
}
.ks-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--ks-gold);
    color: var(--ks-green-dark);
    border-radius: 50%;
    font-size: 1.1rem;
}

/* Buttons */
.btn-ks-gold {
    background: var(--ks-gold);
    border-color: var(--ks-gold);
    color: var(--ks-green-dark);
    font-weight: 600;
}
.btn-ks-gold:hover {
    background: var(--ks-gold-dark);
    border-color: var(--ks-gold-dark);
    color: #fff;
}
.btn-ks-green {
    background: var(--ks-green);
    border-color: var(--ks-green);
    color: #fff;
    font-weight: 600;
}
.btn-ks-green:hover {
    background: var(--ks-green-dark);
    border-color: var(--ks-green-dark);
    color: #fff;
}
.btn-ks-outline {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
}
.btn-ks-outline:hover {
    background: #fff;
    color: var(--ks-green-dark);
}

/* Hero */
.ks-hero {
    position: relative;
    min-height: 78vh;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
                url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}
.ks-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
}
.ks-hero .lead { font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* Section headings */
.ks-section-title {
    font-weight: 800;
    color: var(--ks-green-dark);
    margin-bottom: .5rem;
}
.ks-section-sub {
    color: #6b6b6b;
    margin-bottom: 2rem;
}

/* Category cards */
.ks-cat-card {
    background: var(--ks-cream);
    border: 1px solid #e8e4d8;
    border-radius: 14px;
    padding: 1.6rem 1rem;
    text-align: center;
    transition: all .25s;
    text-decoration: none;
    color: var(--ks-text);
    display: block;
    height: 100%;
}
.ks-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--ks-green);
    box-shadow: 0 10px 25px rgba(46,125,50,.12);
    color: var(--ks-green-dark);
}
.ks-cat-icon {
    font-size: 2.2rem;
    color: var(--ks-green);
    margin-bottom: .75rem;
}

/* Product card */
.ks-product-card {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: all .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ks-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.ks-product-img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
}
.ks-product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.ks-product-card:hover .ks-product-img-wrap img { transform: scale(1.06); }
.ks-product-cat {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ks-green);
    font-weight: 700;
}

/* Feature/why cards */
.ks-why-card {
    padding: 1.75rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    height: 100%;
    transition: all .25s;
}
.ks-why-card:hover { border-color: var(--ks-gold); box-shadow: 0 10px 25px rgba(240,180,41,.12); }
.ks-why-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ks-green-light);
    color: #fff;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* CTA */
.ks-cta {
    background: linear-gradient(120deg, var(--ks-green-dark), var(--ks-green));
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
}

/* Footer */
.ks-footer {
    background: #142b16;
}
.ks-footer-link {
    color: #b7b7b7;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
    transition: color .2s;
}
.ks-footer-link:hover { color: var(--ks-gold); }

/* Filter pills */
.ks-filter-bar {
    background: var(--ks-cream);
    border-radius: 14px;
    padding: 1rem;
}
.ks-filter-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: var(--ks-text);
    border-radius: 25px;
    padding: .4rem 1.05rem;
    font-size: .9rem;
    font-weight: 600;
    margin: .2rem;
    transition: all .2s;
}
.ks-filter-btn:hover { border-color: var(--ks-green); color: var(--ks-green); }
.ks-filter-btn.active {
    background: var(--ks-green);
    color: #fff;
    border-color: var(--ks-green);
}

/* About page */
.ks-about-hero {
    background: linear-gradient(120deg, var(--ks-green-dark), var(--ks-green));
    color: #fff;
    padding: 5rem 0 3rem;
}
.ks-value-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
}

/* Contact */
.ks-contact-info-card {
    background: var(--ks-cream);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
}

/* Product detail */
.ks-product-detail-img {
    border-radius: 16px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: #f2f2f2;
}
.ks-price-tag {
    font-weight: 700;
    color: var(--ks-green-dark);
}

/* Misc */
.ks-badge-green { background: var(--ks-green); }
.text-ks-green { color: var(--ks-green) !important; }
.bg-ks-cream { background: var(--ks-cream); }

/* Admin overrides */
body.ks-admin {
    background: #f4f6f8;
    font-size: .95rem;
}
.ks-admin .ks-sidebar {
    background: #14321a;
    color: #fff;
    min-height: 100vh;
    width: 240px;
    position: fixed;
    top: 0; left: 0;
    padding: 1rem 0;
    z-index: 1000;
    transition: transform .25s ease;
}
.ks-admin .ks-sidebar .nav-link {
    color: #cdd6cd;
    padding: .6rem 1.25rem;
    border-left: 3px solid transparent;
    font-weight: 500;
}
.ks-admin .ks-sidebar .nav-link:hover,
.ks-admin .ks-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-left-color: var(--ks-gold);
}
.ks-admin .ks-sidebar .ks-sidebar-brand {
    padding: .75rem 1.25rem 1.25rem;
    font-weight: 700;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: .75rem;
}
.ks-admin .ks-content {
    margin-left: 240px;
    min-height: 100vh;
}
.ks-admin .ks-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .65rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 900;
}
.ks-stat-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ececec;
    padding: 1.25rem;
    height: 100%;
}
.ks-stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}
.ks-stat-num { font-size: 1.85rem; font-weight: 800; line-height: 1; }

.ks-thumb {
    width: 46px; height: 46px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

/* Mobile sidebar behaviour */
@media (max-width: 991.98px) {
    .ks-admin .ks-sidebar {
        transform: translateX(-100%);
    }
    .ks-admin .ks-sidebar.show {
        transform: translateX(0);
    }
    .ks-admin .ks-content {
        margin-left: 0;
    }
    .ks-hero { min-height: 60vh; }
    .ks-cta { padding: 2rem 1rem; }
}



/* WhatsApp buy button */
.ks-btn-whatsapp {
    background: #25d366;
    border: 1px solid #25d366;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all .2s;
}
.ks-btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
    transform: translateY(-1px);
}
.ks-btn-whatsapp i { font-size: 1.05em; }

/* Floating WhatsApp button (bottom-right, all pages) */
.ks-wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
    z-index: 1050;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
    animation: ksWaPulse 2.4s infinite;
}
.ks-wa-float:hover {
    background: #1ebe57;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, .6);
    animation-play-state: paused;
}
.ks-wa-float i { line-height: 1; }

@keyframes ksWaPulse {
    0%   { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile tweak: smaller and slightly closer to the corner */
@media (max-width: 575.98px) {
    .ks-wa-float {
        width: 52px; height: 52px;
        font-size: 1.5rem;
        right: 14px; bottom: 14px;
    }
}