/* ============================================================
   BazaarX — assets/css/style.css  v2.0
   Fonts: Syne (headings) + Plus Jakarta Sans (body)
   100% Responsive · Android WebView Ready · Professional
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --bx-primary:      #FF6B35;
  --bx-primary-d:    #E85C26;
  --bx-primary-l:    rgba(255,107,53,.1);
  --bx-secondary:    #1A1A2E;
  --bx-accent:       #16213E;
  --bx-gold:         #F5A623;
  --bx-success:      #22C55E;
  --bx-danger:       #EF4444;
  --bx-warning:      #F59E0B;
  --bx-info:         #3B82F6;
  --bx-bg:           #F4F6F9;
  --bx-surface:      #FFFFFF;
  --bx-border:       #E2E8F0;
  --bx-text:         #1E2A3B;
  --bx-text-2:       #334155;
  --bx-muted:        #64748B;
  --bx-light:        #F8FAFC;
  --bx-shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --bx-shadow:       0 4px 16px rgba(0,0,0,.08);
  --bx-shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --bx-r:            10px;
  --bx-r-lg:         16px;
  --bx-r-xl:         24px;
  --bx-ease:         cubic-bezier(.4,0,.2,1);
  --bx-t:            0.22s;
  --font-head:       'Syne', sans-serif;
  --font-body:       'Plus Jakarta Sans', sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.bx-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--bx-text);
  background: var(--bx-bg);
  overflow-x: hidden;
  padding-bottom: 68px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width:992px) { body.bx-body { padding-bottom: 0; } }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--bx-text); }
a { color: var(--bx-primary); text-decoration: none; transition: color var(--bx-t); }
a:hover { color: var(--bx-primary-d); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ─── Preloader ──────────────────────────────────────────── */
#bx-preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bx-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s, visibility .4s;
}
#bx-preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.bx-loader-ring { width: 48px; height: 48px; position: relative; }
.bx-loader-ring div {
  position: absolute; width: 40px; height: 40px; margin: 4px;
  border-radius: 50%; border: 4px solid transparent;
  border-top-color: var(--bx-primary);
  animation: bxSpin 1.2s cubic-bezier(.5,0,.5,1) infinite;
}
.bx-loader-ring div:nth-child(1) { animation-delay: -.45s; }
.bx-loader-ring div:nth-child(2) { animation-delay: -.3s; }
.bx-loader-ring div:nth-child(3) { animation-delay: -.15s; }
@keyframes bxSpin { to { transform: rotate(360deg); } }

/* ─── Top Bar ────────────────────────────────────────────── */
.bx-topbar {
  background: var(--bx-secondary);
  color: rgba(255,255,255,.7);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2px;
}
.bx-topbar a { color: rgba(255,255,255,.65); }
.bx-topbar a:hover { color: var(--bx-primary); }
.bx-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }

/* ─── Header ─────────────────────────────────────────────── */
.bx-header {
  background: var(--bx-surface);
  box-shadow: 0 1px 0 var(--bx-border), var(--bx-shadow-sm);
  z-index: 1000;
  position: sticky; top: 0;
  transition: box-shadow var(--bx-t);
}
.bx-header.scrolled { box-shadow: var(--bx-shadow-lg); }
.bx-header-inner { display: flex; align-items: center; gap: 12px; padding: 12px 0; }

/* Logo */
.bx-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.bx-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--bx-primary), #FF8C42);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px;
  box-shadow: 0 4px 12px rgba(255,107,53,.3);
  flex-shrink: 0;
}
.bx-logo-text {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  color: var(--bx-secondary);
  letter-spacing: -.5px;
  line-height: 1;
}

/* Search Bar */
.bx-search-wrap { flex: 1; max-width: 560px; position: relative; }
.bx-search-inner {
  display: flex;
  border: 2px solid var(--bx-border);
  border-radius: var(--bx-r);
  overflow: hidden;
  transition: border-color var(--bx-t), box-shadow var(--bx-t);
}
.bx-search-inner:focus-within {
  border-color: var(--bx-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
.bx-search-cat {
  width: 110px; border: none; border-right: 2px solid var(--bx-border);
  border-radius: 0; font-size: 12.5px; font-family: var(--font-body);
  background: var(--bx-light); color: var(--bx-muted); flex-shrink: 0;
  padding: 0 8px;
}
.bx-search-cat:focus { box-shadow: none; outline: none; }
.bx-search-input {
  border: none; border-radius: 0; font-size: 14px;
  flex: 1; min-width: 0; padding: 10px 14px;
  font-family: var(--font-body); color: var(--bx-text);
}
.bx-search-input:focus { box-shadow: none; outline: none; }
.bx-search-input::placeholder { color: var(--bx-muted); }
.bx-search-btn {
  background: var(--bx-primary); border: none; color: #fff;
  width: 48px; font-size: 16px; cursor: pointer; flex-shrink: 0;
  transition: background var(--bx-t);
}
.bx-search-btn:hover { background: var(--bx-primary-d); }

/* Search Suggestions */
.bx-search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bx-surface); border: 1px solid var(--bx-border);
  border-radius: var(--bx-r); box-shadow: var(--bx-shadow-lg); z-index: 999;
  max-height: 380px; overflow-y: auto;
}
.bx-suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  cursor: pointer; border-bottom: 1px solid var(--bx-border);
  transition: background var(--bx-t);
}
.bx-suggest-item:last-child { border-bottom: none; }
.bx-suggest-item:hover { background: var(--bx-light); }
.bx-suggest-img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.bx-suggest-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.bx-suggest-price { font-size: 12px; color: var(--bx-primary); font-weight: 700; margin-top: 2px; }

/* Header Icons */
.bx-icon-btn {
  position: relative; width: 40px; height: 40px;
  background: transparent; border: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--bx-secondary); cursor: pointer;
  transition: background var(--bx-t), color var(--bx-t);
  text-decoration: none; flex-shrink: 0;
}
.bx-icon-btn:hover { background: var(--bx-light); color: var(--bx-primary); }
.bx-badge-count {
  position: absolute; top: 1px; right: 1px;
  background: var(--bx-primary); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bx-surface); padding: 0 3px; line-height: 1;
}

/* User Dropdown */
.bx-user-menu {
  min-width: 200px; border: 1px solid var(--bx-border);
  box-shadow: var(--bx-shadow-lg); border-radius: var(--bx-r-lg);
  overflow: hidden; padding: 0;
}
.bx-user-menu-header {
  background: linear-gradient(135deg, var(--bx-secondary), var(--bx-accent));
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.bx-user-menu .dropdown-item { padding: 10px 16px; font-size: 13.5px; transition: background var(--bx-t); }
.bx-user-menu .dropdown-item:hover { background: var(--bx-light); }

/* Mobile Search Bar */
.bx-mobile-search { padding: 0 0 10px; display: none; }
.bx-mobile-search.open { display: block; }

/* ─── Category Nav ───────────────────────────────────────── */
.bx-cat-nav { background: var(--bx-secondary); }
.bx-cat-list {
  list-style: none; display: flex; align-items: stretch;
  height: 46px; overflow-x: auto; scrollbar-width: none; gap: 0;
}
.bx-cat-list::-webkit-scrollbar { display: none; }
.bx-cat-item { position: relative; flex-shrink: 0; }
.bx-cat-link {
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
  height: 100%; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: background var(--bx-t), color var(--bx-t);
  letter-spacing: .1px;
}
.bx-cat-link:hover, .bx-cat-link.active { background: rgba(255,255,255,.08); color: var(--bx-primary); }
.bx-sale-link { color: var(--bx-primary) !important; font-weight: 700; }

/* Mega Menu */
.bx-mega-menu {
  position: absolute; top: 100%; left: 0;
  width: min(920px, 95vw);
  background: var(--bx-surface);
  border: 1px solid var(--bx-border);
  border-radius: 0 var(--bx-r-lg) var(--bx-r-lg) var(--bx-r-lg);
  box-shadow: var(--bx-shadow-lg);
  z-index: 1001;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--bx-t), transform var(--bx-t), visibility var(--bx-t);
}
.bx-mega-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.bx-mega-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 0; padding: 20px; }
.bx-mega-col { padding: 8px; }
.bx-mega-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--bx-secondary);
  padding: 6px 8px; border-radius: 7px; transition: background var(--bx-t);
  text-decoration: none;
}
.bx-mega-head:hover { background: var(--bx-light); color: var(--bx-primary); }
.bx-mega-head i { color: var(--bx-primary); width: 16px; text-align: center; }
.bx-mega-sub { list-style: none; margin: 4px 0 0; padding-left: 24px; }
.bx-mega-sub li a {
  display: block; font-size: 12.5px; color: var(--bx-muted);
  padding: 4px 6px; border-radius: 5px;
  transition: color var(--bx-t), background var(--bx-t);
}
.bx-mega-sub li a:hover { color: var(--bx-primary); background: var(--bx-light); }

/* ─── Sidebar Mobile ─────────────────────────────────────── */
.bx-sidebar-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5); opacity: 0; visibility: hidden;
  transition: opacity var(--bx-t), visibility var(--bx-t);
  backdrop-filter: blur(2px);
}
.bx-sidebar-overlay.open { opacity: 1; visibility: visible; }
.bx-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 290px; max-width: 85vw;
  background: var(--bx-surface); z-index: 2001;
  transform: translateX(-100%);
  transition: transform .32s var(--bx-ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.bx-sidebar.open { transform: translateX(0); }
.bx-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--bx-secondary); flex-shrink: 0;
}
.bx-sidebar-head .bx-logo-text { color: #fff; font-size: 18px; }
.bx-sidebar-close {
  background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 20px; cursor: pointer; padding: 6px;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  transition: background var(--bx-t);
}
.bx-sidebar-close:hover { background: rgba(255,255,255,.2); }
.bx-sidebar-user, .bx-sidebar-auth {
  padding: 14px 18px; background: var(--bx-accent);
  color: #fff; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.bx-sidebar-user a { color: rgba(255,255,255,.7); font-size: 12.5px; }
.bx-sidebar-nav { list-style: none; padding: 6px 0; flex: 1; }
.bx-sidebar-nav > li > a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  font-size: 14px; font-weight: 500; color: var(--bx-text);
  border-bottom: 1px solid var(--bx-border);
  transition: background var(--bx-t), color var(--bx-t);
}
.bx-sidebar-nav > li > a:hover { background: var(--bx-light); color: var(--bx-primary); }
.bx-sidebar-nav > li > a i { width: 20px; text-align: center; color: var(--bx-primary); }
.bx-sidebar-sub { list-style: none; background: var(--bx-light); }
.bx-sidebar-sub li a {
  display: block; padding: 10px 18px 10px 50px;
  font-size: 13px; color: var(--bx-muted);
  border-bottom: 1px solid var(--bx-border);
  transition: color var(--bx-t);
}
.bx-sidebar-sub li a:hover { color: var(--bx-primary); }

/* ─── Cart Drawer ────────────────────────────────────────── */
.bx-cart-overlay {
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(0,0,0,.5); opacity: 0; visibility: hidden;
  transition: opacity var(--bx-t), visibility var(--bx-t);
}
.bx-cart-overlay.open { opacity: 1; visibility: visible; }
.bx-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 96vw;
  background: var(--bx-surface); z-index: 1091;
  transform: translateX(100%);
  transition: transform .32s var(--bx-ease);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.bx-cart-drawer.open { transform: translateX(0); }
.bx-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--bx-border); flex-shrink: 0;
}
.bx-cart-head h5 { font-size: 16px; font-family: var(--font-head); margin: 0; }
.bx-cart-close {
  background: var(--bx-light); border: none; font-size: 18px;
  cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bx-muted); transition: background var(--bx-t);
}
.bx-cart-close:hover { background: var(--bx-border); }
.bx-cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.bx-cart-foot { padding: 16px 18px; border-top: 1px solid var(--bx-border); flex-shrink: 0; }
.bx-cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.bx-cart-total strong { color: var(--bx-primary); font-size: 20px; font-family: var(--font-head); }
.bx-drawer-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bx-border); }
.bx-drawer-item-img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.bx-drawer-item-info { flex: 1; min-width: 0; }
.bx-drawer-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.bx-drawer-item-price { font-size: 14px; color: var(--bx-primary); font-weight: 700; }
.bx-drawer-item-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.bx-qty-btn {
  width: 26px; height: 26px; border: 1.5px solid var(--bx-border);
  background: var(--bx-light); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; font-weight: 700;
  transition: all var(--bx-t); color: var(--bx-text);
}
.bx-qty-btn:hover { background: var(--bx-primary); color: #fff; border-color: var(--bx-primary); }
.bx-qty-val { font-size: 13px; font-weight: 700; min-width: 22px; text-align: center; }
.bx-remove-item { color: var(--bx-danger); background: none; border: none; cursor: pointer; font-size: 15px; margin-left: auto; transition: opacity var(--bx-t); }
.bx-remove-item:hover { opacity: .7; }

/* ─── Main ───────────────────────────────────────────────── */
.bx-main { min-height: 60vh; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: 8px; }
.btn-primary { background: var(--bx-primary); border-color: var(--bx-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--bx-primary-d); border-color: var(--bx-primary-d); }
.btn-outline-primary { color: var(--bx-primary); border-color: var(--bx-primary); }
.btn-outline-primary:hover { background: var(--bx-primary); border-color: var(--bx-primary); }
.btn-dark { background: var(--bx-secondary); border-color: var(--bx-secondary); }
.bx-btn-lg { padding: 13px 30px; font-size: 15px; font-weight: 700; letter-spacing: .3px; }

/* ─── Section Heading ────────────────────────────────────── */
.bx-section { padding: 48px 0; }
.bx-section-sm { padding: 28px 0; }
.bx-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.bx-section-title {
  font-size: clamp(18px, 2.8vw, 24px); font-family: var(--font-head); font-weight: 800;
  color: var(--bx-secondary); position: relative;
}
.bx-section-title::after {
  content: ''; display: block; width: 36px; height: 3px;
  background: var(--bx-primary); border-radius: 2px; margin-top: 6px;
}
.bx-section-link { font-size: 13px; color: var(--bx-primary); font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.bx-section-link:hover { gap: 8px; }

/* ─── Hero Slider ────────────────────────────────────────── */
.bx-hero { position: relative; overflow: hidden; }
.bx-hero-slide { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
@media (max-width:767px) { .bx-hero-slide { min-height: 320px; } }
.bx-hero-bg { position: absolute; inset: 0; }
.bx-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.bx-hero-content { position: relative; z-index: 2; padding: 56px 0; }
.bx-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bx-primary); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 5px 14px;
  border-radius: 20px; margin-bottom: 14px;
  letter-spacing: 1px; text-transform: uppercase;
}
.bx-hero-title {
  font-size: clamp(26px, 5vw, 52px); font-family: var(--font-head); font-weight: 800;
  color: #fff; line-height: 1.12; margin-bottom: 14px;
}
.bx-hero-title span { color: var(--bx-primary); }
.bx-hero-sub { font-size: clamp(13px, 2vw, 16px); color: rgba(255,255,255,.75); margin-bottom: 28px; max-width: 480px; line-height: 1.65; }
.bx-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bx-hero-product { position: relative; z-index: 2; text-align: center; }
.bx-hero-product-icon {
  width: 280px; height: 300px; max-width: 100%;
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: bxFloat 3.5s ease-in-out infinite;
}
@keyframes bxFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
.bx-hero .swiper-pagination-bullet { background: rgba(255,255,255,.4); width: 8px; height: 8px; }
.bx-hero .swiper-pagination-bullet-active { background: var(--bx-primary); width: 22px; border-radius: 4px; }
.bx-hero .swiper-button-prev,.bx-hero .swiper-button-next {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border-radius: 50%; color: #fff; border: 1px solid rgba(255,255,255,.25);
  transition: background var(--bx-t);
}
.bx-hero .swiper-button-prev:hover,.bx-hero .swiper-button-next:hover { background: var(--bx-primary); border-color: var(--bx-primary); }
.bx-hero .swiper-button-prev::after,.bx-hero .swiper-button-next::after { font-size: 13px; font-weight: 800; }

/* ─── Banner Strip ───────────────────────────────────────── */
.bx-banner-strip { background: linear-gradient(135deg, var(--bx-secondary), var(--bx-accent)); color: #fff; padding: 14px 0; }
.bx-banner-strip-item { text-align: center; padding: 6px 4px; }
.bx-banner-strip-item i { font-size: 22px; color: var(--bx-primary); margin-bottom: 5px; display: block; }
.bx-banner-strip-item strong { display: block; font-size: 13px; font-weight: 700; font-family: var(--font-head); }
.bx-banner-strip-item span { font-size: 12px; color: rgba(255,255,255,.55); }

/* ─── Category Cards ─────────────────────────────────────── */
.bx-cat-card {
  background: var(--bx-surface); border-radius: var(--bx-r-lg); padding: 22px 14px;
  text-align: center; border: 2px solid transparent; cursor: pointer;
  transition: all var(--bx-t); box-shadow: var(--bx-shadow-sm);
  display: block; color: var(--bx-text); text-decoration: none;
}
.bx-cat-card:hover { border-color: var(--bx-primary); box-shadow: var(--bx-shadow); transform: translateY(-4px); color: var(--bx-primary); }
.bx-cat-icon-wrap {
  width: 62px; height: 62px; border-radius: var(--bx-r); background: var(--bx-primary-l);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  font-size: 25px; color: var(--bx-primary); transition: all var(--bx-t);
}
.bx-cat-card:hover .bx-cat-icon-wrap { background: var(--bx-primary); color: #fff; transform: scale(1.1) rotate(-5deg); }
.bx-cat-name { font-size: 13px; font-weight: 700; font-family: var(--font-head); line-height: 1.3; }

/* ─── Product Cards ──────────────────────────────────────── */
.bx-product-card {
  background: var(--bx-surface); border-radius: var(--bx-r-lg);
  overflow: hidden; box-shadow: var(--bx-shadow-sm);
  transition: box-shadow var(--bx-t), transform var(--bx-t);
  position: relative; height: 100%; display: flex; flex-direction: column;
}
.bx-product-card:hover { box-shadow: var(--bx-shadow-lg); transform: translateY(-4px); }
.bx-product-img-wrap { position: relative; background: var(--bx-light); overflow: hidden; padding-top: 100%; }
.bx-product-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.bx-product-card:hover .bx-product-img { transform: scale(1.05); }
.bx-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.bx-badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.bx-badge-off  { background: var(--bx-danger);   color: #fff; }
.bx-badge-hot  { background: var(--bx-primary);   color: #fff; }
.bx-badge-oos  { background: #94A3B8; color: #fff; }
.bx-badge-new  { background: var(--bx-success);   color: #fff; }
.bx-product-actions {
  position: absolute; right: 8px; top: 8px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(6px);
  transition: opacity var(--bx-t), transform var(--bx-t);
}
.bx-product-card:hover .bx-product-actions { opacity: 1; transform: translateX(0); }
.bx-btn-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border: 1px solid var(--bx-border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--bx-secondary); cursor: pointer;
  transition: background var(--bx-t), color var(--bx-t), border-color var(--bx-t);
}
.bx-btn-icon:hover { background: var(--bx-primary); color: #fff; border-color: var(--bx-primary); }
.bx-btn-icon.wishlisted { color: var(--bx-danger); background: rgba(239,68,68,.08); }
.bx-product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bx-product-rating { display: flex; align-items: center; gap: 4px; }
.stars { color: var(--bx-gold); font-size: 12px; letter-spacing: -.5px; }
.stars small { color: var(--bx-muted); font-size: 11px; letter-spacing: 0; }
.bx-product-name {
  font-size: 13.5px; font-weight: 600; color: var(--bx-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; transition: color var(--bx-t);
}
.bx-product-name:hover { color: var(--bx-primary); }
.bx-product-price-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.bx-price-sale { font-size: 16px; font-weight: 800; color: var(--bx-primary); font-family: var(--font-head); }
.bx-price-original { font-size: 12px; color: var(--bx-muted); text-decoration: line-through; }
.bx-btn-cart {
  width: 100%; padding: 9px; background: var(--bx-secondary); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: background var(--bx-t), transform var(--bx-t);
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px;
}
.bx-btn-cart:hover:not(:disabled) { background: var(--bx-primary); }
.bx-btn-cart:disabled { background: var(--bx-border); color: var(--bx-muted); cursor: not-allowed; }
.bx-btn-cart.added { background: var(--bx-success); }

/* ─── Promo Banners ──────────────────────────────────────── */
.bx-promo-card {
  border-radius: var(--bx-r-lg); overflow: hidden; position: relative;
  min-height: 180px; display: flex; align-items: center; cursor: pointer;
}
.bx-promo-card .bx-promo-overlay { position: absolute; inset: 0; }
.bx-promo-card .bx-promo-content { position: relative; z-index: 2; padding: 22px; color: #fff; }
.bx-promo-card .bx-promo-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--bx-primary); margin-bottom: 5px; }
.bx-promo-card .bx-promo-title { font-size: clamp(17px, 2.5vw, 22px); font-family: var(--font-head); font-weight: 800; line-height: 1.25; }
.bx-promo-card .bx-promo-sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }
.bx-promo-card .bx-promo-btn {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--bx-primary); color: #fff;
  padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 700;
  transition: background var(--bx-t); text-decoration: none;
}
.bx-promo-card .bx-promo-btn:hover { background: var(--bx-primary-d); color: #fff; }

/* ─── Quick View Modal ───────────────────────────────────── */
.bx-modal { border: none; border-radius: var(--bx-r-xl); overflow: hidden; }
.bx-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border-radius: 50%; border: none; font-size: 16px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ─── Forms ──────────────────────────────────────────────── */
.bx-form-card { background: var(--bx-surface); border-radius: var(--bx-r-xl); box-shadow: var(--bx-shadow-lg); overflow: hidden; }
.bx-form-side {
  background: linear-gradient(160deg, var(--bx-secondary), var(--bx-accent));
  padding: 40px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  min-height: 400px;
}
.bx-form-side-title { font-size: 26px; font-family: var(--font-head); font-weight: 800; margin-bottom: 10px; }
.bx-form-side-sub { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.bx-form-side-list { list-style: none; margin-top: 22px; }
.bx-form-side-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.bx-form-side-list li i { color: var(--bx-primary); }
.bx-form-body { padding: 36px 40px; }
.bx-form-title { font-size: 24px; font-family: var(--font-head); font-weight: 800; margin-bottom: 4px; }
.bx-form-subtitle { color: var(--bx-muted); font-size: 14px; margin-bottom: 26px; }
.bx-input-group { margin-bottom: 18px; }
.bx-input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--bx-text-2); }
.bx-input {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--bx-border); border-radius: 8px;
  font-size: 14px; font-family: var(--font-body); color: var(--bx-text); background: var(--bx-surface);
  transition: border-color var(--bx-t), box-shadow var(--bx-t); outline: none;
}
.bx-input:focus { border-color: var(--bx-primary); box-shadow: 0 0 0 3px rgba(255,107,53,.1); }
.bx-input.is-invalid { border-color: var(--bx-danger); }
.bx-input-icon-wrap { position: relative; }
.bx-input-icon-wrap .bx-input { padding-left: 40px; }
.bx-input-icon-wrap > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bx-muted); font-size: 15px; pointer-events: none; }
.bx-input-icon-wrap .bx-pass-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--bx-muted); cursor: pointer; font-size: 15px; padding: 4px; }

/* OTP Inputs */
.bx-otp-wrap { display: flex; gap: 10px; justify-content: center; }
.bx-otp-input {
  width: 52px; height: 58px; text-align: center; font-size: 24px; font-weight: 800;
  border: 2px solid var(--bx-border); border-radius: 10px; font-family: var(--font-head);
  transition: border-color var(--bx-t), box-shadow var(--bx-t); outline: none; color: var(--bx-text);
}
.bx-otp-input:focus { border-color: var(--bx-primary); box-shadow: 0 0 0 3px rgba(255,107,53,.1); }
.bx-pass-strength { height: 4px; border-radius: 2px; background: var(--bx-border); margin-top: 6px; overflow: hidden; }
.bx-pass-strength-bar { height: 100%; border-radius: 2px; transition: width .4s, background .4s; width: 0%; }

/* ─── Product Detail ─────────────────────────────────────── */
.bx-product-gallery-main { border-radius: var(--bx-r-lg); overflow: hidden; background: var(--bx-light); aspect-ratio: 1; }
.bx-product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.bx-gallery-thumb { border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--bx-t); aspect-ratio: 1; background: var(--bx-light); }
.bx-gallery-thumb.active, .bx-gallery-thumb:hover { border-color: var(--bx-primary); }
.bx-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bx-product-detail-title { font-size: clamp(20px, 3vw, 30px); font-family: var(--font-head); font-weight: 800; }
.bx-product-detail-price { font-size: 28px; font-weight: 800; color: var(--bx-primary); font-family: var(--font-head); }
.bx-product-detail-original { font-size: 16px; color: var(--bx-muted); text-decoration: line-through; margin-left: 8px; }
.bx-product-detail-discount { background: var(--bx-danger); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-left: 8px; }
.bx-variant-btn {
  padding: 7px 16px; border: 2px solid var(--bx-border); background: var(--bx-surface);
  border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--bx-t);
  font-family: var(--font-body);
}
.bx-variant-btn:hover, .bx-variant-btn.active { border-color: var(--bx-primary); color: var(--bx-primary); background: var(--bx-primary-l); }
.bx-qty-control { display: inline-flex; align-items: center; border: 2px solid var(--bx-border); border-radius: 8px; overflow: hidden; }
.bx-qty-control button {
  width: 40px; height: 44px; background: var(--bx-light); border: none;
  font-size: 16px; cursor: pointer; font-weight: 700; transition: background var(--bx-t);
}
.bx-qty-control button:hover { background: var(--bx-primary); color: #fff; }
.bx-qty-control input {
  width: 54px; height: 44px; text-align: center;
  border: none; border-left: 2px solid var(--bx-border); border-right: 2px solid var(--bx-border);
  font-size: 15px; font-weight: 700; font-family: var(--font-head); outline: none;
}
.bx-product-tabs .nav-link {
  color: var(--bx-muted); font-weight: 600; font-size: 14px; border: none;
  padding: 10px 20px; border-bottom: 3px solid transparent; border-radius: 0;
  transition: color var(--bx-t), border-color var(--bx-t);
}
.bx-product-tabs .nav-link.active, .bx-product-tabs .nav-link:hover { color: var(--bx-primary); border-bottom-color: var(--bx-primary); background: transparent; }

/* ─── Cart Page ──────────────────────────────────────────── */
.bx-cart-table thead th { font-family: var(--font-head); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--bx-muted); background: var(--bx-light); }
.bx-cart-table tbody tr { vertical-align: middle; }
.bx-cart-product-img { width: 68px; height: 68px; object-fit: cover; border-radius: 9px; }
.bx-cart-product-name { font-weight: 600; font-size: 14px; }
.bx-order-summary-card { background: var(--bx-surface); border-radius: var(--bx-r-lg); box-shadow: var(--bx-shadow); overflow: hidden; }
.bx-order-summary-head { background: var(--bx-secondary); color: #fff; padding: 14px 20px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.bx-order-summary-body { padding: 20px; }
.bx-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--bx-border); font-size: 14px; }
.bx-summary-row:last-child { border-bottom: none; }
.bx-summary-total { font-size: 18px; font-weight: 800; color: var(--bx-primary); font-family: var(--font-head); }
.bx-coupon-form { display: flex; gap: 8px; margin-top: 12px; }
.bx-coupon-form input { flex: 1; }

/* ─── Checkout ───────────────────────────────────────────── */
.bx-checkout-step { background: var(--bx-surface); border-radius: var(--bx-r-lg); box-shadow: var(--bx-shadow-sm); margin-bottom: 14px; overflow: hidden; }
.bx-checkout-step-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bx-light); border-bottom: 1px solid var(--bx-border); }
.bx-checkout-step-num { width: 30px; height: 30px; background: var(--bx-secondary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.bx-checkout-step.active .bx-checkout-step-num { background: var(--bx-primary); }
.bx-checkout-step.done .bx-checkout-step-num { background: var(--bx-success); }
.bx-checkout-step-title { font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.bx-checkout-step-body { padding: 18px; }
.bx-payment-option {
  border: 2px solid var(--bx-border); border-radius: var(--bx-r); padding: 13px 16px;
  cursor: pointer; transition: border-color var(--bx-t), background var(--bx-t);
  display: flex; align-items: center; gap: 12px; margin-bottom: 9px;
}
.bx-payment-option:hover { border-color: var(--bx-primary); }
.bx-payment-option.active { border-color: var(--bx-primary); background: rgba(255,107,53,.04); }
.bx-payment-option input[type="radio"] { accent-color: var(--bx-primary); }

/* ─── Orders ─────────────────────────────────────────────── */
.bx-order-card {
  background: var(--bx-surface); border-radius: var(--bx-r-lg);
  box-shadow: var(--bx-shadow-sm); margin-bottom: 14px; overflow: hidden;
  border-left: 4px solid var(--bx-border); transition: box-shadow var(--bx-t), border-color var(--bx-t);
}
.bx-order-card:hover { box-shadow: var(--bx-shadow); border-left-color: var(--bx-primary); }
.bx-order-card-head {
  padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; border-bottom: 1px solid var(--bx-border); background: var(--bx-light);
}
.bx-order-number { font-weight: 800; font-family: var(--font-head); color: var(--bx-secondary); font-size: 15px; }
.bx-order-card-body { padding: 14px 18px; }
.bx-order-item-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.bx-tracking-timeline { position: relative; padding-left: 28px; }
.bx-tracking-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--bx-border); }
.bx-track-step { position: relative; padding-bottom: 22px; }
.bx-track-step::before { content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bx-border); border: 2px solid var(--bx-surface); z-index: 1; }
.bx-track-step.done::before { background: var(--bx-success); }
.bx-track-step.current::before { background: var(--bx-primary); box-shadow: 0 0 0 4px rgba(255,107,53,.2); }
.bx-track-step-title { font-size: 14px; font-weight: 700; }
.bx-track-step-time { font-size: 12px; color: var(--bx-muted); margin-top: 1px; }
.bx-track-step-note { font-size: 13px; color: var(--bx-muted); margin-top: 3px; }

/* ─── Profile ────────────────────────────────────────────── */
.bx-profile-card { background: linear-gradient(135deg, var(--bx-secondary), var(--bx-accent)); color: #fff; border-radius: var(--bx-r-lg); padding: 28px; text-align: center; }
.bx-profile-avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--bx-primary); object-fit: cover; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--bx-primary); font-size: 30px; color: #fff; }
.bx-profile-name { font-size: 20px; font-family: var(--font-head); font-weight: 700; }
.bx-profile-email { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 3px; }
.bx-profile-stats { display: flex; gap: 24px; justify-content: center; margin-top: 18px; }
.bx-profile-stat strong { display: block; font-size: 22px; font-family: var(--font-head); color: var(--bx-primary); }
.bx-profile-stat span { font-size: 12px; color: rgba(255,255,255,.6); }
.bx-tab-card { background: var(--bx-surface); border-radius: var(--bx-r-lg); box-shadow: var(--bx-shadow-sm); overflow: hidden; }
.bx-tab-nav .nav-link {
  border: none; border-radius: 0; color: var(--bx-muted); font-weight: 600; font-size: 14px;
  padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--bx-border);
  display: flex; align-items: center; gap: 10px; transition: background var(--bx-t), color var(--bx-t);
}
.bx-tab-nav .nav-link:hover { background: var(--bx-light); color: var(--bx-primary); }
.bx-tab-nav .nav-link.active { background: var(--bx-primary); color: #fff; }
.bx-tab-nav .nav-link i { width: 18px; text-align: center; }

/* ─── Filters ────────────────────────────────────────────── */
.bx-filter-card { background: var(--bx-surface); border-radius: var(--bx-r-lg); box-shadow: var(--bx-shadow-sm); overflow: hidden; margin-bottom: 14px; position: sticky; top: 16px; }
.bx-filter-head { padding: 13px 15px; background: var(--bx-secondary); color: #fff; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; }
.bx-filter-section { padding: 13px 15px; border-bottom: 1px solid var(--bx-border); }
.bx-filter-section-title { font-size: 12px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--bx-muted); }
.bx-filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; cursor: pointer; }
.bx-filter-option input { accent-color: var(--bx-primary); }
.bx-filter-option label { font-size: 13px; cursor: pointer; }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.bx-breadcrumb { background: var(--bx-surface); padding: 10px 0; border-bottom: 1px solid var(--bx-border); }
.bx-breadcrumb .breadcrumb { margin: 0; font-size: 13px; }
.bx-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--bx-muted); }
.bx-breadcrumb .breadcrumb-item a { color: var(--bx-primary); }

/* ─── Flash Alerts ───────────────────────────────────────── */
.bx-alert { border: none; border-radius: var(--bx-r); font-size: 14px; }
.bx-flash-container { position: fixed; top: 76px; right: 16px; z-index: 9000; max-width: 380px; width: 90%; }
.bx-flash-container .bx-alert { box-shadow: var(--bx-shadow-lg); }

/* ─── Empty State ────────────────────────────────────────── */
.bx-empty-state { text-align: center; padding: 56px 16px; }
.bx-empty-state i { font-size: 56px; color: var(--bx-border); margin-bottom: 14px; display: block; }
.bx-empty-state h4 { font-family: var(--font-head); color: var(--bx-muted); margin-bottom: 8px; }
.bx-empty-state p { color: var(--bx-muted); font-size: 14px; }

/* ─── Toast ──────────────────────────────────────────────── */
.bx-toast {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--bx-secondary); color: #fff; padding: 12px 22px; border-radius: 32px;
  font-size: 14px; font-weight: 600; z-index: 9999; opacity: 0;
  transition: opacity .3s, transform .3s; white-space: nowrap; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.bx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bx-toast.success { background: var(--bx-success); }
.bx-toast.error   { background: var(--bx-danger); }
@media (min-width:992px) { .bx-toast { bottom: 24px; } }

/* ─── Stat Cards (admin/home) ────────────────────────────── */
.bx-stat-card { background: var(--bx-surface); border-radius: var(--bx-r-lg); padding: 22px; box-shadow: var(--bx-shadow-sm); display: flex; gap: 16px; align-items: center; border-left: 4px solid var(--bx-primary); transition: box-shadow var(--bx-t); }
.bx-stat-card:hover { box-shadow: var(--bx-shadow); }
.bx-stat-icon { width: 52px; height: 52px; border-radius: var(--bx-r); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.bx-stat-value { font-size: 26px; font-weight: 800; font-family: var(--font-head); color: var(--bx-secondary); }
.bx-stat-label { font-size: 12.5px; color: var(--bx-muted); font-weight: 500; }

/* ─── Footer ─────────────────────────────────────────────── */
.bx-footer { background: var(--bx-secondary); color: rgba(255,255,255,.75); }
.bx-footer-top { padding: 56px 0 40px; }
.bx-footer-brand .bx-logo-text { color: #fff; }
.bx-footer-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.75; margin: 10px 0; }
.bx-footer-social { display: flex; gap: 10px; }
.bx-footer-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; transition: all var(--bx-t); }
.bx-footer-social a:hover { background: var(--bx-primary); border-color: var(--bx-primary); color: #fff; }
.bx-footer-heading { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; font-family: var(--font-head); letter-spacing: .5px; text-transform: uppercase; }
.bx-footer-list { list-style: none; padding: 0; }
.bx-footer-list li { margin-bottom: 9px; }
.bx-footer-list li a { font-size: 13px; color: rgba(255,255,255,.5); transition: color var(--bx-t); display: flex; align-items: center; gap: 6px; }
.bx-footer-list li a i { color: var(--bx-primary); font-size: 11px; }
.bx-footer-list li a:hover { color: var(--bx-primary); }
.bx-newsletter-input-wrap { display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; overflow: hidden; }
.bx-newsletter-input-wrap input { flex: 1; background: rgba(255,255,255,.06); border: none; color: #fff; padding: 10px 14px; font-size: 13px; outline: none; font-family: var(--font-body); }
.bx-newsletter-input-wrap input::placeholder { color: rgba(255,255,255,.3); }
.bx-newsletter-btn { background: var(--bx-primary); border: none; color: #fff; width: 44px; cursor: pointer; transition: background var(--bx-t); }
.bx-newsletter-btn:hover { background: var(--bx-primary-d); }
.bx-footer-contact p { font-size: 12.5px; display: flex; gap: 8px; margin-bottom: 7px; color: rgba(255,255,255,.5); align-items: flex-start; }
.bx-footer-contact i { color: var(--bx-primary); margin-top: 2px; flex-shrink: 0; }
.bx-footer-mid { background: rgba(0,0,0,.2); padding: 18px 0; border-top: 1px solid rgba(255,255,255,.07); }
.bx-app-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.18); padding: 8px 14px; border-radius: 8px; font-size: 12.5px; transition: all var(--bx-t); }
.bx-app-btn:hover { background: var(--bx-primary); border-color: var(--bx-primary); color: #fff; }
.bx-payment-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bx-pay-icon { color: rgba(255,255,255,.6); font-size: 13px; }
.bx-upi-icon { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #fff; }
.bx-cod-icon { color: rgba(255,255,255,.6); font-size: 13px; }
.bx-footer-bottom { background: rgba(0,0,0,.3); padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.bx-footer-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.bx-footer-badges span { font-size: 12px; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 4px; }
.bx-footer-badges i { color: var(--bx-primary); }

/* ─── Mobile Bottom Nav ──────────────────────────────────── */
.bx-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bx-surface); border-top: 1px solid var(--bx-border);
  z-index: 1000; display: flex; height: 60px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}
.bx-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--bx-muted);
  font-size: 10.5px; font-weight: 600; position: relative;
  transition: color var(--bx-t);
}
.bx-bnav-item i { font-size: 20px; }
.bx-bnav-item.active, .bx-bnav-item:hover { color: var(--bx-primary); }
.bx-bnav-cart { position: relative; background: var(--bx-primary); color: #fff !important; border-radius: 16px 16px 0 0; margin: -10px 4px 0; box-shadow: 0 -4px 16px rgba(255,107,53,.35); }
.bx-bnav-cart:hover { background: var(--bx-primary-d) !important; color: #fff !important; }
.bx-bnav-badge { position: absolute; top: -2px; right: 18%; background: var(--bx-secondary); color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }

/* ─── Back to Top ────────────────────────────────────────── */
.bx-back-top {
  position: fixed; bottom: 76px; right: 18px;
  width: 42px; height: 42px; background: var(--bx-primary); color: #fff;
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; z-index: 999;
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--bx-t), transform var(--bx-t);
}
.bx-back-top.visible { opacity: 1; transform: translateY(0); }
.bx-back-top:hover { background: var(--bx-primary-d); }
@media (min-width:992px) { .bx-back-top { bottom: 24px; } }

/* ─── Misc ───────────────────────────────────────────────── */
.bx-card { background: var(--bx-surface); border-radius: var(--bx-r-lg); box-shadow: var(--bx-shadow-sm); padding: 22px; }
.bx-divider { height: 1px; background: var(--bx-border); margin: 18px 0; }
.text-primary { color: var(--bx-primary) !important; }
.bg-primary   { background-color: var(--bx-primary) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.lh-base { line-height: 1.6; }
.bx-skeleton { background: linear-gradient(90deg, var(--bx-border) 25%, #e9ecef 37%, var(--bx-border) 63%); background-size: 400% 100%; animation: bxShimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes bxShimmer { 0%{ background-position: 100% 50%; } 100%{ background-position: 0 50%; } }

/* ─── Swiper Customization ───────────────────────────────── */
.bx-product-swiper { overflow: hidden; }
.swiper-button-prev, .swiper-button-next { width: 36px!important; height: 36px!important; background: var(--bx-surface); border-radius: 50%; box-shadow: var(--bx-shadow); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 13px!important; color: var(--bx-text); font-weight: 800; }
.swiper-button-prev:hover, .swiper-button-next:hover { background: var(--bx-primary); }
.swiper-button-prev:hover::after, .swiper-button-next:hover::after { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width:991px) {
  .bx-search-cat { display: none; }
  .bx-cat-nav { overflow: hidden; }
  .bx-cat-nav .d-none { display: none !important; }
}
@media (max-width:767px) {
  .bx-form-body { padding: 24px 18px; }
  .bx-form-side { padding: 28px 20px; min-height: auto; }
  .bx-hero-product { display: none !important; }
  .bx-otp-input { width: 44px; height: 52px; font-size: 20px; }
  .bx-section { padding: 30px 0; }
  .bx-cat-card { padding: 16px 10px; }
  .bx-cat-icon-wrap { width: 50px; height: 50px; font-size: 20px; }
  .bx-form-card { border-radius: var(--bx-r-lg); }
}
@media (max-width:479px) {
  .bx-otp-wrap { gap: 7px; }
  .bx-otp-input { width: 38px; height: 46px; font-size: 18px; }
  .bx-hero-title { font-size: 24px; }
}

/* ─── WebView Safe Area ──────────────────────────────────── */
@supports (padding: max(0px)) {
  .bx-bottom-nav { height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  body.bx-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  @media (min-width:992px) { body.bx-body { padding-bottom: 0; } }
}

/* ─── Touch Targets (WebView Friendly) ──────────────────── */
@media (hover:none) {
  .bx-btn-cart, .btn, .bx-icon-btn { min-height: 44px; }
  .bx-cat-link { min-height: 44px; }
  .bx-bottom-nav { height: max(60px, 60px + env(safe-area-inset-bottom,0px)); }
}
