/* ==========================================================
   QueKart Shop — Global Styles (React-matched)
   Sections:
     1. Reset & Base
     2. Login page
     3. Shop home (header, categories, banners, products, bottom nav)
     4. Container & responsive
   ========================================================== */

/* ---------- 1. RESET & BASE ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Container (React-style) ---------- */
.qk-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 640px) {
  .qk-container { padding: 0 20px; }
}
@media (min-width: 1024px) {
  .qk-container { padding: 0 24px; }
}

/* ==========================================================
   2. LOGIN PAGE
   ========================================================== */
.qk-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.qk-login-marquee {
  position: absolute; top: 0; left: 0; right: 0;
  height: 45vh; min-height: 260px; max-height: 380px;
  overflow: hidden; z-index: 0; background: #f8fafc;
  pointer-events: none;
}
.qk-login-marquee::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.5) 40%, #ffffff 95%);
  z-index: 2; pointer-events: none;
}
.qk-marquee-rows { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; height: 100%; justify-content: space-around; }
.qk-marquee-row { overflow: hidden; width: 100%; display: flex; }
.qk-marquee-track { display: flex; width: max-content; gap: 12px; padding: 0 8px; will-change: transform; }
.qk-marquee-track.left  { animation: qkMarqueeLeft  32s linear infinite; }
.qk-marquee-track.right { animation: qkMarqueeRight 32s linear infinite; }
@keyframes qkMarqueeLeft  { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }
@keyframes qkMarqueeRight { 0% { transform: translateX(-33.3333%); } 100% { transform: translateX(0); } }
.qk-marquee-tile { width: 58px; height: 58px; border-radius: 14px; padding: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid #eef2f7; background: #fff; flex-shrink: 0; }
.qk-marquee-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

.qk-skip-btn {
  position: absolute; top: 14px; right: 14px; z-index: 50;
  background: #ffffff; color: #0f172a; font-size: 12px; font-weight: 800;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}
.qk-skip-btn:hover { background: #f1f5f9; transform: scale(0.97); }

.qk-login-sheet {
  position: relative; z-index: 10; margin-top: 40vh;
  background: #fff;
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  padding: 28px 22px 32px;
  display: flex; flex-direction: column; min-height: 55vh;
  box-shadow: 0 -12px 40px rgba(15,23,42,0.06);
}
.qk-login-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.qk-login-brand img { width: 30px; height: 30px; }
.qk-login-brand-text { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.qk-login-brand-text .que { color: #143C6B; }
.qk-login-brand-text .kart { color: #C89D1F; }
.qk-login-title { text-align: center; font-size: 20px; font-weight: 900; color: #0B1E36; margin: 6px 0 4px; letter-spacing: -0.01em; }
.qk-login-sub { text-align: center; font-size: 12px; font-weight: 700; color: #94a3b8; margin: 0 0 26px; }

.qk-phone-row { display: flex; gap: 10px; align-items: stretch; }
.qk-flag-box { width: 56px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #475569; flex-shrink: 0; gap: 4px; }
.qk-flag-box .flag { font-size: 18px; }
.qk-phone-input-wrap { flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; display: flex; align-items: center; padding: 0 14px; gap: 8px; transition: border-color 0.2s, background 0.2s; }
.qk-phone-input-wrap:focus-within { background: #fff; border-color: #143C6B; }
.qk-phone-input-wrap .prefix { font-size: 13px; font-weight: 800; color: #0B1E36; }
.qk-phone-input-wrap input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; font-weight: 700; color: #0B1E36; padding: 14px 0; letter-spacing: 0.02em; font-family: inherit; }
.qk-phone-input-wrap input::placeholder { color: #94a3b8; font-weight: 500; }

.qk-primary-btn { width: 100%; padding: 15px 20px; border-radius: 16px; font-size: 15px; font-weight: 900; letter-spacing: 0.02em; border: none; margin-top: 16px; background: #143C6B; color: #fff; transition: transform 0.15s, filter 0.15s, opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.qk-primary-btn:disabled { background: #94a3b8; cursor: not-allowed; opacity: 0.9; }
.qk-primary-btn:not(:disabled):hover { filter: brightness(1.08); }
.qk-primary-btn:not(:disabled):active { transform: scale(0.98); }

.qk-error-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 700; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; text-align: center; display: none; }
.qk-error-msg.show { display: block; }
.qk-info-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 700; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; text-align: center; display: none; }
.qk-info-msg.show { display: block; }

.qk-terms-footer { margin-top: auto; padding-top: 22px; font-size: 11px; text-align: center; color: #94a3b8; font-weight: 600; line-height: 1.5; }
.qk-terms-footer a { color: #475569; border-bottom: 1px dashed #cbd5e1; }
.qk-terms-footer a:hover { color: #143C6B; }

.qk-otp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.qk-back-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #475569; transition: background 0.15s; }
.qk-back-btn:hover { background: #f1f5f9; }
.qk-otp-heading { font-size: 17px; font-weight: 900; color: #0B1E36; margin: 0; }
.qk-otp-sub { text-align: center; font-size: 13px; color: #64748b; font-weight: 600; margin: 0 0 22px; }
.qk-otp-sub strong { color: #0B1E36; font-weight: 900; }
.qk-otp-boxes { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.qk-otp-boxes input { width: 44px; height: 52px; text-align: center; font-size: 20px; font-weight: 900; color: #0B1E36; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; outline: none; transition: border-color 0.15s, background 0.15s; font-family: inherit; }
.qk-otp-boxes input:focus { background: #fff; border-color: #143C6B; box-shadow: 0 0 0 3px rgba(20,60,107,0.08); }
.qk-otp-boxes input.filled { background: #fff; border-color: #059669; }
.qk-resend-row { text-align: center; font-size: 12px; font-weight: 700; color: #64748b; margin-top: 6px; }
.qk-resend-row button { background: none; border: none; color: #143C6B; font-weight: 900; font-size: 12px; cursor: pointer; padding: 0; margin-left: 4px; }
.qk-resend-row button:disabled { color: #cbd5e1; cursor: not-allowed; }
.qk-spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: qkSpin 0.7s linear infinite; display: inline-block; }
@keyframes qkSpin { to { transform: rotate(360deg); } }

/* ==========================================================
   3. SHOP HOME
   ========================================================== */
.qk-shop-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  padding-bottom: 68px;
}

/* ---------- Header ---------- */
.qk-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}
.qk-header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .qk-header-inner {
    flex-wrap: nowrap;
    padding: 12px 0;
    gap: 20px;
  }
}

/* Avatar (mobile only) */
.qk-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 1px solid #e2e8f0; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  order: 1;
}
.qk-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .qk-avatar { display: none; }
}

/* Brand */
.qk-brand {
  display: inline-flex; align-items: center; gap: 8px;
  order: 2;
  flex-shrink: 0;
}
.qk-brand img { width: 28px; height: 28px; }
.qk-brand-text {
  font-family: 'Outfit','Inter',sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.qk-brand-text .que { color: #143C6B; }
.qk-brand-text .kart { color: #C89D1F; }
@media (min-width: 900px) {
  .qk-brand img { width: 32px; height: 32px; }
  .qk-brand-text { font-size: 22px; }
}

/* Search bar */
.qk-search-form {
  flex: 1 1 100%;
  order: 4;
  min-width: 0;
}
.qk-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.qk-search-wrap:focus-within { background: #fff; border-color: #143C6B; }
.qk-search-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13px; font-weight: 500; color: #0f172a;
  font-family: inherit;
  min-width: 0;
}
.qk-search-wrap input::placeholder { color: #94a3b8; }
.qk-mic-btn, .qk-cam-btn {
  background: none; border: none; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: #64748b;
  transition: background 0.15s;
}
.qk-mic-btn:hover, .qk-cam-btn:hover { background: #eef2f7; }

@media (min-width: 900px) {
  .qk-search-form {
    order: 3;
    flex: 1 1 auto;
    max-width: 640px;
  }
  .qk-search-wrap { padding: 9px 16px; }
  .qk-search-wrap input { font-size: 13.5px; }
}

/* Right actions */
.qk-header-actions {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  order: 3;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .qk-header-actions {
    order: 4;
    gap: 8px;
    margin-left: 0;
  }
}

.qk-icon-btn {
  position: relative; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #334155;
  transition: background 0.15s;
}
.qk-icon-btn:hover { background: #f1f5f9; }
@media (min-width: 900px) {
  .qk-icon-btn { width: 40px; height: 40px; }
}
.qk-badge {
  position: absolute; top: 2px; right: 2px;
  background: #143C6B; color: #fff;
  font-size: 9px; font-weight: 900;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1.5px solid #fff;
}

/* Desktop-only header extras (Refer pill, wishlist text, cart text, signin) */
.qk-header-desktop {
  display: none;
}
@media (min-width: 900px) {
  .qk-header-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 8px;
  }
  .qk-header-desktop a {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    transition: color 0.15s;
  }
  .qk-header-desktop a:hover { color: #143C6B; }
  .qk-refer-pill {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 14px !important;
    color: #1e40af !important;
    font-weight: 700 !important;
  }
  .qk-refer-pill:hover { background: #dbeafe; }
}

/* ---------- Main scroll area ---------- */
.qk-main { flex: 1; padding-bottom: 12px; }

/* ---------- Category Bubbles ---------- */
.qk-cat-bubbles-wrap {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 14px 0;
}
.qk-cat-bubbles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 6px;
  padding: 0;
}
@media (min-width: 480px) {
  .qk-cat-bubbles { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 768px) {
  .qk-cat-bubbles { grid-template-columns: repeat(7, 1fr); gap: 16px 10px; }
}
@media (min-width: 1024px) {
  .qk-cat-bubbles { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 1280px) {
  .qk-cat-bubbles { grid-template-columns: repeat(10, 1fr); }
}

.qk-cat-bubble {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 2px; cursor: pointer;
  transition: transform 0.15s;
  text-align: center;
}
.qk-cat-bubble:active { transform: scale(0.94); }
.qk-cat-bubble-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .qk-cat-bubble-img { width: 64px; height: 64px; }
}
.qk-cat-bubble.active .qk-cat-bubble-img {
  border-color: #143C6B;
  box-shadow: 0 0 0 3px rgba(20,60,107,0.12);
  transform: scale(1.05);
}
.qk-cat-bubble-img img { width: 100%; height: 100%; object-fit: cover; }
.qk-cat-bubble-label {
  font-size: 10.5px; font-weight: 700; color: #334155;
  text-align: center; line-height: 1.2;
  max-width: 76px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 768px) {
  .qk-cat-bubble-label { font-size: 11.5px; max-width: 90px; }
}
.qk-cat-bubble.active .qk-cat-bubble-label { color: #143C6B; font-weight: 900; }
.qk-cat-see-more .qk-cat-see-more-img {
  background: #E8F0F8; border: 2px solid #C4D5E8;
}
.qk-cat-see-more .qk-cat-bubble-label { color: #143C6B; font-weight: 900; }

/* Hidden extra bubbles */
.qk-cat-bubbles-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 6px;
  margin-top: 14px;
}
@media (min-width: 480px) { .qk-cat-bubbles-extra { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 768px) { .qk-cat-bubbles-extra { grid-template-columns: repeat(7, 1fr); gap: 16px 10px; } }
@media (min-width: 1024px) { .qk-cat-bubbles-extra { grid-template-columns: repeat(8, 1fr); } }
@media (min-width: 1280px) { .qk-cat-bubbles-extra { grid-template-columns: repeat(10, 1fr); } }

/* ---------- Banner (Main) ---------- */
.qk-banner-main { padding: 12px 0 6px; }
.qk-banner-main-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.qk-banner-main-slide { min-width: 100%; }
.qk-banner-main-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  background: #0B1E36;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}
@media (min-width: 900px) {
  .qk-banner-main-inner { border-radius: 18px; }
}
.qk-banner-main-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.qk-banner-main-overlay {
  position: absolute; inset: 0;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(to right, rgba(11,30,54,0.92) 0%, rgba(11,30,54,0.65) 45%, transparent 100%);
  color: #fff;
  pointer-events: none;
}
@media (min-width: 900px) {
  .qk-banner-main-overlay { padding: 24px; }
}
.qk-banner-main-top { display: flex; align-items: center; gap: 8px; }
.qk-banner-pill-code {
  background: #E5A812; color: #0B1E36;
  font-size: 9.5px; font-weight: 900;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.qk-banner-pill-badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 9.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  backdrop-filter: blur(6px);
}
.qk-banner-main-bottom { max-width: 80%; }
.qk-banner-main-bottom h3 {
  font-size: 16px; font-weight: 900; margin: 0 0 4px;
  letter-spacing: -0.01em; line-height: 1.2;
}
.qk-banner-main-bottom p {
  font-size: 11px; font-weight: 500; color: #FDE68A;
  margin: 0 0 8px; line-height: 1.4;
}
.qk-banner-explore {
  color: #E5A812; font-size: 11px; font-weight: 900;
  letter-spacing: 0.02em;
}
@media (min-width: 900px) {
  .qk-banner-main-bottom h3 { font-size: 26px; }
  .qk-banner-main-bottom p { font-size: 14px; }
  .qk-banner-explore { font-size: 13px; }
}

.qk-banner-dots {
  display: flex; justify-content: center; gap: 5px;
  margin-top: 10px;
}
.qk-banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.2s, width 0.2s;
  cursor: pointer;
}
.qk-banner-dot.active {
  background: #143C6B;
  width: 18px; border-radius: 3px;
}

/* ---------- Banner (Double) ---------- */
.qk-banner-double { padding: 6px 0; }
.qk-banner-double-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.qk-banner-double-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 900px) {
  .qk-banner-double-slide { gap: 12px; }
}
.qk-banner-double-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 11 / 6;
  background: #0B1E36;
  box-shadow: 0 3px 10px rgba(15,23,42,0.06);
}
@media (min-width: 900px) {
  .qk-banner-double-inner { border-radius: 14px; }
}
.qk-banner-double-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.qk-banner-double-inner .qk-banner-main-overlay { padding: 10px; }
.qk-banner-double-inner .qk-banner-main-bottom h4 {
  font-size: 11px; font-weight: 900; margin: 0 0 2px;
  line-height: 1.2; color: #fff;
}
.qk-banner-double-inner .qk-banner-main-bottom p {
  font-size: 9px; margin: 0 0 3px;
}
.qk-banner-double-inner .qk-banner-pill-code {
  font-size: 8px; padding: 3px 7px;
}
.qk-banner-double-inner .qk-banner-pill-badge {
  font-size: 8px; padding: 3px 7px;
}
@media (min-width: 900px) {
  .qk-banner-double-inner .qk-banner-main-bottom h4 { font-size: 15px; }
  .qk-banner-double-inner .qk-banner-main-bottom p { font-size: 11px; }
}

/* ---------- Filter bar ---------- */
.qk-filter-bar {
  background: #fff;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  padding: 10px 0;
  position: sticky;
  top: 56px;
  z-index: 30;
}
@media (min-width: 900px) {
  .qk-filter-bar { top: 66px; padding: 12px 0; }
}
.qk-filter-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px;
}
.qk-filter-scroll::-webkit-scrollbar { display: none; }
.qk-filter-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px; font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.qk-filter-chip:hover { background: #f8fafc; border-color: #cbd5e1; }
.qk-filter-chip svg { flex-shrink: 0; }
@media (min-width: 900px) {
  .qk-filter-chip { font-size: 12.5px; padding: 9px 16px; }
}

/* ---------- Product Grid ---------- */
.qk-products-section { padding: 12px 0 20px; }
.qk-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 480px) {
  .qk-product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (min-width: 768px) {
  .qk-product-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
  .qk-product-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}
@media (min-width: 1280px) {
  .qk-product-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

.qk-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.qk-product-card:hover {
  box-shadow: 0 8px 24px rgba(15,23,42,0.10);
  transform: translateY(-2px);
}
.qk-product-card:active { transform: scale(0.99); }

.qk-product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f1f5f9;
  overflow: hidden;
}
.qk-product-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.qk-product-card:hover .qk-product-img img { transform: scale(1.06); }

.qk-wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(4px);
  border: 1px solid #f1f5f9;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(15,23,42,0.08);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.qk-wishlist-btn:hover { background: #fff; transform: scale(1.08); }
.qk-wishlist-btn.is-active svg { fill: #dc2626; stroke: #dc2626; }

.qk-product-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.qk-product-title {
  font-size: 12.5px; font-weight: 600; color: #334155;
  margin: 0; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .qk-product-title { font-size: 13px; }
}
.qk-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.qk-rating-badge {
  background: #ecfdf5; color: #047857;
  font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid #a7f3d0;
}
.qk-discount-badge {
  background: #16a34a; color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
}
.qk-product-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.qk-price-mrp { font-size: 11px; color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.qk-price-final { font-size: 15px; color: #143C6B; font-weight: 900; letter-spacing: -0.02em; }

/* Empty state */
.qk-empty-state {
  text-align: center; padding: 60px 20px;
}
.qk-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  background: #E8F0F8; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.qk-empty-state h3 {
  font-size: 15px; font-weight: 900; color: #0B1E36; margin: 0 0 6px;
}
.qk-empty-state p {
  font-size: 12px; color: #64748b; font-weight: 600;
  margin: 0; line-height: 1.5;
}

/* ---------- Bottom Nav ---------- */
.qk-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(15,23,42,0.06);
  max-width: 100%;
}
@media (min-width: 900px) {
  .qk-bottom-nav { display: none; }
}
.qk-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; padding: 4px 2px;
  color: #94a3b8;
  transition: color 0.15s;
  font-size: 10px; font-weight: 700;
  text-align: center;
}
.qk-nav-item svg { transition: transform 0.15s; }
.qk-nav-item.active { color: #143C6B; font-weight: 900; }
.qk-nav-item.active svg { transform: scale(1.08); stroke-width: 2.5; }
.qk-nav-item:active { transform: scale(0.94); }
.qk-nav-item span { line-height: 1; }

/* On desktop, hide bottom nav padding */
@media (min-width: 900px) {
  .qk-shop-page { padding-bottom: 0; }
}

/* ---------- Modal ---------- */
.qk-modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.qk-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 480px; width: 100%;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ---------- Utility ---------- */
.qk-hidden { display: none !important; }
/* ============================================================
   CRITICAL OVERRIDES — Mobile/Desktop visibility
   ============================================================ */

/* Bottom nav: MOBILE ONLY */
@media (min-width: 900px) {
  .qk-bottom-nav { display: none !important; }
  body.qk-shop-page { padding-bottom: 0 !important; }
}

/* Header mobile elements: HIDDEN on desktop */
@media (min-width: 900px) {
  .qk-avatar-mobile,
  .qk-header-mobile-actions,
  .qk-search-mobile { display: none !important; }
}

/* Header desktop elements: HIDDEN on mobile */
@media (max-width: 899px) {
  .qk-search-desktop,
  .qk-header-desktop-actions { display: none !important; }
}