@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #ff5a00;
  --brand-hover: #e04e00;
  --brand-soft: #fff3eb;
  --trust: #008751;
  --trust-soft: #e6f6ef;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f5f7;
  --card: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(17, 24, 39, 0.045);
  --shadow-hover: 0 14px 30px rgba(17, 24, 39, 0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { flex: 1; padding-bottom: 48px; width: 100%; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Slim Promo Top Bar */
.promo-strip {
  background: #111827;
  color: #f9fafb;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 0;
}
.promo-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.promo-highlights { display: flex; gap: 16px; flex-wrap: wrap; }
.promo-highlights span { display: inline-flex; align-items: center; gap: 5px; color: #e5e7eb; }
.promo-highlights strong { color: #fbbf24; }

/* Sticky Responsive Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5a00, #ff2a00);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 90, 0, 0.25);
  flex-shrink: 0;
}
.logo-text { font-size: 1.38rem; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.logo-dot { color: var(--brand); }

/* Pill Search Bar */
.search-pill {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 3px 4px 3px 15px;
  transition: 0.18s;
}
.search-pill:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.1);
}
.search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  padding: 7px 4px;
}
.search-pill .search-submit-btn {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.search-pill .search-submit-btn:hover {
  opacity: 0.86;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-link:hover { background: #f3f4f6; color: var(--brand); }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}
.desktop-only { display: inline-flex; }

/* Sticky Mobile Bottom Tab Bar (Hidden on PC, Native-App Feel on Phones!) */
.mobile-tabbar { display: none; }

/* Responsive Grids & Form Rows */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.form-row-4 { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 10px; align-items: end; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Hero Styling */
.hero-main {
  background: linear-gradient(125deg, #ff5a00 0%, #d92600 58%, #111827 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 10px;
}
.hero-main h1 {
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.4px;
}
.hero-main p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  margin-top: 9px;
  max-width: 500px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.hero-badge {
  background: rgba(17, 24, 39, 0.45);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-side {
  background: linear-gradient(145deg, #064e3b 0%, #022c22 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-side h2 { font-size: 1.18rem; font-weight: 800; line-height: 1.25; margin-top: 8px; }
.hero-side p { font-size: 0.83rem; color: #a7f3d0; margin: 8px 0 14px; }

/* Horizontal Swipeable Category Bubbles */
.cat-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 2px 8px;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-bubble {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-bubble:hover, .cat-bubble.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.cat-bubble.vault-pill.active, .cat-bubble.vault-pill:hover {
  border-color: var(--trust);
  color: var(--trust);
  background: var(--trust-soft);
}

/* Section Headers & Product Grid */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.3px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.p-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.p-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e5e7eb;
  overflow: hidden;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.p-card:hover .p-thumb img { transform: scale(1.04); }

.tag-discount {
  position: absolute; top: 8px; left: 8px;
  background: var(--brand); color: #fff;
  font-size: 0.7rem; font-weight: 800; padding: 3px 7px; border-radius: 6px;
}
.tag-warehouse {
  position: absolute; top: 8px; right: 8px;
  background: rgba(17, 24, 39, 0.9); color: #fbbf24;
  font-size: 0.67rem; font-weight: 800; padding: 3px 7px; border-radius: 6px;
}
.tag-verified {
  position: absolute; bottom: 7px; left: 7px;
  background: rgba(255, 255, 255, 0.94); color: var(--trust);
  font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 6px;
}

.p-info { padding: 11px 12px 13px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.p-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
  line-height: 1.3;
}
.p-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.p-price { font-size: 1.15rem; font-weight: 800; color: var(--brand); letter-spacing: -0.3px; }
.p-old { font-size: 0.74rem; color: var(--muted); text-decoration: line-through; }

.quick-cart-btn {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.12s ease;
}
.quick-cart-btn:hover {
  background: var(--brand-soft);
}
.quick-cart-btn:active {
  transform: scale(0.93);
}
.p-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 0.73rem; color: var(--muted); }
.p-seller {
  margin-top: 7px; padding-top: 7px; border-top: 1px solid #f3f4f6;
  font-size: 0.72rem; color: var(--ink-2); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Surface Cards, Buttons & Inputs */
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 10px 18px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 0.87rem;
  border: none; cursor: pointer; transition: 0.16s; text-align: center;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-trust { background: var(--trust); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: #f3f4f6; color: var(--ink); }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: 0.78rem; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 12px; min-width: 0; }
.form-group label { display: block; font-size: 0.79rem; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.form-control {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.9rem; color: var(--ink); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1); }

/* Alerts, Pills & Tables */
.toast { padding: 12px 15px; border-radius: 12px; margin-top: 14px; font-size: 0.85rem; font-weight: 600; word-break: break-word; }
.toast-ok { background: var(--trust-soft); color: #064e3b; border: 1px solid #a7f3d0; }
.toast-err { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.pill-green { background: var(--trust-soft); color: var(--trust); }
.pill-orange { background: var(--brand-soft); color: var(--brand); }
.pill-red { background: var(--danger-soft); color: var(--danger); }
.pill-gray { background: #f3f4f6; color: var(--ink-2); }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.84rem; }
th, td { padding: 10px 11px; text-align: left; border-bottom: 1px solid #f1f5f9; }
th { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); background: #f9fafb; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0; font-size: 0.81rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* =========================================================
   TABLET BREAKPOINT (<= 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 13px; }
  .grid-kpi { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE PHONE BREAKPOINT (<= 768px — Android & iPhone)
   ========================================================= */
@media (max-width: 768px) {
  body { padding-bottom: 72px; }
  .container { padding: 0 12px; }
  .desktop-only { display: none !important; }

  .promo-inner { justify-content: center; text-align: center; }
  .promo-highlights span:nth-child(3) { display: none; }

  /* Two-row clean mobile app header */
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 9px 0 10px;
  }
  .search-pill {
    grid-column: 1 / -1;
    max-width: 100%;
    padding: 2px 3px 2px 13px;
  }
  .search-pill input, .form-control {
    font-size: 16px; /* Prevents iOS Safari zoom-on-focus! */
  }
  .nav-link { padding: 6px 10px; font-size: 0.78rem; }
  .nav-cta { padding: 7px 12px; font-size: 0.78rem; }

  /* 2-Column Temu/Jumia Mobile Product Grid */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .p-info { padding: 9px 9px 11px; }
  .p-title { font-size: 0.81rem; }
  .p-price { font-size: 1.03rem; }
  .p-old { font-size: 0.7rem; }
  .tag-discount, .tag-warehouse, .tag-verified { font-size: 0.63rem; padding: 2px 6px; }

  .hero-main { padding: 20px 18px; border-radius: 16px; }
  .hero-side { padding: 18px; border-radius: 16px; }
  .card { padding: 15px; border-radius: 13px; }

  /* Stack all multi-column form rows cleanly on mobile */
  .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; gap: 10px; }
  .grid-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Native-Style Fixed Bottom Navigation Bar */
  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 80;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }
  .m-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--muted);
    padding: 3px 0;
  }
  .m-tab .m-ico { font-size: 1.15rem; line-height: 1; }
  .m-tab.active { color: var(--brand); }
}

/* Ultra-Small Phones (<= 380px) */
@media (max-width: 380px) {
  .grid-kpi { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.2rem; }
}


/* =========================================================
   SMART AUTOCOMPLETE, CAMERA VISUAL SEARCH & FILTER BAR
   ========================================================= */
.search-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  justify-self: center;
}
.search-Wrap-full { width: 100%; }
.search-pill .cam-icon-btn {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--ink-2);
  width: 34px;
  height: 34px;
  padding: 0;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.search-pill .cam-icon-btn:hover {
  background: transparent;
  color: var(--brand);
}

.ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
  z-index: 100;
  overflow: hidden;
  max-height: 430px;
  overflow-y: auto;
}
.ac-sec-title {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 5px;
  letter-spacing: 0.4px;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  transition: background 0.12s;
}
.ac-item:hover { background: #f9fafb; }
.ac-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}

/* Camera Visual Search Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(3px);
  z-index: 150;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

/* Filter & Sort Toolbar */
.filter-toolbar {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.price-mini-input {
  width: 88px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.79rem;
  font-family: inherit;
}

@media (max-width: 768px) {
  .search-wrap { grid-column: 1 / -1; max-width: 100%; }
  .price-mini-input { font-size: 16px; width: 82px; }
}


/* Kanazi v6 Pro Styles: Wishlist, Cart Drawer, Variants, Reviews */
.knz-wish-btn {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.93); border: 1px solid var(--line);
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.knz-wish-btn.is-saved, .knz-wish-btn:hover { color: #e11d48; }
.knz-badge-stack { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.knz-badge-stack .tag-discount, .knz-badge-stack .tag-warehouse { position: static; width: fit-content; }

.knz-drawer-bg { display: none; position: fixed; inset: 0; background: rgba(17,24,39,0.45); z-index: 160; }
.knz-drawer-bg.is-open { display: block; }
.knz-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 400px;
  background: #fff; z-index: 170; transform: translateX(102%); transition: transform 0.24s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 28px rgba(0,0,0,0.14);
}
.knz-cart-drawer.is-open { transform: translateX(0); }
.knz-drawer-top { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.knz-drawer-list { flex: 1; overflow-y: auto; padding: 14px 18px; }
.knz-drawer-btm { padding: 15px 18px; border-top: 1px solid var(--line); background: #f9fafb; }
.knz-qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; }
.knz-qty-box button { border: none; background: none; width: 26px; height: 26px; font-weight: 800; cursor: pointer; }
.knz-qty-box span { padding: 0 8px; font-size: 0.8rem; font-weight: 700; }

.knz-var-row { margin-bottom: 13px; }
.knz-var-lbl { font-size: 0.78rem; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.knz-var-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.knz-var-chip {
  padding: 6px 13px; border-radius: 99px; border: 1.5px solid var(--line);
  background: #fff; font-size: 0.81rem; font-weight: 700; cursor: pointer;
}
.knz-var-chip.is-picked { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.knz-rev-item { border-bottom: 1px solid #f1f5f9; padding: 13px 0; }
.knz-stars { color: #f59e0b; display: inline-flex; gap: 2px; align-items: center; }


/* Kanazi v7 Flagship Swipe Gallery, Numbered Size Matrix & Clean Buy Box */
.knz-gallery-shell { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.knz-swipe-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  aspect-ratio: 1 / 1; background: #f8fafc;
}
.knz-swipe-track::-webkit-scrollbar { display: none; }
.knz-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; position: relative; }
.knz-slide img, .knz-slide video { width: 100%; height: 100%; object-fit: cover; }

.knz-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(17,24,39,0.08);
  background: rgba(255,255,255,0.92); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: 0.15s;
}
.knz-nav-arrow:hover { background: #fff; color: var(--brand); transform: translateY(-50%) scale(1.06); }
.knz-arrow-prev { left: 12px; }
.knz-arrow-next { right: 12px; }
.knz-slide-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 6;
  background: rgba(17,24,39,0.72); color: #fff; font-size: 0.74rem; font-weight: 800;
  padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(4px);
}

.knz-thumb-row { display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto; background: #fff; border-top: 1px solid #f1f5f9; }
.knz-thumb-btn {
  width: 60px; height: 60px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 2px solid transparent; opacity: 0.62; cursor: pointer; flex-shrink: 0; background: #f3f4f6; transition: 0.15s;
}
.knz-thumb-btn.is-active, .knz-thumb-btn:hover { border-color: var(--brand); opacity: 1; }
.knz-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Buy Box & Size Number Matrix */
.knz-buybox { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow-card); position: sticky; top: 82px; }
.knz-num-chip {
  min-width: 46px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 0.85rem; font-weight: 800;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: 0.14s;
}
.knz-num-chip:hover { border-color: var(--ink); }
.knz-num-chip.is-picked { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255,90,0,0.25); }
.knz-shake { animation: knzShakeAnim 0.35s ease; border-color: var(--danger) !important; }
@keyframes knzShakeAnim {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.knz-trust-list { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f5f9; font-size: 0.82rem; color: var(--ink-2); }
.knz-trust-row { display: flex; align-items: flex-start; gap: 9px; }
.knz-trust-ico { color: var(--trust); margin-top: 2px; flex-shrink: 0; }

/* Product Checkout Modal */
.knz-checkout-modal {
  display: none; position: fixed; inset: 0; background: rgba(17,24,39,0.58);
  backdrop-filter: blur(3px); z-index: 180; align-items: center; justify-content: center; padding: 14px;
}
.knz-checkout-modal.is-open { display: flex; }
.knz-checkout-sheet {
  background: #fff; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.26);
}

/* Kanazi v8 Flagship Storefront Polish & Card Number Strip */
.site-header {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.p-card {
  border: 1px solid rgba(17, 24, 39, 0.065);
  border-radius: 16px;
}
.knz-photo-count {
  position: absolute; bottom: 7px; right: 7px; z-index: 3;
  background: rgba(17, 24, 39, 0.68); color: #fff;
  font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  backdrop-filter: blur(4px);
}
.knz-guarantee-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 14px; background: #fff; border: 1px solid rgba(17,24,39,0.06);
  border-radius: 16px; padding: 13px 16px; box-shadow: var(--shadow-card);
}
.knz-g-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.knz-g-ico {
  width: 34px; height: 34px; border-radius: 10px; background: var(--trust-soft);
  color: var(--trust); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.knz-g-title { font-size: 0.8rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.knz-g-sub { font-size: 0.7rem; color: var(--muted); line-height: 1.25; margin-top: 1px; }

.knz-card-sizes {
  margin-top: 6px; padding: 5px 6px; border-radius: 8px;
  background: #f8fafc; border: 1px solid #eef2f7;
}
.knz-card-size-lbl {
  font-size: 0.65rem; font-weight: 800; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.knz-card-size-row { display: flex; flex-wrap: wrap; gap: 4px; }
.knz-mini-num {
  padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; font-size: 0.69rem; font-weight: 800; color: var(--ink-2);
  cursor: pointer; transition: 0.12s;
}
.knz-mini-num:hover { border-color: var(--brand); color: var(--brand); }
.knz-mini-num.is-picked { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 900px) {
  .knz-guarantee-bar { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 10px; }
  .knz-buybox { position: static; padding: 18px; }
}
@media (max-width: 480px) {
  .knz-guarantee-bar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .knz-g-ico { width: 28px; height: 28px; border-radius: 8px; }
  .knz-g-title { font-size: 0.73rem; }
  .knz-g-sub { display: none; }
}

/* Kanazi v9 Search-Adjacent Filter Icon & Persistent Filter Drawer */
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.search-bar-row .search-pill {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  grid-column: auto;
}
.search-filter-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.search-filter-btn:hover,
.search-filter-btn.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.filter-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.knz-filter-sec { margin-bottom: 16px; }
.knz-filter-lbl {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.35px; color: var(--muted); margin-bottom: 8px; display: block;
}
.knz-radio-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.knz-radio-pill { cursor: pointer; }
.knz-radio-pill input { display: none; }
.knz-radio-pill span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); transition: 0.14s;
}
.knz-radio-pill input:checked + span {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand);
}

/* Kanazi v10 Responsive PDP Order, Compact Mode Bar & Above-the-Fold Padding */
.cat-strip { padding: 11px 2px 5px; }
.section-head { margin: 11px 0 10px; }

.knz-pdp-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}
.knz-pdp-gallery { grid-column: 1; min-width: 0; }
.knz-pdp-details { grid-column: 1; min-width: 0; }
.knz-pdp-layout > .knz-buybox { grid-column: 2; grid-row: 1 / span 2; }

.knz-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.knz-mode-opt {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 9px 8px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: 0.14s;
}
.knz-mode-opt input { display: none; }
.knz-mode-opt strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.78rem;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .knz-pdp-layout { grid-template-columns: 1fr; gap: 16px; }
  .knz-pdp-gallery, .knz-pdp-details, .knz-pdp-layout > .knz-buybox {
    grid-column: auto;
    grid-row: auto;
  }
  .knz-buybox { position: static; padding: 18px; }
}
@media (max-width: 480px) {
  .knz-mode-grid { gap: 6px; }
  .knz-mode-opt { padding: 8px 4px; border-radius: 10px; }
  .knz-mode-opt strong { font-size: 0.71rem; }
}

/* Kanazi v11 End-to-End 6-Stage Order Tracking Stepper & Live Timeline */
.knz-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.knz-step {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  transition: 0.16s;
}
.knz-step.is-done {
  border-color: #a7f3d0;
  background: var(--trust-soft);
}
.knz-step.is-current {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.14);
}
.knz-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 5px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: var(--muted);
}
.knz-step.is-done .knz-step-num { background: var(--trust); color: #fff; }
.knz-step.is-current .knz-step-num { background: var(--brand); color: #fff; }
.knz-step-lbl { font-size: 0.71rem; font-weight: 800; color: var(--ink-2); line-height: 1.22; }

.knz-timeline {
  position: relative;
  margin-top: 12px;
  padding-left: 22px;
  border-left: 2px solid #e5e7eb;
}
.knz-tl-item { position: relative; padding-bottom: 16px; }
.knz-tl-item:last-child { padding-bottom: 2px; }
.knz-tl-dot {
  position: absolute;
  left: -29px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0;
}
.knz-tl-item:first-child .knz-tl-dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.22);
}

@media (max-width: 768px) {
  .knz-stepper { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .knz-step { padding: 8px 6px; }
  .knz-step-lbl { font-size: 0.67rem; }
}

/* Kanazi v12 Organized Super-Admin Command Center Tabs */
.knz-adm-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.knz-adm-tabs::-webkit-scrollbar { display: none; }
.knz-adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.knz-adm-tab:hover { border-color: var(--ink); color: var(--ink); }
.knz-adm-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.16);
}
.knz-adm-badge {
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}
.knz-adm-panel { display: none; }
.knz-adm-panel.is-active { display: block; }
