/* ==============================================================================
   DOCASHIER — Monochrome POS & Commerce Design System (Vanilla CSS)
   ============================================================================== */

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

:root {
  /* Surfaces */
  --bg-canvas: #ffffff;
  --bg-surface-subdued: #f8f9fa;
  --bg-surface-elevate: #f1f3f5;
  --bg-surface-dark: #0a0a0a;
  
  /* Borders & Dividers */
  --border-hairline: #e9ecef;
  --border-interactive: #ced4da;
  --border-dark: #1f242d;
  
  /* Typography & Contrast */
  --text-pitch: #0a0a0a;
  --text-carbon: #1a1a1a;
  --text-muted: #666666;
  --text-slate: #9ca3af;
  --text-white: #ffffff;
  
  /* Brand Actions */
  --brand-primary: #000000;
  --brand-primary-hover: #1c1c1c;
  
  /* Semantic Status Accents */
  --status-emerald: #10b981;
  --status-emerald-bg: #f0fdf4;
  --status-emerald-text: #166534;
  --status-emerald-dot: #10b981;
  
  --status-amber: #d97706;
  --status-amber-bg: #fffbeb;
  --status-amber-text: #92400e;
  --status-amber-dot: #f59e0b;
  
  --status-crimson: #ef4444;
  --status-crimson-bg: #fef2f2;
  --status-crimson-text: #991b1b;
  --status-crimson-dot: #ef4444;

  --status-blue: #2563eb;
  --status-blue-bg: #eff6ff;
  --status-blue-text: #1e40af;

  /* Geometry & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(10, 10, 10, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(10, 10, 10, 0.06);
  --shadow-floating: 0 12px 32px -4px rgba(10, 10, 10, 0.10);
  --shadow-modal: 0 24px 48px -12px rgba(10, 10, 10, 0.22);
}

/* Base Reset & RTL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: 'Alexandria', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-surface-subdued);
  color: var(--text-pitch);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  font-size: 14.5px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  letter-spacing: -0.01em;
}

/* Numerical Lining Figures */
.num, .tabular, [data-price], [data-sku], .currency {
  font-family: 'Plus Jakarta Sans', 'Alexandria', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ==============================================================================
   Top Executive Domain Switcher Bar
   ============================================================================== */
.executive-switcher {
  background: #000000;
  color: #ffffff;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.switcher-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.live-indicator .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.switcher-domains {
  display: flex;
  background: #14171a;
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid #2a2e35;
}

.domain-pill {
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.domain-pill:hover {
  color: #ffffff;
}

.domain-pill.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.switcher-db-badge {
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==============================================================================
   Storefront Navigation & Header
   ============================================================================== */
.store-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 14px 24px;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.header-logo svg {
  height: 38px;
  width: auto;
}

.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  background: var(--bg-surface-subdued);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-pitch);
  outline: none;
  transition: all 0.2s;
}

.header-search input:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.header-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-slate);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.header-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.header-svg.wa-color {
  fill: #16a34a;
}

.header-btn {
  background: transparent;
  border: 1px solid var(--border-interactive);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-pitch);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.nav-mobile {
  display: none;
}
.nav-desktop {
  display: inline;
}

.header-btn:hover {
  background: var(--bg-surface-elevate);
  border-color: var(--brand-primary);
}

.cart-trigger-btn {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cart-trigger-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-primary-hover);
}

.cart-badge {
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* ==============================================================================
   Storefront Hero & Promo Banner
   ============================================================================== */
.hero-banner {
  max-width: 1400px;
  margin: 24px auto 32px;
  padding: 0 24px;
}

.hero-card {
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 44px 50px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  border: 1px solid #1a1a1a;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14171a;
  border: 1px solid #2a2e35;
  color: #e2e8f0;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-emerald);
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 26px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-primary-white {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 28px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.btn-ghost-dark {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost-dark:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* Trust Bar */
.trust-bar {
  max-width: 1400px;
  margin: 0 auto 36px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pitch);
}

.trust-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==============================================================================
   Store Catalog & Category Filters
   ============================================================================== */
.catalog-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-title-group h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.catalog-title-group p {
  font-size: 14px;
  color: var(--text-muted);
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-width: 0;
  max-width: 100%;
}

.cat-pill {
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  color: var(--text-carbon);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.cat-pill:hover {
  border-color: var(--border-interactive);
  background: var(--bg-surface-elevate);
}

.cat-pill.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-pitch);
  outline: none;
  cursor: pointer;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-interactive);
  box-shadow: var(--shadow-card);
}

.product-badge-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.bestseller-badge {
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.stock-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stock-in {
  background: var(--status-emerald-bg);
  color: var(--status-emerald-text);
}

.stock-in .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-emerald-dot);
}

.stock-low {
  background: var(--status-amber-bg);
  color: var(--status-amber-text);
}

.stock-low .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-amber-dot);
}

.product-thumb-container {
  background: #f8fafc;
  padding: 10px;
  text-align: center;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.product-thumb-container.has-photo {
  padding: 0 !important;
  background: #090d16;
}

.product-thumb-container img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-thumb-container.has-photo img,
.product-thumb-container img.is-photo {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
}

.product-card:hover .product-thumb-container img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pitch);
  line-height: 1.35;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.15s;
}

.product-title:hover {
  color: #2563eb;
}

.product-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.spec-chip {
  background: var(--bg-surface-elevate);
  color: var(--text-carbon);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
}

.price-group {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-pitch);
}

.old-price {
  font-size: 12px;
  color: var(--text-slate);
  text-decoration: line-through;
}

.btn-add-cart {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-add-cart:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* ==============================================================================
   Cart Slide-out Drawer (RTL: Slides from Left or Right)
   ============================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 440px;
  max-width: 100%;
  background: #ffffff;
  z-index: 1200;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.drawer-close-btn {
  background: var(--bg-surface-elevate);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.drawer-close-btn:hover {
  background: var(--border-hairline);
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg-surface-subdued);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hairline);
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-pitch);
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.qty-btn {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--border-hairline);
}

.qty-val {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.item-remove-btn {
  color: var(--text-slate);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.item-remove-btn:hover {
  color: var(--status-crimson);
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface-subdued);
}

.coupon-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.coupon-input {
  flex: 1;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-interactive);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.coupon-btn {
  background: var(--text-carbon);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-row.total-row {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-pitch);
  padding-top: 10px;
  border-top: 1px dashed var(--border-interactive);
  margin-top: 10px;
  margin-bottom: 18px;
}

.btn-checkout {
  width: 100%;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-family: inherit;
}

.btn-checkout:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* ==============================================================================
   Admin Dashboard & Portal Layout (Collapsible Sidebar & Modern Viewport)
   ============================================================================== */
:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 76px;
  --sidebar-bg: #0b0f19;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --sidebar-active-bg: #ffffff;
  --sidebar-active-text: #0b0f19;
}

.admin-app-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
  direction: rtl;
  position: relative;
  overflow-x: hidden;
}

/* Sidebar Component */
.admin-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-left: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1100;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Collapsed Sidebar on Desktop */
.admin-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  height: 68px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sidebar-border);
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sidebar-brand .brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar-logo-full {
  height: 22px;
  display: block;
  transition: opacity 0.2s;
}

.sidebar-logo-collapsed {
  height: 26px;
  display: none;
}

.admin-sidebar.collapsed .sidebar-logo-full {
  display: none !important;
}

.admin-sidebar.collapsed .sidebar-logo-collapsed {
  display: block !important;
  margin: 0 auto;
}

.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* In RTL: chevron pointing right collapses to right border */
.admin-sidebar.collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

.sidebar-close-mobile-btn {
  display: none;
}

/* Status Pill in Sidebar */
.sidebar-status-pill {
  padding: 12px 16px 6px;
  transition: all 0.2s;
}

.admin-sidebar.collapsed .sidebar-status-pill {
  padding: 8px 6px;
  text-align: center;
}

.admin-sidebar.collapsed .sidebar-status-pill .status-text {
  display: none;
}

.admin-sidebar.collapsed .sidebar-status-pill .live-indicator {
  padding: 4px;
  justify-content: center;
}

/* Navigation Menu */
.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-container::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sidebar-nav-group-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 12px 10px 4px;
  transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-nav-group-label {
  display: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  color: var(--sidebar-text);
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: right;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--sidebar-text-hover);
}

.sidebar-nav-item.active {
  background: #ffffff !important;
  color: #0b0f19 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

.sidebar-nav-item .nav-icon {
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
}

.sidebar-nav-item .nav-label {
  flex: 1;
  transition: opacity 0.2s;
}

.sidebar-nav-item .nav-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-nav-item .nav-external-arrow {
  font-size: 12px;
  opacity: 0.6;
}

.admin-sidebar.collapsed .sidebar-nav-item {
  padding: 12px 0;
  justify-content: center;
}

.admin-sidebar.collapsed .sidebar-nav-item .nav-label,
.admin-sidebar.collapsed .sidebar-nav-item .nav-badge,
.admin-sidebar.collapsed .sidebar-nav-item .nav-external-arrow {
  display: none !important;
}

/* Tooltip on collapsed item hover */
.admin-sidebar.collapsed .sidebar-nav-item:hover::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 1200;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  position: relative;
  flex-shrink: 0;
}

.user-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid var(--sidebar-bg);
  border-radius: 50%;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-user-role {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.admin-sidebar.collapsed .sidebar-user-info,
.admin-sidebar.collapsed .logout-label {
  display: none !important;
}

.admin-sidebar.collapsed .sidebar-footer {
  padding: 10px 8px;
  align-items: center;
}

.admin-sidebar.collapsed .sidebar-logout-btn {
  padding: 8px;
  width: 36px;
  height: 36px;
}

/* Main Viewport */
.admin-main-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
}

.admin-viewport-header {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-title-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevate);
  border: 1px solid var(--border-hairline);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-carbon);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
}

.header-sidebar-toggle-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-sidebar-toggle-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.header-sidebar-icon {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.admin-breadcrumb-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-breadcrumb-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-pitch);
  letter-spacing: -0.01em;
}

.admin-breadcrumb-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-viewport-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-viewport-actions .domain-pill {
  background: var(--bg-surface-elevate);
  border: 1px solid var(--border-hairline);
  color: var(--text-carbon);
  padding: 6px 14px;
}

.admin-viewport-actions .domain-pill:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.user-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevate);
  border: 1px solid var(--border-hairline);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-carbon);
}

.admin-mobile-navbar {
  display: none;
}

.admin-sidebar-backdrop {
  display: none;
}

/* Responsive Table Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  position: relative;
}

.table-responsive .data-table {
  min-width: 720px;
  margin-bottom: 0;
}

.admin-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.admin-title-wrap h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.admin-title-wrap p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  background: var(--bg-surface-elevate);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--border-hairline);
  gap: 4px;
}

.admin-tab {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tab:hover {
  color: var(--text-pitch);
}

.admin-tab.active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* KPI Cards Grid */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.kpi-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.kpi-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-pitch);
  line-height: 1.1;
  margin-bottom: 8px;
}

.kpi-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.tag-growth-positive {
  background: var(--status-emerald-bg);
  color: var(--status-emerald-text);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.tag-alert-amber {
  background: var(--status-amber-bg);
  color: var(--status-amber-text);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Data Table Container */
.panel-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  margin-bottom: 28px;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-title h3 {
  font-size: 17px;
  font-weight: 800;
}

.panel-title p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-chip-group {
  display: flex;
  background: var(--bg-surface-elevate);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border-hairline);
}

.filter-chip {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.filter-chip.active {
  background: #000000;
  color: #ffffff;
}

/* Master Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13.5px;
}

.data-table th {
  background: var(--bg-surface-subdued);
  padding: 12px 20px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 12.5px;
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #fafbfc;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
}

.status-new {
  background: var(--status-blue-bg);
  color: var(--status-blue-text);
}

.status-preparing {
  background: var(--status-amber-bg);
  color: var(--status-amber-text);
}

.status-shipped {
  background: #f5f3ff;
  color: #6b21a8;
}

.status-delivered {
  background: var(--status-emerald-bg);
  color: var(--status-emerald-text);
}

.status-cancelled {
  background: var(--status-crimson-bg);
  color: var(--status-crimson-text);
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Table Action Buttons */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-table-action {
  background: var(--bg-surface-elevate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-carbon);
  transition: all 0.15s;
  font-family: inherit;
}

.btn-table-action:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-action-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.btn-action-primary:hover {
  background: #1c1c1c;
}

/* ==============================================================================
   CRM Kanban Sales Pipeline
   ============================================================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}

.kanban-col {
  background: var(--bg-surface-subdued);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 480px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
}

.col-title {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-count {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.lead-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-card:hover {
  border-color: var(--border-interactive);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.lead-company {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-pitch);
}

.lead-contact {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lead-value {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-pitch);
  margin-top: 4px;
}

.lead-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
  font-size: 11.5px;
  color: var(--text-slate);
}

/* ==============================================================================
   Modals (Product Detail 360, Checkout, Quotation Creator, Invoices)
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(10px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-sheet {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  transform: scale(0.97) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .modal-sheet {
  transform: scale(1) translateY(0);
}

.modal-sheet.sheet-wide {
  max-width: 1050px;
}

.modal-sheet.sheet-sm {
  max-width: 550px;
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
}

.modal-body {
  padding: 28px;
  flex: 1;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface-subdued);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Product Detail Modal Layout */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gallery-box {
  background: var(--bg-surface-subdued);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-view-image {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.angle-rotator-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.angle-tab {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.angle-tab.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.config-selector-group {
  margin-bottom: 20px;
}

.config-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.config-options {
  display: flex;
  gap: 10px;
}

.config-opt-btn {
  border: 1.5px solid var(--border-hairline);
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}

.config-opt-btn.active {
  border-color: #000000;
  background: var(--bg-surface-elevate);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.specs-list {
  background: var(--bg-surface-subdued);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--border-hairline);
}

.specs-list-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 12.5px;
}

.specs-list-row:last-child {
  border-bottom: none;
}

.specs-list-label {
  font-weight: 700;
  color: var(--text-muted);
}

.specs-list-val {
  font-weight: 700;
  color: var(--text-pitch);
}

/* ==============================================================================
   Form Elements & Inputs
   ============================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-carbon);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-pitch);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==============================================================================
   Printable Official Documents (Quotations & Tax Invoices)
   ============================================================================== */
.printable-document {
  background: #ffffff;
  color: #000000;
  padding: 36px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  font-family: 'Alexandria', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
}

.doc-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid #000000;
  margin-bottom: 24px;
}

.doc-logo svg {
  height: 48px;
  width: auto;
}

.doc-company-details {
  text-align: left;
  font-size: 11.5px;
  color: #444;
}

.doc-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-subdued);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.doc-title-bar h2 {
  font-size: 18px;
  font-weight: 900;
}

.doc-meta-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.meta-box {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
}

.meta-box-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
}

.doc-table th {
  background: #000000;
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 700;
  text-align: right;
}

.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.doc-totals-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tafqeet-box {
  max-width: 55%;
  background: var(--bg-surface-subdued);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.totals-breakdown {
  width: 320px;
}

.tot-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
}

.tot-line.grand {
  font-size: 17px;
  font-weight: 900;
  border-top: 2px solid #000000;
  padding-top: 8px;
  margin-top: 6px;
}

.doc-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  text-align: center;
}

.sig-block {
  border-top: 1px dashed #000000;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ==============================================================================
   Toast Notifications
   ============================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #000000;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast.success {
  border-right: 4px solid var(--status-emerald);
}

.toast.error {
  border-right: 4px solid var(--status-crimson);
}

/* ==============================================================================
   Floating WhatsApp Live Support Widget
   ============================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 1250;
  display: flex;
  align-items: center;
}

.floating-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px 8px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  font-family: inherit;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px -4px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.wa-svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.whatsapp-badge-pulse {
  position: absolute;
  right: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.6);
  z-index: 1;
  animation: waRadarPulse 2.2s infinite;
  pointer-events: none;
}

@keyframes waRadarPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.whatsapp-label-box {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.25;
}

.whatsapp-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.whatsapp-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 5px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  box-shadow: 0 0 6px #ffffff;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.header-whatsapp-btn {
  background: rgba(37, 211, 102, 0.1);
  color: #15803d;
  border-color: rgba(37, 211, 102, 0.35);
  font-weight: 700;
  text-decoration: none;
}

.header-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #22c55e;
  color: #15803d;
}

/* ==============================================================================
   Dedicated Product Details Page (product.php)
   ============================================================================== */
.product-page-body {
  background-color: var(--bg-surface-subdued);
}

.product-page-shell {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 24px;
}

.product-breadcrumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-trail a {
  color: var(--text-carbon);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.breadcrumb-trail a:hover {
  color: #000;
  text-decoration: underline;
}

.breadcrumb-trail .current-item {
  color: #000;
  font-weight: 700;
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-pitch);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  transition: all 0.2s;
  box-shadow: var(--shadow-subtle);
}

.back-link-btn:hover {
  background: var(--bg-surface-elevate);
  border-color: #000;
  transform: translateX(2px);
}

.product-master-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 50px;
}

/* Visual Column */
.product-visual-col .visual-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 90px;
}

.visual-badges-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.main-display-frame {
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.main-device-photo {
  max-height: 320px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-device-photo:hover {
  transform: scale(1.03);
}

.angle-selector-wrap {
  margin-bottom: 24px;
  text-align: center;
}

.angle-selector-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.angle-buttons-row {
  display: flex;
  gap: 10px;
}

.angle-btn {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text-carbon);
  transition: all 0.2s;
  font-family: inherit;
}

.angle-btn:hover {
  border-color: #000;
  background: var(--bg-surface-elevate);
}

.angle-btn.active {
  border-color: #000;
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pdp-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 22px;
  margin-top: 10px;
}

.pdp-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pdp-trust-icon {
  font-size: 20px;
  line-height: 1;
}

.pdp-trust-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #000;
  margin-bottom: 2px;
}

.pdp-trust-item p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Purchase Column */
.purchase-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}

.pdp-header-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pdp-category-tag {
  background: var(--bg-surface-elevate);
  color: #000;
  font-weight: 800;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
}

.pdp-sku-tag {
  font-size: 12px;
  color: var(--text-muted);
}

.pdp-product-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pdp-reviews-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.stars-gold {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 14px;
}

.rating-num {
  font-weight: 800;
  color: #000;
}

.rating-count {
  color: var(--text-muted);
  font-size: 12px;
}

.pdp-product-desc {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 24px;
}

.pdp-price-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.price-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.price-big {
  font-size: 32px;
  font-weight: 900;
  color: #000;
  margin-left: 12px;
}

.price-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

.price-saved-badge {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.vat-badge {
  font-size: 12px;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.price-subnote {
  font-size: 12px;
  color: var(--text-muted);
}

.pdp-config-section {
  margin-bottom: 22px;
}

.config-label-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #000;
  margin-bottom: 10px;
}

.config-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.config-tile {
  border: 2px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: #ffffff;
}

.config-tile:hover {
  border-color: #000;
  background: #fafafa;
}

.config-tile.active {
  border-color: #000;
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.tile-check {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.config-tile.active .tile-check {
  display: flex;
}

.tile-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #000;
  margin-bottom: 4px;
}

.tile-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.pdp-action-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.stepper-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stepper-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.pdp-stepper {
  height: 52px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-hairline);
}

.pdp-stepper .qty-btn {
  width: 44px;
  height: 52px;
  font-size: 18px;
}

.pdp-stepper .qty-val {
  font-size: 17px;
  padding: 0 16px;
}

.pdp-btn-main {
  flex: 1;
  height: 52px;
  font-size: 15.5px;
  font-weight: 800;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* Product Details Secondary Action Buttons */
.pdp-secondary-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 12px !important;
  width: 100% !important;
}

.pdp-sub-btn {
  width: 100% !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
}

.pdp-sub-btn span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.pdp-quote-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.pdp-quote-btn:hover,
.pdp-quote-btn:active {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #000000 !important;
  transform: translateY(-1px) !important;
}

.pdp-whatsapp-btn,
.whatsapp-action-btn {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1.5px solid #86efac !important;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.06) !important;
}

.pdp-whatsapp-btn:hover,
.pdp-whatsapp-btn:active,
.whatsapp-action-btn:hover,
.whatsapp-action-btn:active {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
  color: #166534 !important;
  transform: translateY(-1px) !important;
}

/* Specs Section */
.pdp-specs-section {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-2xl);
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-subtle);
}

.section-heading-box {
  margin-bottom: 28px;
  border-bottom: 2px solid #000;
  padding-bottom: 16px;
}

.section-heading-box h2 {
  font-size: 22px;
  font-weight: 900;
  color: #000;
  margin-bottom: 6px;
}

.section-heading-box p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.specs-table-container {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pdp-specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.pdp-specs-table tr {
  border-bottom: 1px solid var(--border-hairline);
}

.pdp-specs-table tr:last-child {
  border-bottom: none;
}

.spec-label-th {
  width: 28%;
  padding: 16px 20px;
  font-weight: 800;
  color: #1f2937;
  background: #f9fafb;
  font-size: 13.5px;
  border-left: 1px solid var(--border-hairline);
  vertical-align: top;
}

.spec-val-td {
  padding: 16px 20px;
  font-weight: 600;
  color: #111;
  font-size: 14px;
  line-height: 1.6;
}

/* Related Section */
.pdp-related-section {
  margin-bottom: 60px;
}

/* Mobile Sticky Purchase Bar */
.mobile-sticky-pdp-bar {
  display: none;
}

/* ==============================================================================
   Responsive Media Queries (Tablet & Mobile Phone Optimizations)
   ============================================================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .hero-cta {
    justify-content: center;
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Store Header - Mobile App 2-Tier Header Layout */
  .store-header {
    padding: 8px 12px !important;
    top: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--border-hairline) !important;
  }

  .header-container {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    width: 100% !important;
  }

  /* Row 1: Logo on Right, Action Icons on Left - SAME SINGLE LINE */
  .header-logo {
    order: 1 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    height: 38px !important;
  }

  .header-logo img, .header-logo svg {
    height: 28px !important;
    width: auto !important;
  }

  .header-actions {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  /* Hide all text inside header buttons on mobile: Icons Only! */
  .nav-desktop,
  .nav-mobile {
    display: none !important;
  }

  /* Mobile Header Action Icon Buttons (38px x 38px) */
  .header-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative !important;
  }

  .header-btn .header-svg {
    width: 19px !important;
    height: 19px !important;
  }

  .header-btn:active {
    transform: scale(0.92) !important;
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
  }

  /* WhatsApp Icon Button */
  .header-whatsapp-btn {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12) !important;
  }

  .header-whatsapp-btn .header-svg {
    fill: #16a34a !important;
  }

  .header-whatsapp-btn:active {
    background: #d1fae5 !important;
    border-color: #34d399 !important;
  }

  /* Cart Trigger Icon Button */
  .cart-trigger-btn {
    width: 40px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%) !important;
    color: #ffffff !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .cart-trigger-btn .header-svg {
    width: 19px !important;
    height: 19px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
  }

  .cart-trigger-btn:active {
    transform: scale(0.92) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
  }

  /* Floating Cart Count Badge */
  .cart-trigger-btn .cart-badge {
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    border-radius: 9999px !important;
    padding: 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    border: 1.5px solid #ffffff !important;
  }

  /* Row 2: Search Bar - Full Width Under Row 1 */
  .header-search {
    order: 3 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  .header-search input {
    width: 100% !important;
    padding: 9px 38px 9px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
  }

  .header-search .search-icon {
    right: 12px !important;
    font-size: 13px !important;
  }

  /* Hero Banner - Mobile Phone */
  .hero-banner {
    padding: 0 10px;
    margin: 10px auto 16px;
  }

  .hero-card {
    padding: 20px 14px;
    border-radius: 16px;
    flex-direction: column;
    text-align: right;
  }

  .hero-pill {
    font-size: 10.5px;
    padding: 4px 8px;
    margin-bottom: 10px;
    gap: 5px;
  }

  .hero-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }

  .hero-desc {
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 14px;
    color: #a1a1aa;
  }

  .hero-tags {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 18px !important;
  }

  .hero-tag {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 7px 8px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-align: center !important;
    line-height: 1.25 !important;
    color: #f1f5f9 !important;
  }

  .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  .btn-primary-white {
    width: 100% !important;
    min-height: 50px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%) !important;
    color: #09090b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22), 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -2px 0 rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .btn-primary-white::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    animation: btnShimmerMobile 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
  }

  @keyframes btnShimmerMobile {
    0%, 30% { left: -100%; }
    50%, 100% { left: 200%; }
  }

  .hero-cta .btn-primary-white:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  }

  .hero-cta .btn-primary-white span:last-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.07) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
  }

  .hero-cta .btn-primary-white:active span:last-child {
    transform: translateY(2px) !important;
  }

  .hero-cta .btn-ghost-dark {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .hero-cta .btn-ghost-dark:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
  }

  .hero-cta .btn-ghost-dark span:last-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .hero-visual {
    max-width: 220px;
    margin: 16px auto 0;
  }

  /* Trust Bar - Mobile 2x2 Grid */
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .trust-item {
    padding: 10px 8px;
    gap: 6px;
    border-radius: 10px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    min-width: 0;
  }

  .trust-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    margin-bottom: 2px;
  }

  .trust-title {
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .trust-sub {
    font-size: 9.5px;
    line-height: 1.25;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Catalog & Products Grid - 2 COLUMNS ON MOBILE */
  .catalog-section {
    padding: 0 10px;
    margin-bottom: 36px;
    width: 100%;
    max-width: 100%;
  }

  .catalog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
  }

  .catalog-header > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    min-width: 0;
  }

  .catalog-title-group h2 {
    font-size: 18px;
    font-weight: 800;
  }

  .catalog-title-group p {
    font-size: 12px;
  }

  .category-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
    gap: 5px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .cat-pill:active {
    transform: scale(0.95) !important;
  }

  .cat-pill.active {
    background: linear-gradient(135deg, #18181b 0%, #000000 100%) !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
  }

  .sort-select {
    width: 100%;
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Products Grid: 2 COLUMNS ON MOBILE */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card {
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--border-hairline) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
    transition: none !important;
  }

  .product-badge-wrap {
    top: 6px !important;
    right: 6px !important;
    gap: 2px !important;
  }

  .bestseller-badge {
    font-size: 8px !important;
    padding: 2px 5px !important;
    letter-spacing: 0 !important;
  }

  .stock-badge {
    font-size: 8px !important;
    padding: 2px 5px !important;
  }

  .stock-badge .dot {
    width: 4px !important;
    height: 4px !important;
  }

  .product-thumb-container {
    height: 180px !important;
    padding: 6px !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
  }

  .product-thumb-container.has-photo {
    padding: 0 !important;
  }

  .product-thumb-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast;
  }

  .product-thumb-container.has-photo img,
  .product-thumb-container img.is-photo {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
  }

  .product-info {
    padding: 8px 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }

  .product-cat-name {
    font-size: 9px !important;
    margin-bottom: 2px !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .product-title {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
    min-height: 32px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    cursor: pointer !important;
  }

  .product-tagline {
    display: none !important; /* Hide long description on mobile 2-col to keep height compact and uniform */
  }

  .product-specs-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    margin-bottom: 6px !important;
  }

  .spec-chip {
    font-size: 8.5px !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
  }

  .spec-chip:nth-child(n+3) {
    display: none !important; /* Keep only first 2 chips for clean alignment */
  }

  .product-footer {
    margin-top: auto !important;
    padding-top: 6px !important;
    border-top: 1px solid var(--border-hairline) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: stretch !important;
  }

  .price-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .current-price {
    font-size: 13.5px !important;
    font-weight: 900 !important;
  }

  .old-price {
    font-size: 9.5px !important;
    text-decoration: line-through !important;
    color: #999 !important;
  }

  .btn-add-cart {
    width: 100% !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #18181b 0%, #000000 100%) !important;
    color: #ffffff !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .btn-add-cart:active {
    transform: scale(0.96) !important;
    background: #000000 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  }

  /* Modals - Mobile Bottom Sheet */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-sheet {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  }

  .modal-backdrop.open .modal-sheet {
    transform: translateY(0);
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-header h3 {
    font-size: 15px;
  }

  .modal-body {
    padding: 16px 14px;
  }

  .modal-footer {
    padding: 12px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents auto zoom on iOS */
    padding: 10px 12px;
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Cart Drawer Mobile */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .cart-items-body {
    padding: 14px;
  }

  .drawer-footer {
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  }

  .btn-checkout {
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .btn-checkout:active {
    transform: scale(0.98) !important;
  }

  .coupon-btn {
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: #000000 !important;
    transition: transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .coupon-btn:active {
    transform: scale(0.95) !important;
  }

  .qty-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    transition: transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .qty-btn:active {
    transform: scale(0.92) !important;
  }

  .drawer-close-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .drawer-close-btn:active {
    transform: scale(0.92) !important;
  }

  /* Floating WhatsApp on mobile - Compact Round Button (Does not block products!) */
  .floating-whatsapp-widget {
    bottom: 74px !important;
    left: 14px !important;
    z-index: 1250 !important;
  }

  .floating-whatsapp-btn {
    padding: 0 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .floating-whatsapp-btn:active {
    transform: scale(0.92) !important;
  }

  .floating-whatsapp-btn .whatsapp-label-box {
    display: none !important; /* Hidden on mobile to avoid covering products */
  }

  .floating-whatsapp-btn .whatsapp-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .floating-whatsapp-btn .wa-svg {
    width: 26px !important;
    height: 26px !important;
  }

  .floating-whatsapp-btn .whatsapp-badge-pulse {
    width: 48px !important;
    height: 48px !important;
    right: 0 !important;
    top: 0 !important;
  }

  /* Footer on mobile */
  footer {
    padding: 36px 16px 24px !important;
    margin-top: 50px !important;
  }

  footer > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  footer > div:last-child {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  footer > div:last-child > div:last-child {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* Product Details Dedicated Page (product.php) - Mobile Phone Overrides */
  .product-page-body {
    padding-bottom: 84px !important;
  }

  .product-page-shell {
    margin: 12px auto 30px !important;
    padding: 0 12px !important;
  }

  .product-breadcrumb-bar {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .breadcrumb-trail {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .breadcrumb-trail::-webkit-scrollbar {
    display: none !important;
  }

  .back-link-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .product-master-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .product-visual-col .visual-card {
    padding: 16px !important;
    position: static !important;
    border-radius: 16px !important;
  }

  .main-display-frame {
    height: 230px !important;
    padding: 12px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
  }

  .main-device-photo {
    max-height: 190px !important;
  }

  .angle-buttons-row {
    gap: 6px !important;
  }

  .angle-btn {
    padding: 7px 6px !important;
    font-size: 10.5px !important;
    gap: 4px !important;
  }

  .pdp-trust-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding-top: 14px !important;
  }

  .pdp-trust-item strong {
    font-size: 11px !important;
  }

  .pdp-trust-item p {
    font-size: 9.5px !important;
  }

  .purchase-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .pdp-product-title {
    font-size: 19px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .pdp-product-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }

  .pdp-price-box {
    padding: 14px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }

  .price-big {
    font-size: 24px !important;
  }

  .config-tiles-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .config-tile {
    padding: 10px 12px !important;
  }

  .pdp-action-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .stepper-wrap {
    width: 100% !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .pdp-stepper {
    height: 44px !important;
    width: 140px !important;
  }

  .pdp-stepper .qty-btn {
    height: 44px !important;
    width: 38px !important;
  }

  .pdp-btn-main {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 14px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .pdp-btn-main:active {
    transform: scale(0.98) !important;
  }

  .pdp-specs-section {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
  }

  .section-heading-box {
    margin-bottom: 16px !important;
  }

  .section-heading-box h2 {
    font-size: 17px !important;
  }

  .section-heading-box p {
    font-size: 11.5px !important;
  }

  .spec-label-th {
    width: 38% !important;
    padding: 10px 8px !important;
    font-size: 11.5px !important;
  }

  .spec-val-td {
    padding: 10px 8px !important;
    font-size: 12px !important;
  }

  /* Sticky Purchase Bar for PDP on mobile */
  .mobile-sticky-pdp-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 1200 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .sticky-thumb-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .sticky-pdp-thumb {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 3px !important;
    flex-shrink: 0 !important;
  }

  .sticky-pdp-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
    line-height: 1.3 !important;
  }

  .sticky-pdp-price {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #16a34a !important;
    line-height: 1.2 !important;
  }

  .sticky-buy-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #18181b 0%, #000000 100%) !important;
    color: #ffffff !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22) !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .sticky-buy-btn:active {
    transform: scale(0.96) !important;
  }

  /* Hide floating WhatsApp widget on mobile PDP to avoid overlapping content & sticky bar */
  .product-page-body .floating-whatsapp-widget {
    display: none !important;
  }
}

/* ==============================================================================
   Store Footer (Responsive for Mobile & Desktop PC)
   ============================================================================== */
.store-footer {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border-top: 1px solid #1f242d !important;
  padding: 32px 14px 84px !important;
  margin-top: 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand {
  text-align: right;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-col-links {
  display: none;
}

.footer-col-links h4 {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-col-links ul {
  list-style: none;
  line-height: 2.1;
  font-size: 13px;
  color: #94a3b8;
}

.footer-col-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: #ffffff;
}

.footer-contacts {
  background: #12151b;
  border: 1px solid #1f242d;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.footer-contacts h4 {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.footer-contact-row a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-wa-btn-wrap {
  width: 100%;
}

.footer-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #22c55e;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.footer-wa-btn:hover {
  background: #16a34a;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid #334155;
  border-radius: var(--radius-full);
}

/* ==============================================================================
   Mobile App Bottom Navigation Bar (Phone Only)
   ============================================================================== */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-hairline);
  z-index: 1150;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 100%;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 6px;
  cursor: pointer;
  font-family: inherit;
  flex: 1;
  gap: 2px;
  transition: color 0.15s ease;
  position: relative;
}

.bottom-nav-item:active,
.bottom-nav-item.active {
  color: #000000;
  font-weight: 800;
}

.bottom-nav-item .nav-icon {
  font-size: 18px;
  line-height: 1;
  position: relative;
}

.bottom-nav-item .nav-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.bottom-nav-item .cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #000000;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  min-width: 15px;
  text-align: center;
}

.bottom-nav-wa {
  color: #16a34a !important;
}

/* ==============================================================================
   DESKTOP PC & WIDE SCREEN ARCHITECTURE (min-width: 769px)
   ============================================================================== */
@media (min-width: 769px) {
  body {
    background-color: var(--bg-surface-subdued) !important;
    padding-bottom: 0 !important;
  }

  /* Hide Mobile Bottom Bar on PC */
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Storefront Container on PC */
  #viewStore,
  .product-page-shell {
    max-width: 1360px !important;
    margin: 0 auto !important;
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
  }

  /* Header on PC */
  .store-header {
    padding: 14px 24px !important;
    top: 0 !important;
  }

  .header-container {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }

  .header-logo {
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  .header-logo img,
  .header-logo svg {
    height: 38px !important;
  }

  .header-search {
    order: 2 !important;
    flex: 1 1 auto !important;
    max-width: 520px !important;
    margin: 0 20px !important;
  }

  .header-search input {
    padding: 10px 42px 10px 16px !important;
    font-size: 13.5px !important;
  }

  .header-actions {
    order: 3 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .nav-desktop {
    display: inline !important;
  }
  .nav-mobile {
    display: none !important;
  }

  .header-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }

  .cart-trigger-btn {
    padding: 8px 18px !important;
    font-size: 13.5px !important;
    gap: 8px !important;
  }

  .cart-badge {
    padding: 2px 7px !important;
    min-width: 20px !important;
    font-size: 11px !important;
  }

  /* Hero Section on PC */
  .hero-banner {
    max-width: 1360px !important;
    margin: 24px auto 32px !important;
    padding: 0 24px !important;
  }

  .hero-card {
    display: grid !important;
    grid-template-columns: 1.25fr 0.75fr !important;
    align-items: center !important;
    gap: 36px !important;
    padding: 44px 50px !important;
    border-radius: 24px !important;
    text-align: right !important;
  }

  .hero-title {
    font-size: 34px !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  .hero-desc {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 24px !important;
  }

  .hero-tags {
    gap: 10px !important;
    margin-bottom: 26px !important;
  }

  .hero-tag {
    font-size: 12.5px !important;
    padding: 6px 12px !important;
  }

  .hero-cta {
    flex-direction: row !important;
    gap: 12px !important;
    width: auto !important;
  }

  .btn-primary-white,
  .btn-ghost-dark {
    width: auto !important;
    padding: 12px 26px !important;
    font-size: 14px !important;
  }

  .hero-visual {
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  .hero-visual img {
    max-height: 280px !important;
    max-width: 100% !important;
  }

  /* Trust Bar on PC: 4 Columns */
  .trust-bar {
    max-width: 1360px !important;
    margin: 0 auto 36px !important;
    padding: 0 24px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  .trust-item {
    flex-direction: row !important;
    text-align: right !important;
    align-items: center !important;
    padding: 16px 18px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  .trust-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }

  .trust-title {
    font-size: 13.5px !important;
    margin-bottom: 2px !important;
  }

  .trust-sub {
    font-size: 11.5px !important;
    display: block !important;
  }

  /* Catalog Section on PC */
  .catalog-section {
    max-width: 1360px !important;
    margin: 0 auto 60px !important;
    padding: 0 24px !important;
  }

  .catalog-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .catalog-header > div {
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    gap: 12px !important;
  }

  .catalog-title-group h2 {
    font-size: 24px !important;
  }

  .catalog-title-group p {
    font-size: 13.5px !important;
  }

  .category-pills {
    overflow-x: visible !important;
    flex-wrap: wrap !important;
    width: auto !important;
  }

  .cat-pill {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  .sort-select {
    width: auto !important;
    min-width: 190px !important;
    font-size: 13px !important;
    height: 40px !important;
  }

  /* Products Grid on PC: 4 Columns */
  .products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }

  .product-card {
    border-radius: 16px !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
  }

  .product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  }

  .product-thumb-container {
    height: 230px !important;
    padding: 8px !important;
    overflow: hidden !important;
  }

  .product-thumb-container.has-photo {
    padding: 0 !important;
  }

  .product-thumb-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast;
  }

  .product-thumb-container.has-photo img,
  .product-thumb-container img.is-photo {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
  }

  .product-info {
    padding: 14px 16px 16px !important;
  }

  .product-cat-name {
    font-size: 11px !important;
  }

  .product-title {
    font-size: 13.5px !important;
    min-height: 38px !important;
  }

  .product-specs-chips {
    margin-bottom: 10px !important;
  }

  .spec-chip {
    font-size: 10px !important;
    padding: 3px 7px !important;
  }

  .spec-chip:nth-child(n+3) {
    display: inline-block !important;
  }

  .current-price {
    font-size: 16px !important;
  }

  .btn-add-cart {
    height: 38px !important;
    font-size: 12.5px !important;
  }

  /* Product Details Page (product.php) on PC */
  .product-page-shell {
    max-width: 1360px !important;
    margin: 24px auto 60px !important;
    padding: 0 24px !important;
  }

  .product-breadcrumb-bar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
  }

  .breadcrumb-trail {
    font-size: 13px !important;
  }

  .back-link-btn {
    width: auto !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
  }

  .product-master-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
    margin-bottom: 40px !important;
  }

  .main-display-frame {
    height: 360px !important;
    padding: 20px !important;
  }

  .main-device-photo {
    max-height: 300px !important;
  }

  .angle-buttons-row {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .angle-btn {
    padding: 10px 12px !important;
    font-size: 12px !important;
    flex-direction: row !important;
    justify-content: center !important;
  }

  .pdp-trust-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }

  .pdp-trust-item strong {
    font-size: 12.5px !important;
  }

  .pdp-trust-item p {
    font-size: 11px !important;
  }

  .purchase-card {
    padding: 28px 24px !important;
    border-radius: 20px !important;
  }

  .pdp-product-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .pdp-product-desc {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
  }

  .price-big {
    font-size: 30px !important;
  }

  .pdp-btn-main {
    height: 52px !important;
    font-size: 15.5px !important;
  }

  .pdp-specs-section {
    padding: 28px 24px !important;
  }

  .mobile-sticky-pdp-bar {
    display: none !important;
  }

  /* Cart Drawer on PC */
  .cart-drawer {
    width: 440px !important;
    max-width: 440px !important;
    left: 0 !important;
    transform: translateX(-100%) !important;
  }

  .cart-drawer.open {
    transform: translateX(0) !important;
  }

  /* Floating WhatsApp on PC: Full Widget with text */
  .floating-whatsapp-widget {
    bottom: 24px !important;
    left: 24px !important;
  }

  .floating-whatsapp-btn {
    width: auto !important;
    height: auto !important;
    padding: 8px 18px 8px 10px !important;
    border-radius: var(--radius-full) !important;
  }

  .floating-whatsapp-btn .whatsapp-label-box {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Footer on PC: 4 Columns Grid */
  .store-footer {
    padding: 60px 24px 30px !important;
    margin-top: 80px !important;
  }

  .footer-container {
    max-width: 1360px !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.6fr !important;
    gap: 40px !important;
    align-items: flex-start !important;
  }

  .footer-col-links {
    display: block !important;
  }

  .footer-bottom {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    border-top: 1px solid #1f242d !important;
    padding-top: 20px !important;
  }
}

/* Tablet Override (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  .trust-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==============================================================================
   ADMIN DASHBOARD MOBILE & TABLET RESPONSIVE OVERRIDES (max-width: 768px)
   ============================================================================== */
@media (max-width: 768px) {
  .admin-app-layout {
    flex-direction: column !important;
    min-height: 100vh !important;
  }

  /* Admin Mobile Top Header Bar */
  .admin-mobile-navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 56px !important;
    padding: 0 12px !important;
    background: #090d16 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    gap: 8px !important;
  }

  .mobile-menu-trigger {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.18s !important;
  }

  .mobile-menu-trigger:active {
    background: rgba(255, 255, 255, 0.22) !important;
  }

  .mobile-navbar-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .mobile-navbar-brand img,
  .mobile-navbar-center img {
    height: 18px !important;
    max-width: 95px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
  }

  .mobile-section-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 2px 8px !important;
    border-radius: var(--radius-full) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .mobile-navbar-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
  }

  .mobile-action-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease !important;
  }

  .mobile-action-btn:active {
    background: rgba(255, 255, 255, 0.24) !important;
    transform: scale(0.92) !important;
  }

  /* Admin Sidebar Transforms into Off-Canvas Drawer */
  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 86vw !important;
    height: 100% !important;
    transform: translateX(100%) !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5) !important;
    z-index: 1400 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  /* In mobile drawer mode, never collapse items into icon-only */
  .admin-sidebar.collapsed {
    width: 290px !important;
    min-width: 290px !important;
  }

  .admin-sidebar.collapsed .sidebar-logo-full,
  .admin-sidebar.collapsed .sidebar-nav-group-label,
  .admin-sidebar.collapsed .sidebar-nav-item .nav-label,
  .admin-sidebar.collapsed .sidebar-user-info,
  .admin-sidebar.collapsed .logout-label,
  .admin-sidebar.collapsed .sidebar-status-pill .status-text {
    display: block !important;
  }

  .admin-sidebar.collapsed .sidebar-logo-collapsed {
    display: none !important;
  }

  .admin-sidebar.collapsed .sidebar-nav-item {
    padding: 10px 14px !important;
    justify-content: flex-start !important;
  }

  .sidebar-toggle-btn {
    display: none !important;
  }

  .sidebar-close-mobile-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
  }

  /* Drawer Backdrop */
  .admin-sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 1350 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  .admin-sidebar-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Viewport Header Replaced on Mobile */
  .admin-viewport-header {
    display: none !important;
  }

  .admin-main-viewport {
    height: auto !important;
    overflow-y: visible !important;
  }

  .admin-shell {
    padding: 14px 12px 60px !important;
  }

  .admin-header-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
  }

  .admin-title-wrap h1 {
    font-size: 20px !important;
  }

  .admin-title-wrap p {
    font-size: 12px !important;
  }

  /* Mobile 2-Column KPIs Grid */
  .kpis-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .kpi-card {
    padding: 14px 12px !important;
    border-radius: var(--radius-lg) !important;
  }

  .kpi-header {
    margin-bottom: 8px !important;
  }

  .kpi-label {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  .kpi-icon-pill {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  .kpi-val {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  .kpi-meta {
    font-size: 10.5px !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* Search & Filter Controls Mobile */
  .panel-header {
    padding: 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .panel-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .panel-search-bar-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .search-input-wrap {
    position: relative !important;
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .search-input-wrap .search-icon {
    position: absolute !important;
    right: 12px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
  }

  .search-input-wrap .admin-search-input {
    width: 100% !important;
    padding-right: 36px !important;
    height: 40px !important;
    border-radius: var(--radius-md) !important;
  }

  .panel-search-bar-row .btn-table-action,
  .panel-actions .btn-table-action {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-surface-elevate) !important;
    border: 1px solid var(--border-hairline) !important;
    color: var(--text-carbon) !important;
    cursor: pointer !important;
    align-self: auto !important;
  }

  .panel-search-bar-row .btn-table-action:active,
  .panel-actions .btn-table-action:active {
    background: #e2e8f0 !important;
    transform: scale(0.95) !important;
  }

  .filter-chip-group {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    border-radius: var(--radius-lg) !important;
  }
  .filter-chip-group::-webkit-scrollbar {
    display: none !important;
  }

  .filter-chip {
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  .user-filter-chip {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }

  /* Mobile Table Scroll Cue */
  .mobile-table-scroll-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 7px 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border-top: 1px solid var(--border-hairline) !important;
    border-bottom: 1px solid var(--border-hairline) !important;
  }

  /* Mobile CRM Toolbar & Stage Nav Pills */
  .crm-toolbar-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .crm-toolbar-title {
    font-size: 18px !important;
  }

  .crm-toolbar-sub {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .crm-add-btn {
    width: 100% !important;
    padding: 13px !important;
    font-size: 14px !important;
    justify-content: center !important;
  }

  .crm-stage-nav-pills {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .crm-stage-nav-pills::-webkit-scrollbar {
    display: none !important;
  }

  .stage-nav-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--border-hairline) !important;
    border-radius: var(--radius-full) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--text-carbon) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
  }

  .stage-nav-pill.active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  }

  .stage-pill-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: var(--radius-full) !important;
    background: var(--bg-surface-elevate) !important;
    color: var(--text-carbon) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .stage-nav-pill.active .stage-pill-count {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
  }

  /* Kanban Board Mobile Swipe */
  .kanban-board {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-padding: 0 12px !important;
    gap: 14px !important;
    padding-bottom: 16px !important;
    margin: 0 -4px !important;
  }

  .kanban-col {
    min-width: 275px !important;
    max-width: 290px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    min-height: 400px !important;
  }

  /* Modals Mobile */
  .modal-sheet {
    max-width: 95vw !important;
    margin: 16px auto !important;
    padding: 16px !important;
    border-radius: var(--radius-xl) !important;
    max-height: 90vh !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Mobile Bottom Navigation Bar */
  .admin-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.09) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 10px !important;
    border-radius: var(--radius-lg) !important;
    cursor: pointer !important;
    color: #64748b !important;
    font-family: inherit !important;
    position: relative !important;
    min-width: 58px !important;
    transition: all 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .bottom-nav-item.active {
    color: #0b0f19 !important;
    font-weight: 800 !important;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.15) !important;
  }

  .bottom-nav-icon {
    font-size: 19px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
  }

  .bottom-nav-label {
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .bottom-nav-badge {
    position: absolute !important;
    top: 3px !important;
    left: calc(50% + 8px) !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    border-radius: var(--radius-full) !important;
    border: 2px solid #ffffff !important;
  }
}

@media (max-width: 420px) {
  .kpis-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .kpi-val {
    font-size: 17px !important;
  }

  .kpi-card {
    padding: 12px 10px !important;
  }
}

/* Compact Customer Financial KPI Strip & Filter Pills */
.cust-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0 16px 0;
  width: 100%;
}

.cust-kpi-item {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-height: 64px;
  height: 64px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cust-kpi-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.cust-kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.cust-kpi-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cust-kpi-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-kpi-number {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-pitch);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cust-filter-btn {
  background: var(--bg-surface-elevate);
  border: 1px solid var(--border-hairline);
  color: var(--text-carbon);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.cust-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cust-filter-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.cust-filter-btn .badge-num {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
}

.cust-filter-btn.active .badge-num {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .cust-kpi-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .cust-kpi-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 8px 0 12px 0 !important;
  }
  .cust-kpi-item {
    padding: 8px 10px !important;
    min-height: 56px !important;
    height: 56px !important;
  }
  .cust-kpi-icon-wrap {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .cust-kpi-number {
    font-size: 13.5px !important;
  }
}

@media print {
  .floating-whatsapp-widget, .store-header, .drawer-backdrop, .cart-drawer, .modal-header, .modal-footer, .btn-primary-white, .btn-checkout {
    display: none !important;
  }
  body, .modal-backdrop, .modal-sheet {
    background: #ffffff !important;
    padding: 0 !important;
    position: static !important;
  }
  .printable-document {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* Product Management Modal Tabs */
.product-modal-tabs .prod-modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.product-modal-tabs .prod-modal-tab-btn:hover {
  color: #0f172a;
}
.product-modal-tabs .prod-modal-tab-btn.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 900;
}

/* ==============================================================================
   DOCASHIER MOBILE DASHBOARD REVOLUTION - CARDS, TOUCH & ADAPTIVE ARCHITECTURE
   ============================================================================== */

/* View Mode Switcher Pill */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-subdued, #f1f5f9);
  border: 1px solid var(--border-hairline, #e2e8f0);
  border-radius: var(--radius-full, 999px);
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-full, 999px);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.view-toggle-btn:hover {
  color: #0f172a;
}

.view-toggle-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Mobile Cards Feed Container */
.mobile-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* On Desktop: Show Table, Hide Cards Feed by default */
@media (min-width: 769px) {
  .mobile-cards-feed {
    display: none;
  }
  .table-responsive {
    display: block;
  }
  .panel-card.view-mode-cards .mobile-cards-feed {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
    gap: 16px !important;
  }
  .panel-card.view-mode-cards .table-responsive {
    display: none !important;
  }
}

/* On Mobile (<= 768px): Show Cards Feed by default, Hide Table */
@media (max-width: 768px) {
  .table-responsive {
    display: none !important;
  }
  .mobile-table-scroll-hint {
    display: none !important;
  }
  .mobile-cards-feed {
    display: flex !important;
  }

  /* When table mode is explicitly selected by user */
  .panel-card.view-mode-table .table-responsive {
    display: block !important;
  }
  .panel-card.view-mode-table .mobile-table-scroll-hint {
    display: flex !important;
  }
  .panel-card.view-mode-table .mobile-cards-feed {
    display: none !important;
  }
}

/* Mobile Base Card Styles */
.mobile-order-card,
.mobile-customer-card,
.mobile-inventory-card,
.mobile-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.mobile-order-card:active,
.mobile-customer-card:active,
.mobile-inventory-card:active,
.mobile-user-card:active {
  transform: scale(0.99);
}

/* Card Header */
.m-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.m-card-id-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.m-card-order-no {
  font-weight: 900;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.m-card-date {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Customer details in card */
.m-card-customer {
  margin-bottom: 12px;
}

.m-cust-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.m-cust-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.m-cust-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.m-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.m-call-chip {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.m-wa-chip {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
  cursor: pointer;
}

/* Financial 3-column Strip */
.m-card-financial-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  text-align: center;
}

.m-fin-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-fin-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.m-fin-val {
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}

.m-fin-paid .m-fin-val {
  color: #16a34a;
}

.m-fin-debt .m-fin-val {
  color: #dc2626;
}

.m-fin-clear .m-fin-val {
  color: #16a34a;
}

/* Card Status Bar & Inline Stage Selector */
.m-card-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.m-stage-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-stage-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.m-stage-select {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  cursor: pointer;
}

/* Action Buttons Grid in Cards */
.m-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.m-btn-action {
  flex: 1;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.m-btn-action:active {
  transform: scale(0.96);
}

.m-btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.m-btn-success {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
}

.m-btn-edit {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

.m-btn-del {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

.m-btn-print {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.m-btn-wa {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border-color: #bbf7d0 !important;
}

.m-btn-icon {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  padding: 0;
}

/* Customer Card Details */
.m-cust-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-cust-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.m-cust-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #0f172a;
  cursor: pointer;
}

.m-cust-company {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.m-cust-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.m-cust-loc {
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}

/* Inventory Card Details */
.m-inv-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.m-inv-img-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.m-inv-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.m-inv-info {
  flex: 1;
  min-width: 0;
}

.m-inv-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  cursor: pointer;
  margin-bottom: 4px;
}

.m-inv-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.m-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.m-tag-star { background: #fef3c7; color: #92400e; }
.m-tag-video { background: #ede9fe; color: #6d28d9; }
.m-tag-inactive { background: #fee2e2; color: #991b1b; }

.m-inv-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.m-price-main {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.m-price-sale {
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
}

.m-inv-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.m-stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.m-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.m-stock-low .m-stock-dot {
  background: #ef4444;
}

.m-low-badge {
  background: #fee2e2;
  color: #991b1b;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.m-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-step-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.m-step-btn:hover {
  background: #e2e8f0;
}

.m-step-minus {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* User Card Details */
.m-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}

.m-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.m-user-company {
  font-size: 11.5px;
  color: #64748b;
}

.m-user-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 10px;
}

.m-user-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

/* Floating Action Button (FAB) */
.admin-mobile-fab {
  display: none;
}

@media (max-width: 768px) {
  .admin-mobile-fab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: fixed !important;
    bottom: 74px !important;
    left: 16px !important;
    z-index: 1200 !important;
    background: #090d16 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .admin-mobile-fab:active {
    transform: scale(0.94) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  }

  .admin-mobile-fab .fab-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Responsive Invoice Item Row */
.invoice-item-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

@media (min-width: 769px) {
  .invoice-item-row {
    display: grid !important;
    grid-template-columns: 50px 3fr 1.2fr 1.2fr 1.4fr auto !important;
    gap: 10px !important;
    align-items: center !important;
  }
  .m-field-label {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .invoice-items-table-header {
    display: none !important;
  }

  .invoice-item-row {
    display: grid !important;
    grid-template-columns: 60px 1fr 1fr !important;
    grid-template-areas:
      "thumb desc desc"
      "qty price total"
      "actions actions actions" !important;
    gap: 8px !important;
    padding: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
    margin-bottom: 8px !important;
  }

  .inv-col-thumb { grid-area: thumb; }
  .inv-col-desc { grid-area: desc; }
  .inv-col-qty { grid-area: qty; }
  .inv-col-price { grid-area: price; }
  .inv-col-total { grid-area: total; }
  .inv-col-actions { 
    grid-area: actions; 
    display: flex !important; 
    justify-content: flex-end !important;
    align-items: center !important;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    margin-top: 4px;
  }

  .m-field-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
  }
}

/* Invoice Item Thumbnail Box */
.inv-col-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-thumb-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.inv-thumb-box:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.inv-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.inv-thumb-icon {
  font-size: 18px;
  color: #64748b;
  line-height: 1;
}

.inv-thumb-clear {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.inv-thumb-box.has-img:hover .inv-thumb-clear {
  display: flex;
}

/* Optional Invoice Attachment Box */
.inv-attachment-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inv-attachment-box:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.inv-attach-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inv-attach-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.inv-attach-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
}

.inv-attach-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Store Product Picker Modal Grid & Cards */
.store-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .store-picker-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.store-picker-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  align-items: center;
  text-align: right;
  position: relative;
}

.store-picker-card:hover {
  border-color: #0284c7;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.store-picker-thumb {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-picker-thumb span {
  font-size: 22px;
}

.store-picker-info {
  flex: 1;
  min-width: 0;
}

.store-picker-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.store-picker-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.store-picker-price {
  font-size: 14px;
  font-weight: 900;
  color: #0284c7;
}

.store-picker-add-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.store-picker-card:hover .store-picker-add-btn {
  background: #0369a1;
}

/* Modals Bottom Sheet Polish on Mobile */
@media (max-width: 768px) {
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-sheet {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    margin: 0 !important;
    max-height: 90vh !important;
    padding: 18px 16px !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4) !important;
    animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-sheet .modal-header {
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .modal-sheet .modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    background: #f8fafc !important;
    z-index: 10 !important;
    padding: 12px 0 !important;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 12px) !important;
  }

  .modal-sheet .modal-footer button {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 14px !important;
  }
}

/* ==============================================================================
   CUSTOMER STATEMENT & INVOICES VIEW - REFINED RESPONSIVE DESIGN
   ============================================================================== */
.statement-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline, #e2e8f0);
}

.statement-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.statement-back-btn:hover {
  background: #1e293b;
  transform: translateX(2px);
}

.statement-back-btn:active {
  transform: scale(0.97);
}

.statement-actions-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.statement-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.statement-btn:active {
  transform: scale(0.97);
}

.statement-btn-invoice {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.statement-btn-invoice:hover {
  background: #18181b;
}

.statement-btn-wa {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}

.statement-btn-wa:hover {
  background: #15803d;
}

.statement-btn-print {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.statement-btn-print:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Customer Profile Card in Statement View */
.statement-profile-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.statement-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.statement-avatar-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.statement-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.statement-name {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.statement-verified-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.statement-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.statement-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.statement-financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
}

.statement-fin-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.statement-fin-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 6px;
}

.statement-fin-val {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

/* Mobile Specifics for Statement View */
@media (max-width: 768px) {
  .statement-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .statement-back-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 12px;
  }

  .statement-actions-cluster {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .statement-btn-invoice {
    grid-column: 1 / -1;
    width: 100%;
    height: 46px;
    font-size: 14px;
  }

  .statement-btn-wa,
  .statement-btn-print {
    width: 100%;
    height: 42px;
    font-size: 12px;
    padding: 0 10px;
  }

  .statement-profile-card {
    padding: 16px 14px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .statement-name {
    font-size: 18px;
  }

  .statement-financial-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 14px;
    padding-top: 14px;
  }

  .statement-fin-box {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .statement-fin-lbl {
    font-size: 10.5px;
    margin-bottom: 4px;
  }

  .statement-fin-val {
    font-size: 16px;
  }

  .statement-chip {
    font-size: 11.5px;
    padding: 4px 8px;
  }
}



