/* ═══════════════════════════════════════════════
   Fruitkha — Header / Nav
   Matches: views/partials/Header.ejs
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Reset for nav elements ── */
.fk-nav *,
.fk-nav *::before,
.fk-nav *::after {
    box-sizing: border-box;
}

/* ── Main Nav Bar ── */
.fk-nav {
    background: #0D1B2A;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .35);
    width: 100%;
}

.fk-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ── Logo ── */
.fk-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.fk-logo img {
    height: 42px;
    object-fit: contain;
}

/* ── Nav Links ── */
.fk-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.fk-links li {
    display: flex;
    align-items: center;
}

.fk-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    color: rgba(200, 214, 229, .80);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s, color .18s;
    white-space: nowrap;
}

.fk-links a:hover,
.fk-links a.fk-active {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.fk-links a i {
    font-size: 13px;
    opacity: .8;
}

/* ── Right Icon Group ── */
.fk-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ── Icon Button (Cart, Wishlist, Search) ── */
.fk-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .08);
    color: rgba(200, 214, 229, .90);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
    flex-shrink: 0;
}

.fk-icon-btn:hover {
    background: rgba(249, 115, 22, .20);
    color: #f97316;
    transform: translateY(-1px);
}

/* ── Badge (cart / wishlist count) ── */
.fk-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #f97316;
    color: #fff;
    font-size: .60rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #0D1B2A;
}

/* ── Profile Button ── */
.fk-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(249, 115, 22, .18);
    color: #f97316;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.fk-profile-btn:hover {
    background: rgba(249, 115, 22, .30);
    color: #fff;
}

.fk-profile-btn i {
    font-size: 16px;
}

/* ══════════════════════════════════════════════
   Breadcrumb Bar
   ══════════════════════════════════════════════ */
.fk-breadcrumb-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.fk-breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fk-bc-item {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .15s;
}

.fk-bc-item:hover {
    color: #f97316;
}

.fk-bc-current {
    color: #1e293b;
    font-weight: 600;
}

.fk-bc-sep {
    font-size: 9px;
    color: #cbd5e0;
}

/* ══════════════════════════════════════════════
   Coupon Toggle Button (floating)
   ══════════════════════════════════════════════ */
.fk-coupon-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(249, 115, 22, .45);
    transition: transform .2s, box-shadow .2s;
}

.fk-coupon-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, .55);
}

/* ══════════════════════════════════════════════
   Coupon Drawer (slide from right)
   ══════════════════════════════════════════════ */
.fk-coupon-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    box-shadow: -6px 0 40px rgba(0, 0, 0, .14);
    transition: right .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.fk-coupon-drawer.open {
    right: 0;
}

.fk-coupon-header {
    background: #0D1B2A;
    color: #fff;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.fk-coupon-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.fk-coupon-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .60);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.fk-coupon-close:hover {
    color: #fff;
}

.fk-coupon-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.fk-coupon-card {
    border: 1.5px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fafbfc;
    transition: border-color .2s, box-shadow .2s;
}

.fk-coupon-card:hover {
    border-color: #f97316;
    box-shadow: 0 3px 14px rgba(249, 115, 22, .12);
}

.fk-coupon-code {
    font-size: 15px;
    font-weight: 800;
    color: #0D1B2A;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.fk-coupon-desc {
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 6px;
}

.fk-coupon-min {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ══════════════════════════════════════════════
   Search Overlay (full-screen)
   ══════════════════════════════════════════════ */
.fk-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 22, .84);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 110px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}

.fk-search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.fk-search-box {
    width: min(680px, 92vw);
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .50);
    padding: 4px 4px 4px 18px;
}

.fk-search-box i {
    color: #f97316;
    font-size: 17px;
    flex-shrink: 0;
}

.fk-search-box input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1.05rem;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    background: transparent;
}

.fk-search-box button {
    padding: 12px 24px;
    background: #f97316;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.fk-search-box button:hover {
    background: #ea6c10;
}

.fk-search-close {
    margin-top: 22px;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: rgba(255, 255, 255, .70);
    font-size: 1.3rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.fk-search-close:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* Notification Drawer */
.fk-notify-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 390px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 1150;
    box-shadow: -6px 0 40px rgba(0, 0, 0, .14);
    transition: right .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.fk-notify-drawer.open {
    right: 0;
}

.fk-notify-header {
    background: #0D1B2A;
    color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.fk-notify-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.fk-notify-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .70);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.fk-notify-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.fk-notify-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 10px;
}

.fk-notify-item p {
    margin: 0;
    font-size: 13px;
    color: #334155;
}

.fk-notify-item.success {
    border-left-color: #16a34a;
}

.fk-notify-item.warning {
    border-left-color: #f59e0b;
}

.fk-notify-item.error,
.fk-notify-item.danger {
    border-left-color: #dc2626;
}

.fk-notify-empty {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    margin: 20px 0;
}

/* ── Overlay backdrop (for coupon drawer) ── */
.fk-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1050;
    display: none;
}

.fk-overlay.active {
    display: block;
}

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .fk-nav-inner {
        padding: 0 16px;
        height: 58px;
        gap: 16px;
    }

    .fk-links {
        display: none;
    }

    .fk-logo img {
        height: 36px;
    }

    .fk-coupon-toggle {
        bottom: 18px;
        right: 18px;
        padding: 9px 16px;
        font-size: 12px;
    }
}
