/* =====================================================================
   M8 — "marketplace" layout layer (Flipkart-style structure, M8 brand)
   Loaded AFTER style.css. Delete this file + its <link> in base.html to
   roll back to the previous look.
   ===================================================================== */

:root {
  --fk-bg: #f1f2f4;
  --fk-ink: #212121;
  --fk-muted: #717478;
  --fk-line: #e6e7eb;
  --fk-green: #198754;
  --fk-gold: #ffc23d;
  --fk-pink: var(--primary, #ff3f6c);
  --fk-pink-dark: var(--primary-dark, #d4305a);
  --fk-radius: 12px;
  --fk-head-h: 72px;
  --fk-max: 1320px;
}

body { font-family: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--fk-ink); }
body.fk-page { background: var(--fk-bg); }
.fk-wrap { max-width: var(--fk-max); margin: 0 auto 12px; padding: 0 12px; }
.fk-card { background: #fff; border-radius: var(--fk-radius); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.fk-green { color: var(--fk-green); font-weight: 700; }
.fk-only-mobile { display: none !important; }

/* ---------- Header ---------- */
.fk-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--fk-line), 0 2px 8px rgba(0,0,0,.04);
}
.fk-header.is-scrolled { box-shadow: 0 2px 14px rgba(16,24,40,.12); }
.fk-head-row {
  max-width: var(--fk-max); margin: 0 auto;
  height: var(--fk-head-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 16px;
}
.fk-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fk-logo-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.fk-logo-text { display: flex; flex-direction: column; line-height: 1; }
.fk-logo-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--fk-ink); }
.fk-logo-sub { font-size: 11px; font-weight: 600; color: var(--fk-pink); margin-top: 3px; letter-spacing: .3px; white-space: nowrap; }
.fk-logo-sub i { font-size: 7px; color: var(--fk-gold); vertical-align: 2px; }

/* Search */
.fk-search.nav-search { flex: 1; max-width: 760px; position: relative; margin: 0; }
.fk-search form {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 16px;
  background: #f0f2f7; border: 1.5px solid transparent; border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.fk-search form:focus-within { background: #fff; border-color: var(--fk-pink); box-shadow: 0 0 0 3px rgba(255,63,108,.12); }
.fk-search i { color: #7d8191; font-size: 16px; }
.fk-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 500 15px/1 inherit; color: var(--fk-ink); padding: 0; height: 100%;
}
.fk-search input::placeholder { color: #8b8f9c; font-weight: 400; }
.fk-search input::-webkit-search-cancel-button { cursor: pointer; }
.fk-search .search-suggestions { top: calc(100% + 6px); border-radius: 10px; margin: 0; }

/* Actions */
.fk-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.fk-action {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 10px;
  font: 600 15px/1 inherit; color: var(--fk-ink);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.fk-action:hover { background: #f4f5f8; color: var(--fk-ink); }
.fk-action > i:first-child { font-size: 19px; }
.fk-caret { font-size: 10px; transition: transform .2s; color: #6b7080; }
.fk-dd:hover .fk-caret, .fk-dd:focus-within .fk-caret { transform: rotate(180deg); }
.fk-cart-icon { position: relative; display: inline-flex; font-size: 19px; }
.fk-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--fk-pink); color: #fff; border: 2px solid #fff;
  font-size: 10px; font-weight: 700; line-height: 14px; text-align: center;
}

/* Dropdowns */
.fk-dd { position: relative; }
.fk-dd-menu {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translate(-50%, 6px);
  min-width: 240px; padding: 6px 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.04);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 1001;
}
.fk-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.fk-dd:hover > .fk-dd-menu, .fk-dd:focus-within > .fk-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fk-dd-menu.fk-dd-right { left: auto; right: 0; transform: translateY(6px); }
.fk-dd:hover > .fk-dd-menu.fk-dd-right, .fk-dd:focus-within > .fk-dd-menu.fk-dd-right { transform: none; }
.fk-dd-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 18px; font-size: 14px; color: var(--fk-ink); }
.fk-dd-menu a:hover { background: #f6f7f9; color: var(--fk-ink); }
.fk-dd-menu a i { width: 18px; text-align: center; color: #6b7080; }
.fk-dd-menu hr { border: 0; border-top: 1px solid var(--fk-line); margin: 6px 0; }
.fk-dd-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 12px; border-bottom: 1px solid var(--fk-line); margin-bottom: 4px; font-size: 14px; }
.fk-dd-head a { padding: 0; font-weight: 700; color: var(--fk-pink); }
.fk-dd-head a:hover { background: none; text-decoration: underline; }
.fk-dd-count { margin-left: auto; background: #f1f2f4; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.fk-dd-logout, .fk-dd-logout i { color: #d93025 !important; }

/* Slim category bar (inner pages) */
.fk-subnav { border-top: 1px solid var(--fk-line); }
.fk-subnav-inner {
  max-width: var(--fk-max); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 4px; height: 42px;
}
.fk-subnav-inner > a, .fk-subnav-inner > .fk-dd > a {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px;
  font-size: 14px; font-weight: 600; color: #3b3f4a; white-space: nowrap;
}
.fk-subnav-inner > a:hover, .fk-subnav-inner > .fk-dd > a:hover { color: var(--fk-pink); }
.fk-subnav .fk-dd-menu { left: 0; transform: translateY(6px); top: 100%; }
.fk-subnav .fk-dd:hover > .fk-dd-menu, .fk-subnav .fk-dd:focus-within > .fk-dd-menu { transform: none; }

/* ---------- Category icon strip (home) ---------- */
.fk-catbar { background: #fff; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.fk-catbar-scroll {
  max-width: var(--fk-max); margin: 0 auto; padding: 12px 16px 0;
  display: flex; justify-content: space-between; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.fk-catbar-scroll::-webkit-scrollbar { display: none; }
.fk-cat {
  flex: 0 0 auto; width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-bottom: 10px; border-bottom: 3px solid transparent;
  text-align: center;
}
.fk-cat-ico {
  width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden;
  border-radius: 14px; border: 1.5px solid var(--fk-ink); background: #fff;
  box-shadow: 0 1px 0 var(--fk-ink);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.fk-cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.fk-cat:hover .fk-cat-ico { transform: translateY(-2px); border-color: var(--fk-pink); box-shadow: 0 2px 0 var(--fk-pink); }
.fk-cat.active .fk-cat-ico { border-color: var(--fk-pink); box-shadow: 0 2px 0 var(--fk-pink); }
.fk-cat-foryou { background: linear-gradient(135deg, #ffe1ea, #fff1d6); color: var(--fk-pink); font-size: 24px; }
.fk-cat-all { background: #eef0f6; color: #4b5162; font-size: 22px; }
.fk-cat-name { font-size: 13px; font-weight: 600; line-height: 1.2; color: #2b2f3a; max-width: 96px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fk-cat.active { border-bottom-color: var(--fk-pink); }
.fk-cat.active .fk-cat-name, .fk-cat:hover .fk-cat-name { color: var(--fk-pink); }

/* ---------- Banner carousel ---------- */
.fk-hero { margin-bottom: 12px; }
.fk-carousel { position: relative; }
.fk-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--fk-radius);
}
.fk-track::-webkit-scrollbar { display: none; }
.fk-slide {
  position: relative; overflow: hidden;
  flex: 0 0 calc((100% - 32px) / 2.45);
  min-height: 236px; border-radius: var(--fk-radius);
  scroll-snap-align: start;
  display: flex; align-items: center;
  color: #fff; background-size: cover; background-position: center;
  isolation: isolate;
}
.fk-slide-body { position: relative; z-index: 2; padding: 26px 28px; max-width: 72%; }
.fk-slide-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(2px);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.fk-slide h2 { font-size: 27px; line-height: 1.15; font-weight: 800; margin: 12px 0 6px; text-wrap: balance; }
.fk-slide p { font-size: 15px; opacity: .92; margin-bottom: 16px; }
.fk-slide-btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  background: #fff; color: var(--fk-ink); font-size: 13px; font-weight: 800; letter-spacing: .4px;
  transition: transform .15s;
}
.fk-slide:hover .fk-slide-btn { transform: translateX(3px); }
.fk-slide-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); z-index: 1; }

/* Colour themes (Admin > Promo Banner > colour) */
.fk-theme-pink   { background-image: linear-gradient(120deg, #ff3f6c 0%, #ff6a5c 55%, #ff9a5a 100%); }
.fk-theme-purple { background-image: linear-gradient(120deg, #5b3fd6 0%, #8a4fe0 55%, #c45be0 100%); }
.fk-theme-blue   { background-image: linear-gradient(120deg, #1d5fd6 0%, #2f86f0 60%, #4fb0f5 100%); }
.fk-theme-green  { background-image: linear-gradient(120deg, #0d8a7c 0%, #14a88f 55%, #4cc38a 100%); }
.fk-theme-orange { background-image: linear-gradient(120deg, #f06a1d 0%, #f79432 55%, #fbbf3c 100%); }
.fk-theme-dark   { background-image: linear-gradient(120deg, #1f2233 0%, #34385a 60%, #4a3f6b 100%); }

/* Decorative confetti/balloon art on gradient slides (pure CSS, no images) */
.fk-slide-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fk-slide-art::before {
  content: ''; position: absolute; right: -30px; top: -40px; width: 230px; height: 230px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.55) 0 10%, transparent 11%),
    radial-gradient(circle, rgba(255,255,255,.22) 0 60%, transparent 61%);
}
.fk-slide-art::after {
  content: ''; position: absolute; right: 24px; bottom: 18px; width: 150px; height: 120px;
  background:
    radial-gradient(circle, #ffd36b 0 4px, transparent 5px) 0 0 / 38px 34px,
    radial-gradient(circle, rgba(255,255,255,.85) 0 3px, transparent 4px) 18px 16px / 38px 34px;
  opacity: .85; transform: rotate(-12deg);
}

.fk-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 72px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: var(--fk-ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.15); font-size: 15px;
  opacity: 0; transition: opacity .2s;
}
.fk-carousel:hover .fk-car-btn { opacity: 1; }
.fk-car-btn.prev { left: 0; border-radius: 0 10px 10px 0; }
.fk-car-btn.next { right: 0; border-radius: 10px 0 0 10px; }
.fk-car-btn:focus-visible { opacity: 1; outline: 2px solid var(--fk-pink); }
.fk-car-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.fk-car-dots button {
  width: 7px; height: 7px; border-radius: 4px; border: 0; padding: 0; cursor: pointer;
  background: #c9ccd4; transition: width .25s, background .25s;
}
.fk-car-dots button.active { width: 22px; background: var(--fk-ink); }

/* ---------- Trust strip ---------- */
.fk-trust { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 8px; }
.fk-trust > div { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: #3b3f4a; }
.fk-trust > div + div { border-left: 1px solid var(--fk-line); }
.fk-trust i { font-size: 20px; color: var(--fk-pink); }
.fk-trust b { color: var(--fk-ink); }

/* ---------- Product rails ---------- */
.fk-rail { padding: 16px 0 18px; }
.fk-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.fk-rail-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.2px; color: var(--fk-ink); }
.fk-rail-all {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--fk-ink); color: #fff; font-size: 14px; transition: background .15s;
}
.fk-rail-all:hover { background: var(--fk-pink); color: #fff; }
.fk-rail-body { position: relative; }
.fk-rail-scroll {
  display: flex; gap: 14px; padding: 2px 20px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scroll-behavior: smooth; scrollbar-width: none;
}
.fk-rail-scroll::-webkit-scrollbar { display: none; }
.fk-rail-btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 72px; border: 0; cursor: pointer;
  background: #fff; color: var(--fk-ink); box-shadow: 0 2px 10px rgba(0,0,0,.18); font-size: 14px;
  transition: opacity .2s;
}
.fk-rail-btn.prev { left: 0; border-radius: 0 10px 10px 0; }
.fk-rail-btn.next { right: 0; border-radius: 10px 0 0 10px; }
.fk-rail-btn[hidden] { display: none; }

.fk-tile {
  flex: 0 0 186px; width: 186px; min-width: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px; text-align: center;
  padding: 10px; border-radius: 10px; border: 1px solid var(--fk-line);
  transition: box-shadow .2s, border-color .2s;
}
.fk-tile:hover { box-shadow: 0 6px 18px rgba(16,24,40,.12); border-color: transparent; }
.fk-tile-img { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f7f7f9; display: grid; place-items: center; margin-bottom: 6px; }
.fk-tile-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.fk-tile:hover .fk-tile-img img { transform: scale(1.05); }
.fk-tile-name { display: block; max-width: 100%; font-size: 14px; color: #3b3f4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fk-tile-price { font-size: 15px; font-weight: 700; color: var(--fk-ink); }
.fk-noimg {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 46px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff6b8b, #ffb36b);
}

/* ---------- Occasion grid ---------- */
.fk-occasion { padding: 16px 0 18px; }
.fk-occasion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 20px; }
.fk-occasion-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px; border: 1px solid var(--fk-line); border-radius: 10px; text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.fk-occasion-item:hover { box-shadow: 0 6px 18px rgba(16,24,40,.1); border-color: transparent; }
.fk-occasion-img img { width: 84px; height: 84px; }
.fk-occasion-name { font-size: 14px; color: #3b3f4a; margin-top: 4px; }
.fk-occasion-cta { font-size: 14px; font-weight: 700; color: var(--fk-green); }

.fk-brands { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px; }
.fk-brand { padding: 8px 16px; border: 1px solid var(--fk-line); border-radius: 20px; font-weight: 600; font-size: 14px; }
.fk-brand:hover { border-color: var(--fk-pink); color: var(--fk-pink); }
.fk-empty-home { padding: 40px 20px; text-align: center; font-size: 16px; }
.fk-empty-home a { color: var(--fk-pink); font-weight: 700; }

/* ---------- Product card (grids: listing, section, similar) ---------- */
.products-grid .product-card.fk-pcard,
.product-card.fk-pcard {
  border: 1px solid transparent; border-radius: 10px; background: #fff;
  transform: none; animation: none;
}
.product-card.fk-pcard:hover { transform: none; box-shadow: 0 6px 20px rgba(16,24,40,.12); border-color: transparent; }
.fk-pcard .product-img-wrap { aspect-ratio: 1; background: #f7f7f9; border-radius: 10px 10px 0 0; }
.fk-pcard .product-img-wrap img { object-fit: contain; padding: 8px; }
.fk-pcard:hover .product-img-wrap img { transform: scale(1.04); }
.fk-pcard .no-img { background: linear-gradient(135deg, #ff6b8b, #ffb36b); }
.fk-pcard .wishlist-btn { opacity: 1; top: 10px; right: 10px; width: 34px; height: 34px; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.fk-pcard .wishlist-btn i { color: #c2c5cc; font-size: 15px; }
.fk-pcard .wishlist-btn:hover i { color: var(--fk-pink); }
.fk-pcard .tag-badge {
  top: 10px; left: 10px; bottom: auto; right: auto; border-radius: 4px;
  font-size: 10px; letter-spacing: .4px; text-transform: uppercase; padding: 3px 7px;
}
.fk-pcard .product-info { padding: 10px 14px 14px; }
.fk-pcard .product-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden;
  font-size: 15px; line-height: 1.35; color: var(--fk-ink); margin-bottom: 4px; min-height: 40px;
}
.fk-pcard .product-name:hover { color: #2a55e5; }
.fk-pcard .brand-name { font-size: 13px; font-weight: 500; color: var(--fk-muted); margin-bottom: 6px; }
.fk-pcard .rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; min-height: 20px; }
.fk-pcard .rating-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--fk-green); color: #fff; border-radius: 4px; padding: 2px 6px;
  font-size: 12px; font-weight: 700;
}
.fk-pcard .rating-badge i { font-size: 9px; }
.fk-pcard .rating-count { font-size: 13px; color: var(--fk-muted); font-weight: 600; }
.fk-pcard .rating-new { font-size: 12px; font-weight: 700; color: var(--fk-pink); }
.fk-pcard .price-row { gap: 8px; margin-bottom: 2px; }
.fk-pcard .current-price { font-size: 18px; font-weight: 800; color: var(--fk-ink); }
.fk-pcard .original-price { font-size: 14px; color: var(--fk-muted); text-decoration: line-through; }
.fk-pcard .discount-text { font-size: 14px; font-weight: 700; color: var(--fk-green); }
.fk-free-del { font-size: 12px; color: var(--fk-muted); margin-top: 2px; }

/* Listing page on grey background */
body.fk-page .shop-layout { max-width: var(--fk-max); gap: 12px; padding: 12px; align-items: start; }
body.fk-page .filter-sidebar {
  background: #fff; border: 0; border-radius: var(--fk-radius);
  top: calc(var(--fk-head-h) + 54px); max-height: calc(100vh - var(--fk-head-h) - 66px);
}
body.fk-page .products-area { background: #fff; border-radius: var(--fk-radius); padding: 8px 16px 20px; }
body.fk-page .products-grid-list { gap: 12px; }

/* Floats sit above the bottom nav on mobile (see media query) */

/* ---------- Mobile drawer ---------- */
.fk-drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px; background: var(--fk-ink); color: #fff; font-size: 16px; font-weight: 700;
}
.fk-drawer-head > i { font-size: 22px; }
.fk-drawer-head a { color: #fff; }
.fk-drawer-head .mobile-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.fk-drawer-label { padding: 12px 20px 6px; font-size: 12px; font-weight: 700; color: var(--fk-muted); text-transform: uppercase; letter-spacing: .6px; }
.mobile-nav-links a { display: flex; align-items: center; gap: 12px; }
.fk-drawer-ico { width: 26px; height: 26px; border-radius: 7px; }

/* ---------- Mobile bottom nav ---------- */
.fk-bottom-nav { display: none; }

/* =========================== Responsive =========================== */
@media (max-width: 1100px) {
  .fk-slide { flex-basis: calc((100% - 16px) / 1.6); }
  .fk-head-row { gap: 12px; }
  .fk-logo-sub { display: none; }
}

@media (max-width: 768px) {
  :root { --fk-head-h: 56px; }
  .fk-only-mobile { display: inline-flex !important; }
  .fk-hide-mobile { display: none !important; }
  .fk-icon-btn { align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; font-size: 20px; color: var(--fk-ink); cursor: pointer; margin-left: -8px; }

  .fk-head-row { height: auto; flex-wrap: wrap; padding: 8px 12px 10px; gap: 6px 8px; }
  .fk-logo-img { width: 52px; height: 52px; }
  .fk-logo-name { font-size: 19px; }
  .fk-logo-sub { display: block; font-size: 10px; }
  .fk-search.nav-search { order: 10; flex: 0 0 100%; max-width: none; }
  .fk-search form { height: 42px; }
  .fk-search input { font-size: 14px; }
  .fk-actions { gap: 0; }
  .fk-action { padding: 0 10px; }
  .fk-account span, .fk-account .fk-caret { display: none; }
  .fk-dd-menu { display: none; }           /* account lives in bottom nav on phones */
  .fk-subnav { display: none; }

  .fk-catbar-scroll { justify-content: flex-start; padding: 10px 8px 0; gap: 2px; }
  .fk-cat { width: 74px; }
  .fk-cat-ico { width: 54px; height: 54px; }
  .fk-cat-name { font-size: 12px; }

  .fk-wrap { padding: 0 8px; margin-bottom: 8px; }
  .fk-slide { flex-basis: 88%; min-height: 180px; }
  .fk-slide-body { padding: 18px; max-width: 80%; }
  .fk-slide h2 { font-size: 21px; }
  .fk-slide p { font-size: 13px; margin-bottom: 12px; }
  .fk-car-btn { display: none; }

  .fk-trust { grid-template-columns: repeat(2, 1fr); row-gap: 12px; padding: 12px 4px; }
  .fk-trust > div { justify-content: flex-start; padding-left: 12px; font-size: 13px; }
  .fk-trust > div:nth-child(3) { border-left: 0; }

  .fk-rail { padding: 12px 0 14px; }
  .fk-rail-head { padding: 0 12px 10px; }
  .fk-rail-head h2 { font-size: 18px; }
  .fk-rail-scroll { padding: 2px 12px; gap: 10px; scroll-padding-inline: 12px; }
  .fk-rail-btn { display: none; }
  .fk-tile { flex-basis: 140px; width: 140px; padding: 8px; }
  .fk-tile-name { font-size: 13px; }
  .fk-tile-price { font-size: 14px; }

  .fk-occasion-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px; }
  .fk-occasion-img img { width: 64px; height: 64px; }

  .fk-pcard .product-info { padding: 8px 10px 12px; }
  .fk-pcard .product-name { font-size: 13px; min-height: 35px; }
  .fk-pcard .current-price { font-size: 16px; }
  .fk-pcard .original-price, .fk-pcard .discount-text { font-size: 12px; }
  .fk-pcard .wishlist-btn { width: 30px; height: 30px; top: 6px; right: 6px; }
  body.fk-page .shop-layout { padding: 8px; }
  body.fk-page .products-area { padding: 4px 8px 16px; }

  /* Bottom nav */
  body { padding-bottom: 62px; }
  .fk-bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    height: 60px; padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--fk-line);
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
  }
  .fk-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #5d6170;
  }
  .fk-bottom-nav a > i, .fk-bottom-nav .fk-cart-icon { font-size: 19px; }
  .fk-bottom-nav a.active { color: var(--fk-pink); }
  .fk-bottom-nav a.active::before {
    content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--fk-pink);
  }
  .fk-bottom-nav a { position: relative; }

  .whatsapp-float { bottom: 76px; right: 14px; width: 48px; height: 48px; font-size: 26px; }
  .instagram-float { bottom: 132px; right: 14px; width: 48px; height: 48px; font-size: 26px; }
  .back-to-top { bottom: 188px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fk-track, .fk-rail-scroll { scroll-behavior: auto; }
}
.fk-cart { gap: 14px; }
.order-summary { top: calc(var(--fk-head-h) + 54px); }
