/* =========================================================
   KIFiJO CLOTHING CENTER — HEADER
========================================================= */

:root {
    --k-red: #8F1B38;
    --k-red-dark: #6E142A;
    --k-yellow: #F8CA3D;
    --k-black: #1A1A1A;
    --k-white: #FFFFFF;
    --k-cream: #F8F5F0;
    --k-text: #1A1A1A;
    --k-text-muted: #6B6B6B;
    --k-border: #EAE6E1;
    --k-shadow: 0 1px 3px rgba(0,0,0,0.04);
}


/* =========================================================
   1. ANNOUNCEMENT BAR — MARQUEE
========================================================= */

.kifijo-announcement {
    background: var(--k-red);
    color: var(--k-white);
    height: 40px;
    overflow: hidden;
    position: relative;
}

.kifijo-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.kifijo-marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;

    animation: kifijo-marquee-scroll 45s linear infinite;

    will-change: transform;
}

.kifijo-announcement:hover .kifijo-marquee-track {
    animation-play-state: paused;
}

@keyframes kifijo-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.kifijo-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.kifijo-marquee-item i {
    color: var(--k-yellow);
    font-size: 14px;
}

.kifijo-marquee-sep {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

@media (max-width: 575px) {
    .kifijo-announcement {
        height: 34px;
    }

    .kifijo-marquee-track {
        gap: 18px;
        animation-duration: 35s;
    }

    .kifijo-marquee-item {
        font-size: 11.5px;
    }

    .kifijo-marquee-item i {
        font-size: 12px;
    }
}


/* =========================================================
   2. HEADER KUU
========================================================= */

.kifijo-header {
    background: var(--k-white);
    border-bottom: 1px solid var(--k-border);
    position: sticky;
    top: 0;
    z-index: 900;
}

.kifijo-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    min-height: 78px;
}


/* ---- Hamburger (mobile only) ---- */

.kifijo-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.kifijo-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--k-black);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.kifijo-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.kifijo-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.kifijo-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ---- Logo ---- */

.kifijo-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.kifijo-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.kifijo-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.kifijo-logo-text strong {
    color: var(--k-black);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.kifijo-logo-text small {
    color: var(--k-red);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* ---- Search bar (desktop) ---- */

.kifijo-search {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--k-cream);
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 3px 4px 3px 18px;
    transition: all 0.2s ease;
}

.kifijo-search:focus-within {
    background: var(--k-white);
    border-color: var(--k-red);
    box-shadow: 0 0 0 4px rgba(143,27,56,0.06);
}

.kifijo-search > i {
    color: var(--k-text-muted);
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.kifijo-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 13.5px;
    color: var(--k-text);
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.kifijo-search input::placeholder {
    color: var(--k-text-muted);
}

.kifijo-search-btn {
    background: var(--k-black);
    color: var(--k-white);
    border: none;
    padding: 8px 18px;
    border-radius: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kifijo-search-btn:hover {
    background: var(--k-red);
}


/* ---- Right actions (icons) ---- */

.kifijo-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.kifijo-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--k-black);
    font-size: 21px;
    transition: all 0.2s ease;
}

.kifijo-icon-btn:hover {
    background: var(--k-cream);
    color: var(--k-red);
}

.kifijo-icon-btn.mobile-search {
    display: none;
}

.kifijo-cart-count {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--k-red);
    color: var(--k-white);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.kifijo-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    color: var(--k-white);
    font-size: 22px;
    transition: all 0.2s ease;
}

.kifijo-whatsapp-icon:hover {
    background: #1EAE54;
    transform: scale(1.05);
}


/* ---- Mobile layout ---- */

@media (max-width: 991px) {

    .kifijo-header-inner {
        min-height: 64px;
        padding: 10px 0;
        gap: 12px;
    }

    .kifijo-hamburger {
        display: flex;
        order: -1;
    }

    .kifijo-logo img {
        max-height: 38px;
    }

    .kifijo-logo-text strong {
        font-size: 14px;
    }

    .kifijo-logo-text small {
        font-size: 9.5px;
        letter-spacing: 1px;
    }

    .kifijo-search {
        display: none;
    }

    .kifijo-icon-btn.mobile-search {
        display: inline-flex;
    }

    .kifijo-header-actions {
        margin-left: auto;
        gap: 2px;
    }

    .kifijo-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .kifijo-whatsapp-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {

    .kifijo-header-inner {
        min-height: 58px;
    }

    .kifijo-logo img {
        max-height: 34px;
    }

    .kifijo-logo-text strong {
        font-size: 13px;
    }

    .kifijo-logo-text small {
        font-size: 9px;
    }

    .kifijo-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .kifijo-whatsapp-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Ficha wishlist kwenye mobile ndogo */
    .kifijo-icon-btn.wishlist-btn {
        display: none;
    }
}


/* =========================================================
   3. NAVBAR — MAKUNDI (desktop pekee)
========================================================= */

.kifijo-navbar {
    background: var(--k-white);
    border-bottom: 1px solid var(--k-border);
    position: sticky;
    top: 78px;
    z-index: 899;
}

.kifijo-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kifijo-nav-list a {
    display: inline-block;
    padding: 16px 14px;
    color: var(--k-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.kifijo-nav-list a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 2px;
    background: var(--k-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.kifijo-nav-list a:hover,
.kifijo-nav-list a.active {
    color: var(--k-red);
}

.kifijo-nav-list a:hover::after,
.kifijo-nav-list a.active::after {
    transform: scaleX(1);
}

.kifijo-nav-highlight {
    color: var(--k-red) !important;
    font-weight: 700 !important;
}

.kifijo-nav-highlight::before {
    content: '🔥';
    margin-right: 4px;
    font-size: 12px;
}

@media (max-width: 991px) {
    .kifijo-navbar {
        display: none;
    }
}


/* =========================================================
   4. SIDE MENU — MOBILE (kutoka kushoto)
========================================================= */

.kifijo-side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.kifijo-side-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.kifijo-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--k-white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.kifijo-side-menu.is-open {
    transform: translateX(0);
}

.kifijo-side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--k-border);
}

.kifijo-side-menu-header .kifijo-logo img {
    max-height: 40px;
}

.kifijo-side-close {
    width: 40px;
    height: 40px;
    background: var(--k-cream);
    border: none;
    border-radius: 50%;
    color: var(--k-black);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.kifijo-side-close:hover {
    background: var(--k-red);
    color: var(--k-white);
}

.kifijo-side-nav {
    flex: 1;
    padding: 12px 0;
}

.kifijo-side-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: var(--k-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.kifijo-side-nav a:hover,
.kifijo-side-nav a.active {
    background: var(--k-cream);
    color: var(--k-red);
    border-left-color: var(--k-red);
}

.kifijo-side-nav a i {
    font-size: 19px;
    color: var(--k-red);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.kifijo-side-nav .kifijo-side-highlight {
    color: var(--k-red);
}

.kifijo-side-nav .kifijo-side-highlight i {
    color: var(--k-yellow);
}

.kifijo-side-footer {
    padding: 20px;
    border-top: 1px solid var(--k-border);
    background: var(--k-cream);
}

.kifijo-side-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: #25D366;
    color: var(--k-white);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.kifijo-side-whatsapp:hover {
    background: #1EAE54;
}

.kifijo-side-footer p {
    margin: 0;
    color: var(--k-text-muted);
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
}


/* =========================================================
   5. BODY — hakikisha sticky inafanya kazi
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--k-white);
    font-family: 'Roboto', sans-serif;
    color: var(--k-text);
    /* Hakikisha hakuna padding-top ya ajabu */
}