/* =====================================================================
   SaktiSeva — Flipkart-style design system
   Layered ON TOP of style.css. Brand colour stays SaktiSeva orange;
   the structure, density and rhythm follow Flipkart's marketplace UI.

   Load order in layouts/main.php:
       style.css   → base/legacy
       flipkart.css → this file (wins)
   ===================================================================== */

:root {
    /* Brand (unchanged SaktiSeva orange) */
    --fk-primary:        #e8590c;
    --fk-primary-dark:   #c94a0a;
    --fk-primary-light:  #ff8c42;
    --fk-primary-050:    #fff5f0;
    --fk-primary-100:    #ffe8dc;

    /* Flipkart's signature neutral canvas */
    --fk-bg:             #f1f3f6;
    --fk-card:           #ffffff;
    --fk-line:           #e0e0e0;
    --fk-line-soft:      #f0f0f0;

    /* Type */
    --fk-ink:            #212121;
    --fk-ink-2:          #444444;
    --fk-ink-3:          #878787;
    --fk-ink-4:          #9e9e9e;

    /* Semantic (Flipkart green for ratings/savings) */
    --fk-green:          #388e3c;
    --fk-green-dark:     #2b7a2f;
    --fk-red:            #ff6161;
    --fk-blue:           #2874f0;
    --fk-gold:           #ff9f00;

    /* Shape — Flipkart is squarish, not pill-shaped */
    --fk-r:              4px;
    --fk-r-lg:           8px;

    /* Elevation */
    --fk-sh:             0 1px 2px 0 rgba(0,0,0,.08);
    --fk-sh-md:          0 2px 8px 0 rgba(0,0,0,.10);
    --fk-sh-lg:          0 4px 16px 0 rgba(0,0,0,.14);
    --fk-sh-hover:       0 4px 18px 0 rgba(0,0,0,.16);

    --fk-header-h:       58px;
    --fk-maxw:           1280px;
}

/* ── Page canvas ─────────────────────────────────────────────────── */
body.fk {
    background: var(--fk-bg);
    color: var(--fk-ink);
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.fk a { text-decoration: none; color: inherit; }

.fk-wrap { max-width: var(--fk-maxw); margin: 0 auto; padding: 0 12px; }

/* =====================================================================
   1. HEADER  — sticky, brand + big search + actions
   ===================================================================== */
.fk-header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(135deg, var(--fk-primary) 0%, var(--fk-primary-light) 100%);
    box-shadow: 0 1px 4px rgba(0,0,0,.16);
}
.fk-header-in {
    max-width: var(--fk-maxw); margin: 0 auto;
    height: var(--fk-header-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 14px;
}
.fk-burger {
    display: none; background: none; border: 0; color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 2px;
}
.fk-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fk-brand img { height: 30px; width: auto; display: block; }
.fk-brand .fk-tag {
    display: block; font-size: 10px; font-style: italic;
    color: rgba(255,255,255,.9); line-height: 1; margin-top: 1px;
}
.fk-brand .fk-tag b { color: var(--fk-gold); font-weight: 700; }

/* Search — the white rounded box that defines the Flipkart header */
.fk-search { flex: 1; max-width: 620px; position: relative; }
.fk-search input {
    width: 100%; height: 38px;
    border: 0; border-radius: var(--fk-r);
    background: #fff; color: var(--fk-ink);
    font-size: 14px; padding: 0 40px 0 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    outline: none;
}
.fk-search input::placeholder { color: var(--fk-ink-4); }
.fk-search .fk-search-btn {
    position: absolute; right: 0; top: 0; height: 38px; width: 40px;
    display: grid; place-items: center;
    background: none; border: 0; cursor: pointer; color: var(--fk-primary);
}
.fk-search .fk-search-btn svg { width: 18px; height: 18px; }
.fk-search-results {
    position: absolute; top: 44px; left: 0; right: 0;
    background: #fff; border-radius: var(--fk-r);
    box-shadow: var(--fk-sh-lg); overflow: hidden;
    max-height: 340px; overflow-y: auto; display: none; z-index: 120;
}
/* .open is set by the landing page's own search; .active is what public/js/app.js uses. */
.fk-search-results.open,
.fk-search-results.active { display: block; }
.fk-search-results a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; font-size: 13px; color: var(--fk-ink);
    border-bottom: 1px solid var(--fk-line-soft);
}
.fk-search-results a:hover { background: var(--fk-bg); }

/* Header action links */
.fk-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.fk-actions a, .fk-actions button {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff; font-size: 13.5px; font-weight: 600;
    padding: 8px 12px; border-radius: var(--fk-r);
    background: none; border: 0; cursor: pointer;
    white-space: nowrap; transition: background .15s;
}
.fk-actions a:hover, .fk-actions button:hover { background: rgba(255,255,255,.16); }
.fk-actions .fk-btn-login {
    background: #fff; color: var(--fk-primary);
    padding: 6px 30px; font-weight: 700;
}
.fk-actions .fk-btn-login:hover { background: #fff; opacity: .92; }

/* Cart bubble */
.fk-cart { position: relative; }
.fk-cart .fk-badge {
    position: absolute; top: 2px; right: 4px;
    background: var(--fk-green); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; display: grid; place-items: center;
}

/* Header dropdown (account menu) */
.fk-drop { position: relative; }
.fk-drop-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border-radius: var(--fk-r);
    box-shadow: var(--fk-sh-lg); min-width: 210px;
    padding: 6px 0; display: none; z-index: 130;
}
.fk-drop.open .fk-drop-menu { display: block; }
.fk-drop-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; font-size: 13.5px; color: var(--fk-ink);
    font-weight: 500; border-bottom: 1px solid var(--fk-line-soft);
}
.fk-drop-menu a:last-child { border-bottom: 0; }
.fk-drop-menu a:hover { background: var(--fk-bg); color: var(--fk-primary); }

@media (max-width: 900px) {
    .fk-actions .fk-lbl { display: none; }
    .fk-actions a, .fk-actions button { padding: 8px; }
}
@media (max-width: 768px) {
    .fk-header-in { height: auto; flex-wrap: wrap; padding: 8px 12px 10px; gap: 10px; }
    .fk-burger { display: block; }
    .fk-brand { flex: 1; }
    .fk-search { flex: 0 0 100%; order: 3; max-width: none; }
    .fk-search input { height: 36px; font-size: 13px; }
}

/* =====================================================================
   2. CATEGORY RAIL — circular icons, Flipkart's top strip
   ===================================================================== */
.fk-catbar {
    background: #fff; box-shadow: var(--fk-sh);
    position: sticky; top: var(--fk-header-h); z-index: 90;
}
.fk-catbar-in {
    max-width: var(--fk-maxw); margin: 0 auto;
    display: flex; align-items: flex-start; gap: 6px;
    padding: 8px 14px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.fk-catbar-in::-webkit-scrollbar { display: none; }
.fk-cat {
    flex: 0 0 auto; width: 84px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 6px 2px; border-radius: var(--fk-r);
    transition: transform .18s ease;
}
.fk-cat:hover { transform: translateY(-2px); }
.fk-cat-ico {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 26px; overflow: hidden;
    background: var(--fk-primary-050);
    border: 1px solid var(--fk-line-soft);
}
.fk-cat-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fk-cat-name {
    font-size: 12px; font-weight: 600; color: var(--fk-ink);
    text-align: center; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.fk-cat:hover .fk-cat-name { color: var(--fk-primary); }

@media (max-width: 768px) {
    .fk-catbar { position: static; }
    .fk-catbar-in { padding: 10px 12px; gap: 2px; }
    .fk-cat { width: 72px; }
    .fk-cat-ico { width: 48px; height: 48px; font-size: 22px; }
    .fk-cat-name { font-size: 11px; }
}

/* =====================================================================
   3. BANDS — white content sections on grey canvas
   ===================================================================== */
.fk-band {
    background: #fff; box-shadow: var(--fk-sh);
    margin: 0 auto 12px; max-width: var(--fk-maxw);
    border-radius: 2px;
}
.fk-band-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 16px 20px 12px;
    border-bottom: 1px solid var(--fk-line-soft);
}
.fk-band-head.plain { border-bottom: 0; padding-bottom: 4px; }
.fk-band-title { font-size: 20px; font-weight: 600; color: var(--fk-ink); line-height: 1.2; }
.fk-band-sub { font-size: 12.5px; color: var(--fk-ink-3); margin-top: 3px; }
.fk-viewall {
    background: var(--fk-primary); color: #fff;
    font-size: 13px; font-weight: 600; letter-spacing: .3px;
    padding: 8px 20px; border-radius: var(--fk-r);
    white-space: nowrap; transition: background .15s;
}
.fk-viewall:hover { background: var(--fk-primary-dark); color: #fff; }
.fk-band-body { padding: 16px 20px 20px; }

@media (max-width: 768px) {
    .fk-band { margin-bottom: 8px; }
    .fk-band-head { padding: 14px 14px 10px; }
    .fk-band-title { font-size: 17px; }
    .fk-band-body { padding: 12px 14px 16px; }
    .fk-viewall { padding: 7px 14px; font-size: 12px; }
}

/* =====================================================================
   4. HERO CAROUSEL — full-bleed banner slider
   ===================================================================== */
.fk-hero { background: #fff; box-shadow: var(--fk-sh); margin-bottom: 12px; position: relative; }
.fk-hero-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none;
}
.fk-hero-track::-webkit-scrollbar { display: none; }
.fk-hero-slide { flex: 0 0 100%; scroll-snap-align: start; }
/* 8:3 matches ImageService::processBanner output (1600px wide), so uploaded
   banners are shown whole rather than cropped through their artwork. */
.fk-hero-slide img { width: 100%; height: auto; display: block; aspect-ratio: 8 / 3; object-fit: cover; }
.fk-hero-nav {
    position: absolute; top: 0; bottom: 0; width: 44px;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(255,255,255,.85); border: 0;
    color: var(--fk-ink); font-size: 22px; line-height: 1;
    box-shadow: var(--fk-sh-md); transition: opacity .15s;
}
.fk-hero-nav:hover { background: #fff; }
.fk-hero-nav.prev { left: 0; }
.fk-hero-nav.next { right: 0; }
.fk-hero-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.fk-hero-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.6); cursor: pointer; transition: all .2s;
}
.fk-hero-dots span.on { background: #fff; width: 20px; border-radius: 4px; }
@media (max-width: 768px) {
    .fk-hero-nav { display: none; }
}

/* =====================================================================
   5. PRODUCT / SERVICE CARD — the Flipkart tile
   ===================================================================== */
.fk-grid {
    display: grid; gap: 1px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    background: var(--fk-line-soft);
    border: 1px solid var(--fk-line-soft);
}
.fk-grid.gapped { gap: 12px; background: none; border: 0; }

.fk-pcard {
    background: #fff; padding: 16px 12px 18px;
    display: flex; flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease;
    position: relative;
}
.fk-pcard:hover { box-shadow: var(--fk-sh-hover); z-index: 2; }
.fk-pcard-img {
    width: 100%; aspect-ratio: 1; margin-bottom: 12px;
    display: grid; place-items: center; overflow: hidden;
    background: var(--fk-bg); border-radius: var(--fk-r);
    font-size: 46px;
}
.fk-pcard-img img {
    width: 100%; height: 100%; object-fit: contain;
    mix-blend-mode: multiply; transition: transform .25s ease;
}
.fk-pcard:hover .fk-pcard-img img { transform: scale(1.05); }
.fk-pcard-title {
    font-size: 14px; font-weight: 500; color: var(--fk-ink);
    line-height: 1.35; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 38px;
}
.fk-pcard:hover .fk-pcard-title { color: var(--fk-primary); }
.fk-pcard-meta { font-size: 12.5px; color: var(--fk-ink-3); margin-bottom: 7px; }

/* Rating chip — green pill with star, Flipkart's tell */
.fk-rate-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.fk-rate {
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--fk-green); color: #fff;
    font-size: 11.5px; font-weight: 700; line-height: 1;
    padding: 3px 6px; border-radius: 3px;
}
.fk-rate svg { width: 9px; height: 9px; fill: #fff; }
.fk-rate-count { font-size: 12px; color: var(--fk-ink-3); font-weight: 600; }

/* Price block — bold price, struck MRP, green % off */
.fk-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.fk-price { font-size: 17px; font-weight: 700; color: var(--fk-ink); }
.fk-mrp { font-size: 13px; color: var(--fk-ink-3); text-decoration: line-through; }
.fk-off { font-size: 13px; font-weight: 700; color: var(--fk-green); }
.fk-price-note { font-size: 11.5px; color: var(--fk-ink-3); margin-top: 3px; }

/* Corner ribbons */
.fk-ribbon {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    background: var(--fk-primary); color: #fff;
    font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
    padding: 3px 8px; border-radius: 3px; text-transform: uppercase;
}
.fk-ribbon.green { background: var(--fk-green); }
.fk-ribbon.gold  { background: var(--fk-gold); }

/* Wishlist heart */
.fk-heart {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: #fff; box-shadow: var(--fk-sh-md);
    border: 0; font-size: 15px; color: var(--fk-ink-4);
    opacity: 0; transition: opacity .18s, color .18s;
}
.fk-pcard:hover .fk-heart { opacity: 1; }
.fk-heart.on, .fk-heart:hover { color: var(--fk-red); opacity: 1; }

@media (max-width: 768px) {
    .fk-grid { grid-template-columns: repeat(2, 1fr); }
    .fk-pcard { padding: 12px 10px 14px; }
    .fk-pcard-img { font-size: 36px; margin-bottom: 10px; }
    .fk-pcard-title { font-size: 13px; min-height: 35px; }
    .fk-price { font-size: 15px; }
}

/* =====================================================================
   6. HORIZONTAL SCROLLER — "Deals of the Day" rail
   ===================================================================== */
.fk-rail { position: relative; }
.fk-rail-track {
    display: flex; gap: 0; overflow-x: auto;
    scroll-behavior: smooth; scroll-snap-type: x proximity;
    scrollbar-width: none; -ms-overflow-style: none;
}
.fk-rail-track::-webkit-scrollbar { display: none; }
.fk-rail-track > * { flex: 0 0 200px; scroll-snap-align: start; }
.fk-rail-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 68px; z-index: 4;
    background: #fff; border: 0; cursor: pointer;
    box-shadow: var(--fk-sh-lg); color: var(--fk-ink);
    font-size: 20px; line-height: 1; display: grid; place-items: center;
    border-radius: 3px;
}
.fk-rail-btn.prev { left: -6px; }
.fk-rail-btn.next { right: -6px; }
.fk-rail-btn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
    .fk-rail-btn { display: none; }
    .fk-rail-track > * { flex: 0 0 46%; }
}

/* =====================================================================
   7. LISTING PAGE — filter sidebar + results
   ===================================================================== */
.fk-listing {
    max-width: var(--fk-maxw); margin: 12px auto;
    display: grid; grid-template-columns: 250px 1fr; gap: 12px;
    align-items: start; padding: 0 12px;
}
/* Detail/form pages put the main column first and a summary rail second. */
.fk-listing.summary-right { grid-template-columns: 1fr 320px; }
.fk-filters {
    background: #fff; box-shadow: var(--fk-sh);
    position: sticky; top: calc(var(--fk-header-h) + 12px);
    max-height: calc(100vh - var(--fk-header-h) - 24px); overflow-y: auto;
}
.fk-filters-head {
    padding: 14px 16px; border-bottom: 1px solid var(--fk-line);
    display: flex; align-items: center; justify-content: space-between;
}
.fk-filters-head h3 { font-size: 15px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.fk-filters-head a { font-size: 12px; font-weight: 700; color: var(--fk-primary); }
.fk-fgroup { padding: 14px 16px; border-bottom: 1px solid var(--fk-line-soft); }
.fk-fgroup h4 {
    font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: var(--fk-ink-3); margin-bottom: 10px;
}
.fk-fopt {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 0; font-size: 13.5px; color: var(--fk-ink-2);
    cursor: pointer; user-select: none;
}
.fk-fopt:hover { color: var(--fk-primary); }
.fk-fopt input { accent-color: var(--fk-primary); width: 15px; height: 15px; cursor: pointer; }
.fk-fopt .fk-fcount { margin-left: auto; font-size: 12px; color: var(--fk-ink-4); }

.fk-results { background: #fff; box-shadow: var(--fk-sh); min-height: 300px; }
.fk-sortbar {
    display: flex; align-items: center; gap: 18px;
    padding: 12px 18px; border-bottom: 1px solid var(--fk-line);
    font-size: 13.5px; overflow-x: auto; scrollbar-width: none;
}
.fk-sortbar::-webkit-scrollbar { display: none; }
.fk-sortbar .lbl { font-weight: 700; color: var(--fk-ink); white-space: nowrap; }
.fk-sort {
    color: var(--fk-ink-2); font-weight: 500; white-space: nowrap;
    padding: 4px 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.fk-sort:hover { color: var(--fk-primary); }
.fk-sort.on { color: var(--fk-primary); font-weight: 700; border-bottom-color: var(--fk-primary); }
.fk-result-count { margin-left: auto; font-size: 12.5px; color: var(--fk-ink-3); white-space: nowrap; }

/* Breadcrumb */
.fk-crumb {
    max-width: var(--fk-maxw); margin: 0 auto;
    padding: 10px 20px; font-size: 12.5px; color: var(--fk-ink-3);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.fk-crumb a { color: var(--fk-ink-3); }
.fk-crumb a:hover { color: var(--fk-primary); }
.fk-crumb .sep { color: var(--fk-ink-4); }
.fk-crumb .cur { color: var(--fk-ink); font-weight: 600; }

/* Mobile: filters become a slide-up sheet */
.fk-filter-fab { display: none; }
@media (max-width: 900px) {
    .fk-listing,
    .fk-listing.summary-right { grid-template-columns: 1fr; }
    /* The summary rail must not stay pinned once it stacks under the form. */
    .fk-listing.summary-right > aside { position: static !important; }
    .fk-filters {
        position: fixed; inset: auto 0 0 0; top: auto;
        max-height: 78vh; z-index: 200; border-radius: 12px 12px 0 0;
        transform: translateY(100%); transition: transform .25s ease;
        box-shadow: 0 -6px 24px rgba(0,0,0,.22);
    }
    .fk-filters.open { transform: translateY(0); }
    .fk-filter-fab {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        position: fixed; left: 50%; transform: translateX(-50%);
        bottom: calc(var(--bottom-nav-height, 60px) + 14px); z-index: 150;
        background: var(--fk-ink); color: #fff; border: 0; cursor: pointer;
        font-size: 13.5px; font-weight: 600; padding: 11px 26px;
        border-radius: 24px; box-shadow: var(--fk-sh-lg);
    }
}

/* =====================================================================
   8. AUTH — Flipkart's two-panel login
   ===================================================================== */
.fk-auth {
    min-height: 100vh; display: grid; place-items: center;
    background: var(--fk-bg); padding: 24px 14px;
}
.fk-auth-card {
    width: 100%; max-width: 780px;
    display: grid; grid-template-columns: 300px 1fr;
    background: #fff; box-shadow: var(--fk-sh-lg);
    border-radius: var(--fk-r); overflow: hidden;
}
.fk-auth-side {
    background: linear-gradient(160deg, var(--fk-primary) 0%, var(--fk-primary-dark) 100%);
    color: #fff; padding: 40px 32px;
    display: flex; flex-direction: column;
}
.fk-auth-side h2 { font-size: 27px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
/* Way back to the site; on phones the auth page has no other navigation. */
.fk-auth-home {
    align-self: flex-start; display: inline-flex; align-items: center;
    min-height: 32px; margin: -6px 0 14px; padding: 0 2px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92);
}
.fk-auth-home:hover { color: #fff; text-decoration: underline; }
.fk-auth-side p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
.fk-auth-side ul { list-style: none; margin: 22px 0 0; padding: 0; }
.fk-auth-side li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13.5px; color: rgba(255,255,255,.92);
    margin-bottom: 12px; line-height: 1.4;
}
.fk-auth-side li span:first-child { flex-shrink: 0; }
.fk-auth-art { margin-top: auto; padding-top: 26px; text-align: center; font-size: 52px; opacity: .95; }
.fk-auth-main { padding: 34px 34px 28px; }
.fk-auth-main h1 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.fk-auth-main .fk-auth-hint { font-size: 13px; color: var(--fk-ink-3); margin-bottom: 22px; }

/* Floating-label field */
.fk-field { position: relative; margin-bottom: 24px; }
.fk-field input, .fk-field textarea, .fk-field select {
    width: 100%; border: 0; border-bottom: 1px solid var(--fk-line);
    background: transparent; font-size: 15px; color: var(--fk-ink);
    padding: 8px 0; outline: none; font-family: inherit;
    transition: border-color .18s;
}
.fk-field input:focus, .fk-field textarea:focus, .fk-field select:focus { border-bottom-color: var(--fk-primary); }
.fk-field label {
    position: absolute; left: 0; top: 8px; pointer-events: none;
    font-size: 15px; color: var(--fk-ink-4); transition: all .16s ease;
}
.fk-field input:focus + label,
.fk-field input:not(:placeholder-shown) + label,
.fk-field textarea:focus + label,
.fk-field textarea:not(:placeholder-shown) + label {
    top: -12px; font-size: 11.5px; color: var(--fk-primary); font-weight: 600;
}
.fk-field .fk-field-note { font-size: 11.5px; color: var(--fk-ink-4); margin-top: 6px; }

.fk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; cursor: pointer; font-family: inherit;
    background: var(--fk-primary); color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: .3px;
    padding: 13px 20px; border-radius: var(--fk-r);
    box-shadow: 0 2px 5px rgba(232,89,12,.28);
    transition: background .15s, box-shadow .15s, transform .12s;
}
.fk-btn:hover { background: var(--fk-primary-dark); box-shadow: 0 4px 10px rgba(232,89,12,.34); }
.fk-btn:active { transform: translateY(1px); }
.fk-btn:disabled { opacity: .6; cursor: not-allowed; }
.fk-btn.ghost {
    background: #fff; color: var(--fk-primary);
    box-shadow: var(--fk-sh-md); font-weight: 700;
}
.fk-btn.ghost:hover { background: var(--fk-primary-050); }
.fk-btn.dark { background: var(--fk-ink); box-shadow: none; }
.fk-btn.dark:hover { background: #000; }
.fk-btn.sm { width: auto; padding: 8px 18px; font-size: 13px; }

.fk-or {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--fk-ink-4);
}
.fk-or::before, .fk-or::after { content: ''; flex: 1; height: 1px; background: var(--fk-line); }

.fk-legal { font-size: 11.5px; color: var(--fk-ink-4); line-height: 1.5; margin-bottom: 18px; }
.fk-legal a { color: var(--fk-primary); font-weight: 600; }
.fk-auth-alt { text-align: center; margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--fk-primary); }

/* Bridge: the shared firebase-otp partial ships legacy .btn/.form-control
   markup. Restyle it in place so the OTP block matches the new auth panel
   without touching the partial's JS wiring. */
.fk-auth-main .fb-otp h3 { color: var(--fk-ink); font-size: 13px; }
.fk-auth-main .fb-otp .form-group { margin-bottom: 14px; }
.fk-auth-main .fb-otp .form-control {
    width: 100%; border: 0; border-bottom: 1px solid var(--fk-line);
    border-radius: 0; background: transparent;
    font-size: 15px; color: var(--fk-ink); font-family: inherit;
    padding: 8px 0; outline: none; box-shadow: none;
    transition: border-color .18s;
}
.fk-auth-main .fb-otp .form-control:focus { border-bottom-color: var(--fk-primary); box-shadow: none; }
.fk-auth-main .fb-otp .btn.btn-primary {
    width: 100%; border: 0; cursor: pointer; font-family: inherit;
    background: var(--fk-primary); color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: .3px;
    padding: 13px 20px; border-radius: var(--fk-r);
    box-shadow: 0 2px 5px rgba(232,89,12,.28);
    transition: background .15s, box-shadow .15s;
}
.fk-auth-main .fb-otp .btn.btn-primary:hover { background: var(--fk-primary-dark); }
.fk-auth-main .fb-otp .btn.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Role picker */
.fk-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 24px; }
.fk-role {
    text-align: center; padding: 13px 6px; cursor: pointer;
    border: 1.5px solid var(--fk-line); border-radius: var(--fk-r);
    background: #fff; transition: all .16s;
}
.fk-role:hover { border-color: var(--fk-primary-light); background: var(--fk-primary-050); }
.fk-role .ico { font-size: 23px; line-height: 1; }
.fk-role .nm { font-size: 12.5px; font-weight: 700; color: var(--fk-ink); margin-top: 5px; }
.fk-role.on {
    border-color: var(--fk-primary); background: var(--fk-primary-050);
    box-shadow: 0 0 0 3px rgba(232,89,12,.12);
}

@media (max-width: 720px) {
    .fk-auth { padding: 0; align-items: stretch; }
    .fk-auth-card { grid-template-columns: 1fr; max-width: 460px; box-shadow: none; border-radius: 0; }
    .fk-auth-side { padding: 26px 24px; }
    .fk-auth-side h2 { font-size: 22px; }
    .fk-auth-side ul, .fk-auth-art { display: none; }
    .fk-auth-main { padding: 26px 22px 30px; }
}

/* =====================================================================
   9. DASHBOARD widgets
   ===================================================================== */
.fk-dash { max-width: var(--fk-maxw); margin: 0 auto; padding: 12px; }
.fk-welcome {
    background: linear-gradient(135deg, var(--fk-primary) 0%, var(--fk-primary-light) 100%);
    color: #fff; padding: 22px 24px; border-radius: var(--fk-r);
    box-shadow: var(--fk-sh-md); margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    position: relative; overflow: hidden;
}
.fk-welcome::after {
    content: ''; position: absolute; right: -40px; top: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.fk-welcome .eyebrow { font-size: 12px; font-weight: 600; opacity: .9; }
.fk-welcome h1 { font-size: 23px; font-weight: 700; line-height: 1.15; margin: 2px 0 5px; }
.fk-welcome p { font-size: 13.5px; opacity: .92; }
.fk-welcome .fk-w-cta { position: relative; z-index: 2; flex-shrink: 0; }

.fk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.fk-stat {
    background: #fff; box-shadow: var(--fk-sh); border-radius: var(--fk-r);
    padding: 18px 18px; border-left: 3px solid var(--fk-primary);
    transition: box-shadow .18s, transform .18s;
}
.fk-stat:hover { box-shadow: var(--fk-sh-md); transform: translateY(-2px); }
.fk-stat.green  { border-left-color: var(--fk-green); }
.fk-stat.blue   { border-left-color: var(--fk-blue); }
.fk-stat.gold   { border-left-color: var(--fk-gold); }
.fk-stat .v { font-size: 25px; font-weight: 700; color: var(--fk-ink); line-height: 1.1; }
.fk-stat .l { font-size: 12.5px; color: var(--fk-ink-3); margin-top: 4px; font-weight: 500; }
.fk-stat .d { font-size: 11.5px; font-weight: 700; margin-top: 6px; }
.fk-stat .d.up { color: var(--fk-green); }
.fk-stat .d.down { color: var(--fk-red); }

.fk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.fk-tile {
    background: #fff; box-shadow: var(--fk-sh); border-radius: var(--fk-r);
    padding: 18px 14px; text-align: center;
    transition: box-shadow .18s, transform .18s;
}
.fk-tile:hover { box-shadow: var(--fk-sh-md); transform: translateY(-2px); }
.fk-tile .ico {
    width: 46px; height: 46px; margin: 0 auto 9px;
    border-radius: 50%; display: grid; place-items: center;
    font-size: 21px; background: var(--fk-primary-050);
}
.fk-tile .nm { font-size: 13px; font-weight: 600; color: var(--fk-ink); }

/* Order rows */
.fk-orow {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-bottom: 1px solid var(--fk-line-soft);
    transition: background .15s;
}
.fk-orow:last-child { border-bottom: 0; }
.fk-orow:hover { background: var(--fk-bg); }
.fk-orow-img {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: var(--fk-r); background: var(--fk-bg);
    display: grid; place-items: center; font-size: 24px; overflow: hidden;
}
.fk-orow-img img { width: 100%; height: 100%; object-fit: cover; }
.fk-orow-body { flex: 1; min-width: 0; }
.fk-orow-t { font-size: 14px; font-weight: 600; color: var(--fk-ink); margin-bottom: 3px; }
.fk-orow-m { font-size: 12.5px; color: var(--fk-ink-3); display: flex; gap: 12px; flex-wrap: wrap; }
.fk-orow-r { text-align: right; flex-shrink: 0; }

/* Status pills */
.fk-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 700; line-height: 1;
    padding: 5px 10px; border-radius: 12px; white-space: nowrap;
}
.fk-pill.ok   { background: #e8f5e9; color: var(--fk-green-dark); }
.fk-pill.warn { background: #fff4e5; color: #b26a00; }
.fk-pill.info { background: #e7f0fd; color: #1a5fc0; }
.fk-pill.bad  { background: #fdecea; color: #c62828; }
.fk-pill.mute { background: var(--fk-bg); color: var(--fk-ink-3); }

@media (max-width: 768px) {
    .fk-dash { padding: 10px; }
    .fk-welcome { flex-direction: column; align-items: flex-start; padding: 18px; }
    .fk-welcome h1 { font-size: 19px; }
    .fk-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .fk-stat { padding: 14px; }
    .fk-stat .v { font-size: 21px; }
    .fk-tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .fk-tile { padding: 12px 6px; }
    .fk-tile .ico { width: 38px; height: 38px; font-size: 17px; }
    .fk-tile .nm { font-size: 11px; }
    .fk-orow { padding: 12px 14px; gap: 10px; }
    .fk-orow-img { width: 46px; height: 46px; font-size: 20px; }
}

/* =====================================================================
   10. FOOTER — Flipkart's dark multi-column
   ===================================================================== */
.fk-footer { background: #172337; color: #fff; margin-top: 14px; }
.fk-footer-in {
    max-width: var(--fk-maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 26px; padding: 34px 24px 26px;
}
.fk-fcol h4 {
    font-size: 11.5px; font-weight: 500; letter-spacing: .5px;
    text-transform: uppercase; color: var(--fk-ink-4); margin-bottom: 14px;
}
.fk-fcol a, .fk-fcol p {
    display: block; font-size: 12.5px; color: #fff;
    margin-bottom: 9px; line-height: 1.5; transition: color .15s;
}
/* Taller hit area so stacked footer links are easy to tap on phones. */
.fk-fcol a { padding: 6px 0; margin-bottom: 2px; }
.fk-fcol a:hover { color: var(--fk-primary-light); }
.fk-footer-bar {
    border-top: 1px solid #454d5e;
    padding: 16px 24px; text-align: center;
    font-size: 12.5px; color: #d2d6dc;
}
@media (max-width: 768px) {
    .fk-footer-in { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 24px 16px 18px; }
}

/* =====================================================================
   11. Utilities & empty state
   ===================================================================== */
.fk-empty { text-align: center; padding: 52px 20px; }
.fk-empty .ico { font-size: 54px; margin-bottom: 14px; opacity: .55; }
.fk-empty h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--fk-ink); }
.fk-empty p { font-size: 13.5px; color: var(--fk-ink-3); max-width: 380px; margin: 0 auto 18px; line-height: 1.5; }

.fk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fk-chip {
    font-size: 12.5px; font-weight: 600; padding: 6px 13px;
    border-radius: 16px; background: #fff; color: var(--fk-ink-2);
    border: 1px solid var(--fk-line); cursor: pointer; transition: all .15s;
}
.fk-chip:hover { border-color: var(--fk-primary); color: var(--fk-primary); }
.fk-chip.on { background: var(--fk-primary-050); border-color: var(--fk-primary); color: var(--fk-primary); }

.fk-skel {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%; animation: fkShim 1.3s infinite;
}
@keyframes fkShim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fk-mt0 { margin-top: 0 !important; }
.fk-hide-mob { display: initial; }
.fk-show-mob { display: none; }
@media (max-width: 768px) {
    .fk-hide-mob { display: none !important; }
    .fk-show-mob { display: initial; }
}

/* Keep bottom-nav clearance on mobile */
@media (max-width: 768px) {
    body.fk { padding-bottom: 0; }
    .fk-footer { margin-bottom: var(--bottom-nav-height, 60px); }
}

/* =====================================================================
   12. PUBLIC HOME — warm, premium marketplace presentation
   ===================================================================== */
.fk-home {
    --fk-bg: #f7f5f2;
    --fk-card: #fffdfb;
    --fk-line: #e9e3dc;
    --fk-line-soft: #f3eee8;
    --fk-ink: #201a17;
    --fk-ink-2: #514741;
    --fk-ink-3: #7b7069;
    --fk-primary: #dd5717;
    --fk-primary-dark: #b83d0a;
    --fk-primary-light: #f28a45;
    --fk-primary-050: #fff5ed;
    --fk-primary-100: #fee4d2;
    --fk-green: #257a46;
    --fk-r: 10px;
    --fk-r-lg: 18px;
    --fk-sh: 0 8px 30px rgba(76, 48, 28, .06);
    --fk-sh-md: 0 12px 30px rgba(58, 36, 20, .12);
    --fk-sh-lg: 0 18px 48px rgba(58, 36, 20, .16);
    --fk-sh-hover: 0 18px 38px rgba(72, 42, 20, .14);
    --fk-header-h: 68px;
    --fk-maxw: 1360px;
    background:
        radial-gradient(circle at 0 18%, rgba(242, 138, 69, .08), transparent 26rem),
        var(--fk-bg);
}

.fk-home .fk-header {
    background: linear-gradient(105deg, #bb3f0d 0%, #db5618 48%, #ef8140 100%);
    box-shadow: 0 5px 22px rgba(113, 42, 10, .2);
}
.fk-home .fk-header-in { padding-inline: 20px; gap: 18px; }
.fk-home .fk-brand img { height: 36px; }
.fk-home .fk-brand .fk-tag {
    margin-top: 2px; font-size: 10.5px; font-style: normal;
    letter-spacing: .2px; color: rgba(255,255,255,.78);
}
.fk-home .fk-brand .fk-tag b { color: #ffe0a7; }
.fk-home .fk-search { max-width: 650px; }
.fk-home .fk-search input {
    height: 44px; padding: 0 48px 0 17px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 6px 22px rgba(86, 29, 6, .15);
}
.fk-home .fk-search .fk-search-btn { width: 46px; height: 44px; }
.fk-home .fk-search-results { top: 50px; border-radius: 14px; }
.fk-home .fk-actions { gap: 2px; }
.fk-home .fk-actions a,
.fk-home .fk-actions button { border-radius: 9px; }
.fk-home .fk-actions .fk-btn-login {
    padding: 8px 25px; border-radius: 10px;
    box-shadow: 0 4px 14px rgba(96, 29, 4, .12);
}

.fk-home .fk-catbar {
    background: rgba(255,253,251,.97);
    border-bottom: 1px solid rgba(99, 63, 39, .08);
    box-shadow: 0 5px 22px rgba(68, 42, 25, .05);
    backdrop-filter: blur(14px);
}
.fk-home .fk-catbar-in { gap: 8px; padding: 10px 18px 11px; }
.fk-home .fk-cat {
    width: 82px; gap: 6px; padding: 4px 3px 2px;
    border-radius: 12px; transition: transform .2s ease, background .2s ease;
}
.fk-home .fk-cat:hover { background: var(--fk-primary-050); transform: translateY(-2px); }
.fk-home .fk-cat-ico {
    width: 54px; height: 54px; padding: 4px;
    background: linear-gradient(145deg, #fff9f3, #f7eee5);
    border: 1px solid #eee3d8;
    box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(75,45,24,.06);
}
.fk-home .fk-cat-ico img { object-fit: contain; }
.fk-home .fk-cat-name { font-size: 11.5px; font-weight: 650; }

.fk-home .fk-band {
    max-width: var(--fk-maxw); margin-bottom: 18px;
    border: 1px solid rgba(114, 75, 49, .08);
    border-radius: 18px; box-shadow: var(--fk-sh); overflow: hidden;
}
.fk-home .fk-band-head { padding: 24px 26px 17px; border-bottom: 0; }
.fk-home .fk-band-head.plain { padding-bottom: 7px; }
.fk-home .fk-band-title {
    font-size: clamp(21px, 2vw, 27px); font-weight: 760;
    letter-spacing: -.45px; line-height: 1.1;
}
.fk-home .fk-band-sub { margin-top: 6px; font-size: 13.5px; }
.fk-home .fk-viewall {
    padding: 9px 16px; border: 1px solid var(--fk-primary-100);
    border-radius: 999px; background: var(--fk-primary-050); color: var(--fk-primary-dark);
    font-size: 11px; font-weight: 800; letter-spacing: .7px;
}
.fk-home .fk-viewall:hover { background: var(--fk-primary); color: #fff; }

/* Campaign hero: generated photography with accessible, live HTML copy. */
.fk-home .fk-hero {
    max-width: var(--fk-maxw); margin: 16px auto 18px;
    border: 1px solid rgba(101, 60, 31, .09); border-radius: 24px;
    overflow: hidden; background: #f3d4b9;
    box-shadow: 0 18px 50px rgba(84, 47, 21, .14);
}
.fk-home .fk-hero-track { overscroll-behavior-x: contain; }
.fk-home .fk-hero-slide {
    position: relative; flex: 0 0 100%; min-width: 0;
    aspect-ratio: 8 / 3; scroll-snap-align: start; overflow: hidden;
}
.fk-home .fk-hero-media {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; object-fit: cover; object-position: center;
}
.fk-home .fk-hero-wash {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(255,251,246,.98) 0%,
        rgba(255,249,241,.94) 28%,
        rgba(255,249,241,.70) 43%,
        rgba(255,249,241,.08) 65%,
        rgba(255,249,241,0) 100%);
}
.fk-home .fk-hero-copy {
    position: relative; z-index: 2; height: 100%; width: min(50%, 630px);
    padding: clamp(34px, 4.3vw, 68px) clamp(28px, 5vw, 76px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.fk-home .fk-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 15px; color: var(--fk-primary-dark);
    font-size: 12px; font-weight: 800; letter-spacing: 1.15px; text-transform: uppercase;
}
.fk-home .fk-hero-eyebrow i {
    width: 22px; height: 2px; border-radius: 2px; background: var(--fk-primary);
}
.fk-home .fk-hero-copy h1,
.fk-home .fk-hero-copy h2 {
    max-width: 570px; margin: 0 0 14px;
    color: #2a1c15; font-size: clamp(31px, 4vw, 58px);
    line-height: .99; letter-spacing: -.9px; word-spacing: 2px; font-weight: 800;
}
.fk-home .fk-hero-copy p {
    max-width: 525px; margin: 0 0 22px; color: #605149;
    font-size: clamp(13px, 1.25vw, 16px); line-height: 1.62;
}
.fk-home .fk-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fk-home .fk-hero-primary,
.fk-home .fk-hero-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 0 19px; border-radius: 11px;
    font-size: 13px; font-weight: 750; transition: .2s ease;
}
.fk-home .fk-hero-primary {
    color: #fff; background: var(--fk-primary);
    box-shadow: 0 9px 24px rgba(205, 72, 13, .25);
}
.fk-home .fk-hero-primary:hover { color: #fff; background: var(--fk-primary-dark); transform: translateY(-2px); }
.fk-home .fk-hero-primary span { font-size: 17px; transition: transform .2s ease; }
.fk-home .fk-hero-primary:hover span { transform: translateX(3px); }
.fk-home .fk-hero-secondary { color: #493931; background: rgba(255,255,255,.72); border: 1px solid #ded0c5; }
.fk-home .fk-hero-secondary:hover { background: #fff; border-color: #c9b4a4; }
.fk-home .fk-hero-proof {
    display: flex; gap: 17px; flex-wrap: wrap; margin-top: 22px;
    color: #65574e; font-size: 11.5px; font-weight: 650;
}
.fk-home .fk-hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.fk-home .fk-hero-proof b {
    width: 17px; height: 17px; display: grid; place-items: center;
    border-radius: 50%; color: #fff; background: var(--fk-green); font-size: 10px;
}
.fk-home .fk-hero-nav {
    top: 50%; bottom: auto; width: 42px; height: 42px;
    border: 1px solid rgba(89,54,31,.1); border-radius: 50%;
    background: rgba(255,255,255,.86); color: #4e3a2f;
    box-shadow: 0 8px 24px rgba(55,33,18,.14);
    transform: translateY(-50%); opacity: 0; transition: opacity .2s, background .2s;
}
.fk-home .fk-hero:hover .fk-hero-nav { opacity: 1; }
.fk-home .fk-hero-nav.prev { left: 14px; }
.fk-home .fk-hero-nav.next { right: 14px; }
.fk-home .fk-hero-dots { bottom: 16px; gap: 7px; z-index: 4; }
.fk-home .fk-hero-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(61,39,27,.26); cursor: pointer; transition: all .2s;
}
.fk-home .fk-hero-dots button.on { width: 28px; background: var(--fk-primary); }
.fk-home .fk-hero-slide-custom .fk-hero-media { position: static; aspect-ratio: 8 / 3; }

/* Express-delivery strip. */
.fk-quick-wrap { display: block; max-width: var(--fk-maxw); margin: 0 auto; }
.fk-home .fk-quick-card {
    display: flex; align-items: center; gap: 17px; padding: 17px 22px;
    color: #fff; background:
        radial-gradient(circle at 86% 20%, rgba(255,255,255,.16), transparent 17rem),
        linear-gradient(112deg, #115f37 0%, #1a7a46 62%, #298b54 100%);
    border: 0; box-shadow: 0 12px 30px rgba(16, 90, 51, .15);
}
.fk-quick-icon {
    width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
    border-radius: 13px; color: #1b5538; background: #f7d772; font-size: 23px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.fk-quick-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fk-quick-copy strong { font-size: 16px; line-height: 1.3; }
.fk-quick-copy small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 12.5px; }
.fk-quick-cta {
    display: inline-flex; gap: 8px; align-items: center; flex: 0 0 auto;
    padding: 10px 15px; border-radius: 10px; background: #fff; color: #185c38;
    font-size: 12.5px; font-weight: 800;
}

/* Marketplace rails and cards. */
.fk-home .fk-showcase-rail { padding: 5px 24px 25px; }
.fk-home .fk-rail-track { gap: 13px; padding: 4px 2px 8px; }
.fk-home .fk-rail-track > * { flex-basis: 218px; }
.fk-home .fk-pcard {
    min-height: 295px; padding: 11px 11px 16px;
    border: 1px solid #eee7e0; border-radius: 15px;
    box-shadow: 0 4px 14px rgba(73,43,24,.035);
}
.fk-home .fk-pcard:hover {
    border-color: #ead2c1; box-shadow: var(--fk-sh-hover); transform: translateY(-5px);
}
.fk-home .fk-pcard-img {
    aspect-ratio: 4 / 3; margin-bottom: 14px;
    border-radius: 12px; background:
        radial-gradient(circle at 50% 42%, #fff 0, #fff9f3 38%, #f6ece3 100%);
}
.fk-home .fk-pcard-service .fk-pcard-img {
    background: radial-gradient(circle at 50% 42%, #fff 0, #f8f5ff 40%, #eeeaf7 100%);
}
.fk-home .fk-pcard-img img { width: 116px !important; height: 116px !important; mix-blend-mode: normal; }
.fk-home .fk-pcard-img.has-photo { padding: 0; background: #efe7df; }
.fk-home .fk-pcard-img.has-photo img.fk-card-photo {
    width: 100% !important; height: 100% !important; object-fit: cover;
    transform: scale(1.01); filter: saturate(.94) contrast(1.02);
}
.fk-home .fk-pcard:hover .fk-pcard-img img { transform: scale(1.08) rotate(-1deg); }
.fk-home .fk-pcard:hover .fk-pcard-img.has-photo img.fk-card-photo { transform: scale(1.06); }
.fk-home .fk-pcard-title { min-height: 0; margin: 0 4px 6px; font-size: 14.5px; font-weight: 740; }
.fk-home .fk-pcard-meta { margin: 0 4px 12px; color: var(--fk-ink-3); font-size: 11.5px; line-height: 1.45; }
.fk-home .fk-price-row { margin-inline: 4px; }
.fk-home .fk-off { display: inline-flex; align-items: center; color: var(--fk-primary-dark); font-size: 12px; }
.fk-home .fk-pcard-service .fk-off { color: #6040a3; }
.fk-home .fk-rail-btn {
    width: 38px; height: 58px; border: 1px solid #eee2d7; border-radius: 12px;
    color: var(--fk-primary-dark); box-shadow: 0 8px 25px rgba(75,43,22,.14);
}
.fk-home .fk-rail-btn.prev { left: 5px; }
.fk-home .fk-rail-btn.next { right: 5px; }

/* Trust, process and role cards. */
.fk-home .fk-trust-band { background: #29211d; border: 0; }
.fk-home .fk-trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 22px 18px;
}
.fk-trust-item { display: flex; align-items: flex-start; gap: 12px; padding: 3px 20px; }
.fk-trust-item + .fk-trust-item { border-left: 1px solid rgba(255,255,255,.11); }
.fk-trust-icon {
    width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto;
    border-radius: 11px; background: rgba(255,255,255,.09); font-size: 19px;
}
.fk-trust-copy { min-width: 0; }
.fk-trust-copy strong { display: block; color: #fff; font-size: 13.5px; }
.fk-trust-copy small { display: block; margin-top: 3px; color: rgba(255,255,255,.6); font-size: 11.5px; line-height: 1.4; }

/* Local network band: live counts and the cities that have a JSK centre. */
.fk-home .fk-reach {
    border: 0; background:
        radial-gradient(circle at 10% 0%, rgba(255,214,176,.6), transparent 22rem),
        linear-gradient(135deg, #fff8f1 0%, #ffeee0 100%);
}
.fk-reach-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 38px 42px; }
.fk-reach-kicker { display: block; margin-bottom: 10px; color: var(--fk-primary-dark); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.fk-reach-copy h2 { margin: 0; color: var(--fk-ink); font-size: clamp(22px, 2.4vw, 32px); font-weight: 780; line-height: 1.15; letter-spacing: -.6px; }
.fk-reach-copy p { max-width: 470px; margin: 12px 0 0; color: var(--fk-ink-2); font-size: 13.5px; line-height: 1.6; }
.fk-reach-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fk-reach-city {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(157,51,12,.14); background: rgba(255,255,255,.8); color: var(--fk-ink); font-size: 12px; font-weight: 700;
}
.fk-reach-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fk-reach-stat {
    display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: 16px;
    border: 1px solid rgba(157,51,12,.1); background: #fff; box-shadow: 0 10px 24px rgba(125,55,15,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fk-reach-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(125,55,15,.12); }
.fk-reach-ico { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 10px; background: var(--fk-primary-050); font-size: 17px; }
.fk-reach-stat b { color: var(--fk-primary-dark); font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.fk-reach-stat > span:last-child { margin-top: 6px; color: var(--fk-ink-3); font-size: 12.5px; font-weight: 600; }
.fk-home .fk-cta-band {
    color: #fff; border: 0; background:
        radial-gradient(circle at 80% -20%, rgba(255,211,174,.25), transparent 25rem),
        linear-gradient(112deg, #9d330c 0%, #d84d13 55%, #ed7937 100%);
    box-shadow: 0 18px 42px rgba(154, 48, 8, .2);
}
.fk-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px 42px; }
.fk-cta-kicker { display: block; margin-bottom: 8px; color: #ffd8b8; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.fk-cta-inner h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.8px; }
.fk-cta-inner p { margin: 8px 0 0; color: rgba(255,255,255,.75); font-size: 13px; }
.fk-cta-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.fk-home .fk-cta-actions .fk-btn { width: auto; padding: 13px 21px; border-radius: 11px; white-space: nowrap; }
.fk-cta-browse { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-size: 12.5px; font-weight: 750; white-space: nowrap; }

.fk-home .fk-footer { margin-top: 26px; background: #241e1b; }
.fk-home .fk-footer-in { padding-top: 42px; }
.fk-home .fk-fcol h4 { color: #c0aaa0; }
.fk-home .fk-footer-bar { border-color: rgba(255,255,255,.1); }

@media (max-width: 1100px) {
    .fk-home .fk-hero-copy { width: 56%; }
    .fk-home .fk-hero-proof span:last-child { display: none; }
    .fk-home .fk-trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .fk-trust-item:nth-child(3) { border-left: 0; }
    .fk-reach-inner { gap: 24px; padding: 32px 28px; }
}

@media (max-width: 768px) {
    .fk-home { --fk-header-h: 112px; }
    .fk-home .fk-header-in { padding: 9px 12px 11px; gap: 9px; }
    .fk-home .fk-brand img { height: 31px; }
    .fk-home .fk-search input { height: 40px; border-radius: 10px; }
    .fk-home .fk-search .fk-search-btn { height: 40px; }
    .fk-home .fk-catbar-in { padding: 9px 10px 10px; gap: 3px; }
    .fk-home .fk-cat { width: 69px; }
    .fk-home .fk-cat-ico { width: 48px; height: 48px; }
    .fk-home .fk-cat-name { font-size: 10.5px; }
    .fk-home .fk-band { margin: 0 9px 12px; border-radius: 15px; }
    .fk-home .fk-band-head { padding: 19px 17px 13px; }
    .fk-home .fk-band-title { font-size: 20px; }
    .fk-home .fk-band-sub { font-size: 12px; }
    .fk-home .fk-hero {
        margin: 10px 9px 12px; border-radius: 17px;
        box-shadow: 0 12px 30px rgba(84,47,21,.13);
    }
    .fk-home .fk-hero-slide { aspect-ratio: auto; min-height: 510px; }
    .fk-home .fk-hero-media { object-position: 68% center; }
    .fk-home .fk-hero-slide:first-child .fk-hero-media { object-position: 82% center; }
    .fk-home .fk-hero-wash {
        background: linear-gradient(180deg,
            rgba(255,250,244,.35) 0%,
            rgba(255,249,242,.55) 31%,
            rgba(255,249,242,.97) 61%,
            rgba(255,249,242,1) 100%);
    }
    .fk-home .fk-hero-copy {
        justify-content: flex-end; width: 100%; padding: 210px 20px 42px;
    }
    .fk-home .fk-hero-eyebrow { margin-bottom: 10px; font-size: 10px; }
    .fk-home .fk-hero-copy h1,
    .fk-home .fk-hero-copy h2 { max-width: 420px; margin-bottom: 10px; font-size: clamp(31px, 9vw, 42px); letter-spacing: -.6px; }
    .fk-home .fk-hero-copy p { max-width: 430px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.52; }
    .fk-home .fk-hero-primary,
    .fk-home .fk-hero-secondary { min-height: 41px; padding-inline: 15px; font-size: 12px; }
    .fk-home .fk-hero-proof { gap: 12px; margin-top: 16px; font-size: 10.5px; }
    .fk-home .fk-hero-proof span:last-child { display: none; }
    .fk-home .fk-hero-dots { bottom: 17px; }
    .fk-home .fk-hero-slide-custom { min-height: 0; }
    .fk-home .fk-hero-slide-custom .fk-hero-media { position: static; aspect-ratio: 8 / 3; }
    .fk-home .fk-quick-card { margin-inline: 9px; padding: 14px; gap: 12px; }
    .fk-quick-icon { width: 39px; height: 39px; border-radius: 11px; font-size: 20px; }
    .fk-quick-copy strong { font-size: 13px; }
    .fk-quick-copy small { display: none; }
    .fk-quick-cta { padding: 8px 10px; font-size: 11px; }
    .fk-home .fk-showcase-rail { padding: 3px 14px 18px; }
    .fk-home .fk-rail-track { gap: 10px; }
    .fk-home .fk-rail-track > * { flex-basis: 47%; }
    .fk-home .fk-pcard { min-height: 244px; padding: 8px 8px 13px; }
    .fk-home .fk-pcard-img { aspect-ratio: 1; margin-bottom: 11px; }
    .fk-home .fk-pcard-img img { width: 86px !important; height: 86px !important; }
    .fk-home .fk-pcard-title { margin-inline: 2px; font-size: 12.5px; }
    .fk-home .fk-pcard-meta { margin-inline: 2px; font-size: 10.5px; }
    .fk-home .fk-price-row { margin-inline: 2px; }
    .fk-home .fk-trust-grid { grid-template-columns: 1fr; gap: 0; padding: 8px 15px; }
    .fk-trust-item { padding: 14px 4px; }
    .fk-trust-item + .fk-trust-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
    .fk-reach-inner { grid-template-columns: 1fr; gap: 22px; padding: 26px 18px; }
    .fk-reach-stat { padding: 15px 14px 13px; }
    .fk-cta-inner { flex-direction: column; align-items: flex-start; padding: 29px 22px; }
    .fk-cta-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 13px; }
    .fk-home .fk-cta-actions .fk-btn { width: 100%; }
    .fk-cta-browse { justify-content: center; }
}

@media (max-width: 420px) {
    .fk-home .fk-hero-slide { min-height: 535px; }
    .fk-home .fk-hero-copy { padding-inline: 17px; }
    .fk-home .fk-hero-actions { width: 100%; }
    .fk-home .fk-hero-primary,
    .fk-home .fk-hero-secondary { flex: 1 1 auto; }
    .fk-home .fk-hero-proof { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .fk-home *, .fk-home *::before, .fk-home *::after {
        scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important;
    }
}

/* Space between the sticky header and page content on logged-in pages.
   Dashboards and breadcrumb pages bring their own top spacing, so they don't double up. */
body.fk .main-content > .content { padding-top: 18px; }
body.fk .main-content > .content > .fk-dash:first-child,
body.fk .main-content > .content > .fk-crumb:first-child { padding-top: 0; }
body.fk .main-content > .alert { margin-top: 14px; }
@media (max-width: 768px) {
    body.fk .main-content > .content { padding-top: 12px; }
}

/* The content column must be allowed to shrink; otherwise a wide table widens the whole
   page (sidebar pushed off-screen) instead of scrolling inside its .table-wrapper. */
body.fk .main-content { min-width: 0; }

/* Admin category cards carry text and buttons, so they need real width
   (the storefront .category-grid is an icon-only 3–4 column grid). */
body.fk .card-body > .category-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; }
body.fk .card-body > .category-grid .category-card { min-width: 0; }
body.fk .card-body > .category-grid .category-card > div { max-width: 100%; }
body.fk .card-body > .category-grid .category-card > div:last-child { flex-wrap: wrap; justify-content: center; }

/* Card headers with filter buttons (Requests, Orders, Users…) wrap instead of running off small screens. */
body.fk .card-header { flex-wrap: wrap; gap: 10px; }
body.fk .card-header > .d-flex { flex-wrap: wrap; }

