/* ==========================================================================
   NKEM GLOBAL - CORE DESIGN SYSTEM
   STRICT RULES:
   1. Zero Emojis (SVG icons only)
   2. Zero Shadows (box-shadow: none !important, text-shadow: none !important)
   3. Zero Glows (filter: none !important)
   4. Zero Gradients (Strictly Flat Solid Fills)
   5. Zero Vertical Hover Lift (No translateY lifts or upwards jumping)
   6. Fluid Proportional Responsiveness (Mobile, Tablet, Desktop)
   7. Custom Modular Pickers (Modal on Desktop, Bottom Sheet on Mobile)
   8. Modals overlay on top of everything (z-index: 2147483647 !important)
   9. Logo is 16:9 / 4:3 widescreen (not 1:1 square)
   ========================================================================== */

:root {
  /* Fresh Mint & Emerald Palette (Exact Match to Mockup UI) */
  --bg-main: #edf8f2;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f4fbf7;
  --bg-active: #e2f5ea;

  /* Crisp Mint & Emerald Borders */
  --border-color: #d1ead9;
  --border-strong: #a1d7b3;
  --border-focus: #087f3b;

  /* Typography */
  --text-main: #064e26;
  --text-body: #2d3748;
  --text-muted: #5a6e62;
  --text-subtle: #7d9285;
  --text-inverted: #ffffff;

  /* Brand Greens */
  --primary-green: #087f3b;
  --primary-green-dark: #065f2c;
  --primary-green-light: #e8f7ee;
  --accent-whatsapp: #25D366;
  --accent-whatsapp-hover: #20ba5a;

  /* Site Theme Greens (Primary Brand Palette) */
  --accent-gold: #087f3b;
  --accent-gold-hover: #065f2c;
  --accent-gold-active: #054821;
  --accent-gold-subtle: #e8f7ee;
  --accent-gold-border: #a1d7b3;

  /* Functional Status Colors */
  --status-success: #059669;
  --status-danger: #dc2626;
  --status-danger-hover: #b91c1c;
  --status-warning: #d97706;
  --status-info: #0284c7;

  /* Soft Modern Shadows */
  --shadow-sm: 0 2px 8px rgba(7, 94, 47, 0.06);
  --shadow-md: 0 6px 20px rgba(7, 94, 47, 0.08);
  --shadow-lg: 0 12px 32px rgba(7, 94, 47, 0.12);

  /* Proportional Fluid Dimensions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Fluid Spacing Scale */
  --space-2xs: clamp(2px, 0.5vw, 4px);
  --space-xs: clamp(4px, 1vw, 8px);
  --space-sm: clamp(8px, 1.5vw, 12px);
  --space-md: clamp(12px, 2vw, 18px);
  --space-lg: clamp(16px, 3vw, 26px);
  --space-xl: clamp(24px, 4vw, 38px);
  --space-2xl: clamp(32px, 5vw, 56px);

  /* Fluid Font Scale */
  --font-xs: clamp(0.7rem, 1.8vw, 0.78rem);
  --font-sm: clamp(0.8rem, 2vw, 0.88rem);
  --font-base: clamp(0.88rem, 2.2vw, 1rem);
  --font-md: clamp(1rem, 2.6vw, 1.16rem);
  --font-lg: clamp(1.15rem, 3.2vw, 1.45rem);
  --font-xl: clamp(1.35rem, 4.2vw, 1.85rem);
  --font-2xl: clamp(1.65rem, 5.5vw, 2.35rem);

  /* Strict Layout Constraints */
  --container-max: 1200px;
  --transition-fast: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

/* ---------------- GLOBAL RESET & STRICT ANTI-EFFECTS ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body:not(.admin-body):not(.chat-body) {
  background-color: #edf8f2 !important;
  color: #2d3748 !important;
  padding-bottom: 74px !important;
}

/* ==========================================================================
   CUSTOM LUXURY SCROLLBAR SYSTEM (NO NATIVE GREY BROWSER SCROLLBARS)
   ========================================================================== */
/* Modern standard scrollbar-color & width for Firefox & standards */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-surface);
}

/* WebKit / Chromium custom scrollbar (Chrome, Edge, Brave, Opera, Safari) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-surface);
  transition: background-color 0.15s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-gold-hover);
}

::-webkit-scrollbar-corner {
  background: var(--bg-surface);
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

/* STRICT RULE 3: ZERO HOVER VERTICAL MOVEMENT */
*:hover, *:active, *:focus {
  transform: none !important;
}

/* SVG ICON SYSTEM */
.svg-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-icon path,
.svg-icon polyline,
.svg-icon line {
  fill: none;
}

/* Icons configured with fill="currentColor" or .fill-current must cascade fill to internal paths */
.svg-icon[fill="currentColor"],
.svg-icon[fill="currentColor"] path,
.svg-icon.fill-current,
.svg-icon.fill-current path,
.svg-icon.svg-whatsapp,
.svg-icon.svg-whatsapp path,
.svg-icon.whatsapp,
.svg-icon.whatsapp path {
  fill: currentColor !important;
  stroke: none !important;
}

/* ---------------- LAYOUT & CONTAINER ---------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

body {
  padding-top: clamp(56px, 8.5vw, 70px);
}

/* ---------------- TOP HEADER BAR ---------------- */
.header-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.header-bar.header-hidden {
  transform: translateY(-100%) !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(56px, 8.5vw, 70px);
  gap: var(--space-sm);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  cursor: pointer;
  flex-shrink: 0;
}

/* BRAND LOGO: True 2:1 Aspect Ratio with Transparent Background */
.brand-logo-img {
  height: clamp(36px, 5.5vw, 46px);
  width: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: none;
  background-color: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-title span {
  color: var(--accent-gold);
}

.brand-tagline {
  font-size: clamp(0.62rem, 1.5vw, 0.74rem);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 20px);
  margin-left: auto; /* Shift navigation options to the far right */
}

.nav-link {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-color);
}

.nav-link.active {
  color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
  border-color: var(--accent-gold-border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.mobile-menu-toggle {
  display: none;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
}

/* ---------------- HERO BANNER SLIDER (LANDSCAPE BRAND BANNER, TOUCH GESTURE ONLY) ---------------- */
.banner-section {
  width: 100%;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1440px;
  aspect-ratio: 16 / 9;
  max-height: clamp(240px, 45vw, 480px);
  overflow: hidden;
  background-color: var(--bg-main);
  user-select: none;
  cursor: default;
}

.banner-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--bg-main);
  display: block;
}

.banner-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-lg);
  background-color: rgba(11, 12, 14, 0.92);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  z-index: 12;
}

.banner-caption-text {
  font-size: clamp(0.78rem, 2.2vw, 1.05rem);
  font-weight: 600;
  color: var(--text-main);
  max-width: 800px;
}

.banner-caption-text span {
  color: var(--accent-gold);
}

.banner-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) !important;
  z-index: 15;
  width: clamp(34px, 5.2vw, 44px);
  height: clamp(34px, 5.2vw, 44px);
  background-color: rgba(20, 21, 26, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.banner-arrow-btn:hover {
  background-color: var(--accent-gold);
  color: var(--text-inverted);
  border-color: var(--accent-gold);
}

.banner-arrow-prev {
  left: var(--space-sm);
}

.banner-arrow-next {
  right: var(--space-sm);
}

.banner-indicators {
  display: flex;
  gap: 6px;
  z-index: 15;
}

.banner-dot {
  width: clamp(7px, 1.4vw, 10px);
  height: clamp(7px, 1.4vw, 10px);
  border-radius: var(--radius-full);
  background-color: var(--border-strong);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.banner-dot.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ==========================================================================
   SHOP BY CATEGORY (Dynamic Grid Mockup Styling)
   ========================================================================== */
.home-categories-section {
  padding: clamp(20px, 3.5vw, 36px) 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
  margin-top: 14px;
}

@media (max-width: 680px) {
  .home-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

.home-category-card {
  background-color: #ffffff !important;
  border: 1px solid #d4ede0;
  border-radius: 12px;
  padding: 8px 6px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  outline: none;
  min-height: 100px;
}

.home-category-card:hover,
.home-category-card:focus {
  border-color: #055a29;
}

.home-category-card.active {
  border-color: #055a29 !important;
  background-color: #f2fbf5 !important;
}

.home-category-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
}

.home-category-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-category-title {
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  font-weight: 700;
  color: #053b1b;
  line-height: 1.25;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* ---------------- SECTION HEADER, SORT & FILTER BAR ---------------- */
.catalog-toolbar-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.toolbar-title-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.toolbar-heading {
  font-size: var(--font-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.toolbar-subheading {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---------------- VIEW TOGGLE CONTROLS (GRID VS LIST) ---------------- */
.view-toggle-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-surface-elevated);
  height: clamp(34px, 4vw, 40px);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 4vw, 42px);
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.view-toggle-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface);
}

.view-toggle-btn.active {
  color: var(--accent-gold);
  background-color: var(--bg-surface);
}

.view-toggle-btn + .view-toggle-btn {
  border-left: 1px solid var(--border-color);
}

.view-toggle-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------------- CUSTOM PICKER COMPONENT (NO NATIVE SELECT) ---------------- */
.c-picker-container {
  position: relative;
  min-width: clamp(140px, 20vw, 190px);
}

.c-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(6px, 1.2vw, 9px) clamp(10px, 1.6vw, 14px);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
}

.c-picker-trigger:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
}

.c-picker-trigger.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.c-picker-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  flex: 1;
}

.c-picker-label.placeholder {
  color: var(--text-subtle);
}

.c-picker-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Custom Picker Overlay (Strictly overlay OVER everything) */
.c-picker-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483620 !important;
  background-color: rgba(7, 35, 20, 0.78) !important;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.c-picker-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Desktop Centered Modal */
.c-picker-overlay.desktop-modal {
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.desktop-modal .c-picker-sheet-box {
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

/* Mobile Bottom Sheet Modal / Action Sheet */
.c-picker-overlay.mobile-sheet {
  align-items: flex-end;
  justify-content: center;
}

.mobile-sheet .c-picker-sheet-box {
  width: 100%;
  max-height: 84vh;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
}

.c-sheet-drag-handle {
  width: 38px;
  height: 4px;
  background-color: var(--border-strong);
  border-radius: 2px;
  margin: 10px auto 4px auto;
}

.c-picker-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.c-picker-sheet-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.c-picker-sheet-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-main);
}

.c-picker-sheet-count {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.c-picker-sheet-close-btn {
  padding: 6px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-picker-sheet-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
}

.c-picker-search-wrap {
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.c-picker-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(6px, 1.2vw, 8px) 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.c-picker-search-icon {
  color: var(--text-subtle);
  display: flex;
}

.c-picker-search-input {
  width: 100%;
  font-size: var(--font-sm);
  color: var(--text-main);
}

.c-picker-search-input::placeholder {
  color: var(--text-subtle);
}

.c-picker-options-list {
  padding: var(--space-xs);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-surface);
}

.mobile-sheet .c-picker-options-list {
  flex: 1 1 auto;
  max-height: calc(82vh - 120px);
}

.mobile-sheet .c-picker-sheet-box {
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}

.c-picker-options-list::-webkit-scrollbar {
  width: 5px;
}

.c-picker-options-list::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.c-picker-options-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

.c-picker-options-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

.c-picker-option-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(9px, 1.8vw, 13px) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: var(--font-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.c-picker-option-item:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-color);
}

.c-picker-option-item.selected {
  background-color: var(--accent-gold-subtle);
  border-color: var(--accent-gold-border);
  color: var(--accent-gold);
  font-weight: 600;
}

.c-picker-opt-check {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
}

.c-picker-empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-subtle);
  font-size: var(--font-sm);
}

/* ---------------- PRODUCT GRID & CARDS ---------------- */
.product-grid-section {
  padding-bottom: var(--space-2xl);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 20vw, 290px), 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
}

/* Product Card Auto-sliding Image Container (2s Auto-Slide if multiple images) */
.product-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-main);
  overflow: hidden;
}

.product-card-img-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  object-fit: cover;
}

.product-card-img-slide.active {
  opacity: 1;
}

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  font-size: var(--font-xs);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
}

.product-card-badge.in-stock {
  color: var(--status-success);
  border-color: var(--status-success);
}

.product-card-badge.out-of-stock {
  color: var(--status-danger);
  border-color: var(--status-danger);
}

.product-card-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 5;
}

.product-card-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.product-card-dot.active {
  background-color: var(--accent-gold);
}

/* Product Card Content */
.product-card-content {
  padding: clamp(12px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-xs);
}

.product-card-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: var(--font-xs);
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-color);
  gap: 8px;
}

.product-card-price {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--primary-green);
  white-space: nowrap;
}

.btn-order-now {
  font-size: var(--font-sm);
  font-weight: 600;
  padding: 8px 14px;
  background-color: var(--primary-green);
  color: var(--text-inverted);
  border: 1px solid var(--primary-green);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition-fast);
}

.btn-order-now:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

/* ---------------- LIST VIEW ARRANGEMENT (GRID / LIST TOGGLE) ---------------- */
.product-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
}

.product-grid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
  min-height: clamp(140px, 18vw, 190px);
}

.product-grid.list-view .product-card-img-wrap {
  width: clamp(140px, 22vw, 220px);
  min-width: clamp(140px, 22vw, 220px);
  height: 100%;
  min-height: 140px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
  align-self: stretch;
}

.product-grid.list-view .product-card-img-wrap .product-card-img-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-grid.list-view .product-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.8vw, 18px);
  gap: var(--space-xs);
}

.product-grid.list-view .product-card-desc {
  -webkit-line-clamp: 2;
}

.product-grid.list-view .product-card-footer {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-grid.list-view .btn-order-now {
  width: auto;
}

/* List view responsiveness for smaller screens */
@media (max-width: 540px) {
  .product-grid.list-view .product-card {
    min-height: 120px;
  }
  .product-grid.list-view .product-card-img-wrap {
    width: clamp(96px, 30vw, 130px);
    min-width: clamp(96px, 30vw, 130px);
  }
  .product-grid.list-view .product-card-content {
    padding: 8px 10px;
  }
  .product-grid.list-view .product-card-title {
    font-size: var(--font-sm);
  }
  .product-grid.list-view .product-card-desc {
    -webkit-line-clamp: 2;
    font-size: 11px;
  }
  .product-grid.list-view .product-card-price {
    font-size: var(--font-base);
  }
  .product-grid.list-view .btn-order-now {
    padding: 6px 10px;
    font-size: var(--font-xs);
  }
}

@media (max-width: 360px) {
  .product-grid.list-view .product-card-img-wrap {
    width: 86px;
    min-width: 86px;
  }
  .product-grid.list-view .product-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
  }
}

/* ---------------- BUTTON SYSTEM (FLAT, NO GLOW, NO SHADOW) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  font-size: var(--font-sm);
  padding: clamp(8px, 1.5vw, 11px) clamp(14px, 2.2vw, 20px);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--text-inverted);
  border-color: var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-danger {
  background-color: var(--status-danger);
  color: #fff;
  border-color: var(--status-danger);
}

.btn-danger:hover {
  background-color: var(--status-danger-hover);
  border-color: var(--status-danger-hover);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #0b2212;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  border-color: #20bd5a;
}

.btn-sm {
  font-size: var(--font-xs);
  padding: 5px 10px;
}

/* ---------------- CUSTOM MODAL SYSTEM (REPLACING NATIVE ALERTS & DIALOGS) ---------------- */
/* STRICT RULE: MODALS MUST OVERLAY OVER EVERYTHING, NEVER BEHIND (LIGHTBOX OVERLAYS OVER MODALS) */
.c-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483600 !important;
  background-color: rgba(7, 35, 20, 0.8) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.c-modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.c-modal-box {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.c-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  flex-shrink: 0;
}

.c-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-modal-type-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent-gold);
}

.c-modal-type-indicator.danger {
  background-color: var(--status-danger);
}

.c-modal-type-indicator.warning {
  background-color: var(--status-warning);
}

.c-modal-type-indicator.info {
  background-color: var(--status-info);
}

.c-modal-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-main);
}

.c-modal-close-btn {
  padding: 5px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.c-modal-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.c-modal-body {
  padding: var(--space-md);
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.5;
  max-height: 75vh;
  overflow-y: auto;
}

.c-modal-text {
  color: var(--text-main);
}

.c-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  gap: var(--space-xs);
  flex-shrink: 0;
}

.c-modal-footer.dual-actions {
  display: flex;
  gap: var(--space-xs);
}

/* ---------------- FULL PRODUCT DETAILS MODAL ---------------- */
.product-details-modal-box {
  width: min(94vw, 860px);
  max-height: min(90vh, 820px);
  max-height: min(90dvh, 820px);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.details-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(14px, 2.5vw, 24px);
  padding: clamp(14px, 2.5vw, 24px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
}

.details-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(10px, 1.8vw, 14px) clamp(14px, 2.5vw, 24px);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  box-sizing: border-box;
  z-index: 10;
}

.details-modal-footer .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 800;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
}

.details-modal-footer .details-whatsapp-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 700;
  font-size: clamp(0.84rem, 2vw, 0.94rem);
  text-decoration: none;
}

.details-modal-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.details-modal-content::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
.details-modal-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-sm);
}

.details-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.details-main-img-box {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 460px);
  min-height: 280px;
  max-height: 480px;
  flex: 0 0 auto;
  flex-shrink: 0;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-main-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain; /* Full uncropped view */
  background-color: var(--bg-main);
  display: block;
}

.details-img-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 8px;
  background-color: rgba(16, 18, 22, 0.88);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.details-img-zoom-hint svg {
  width: 13px;
  height: 13px;
}

/* Sub-Images (Thumbnails) Under Main Preview - Slideable, ZERO Native Scrollbars */
.details-sub-images-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.details-thumb-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.details-thumb-nav-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-gold);
  background-color: var(--bg-surface);
}

.details-thumb-nav-btn svg {
  width: 15px;
  height: 15px;
}

.details-sub-images-track {
  display: flex;
  gap: clamp(6px, 1.2vw, 10px);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px 2px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* Custom styled gold slide bar (No native browser scrollbar) */
  scrollbar-width: thin !important;
  scrollbar-color: var(--accent-gold) rgba(255, 255, 255, 0.06) !important;
}

.details-sub-images-track::-webkit-scrollbar {
  display: block !important;
  height: 4px !important;
  width: auto !important;
}

.details-sub-images-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-full) !important;
}

.details-sub-images-track::-webkit-scrollbar-thumb {
  background: var(--accent-gold) !important;
  border-radius: var(--radius-full) !important;
}

.details-sub-images-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-hover) !important;
}

.details-sub-thumb {
  flex: 0 0 clamp(56px, 12vw, 68px);
  width: clamp(56px, 12vw, 68px);
  height: clamp(56px, 12vw, 68px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-fast);
  box-sizing: border-box;
  opacity: 0.65;
  scroll-snap-align: start;
}

.details-sub-thumb:hover {
  opacity: 0.9;
  border-color: var(--border-strong);
}

.details-sub-thumb.active {
  opacity: 1;
  border-color: var(--accent-gold);
  border-width: 2px;
}

.details-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-info-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.details-product-title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}

.details-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.details-product-price {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--accent-gold);
}

.details-desc-box {
  padding: var(--space-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  overflow: hidden;
}

.details-desc-heading {
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.details-desc-body {
  font-size: var(--font-sm);
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

/* ---------------- FULL VIEW LIGHTBOX (STRICT: ONLY IMAGE & CIRCULAR X UNDER, NO TEXT) ---------------- */
.full-view-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  z-index: 2147483647 !important;
  background-color: rgba(6, 8, 10, 0.96) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  box-sizing: border-box !important;
}

.full-view-lightbox.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
}

.full-view-img-container {
  max-width: min(88vw, 760px) !important;
  max-height: 72vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.full-view-img {
  max-width: 100% !important;
  max-height: 72vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
  display: block !important;
  background-color: transparent !important;
}

.full-view-close-under {
  margin-top: 16px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background-color: #087f3b !important;
  border: 1.5px solid #a1d7b3 !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  transition: var(--transition-fast) !important;
}

.full-view-close-under:hover {
  background-color: #065f2c !important;
  border-color: #087f3b !important;
  color: #fff !important;
}

.full-view-close-under .svg-icon {
  width: 20px !important;
  height: 20px !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
}

/* ---------------- ORDER SELECTION MODAL (WHATSAPP OR ONLINE) ---------------- */
.order-choice-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.order-choice-card {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.order-choice-card:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-subtle);
}

.order-choice-card.whatsapp:hover {
  border-color: #25d366;
}

.order-choice-icon {
  width: clamp(38px, 6vw, 50px);
  height: clamp(38px, 6vw, 50px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 1.4rem;
}

.order-choice-card.whatsapp .order-choice-icon {
  color: #25d366;
  border-color: #25d366;
}

.order-choice-card.online .order-choice-icon {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.order-choice-title {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text-main);
}

.order-choice-sub {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

/* ---------------- ONLINE ORDER FORM ---------------- */
.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

.form-label {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label span.req {
  color: var(--status-danger);
}

.input-field, .textarea-field {
  width: 100%;
  padding: clamp(7px, 1.3vw, 10px) 12px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: var(--font-sm);
  transition: var(--transition-fast);
}

.input-field:focus, .textarea-field:focus {
  border-color: var(--accent-gold);
  background-color: var(--bg-surface);
}

.textarea-field {
  resize: vertical;
  min-height: 64px;
}

/* ---------------- RETRIEVAL CODE MODAL & IMAGE RECEIPT ---------------- */
.receipt-modal-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.code-display-card {
  padding: var(--space-md);
  background-color: var(--bg-main);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.code-display-label {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.code-display-value {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  font-family: monospace;
}

.code-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---------------- CHAT INTERFACE & SYNC ---------------- */
.chat-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.chat-card-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-header {
  padding: var(--space-sm) var(--space-md);
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chat-avatar-status {
  width: clamp(34px, 5vw, 42px);
  height: clamp(34px, 5vw, 42px);
  border-radius: var(--radius-sm);
  border: 1px solid #065f2c;
  background-color: #087f3b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.chat-header-title {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text-main);
}

.chat-header-status {
  font-size: var(--font-xs);
  color: var(--status-success);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--status-success);
}

/* Chat Messages Viewport */
.chat-messages-container {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--bg-main);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-main);
}

.chat-messages-container::-webkit-scrollbar {
  width: 5px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: var(--bg-main);
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

.chat-retrieve-banner {
  padding: var(--space-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.chat-retrieve-form {
  display: flex;
  gap: var(--space-xs);
  width: 100%;
  max-width: 400px;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  gap: 3px;
}

.chat-msg-row.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: clamp(8px, 1.5vw, 12px) clamp(11px, 2vw, 16px);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  line-height: 1.45;
  border: 1px solid transparent;
  word-break: break-word;
  position: relative;
}

.chat-msg-row.outgoing .chat-bubble {
  background-color: #087f3b !important;
  border-color: #065f2c !important;
  color: #ffffff !important;
  border-bottom-right-radius: 2px;
}

.chat-msg-row.outgoing .chat-bubble * {
  color: #ffffff !important;
}

.chat-msg-row.incoming .chat-bubble {
  background-color: #ffffff !important;
  border-color: #d1ead9 !important;
  color: #064e26 !important;
  border-bottom-left-radius: 2px;
}

.chat-msg-row.incoming .chat-bubble * {
  color: #064e26 !important;
}

.chat-msg-image {
  max-width: clamp(160px, 22vw, 240px);
  max-height: clamp(160px, 22vw, 240px);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 4px;
  cursor: pointer;
  object-fit: contain;
  display: block;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-subtle);
  padding: 0 4px;
}

.chat-msg-actions-btn {
  padding: 2px 5px;
  color: var(--text-subtle);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.chat-msg-actions-btn:hover {
  color: #087f3b;
  background-color: #e2f5ea;
}

/* Chat Input Bar - Matched styling across User Chat & Admin Chat */
.chat-input-bar {
  padding: 10px 14px;
  background-color: #ffffff;
  border-top: 1px solid #d1ead9;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.chat-upload-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  color: #5a6e62;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.chat-upload-btn:hover {
  color: #087f3b;
  background-color: #eaf7f0;
  border-color: #d1ead9;
}

.chat-text-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 0 !important;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  background-color: #ffffff;
  border: 1.5px solid #d1ead9;
  border-radius: 10px;
  color: #1f2937;
  font-size: 0.94rem;
  line-height: 40px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

textarea.chat-text-input {
  resize: none !important;
  min-height: 42px !important;
  height: 42px !important;
  max-height: 80px !important;
  line-height: 1.35 !important;
  padding: 10px 14px !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  margin: 0 !important;
}

.chat-text-input:focus {
  border-color: #087f3b !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 59, 0.12) !important;
}

.chat-send-btn {
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  background-color: #087f3b !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease;
}

.chat-send-btn:hover {
  background-color: #066b31 !important;
}

/* ---------------- TOAST NOTIFICATIONS (FLAT, HIGH Z-INDEX) ---------------- */
#custom-toast-container {
  position: fixed !important;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  right: var(--space-md) !important;
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.c-toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: clamp(8px, 1.4vw, 12px) var(--space-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: var(--font-sm);
  min-width: 260px;
  max-width: 400px;
  transition: opacity 0.2s ease;
}

.c-toast-item.fading {
  opacity: 0;
}

.c-toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-toast-badge {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent-gold);
}

.c-toast-badge.success {
  background-color: var(--status-success);
}

.c-toast-badge.danger {
  background-color: var(--status-danger);
}

.c-toast-close {
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
}

.c-toast-close:hover {
  color: var(--text-main);
}

/* ---------------- ADMIN DASHBOARD STYLES (MATCHING EMERALD & MINT DESIGN) ---------------- */
body.admin-body {
  --admin-header-h: 56px;
  --admin-tabs-h: 46px;
  --bg-main: #edf8f2;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f4fbf7;
  --bg-active: #e2f5ea;
  --border-color: #d1ead9;
  --border-strong: #a1d7b3;
  --border-focus: #087f3b;
  --text-main: #073b1f;
  --text-body: #2d3748;
  --text-muted: #5a6e62;
  --text-subtle: #7d9285;
  --text-inverted: #ffffff;
  --accent-gold: #087f3b;
  --accent-gold-hover: #065f2c;
  --accent-gold-active: #054821;
  --accent-gold-subtle: #e2f5ea;
  --accent-gold-border: #a1d7b3;
  background-color: #edf8f2 !important;
  color: #2d3748 !important;
  padding-top: calc(var(--admin-header-h) + var(--admin-tabs-h)) !important;
  padding-bottom: 30px !important;
}

body.admin-body .header-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--admin-header-h) !important;
  min-height: var(--admin-header-h) !important;
  max-height: var(--admin-header-h) !important;
  background-color: #075e2f !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
  z-index: 99999 !important;
  margin: 0 !important;
}

body.admin-body .header-bar .header-container {
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

body.admin-body .header-bar .brand-logo-img {
  height: 34px !important;
  max-height: 34px !important;
  width: auto !important;
  aspect-ratio: 2 / 1 !important;
}

body.admin-body .brand-title {
  color: #ffffff !important;
}

body.admin-body .brand-title span {
  color: #a1d7b3 !important;
}

body.admin-body .brand-tagline {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.admin-body .admin-header-btn {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

body.admin-body .admin-header-btn:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
}

body.admin-body .admin-header-btn.admin-logout-btn {
  background-color: rgba(220, 38, 38, 0.25) !important;
  border-color: rgba(220, 38, 38, 0.45) !important;
  color: #ffffff !important;
}

body.admin-body .admin-nav-tabs {
  position: fixed !important;
  top: var(--admin-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--admin-tabs-h) !important;
  min-height: var(--admin-tabs-h) !important;
  max-height: var(--admin-tabs-h) !important;
  margin: 0 !important;
  z-index: 9999 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 var(--space-md) !important;
  gap: 4px !important;
  background-color: #ffffff !important;
  border-top: none !important;
  border-bottom: 1px solid #d1ead9 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  scroll-behavior: smooth !important;
}

body.admin-body .admin-nav-tabs::-webkit-scrollbar {
  display: none !important;
}

body.admin-body .admin-tab-btn {
  height: 100% !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  font-size: var(--font-sm) !important;
  font-weight: 600 !important;
  color: #5a6e62 !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  background: transparent !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  gap: 6px !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: var(--transition-fast) !important;
}

body.admin-body .admin-tab-btn:hover {
  color: #073b1f !important;
  background-color: #f0fbf4 !important;
}

body.admin-body .admin-tab-btn.active {
  color: #087f3b !important;
  border-bottom-color: #087f3b !important;
  font-weight: 800 !important;
}

body.admin-body .admin-tab-btn .svg-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

body.admin-body .admin-panel-card {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
}

body.admin-body .admin-panel-title {
  color: #073b1f !important;
}

body.admin-body .admin-item-row {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
}

body.admin-body .admin-item-row:hover {
  background-color: #f7fbf8 !important;
  border-color: #087f3b !important;
}

body.admin-body .admin-item-title {
  color: #073b1f !important;
}

body.admin-body .admin-item-sub {
  color: #5a6e62 !important;
}

body.admin-body .btn-primary {
  background-color: #087f3b !important;
  border-color: #087f3b !important;
  color: #ffffff !important;
}

body.admin-body .btn-primary:hover {
  background-color: #065f2c !important;
  border-color: #065f2c !important;
}

body.admin-body .btn-secondary {
  background-color: #f0f7f3 !important;
  border-color: #d1ead9 !important;
  color: #065f2c !important;
}

body.admin-body .btn-secondary:hover {
  background-color: #e2f5ea !important;
  border-color: #087f3b !important;
}

body.admin-body .btn-icon-square {
  background-color: #f0f7f3 !important;
  border: 1px solid #d1ead9 !important;
  color: #065f2c !important;
}

body.admin-body .btn-icon-square:hover {
  background-color: #e2f5ea !important;
  border-color: #087f3b !important;
}

body.admin-body .btn-icon-square.danger {
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

body.admin-body .c-input,
body.admin-body input[type="text"],
body.admin-body input[type="number"],
body.admin-body input[type="password"],
body.admin-body textarea {
  background-color: #ffffff !important;
  border: 1.5px solid #d1ead9 !important;
  color: #111827 !important;
}

body.admin-body .c-input:focus,
body.admin-body input[type="text"]:focus,
body.admin-body textarea:focus {
  border-color: #087f3b !important;
}

body.admin-body .admin-login-overlay {
  background-color: rgba(7, 59, 31, 0.6) !important;
}

body.admin-body .admin-login-card {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
}

body.admin-body .admin-login-title {
  color: #073b1f !important;
}

body.admin-body .admin-login-title span {
  color: #087f3b !important;
}

body.admin-body .c-modal-box {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
  color: #2d3748 !important;
}

body.admin-body .c-modal-header {
  border-bottom: 1px solid #d1ead9 !important;
}

body.admin-body .c-modal-title {
  color: #073b1f !important;
}

body.admin-body .c-modal-footer {
  border-top: 1px solid #d1ead9 !important;
}

/* Admin Header Bar & Action Buttons */
.admin-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.admin-header-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  height: 36px !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--font-xs) !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.admin-header-btn .svg-icon {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}

.admin-header-btn.admin-logout-btn {
  color: var(--status-danger) !important;
  border-color: rgba(220, 53, 69, 0.45) !important;
}

.admin-header-btn.admin-logout-btn:hover {
  background-color: rgba(220, 53, 69, 0.12) !important;
  border-color: var(--status-danger) !important;
}

/* Tablet & Mobile Admin Header System - Reduced Logo & Name to fit perfectly */
@media (max-width: 768px) {
  body.admin-body {
    --admin-header-h: 50px;
    --admin-tabs-h: 44px;
    padding-top: calc(var(--admin-header-h) + var(--admin-tabs-h)) !important;
  }

  body.admin-body .header-bar {
    height: var(--admin-header-h) !important;
    min-height: var(--admin-header-h) !important;
    max-height: var(--admin-header-h) !important;
  }

  body.admin-body .admin-header-actions a.admin-header-btn {
    display: none !important;
  }

  body.admin-body .header-bar .header-container {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 6px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.admin-body .header-bar .brand-wrap {
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Reduced Logo on Mobile */
  body.admin-body .header-bar .brand-logo-img {
    height: 24px !important;
    max-height: 24px !important;
    width: auto !important;
    aspect-ratio: 2 / 1 !important;
    max-width: 48px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Reduced Website Name on Mobile */
  body.admin-body .header-bar .brand-title {
    font-size: 0.82rem !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }

  body.admin-body .header-bar .brand-tagline {
    display: none !important;
  }

  body.admin-body .admin-header-actions {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Action Buttons with Text & Icon fitting side-by-side */
  body.admin-body .admin-header-btn {
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  body.admin-body .admin-header-btn-text {
    display: inline !important;
  }

  body.admin-body .admin-header-btn .svg-icon {
    width: 12px !important;
    height: 12px !important;
  }

  body.admin-body .admin-nav-tabs {
    top: var(--admin-header-h) !important;
    height: var(--admin-tabs-h) !important;
    min-height: var(--admin-tabs-h) !important;
    max-height: var(--admin-tabs-h) !important;
    padding: 0 8px !important;
    gap: 2px !important;
  }

  body.admin-body .admin-tab-btn {
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    gap: 4px !important;
  }

  body.admin-body .admin-tab-btn .svg-icon {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Mobile phones (<= 480px) - Extra Reduced Dimensions */
@media (max-width: 480px) {
  body.admin-body {
    --admin-header-h: 48px;
    --admin-tabs-h: 42px;
    padding-top: calc(var(--admin-header-h) + var(--admin-tabs-h)) !important;
  }

  body.admin-body .header-bar {
    height: var(--admin-header-h) !important;
    min-height: var(--admin-header-h) !important;
    max-height: var(--admin-header-h) !important;
  }

  body.admin-body .header-bar .header-container {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    gap: 4px !important;
  }

  body.admin-body .header-bar .brand-wrap {
    gap: 5px !important;
  }

  /* Further reduced logo for smartphones */
  body.admin-body .header-bar .brand-logo-img {
    height: 22px !important;
    max-height: 22px !important;
    max-width: 44px !important;
    aspect-ratio: 2 / 1 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Further reduced website name for smartphones */
  body.admin-body .header-bar .brand-title {
    font-size: 0.76rem !important;
    letter-spacing: 0.02em !important;
  }

  body.admin-body .admin-header-actions {
    gap: 4px !important;
  }

  body.admin-body .admin-header-btn {
    height: 27px !important;
    padding: 0 6px !important;
    font-size: 0.68rem !important;
    gap: 3px !important;
  }

  body.admin-body .admin-header-btn .svg-icon {
    width: 11px !important;
    height: 11px !important;
  }

  body.admin-body .admin-nav-tabs {
    top: var(--admin-header-h) !important;
    height: var(--admin-tabs-h) !important;
    min-height: var(--admin-tabs-h) !important;
    max-height: var(--admin-tabs-h) !important;
  }

  body.admin-body .admin-tab-btn {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    gap: 3px !important;
  }
}

/* Small mobile phones (<= 360px) */
@media (max-width: 360px) {
  body.admin-body {
    --admin-header-h: 46px;
    --admin-tabs-h: 40px;
    padding-top: calc(var(--admin-header-h) + var(--admin-tabs-h)) !important;
  }

  body.admin-body .header-bar {
    height: var(--admin-header-h) !important;
    min-height: var(--admin-header-h) !important;
    max-height: var(--admin-header-h) !important;
  }

  body.admin-body .header-bar .brand-logo-img {
    height: 19px !important;
    max-height: 19px !important;
    max-width: 38px !important;
    aspect-ratio: 2 / 1 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.admin-body .header-bar .brand-title {
    font-size: 0.7rem !important;
  }

  body.admin-body .admin-header-btn {
    padding: 0 5px !important;
    font-size: 0.64rem !important;
    gap: 2px !important;
  }

  body.admin-body .admin-header-btn .svg-icon {
    width: 10px !important;
    height: 10px !important;
  }

  body.admin-body .admin-nav-tabs {
    top: var(--admin-header-h) !important;
    height: var(--admin-tabs-h) !important;
    min-height: var(--admin-tabs-h) !important;
    max-height: var(--admin-tabs-h) !important;
  }
}

.admin-nav-tabs {
  position: fixed !important;
  top: var(--admin-header-h, 56px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--admin-tabs-h, 46px) !important;
  min-height: var(--admin-tabs-h, 46px) !important;
  max-height: var(--admin-tabs-h, 46px) !important;
  margin: 0 !important;
  z-index: 9999 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px;
  padding: 0 var(--space-md);
  background-color: var(--bg-surface) !important;
  border-top: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.admin-nav-tabs::-webkit-scrollbar {
  display: none;
}

.admin-main {
  padding-top: var(--space-md);
  padding-bottom: var(--space-2xl);
}

.admin-tab-btn {
  height: 100% !important;
  box-sizing: border-box !important;
  padding: 0 var(--space-md);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-muted);
  border: none !important;
  border-bottom: 3px solid transparent !important;
  background: transparent !important;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0 !important;
  margin: 0 !important;
  transition: var(--transition-fast);
}

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

.admin-tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.admin-tab-btn .svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-tab-pane {
  display: none;
  padding: var(--space-lg) 0;
}

.admin-tab-pane.active {
  display: block;
}

.admin-panel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
}

.admin-panel-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-main);
}

.admin-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  gap: var(--space-sm);
}

.admin-item-thumb {
  width: clamp(54px, 10vw, 84px);
  height: clamp(36px, 6vw, 48px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: cover;
  background-color: var(--bg-main);
  flex-shrink: 0;
}

.admin-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.admin-item-title {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-sub {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

/* On 507px and below: move actions (out of stock, eye, edit, delete) below title & text description */
@media (max-width: 507px) {
  .admin-item-row {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .admin-item-details {
    flex: 1 1 calc(100% - 72px) !important;
    min-width: 0 !important;
  }

  .admin-item-actions {
    width: 100% !important;
    margin-top: 6px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--border-color) !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
}

.btn-icon-square {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-square:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background-color: var(--bg-subtle);
}

.btn-icon-square.danger:hover {
  color: #fff;
  background-color: var(--status-danger);
  border-color: var(--status-danger);
}

/* ---------------- FOOTER ---------------- */
.footer-bar {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0 var(--space-lg) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-heading {
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.footer-text {
  font-size: var(--font-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.footer-contact-item a {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-xs);
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---------------- RESPONSIVE BREAKPOINTS (MOBILE & TABLET ADAPTATION) ---------------- */
@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .product-details-modal-box {
    width: min(95vw, 540px);
    max-height: 92vh;
  }

  .details-modal-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: clamp(12px, 2.5vw, 18px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
  }

  .details-gallery-wrap {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    flex-shrink: 0;
  }

  .details-main-img-box {
    width: 100% !important;
    height: clamp(300px, 46vh, 400px) !important;
    min-height: 280px !important;
    max-height: 420px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin: 0 auto;
  }

  .details-info-wrap {
    gap: var(--space-sm);
  }

  .details-product-title {
    font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  }

  .details-product-price {
    font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  }

  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.col-span-2 {
    grid-column: span 1;
  }

  .order-choice-box {
    grid-template-columns: 1fr;
  }

  .chat-msg-row {
    max-width: 90%;
  }

  #custom-toast-container {
    left: var(--space-sm) !important;
    right: var(--space-sm) !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .c-toast-item {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .product-grid:not(.list-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(8px, 2.5vw, 14px);
  }

  .container {
    padding-left: clamp(8px, 2.5vw, 14px);
    padding-right: clamp(8px, 2.5vw, 14px);
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-card-content {
    padding: clamp(8px, 2vw, 12px);
    gap: 4px;
  }

  .product-card-title {
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .product-card-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 6px;
  }

  .product-card-price {
    font-size: clamp(0.88rem, 3.2vw, 1.05rem);
  }

  .product-card .btn-order-now {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    font-size: clamp(0.72rem, 2.2vw, 0.8rem);
    gap: 4px;
  }

  .product-card-badge {
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-controls {
    justify-content: space-between;
    width: 100%;
  }

  .c-picker-container {
    flex: 1;
    min-width: 0;
  }

  .banner-carousel {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
  }

  .brand-tagline {
    display: none;
  }

  .product-details-modal-box {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .details-modal-content {
    padding: 10px 12px;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
  }

  .details-gallery-wrap {
    max-width: 100%;
  }

  .details-main-img-box {
    width: 100% !important;
    height: clamp(270px, 44vh, 360px) !important;
    min-height: 260px !important;
    max-height: 380px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin: 0 auto;
  }

  .details-sub-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .details-desc-box {
    padding: 10px 12px;
  }

  .details-desc-body {
    font-size: var(--font-xs);
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .product-grid:not(.list-view) .product-card-desc {
    display: none;
  }
  .product-grid.list-view .product-card-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .product-grid:not(.list-view) {
    gap: 6px;
  }
}

/* ---------------- AUTH MODAL & USER SESSION STYLING ---------------- */
.auth-modal-box {
  width: min(94vw, 540px);
  max-height: 92vh;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.auth-modal-form {
  padding: clamp(14px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-sizing: border-box;
}

.auth-form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

@media (max-width: 500px) {
  .auth-form-row.two-col {
    grid-template-columns: 1fr;
  }
}

.auth-action-row {
  margin-top: var(--space-xs);
}

.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.auth-switch-btn {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: var(--font-xs);
  padding: 0;
}

.auth-switch-btn:hover {
  color: var(--accent-gold-hover);
}

/* ---------------- UNREAD MESSAGE INDICATOR BADGE ---------------- */
.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background-color: #087f3b;
  border: 1px solid #065f2c;
  border-radius: var(--radius-full);
  margin-left: 6px;
  line-height: 1;
}

.chat-unread-badge.pulse {
  animation: badge-fade 1.5s infinite;
}

@keyframes badge-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ---------------- USER ACCOUNT PILL IN HEADER ---------------- */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.user-pill-name {
  color: var(--accent-gold);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-pill-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
}

.btn-pill-logout:hover {
  color: var(--status-danger);
  background-color: var(--bg-surface);
}

/* ---------------- DEDICATED CHAT PAGE STYLES ---------------- */
html.chat-body,
body.chat-body {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #f7fbf8 !important;
  touch-action: pan-y !important;
}

/* 1. Original Top Header Bar (Emerald Green with NKEM GLOBAL Logo & Store Button) */
body.chat-body .header-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  background-color: #064e26 !important;
}

body.chat-body .header-bar .header-container {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  width: 100% !important;
}

/* 2. Chat Section (Directly locked from below 54px header down to 0 at bottom) */
body.chat-body .chat-page-section {
  position: fixed !important;
  top: 54px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 100 !important;
}

body.chat-body .chat-page-section > .container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  width: 100% !important;
}

/* 3. The Chat Card */
body.chat-body .chat-page-card {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background-color: #f7fbf8 !important;
  width: 100% !important;
}

@media (min-width: 769px) {
  body.chat-body .chat-page-section {
    padding: 12px 16px 16px !important;
  }
  body.chat-body .chat-page-card {
    border: 1px solid #d1ead9 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }
}

/* 4. Chat Header inside Card */
body.chat-body .chat-header {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  padding: 10px 14px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #d1ead9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 50 !important;
}

/* 5. Messages Container (The ONLY element that scrolls) */
body.chat-body .chat-messages-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px 14px !important;
  background-color: #f7fbf8 !important;
  overscroll-behavior-y: contain !important;
}

/* 6. Chat Input Bar (Firmly pinned to bottom) */
body.chat-body .chat-input-bar {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
  background-color: #ffffff !important;
  border-top: 1px solid #d1ead9 !important;
  padding: 8px 10px !important;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  z-index: 50 !important;
}

body.chat-body .chat-upload-btn {
  flex: 0 0 38px !important;
  flex-shrink: 0 !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
}

body.chat-body .chat-text-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
}

body.chat-body .chat-send-btn {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
}

/* 7. Guest Auth Gate Card */
body.chat-body .chat-auth-prompt-card {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  background-color: #f7fbf8;
}

body.chat-body #chatAuthGateCard[style*="display: none"],
body.chat-body .chat-auth-prompt-card[style*="display: none"],
body.chat-body .chat-auth-prompt-card.hidden {
  display: none !important;
}

body.chat-body #chatActiveCard[style*="display: none"],
body.chat-body .chat-page-card[style*="display: none"],
body.chat-body .chat-page-card.hidden {
  display: none !important;
}

.chat-auth-prompt-card {
  width: 100%;
  max-width: 500px;
  margin: var(--space-2xl) auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(24px, 5vw, 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.chat-customer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
}

.chat-customer-item:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-strong);
}

.chat-customer-item.active {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
}

/* ---------------- BATCH PAGINATION / SEE MORE BUTTON (FLAT OBSIDIAN & GOLD) ---------------- */
.see-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  width: 100%;
}

.btn-see-more {
  background-color: #ffffff;
  color: #087f3b;
  border: 1px solid #d1ead9;
  font-weight: 700;
  font-size: var(--font-sm);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  transform: none !important;
  box-shadow: none !important;
}

.btn-see-more:hover:not(:disabled) {
  background-color: #e2f5ea;
  border-color: #087f3b;
  color: #065f2c;
  transform: none !important;
  box-shadow: none !important;
}

.btn-see-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------------- CHAT SPECIAL ORDER CARD BUBBLE ---------------- */
.chat-order-card-bubble {
  max-width: min(88vw, 360px);
  background-color: #ffffff;
  border: 1px solid #d1ead9;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  cursor: pointer;
  transition: var(--transition-fast);
  overflow: hidden;
  position: relative;
}

.chat-order-card-bubble:hover {
  border-color: #087f3b !important;
  background-color: #f4fbf7 !important;
}

.chat-order-card-bubble:hover .chat-order-card-footer {
  color: #065f2c !important;
}

.chat-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

.chat-order-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.chat-order-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.2;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
}

.order-card-status-pending {
  background-color: #fef9c3;
  color: #92400e;
  border: 1px solid #fde047;
}

.order-card-status-approved {
  background-color: #e8f7ee;
  color: #065f2c;
  border: 1px solid #a1d7b3;
}

.order-card-status-shipping {
  background-color: #e6f7f2;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.order-card-status-delivered {
  background-color: #e8f7ee;
  color: #065f2c;
  border: 1px solid #a1d7b3;
}

.order-card-status-declined {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.order-card-status-cancelled {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.chat-order-card-content {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-order-card-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  cursor: pointer;
}

.chat-order-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.chat-order-card-title {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-order-card-price {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--accent-gold);
}

.chat-order-card-ref {
  font-size: 10px;
  color: var(--text-muted);
}

.chat-order-card-addr {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-order-card-footer {
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
  text-align: center;
}

/* ---------------- MY ORDERS CARDS ---------------- */
.user-order-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-xs);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.user-order-ref {
  font-weight: 700;
  color: var(--accent-gold);
}

.user-order-date {
  color: var(--text-muted);
}

.user-order-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-order-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.user-order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.user-order-title {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-main);
}

.user-order-price {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--accent-gold);
}

.user-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.user-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.order-status-badge.status-pending {
  background-color: #fef9c3;
  color: #92400e;
  border: 1px solid #fde047;
}

.order-status-badge.status-approved {
  background-color: #e8f7ee;
  color: #065f2c;
  border: 1px solid #a1d7b3;
}

.order-status-badge.status-shipping {
  background-color: #e6f7f2;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.order-status-badge.status-delivered {
  background-color: #e8f7ee;
  color: #065f2c;
  border: 1px solid #a1d7b3;
}

.order-status-badge.status-declined {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.order-status-badge.status-cancelled {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Luxury Admin Orders Filter, Search & Sort Bar */
.admin-orders-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 10px;
  margin-bottom: 16px;
}

.admin-orders-search-wrap {
  position: relative;
  width: 100%;
}

.admin-orders-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-orders-pills-wrap,
.user-orders-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-orders-pills-wrap::-webkit-scrollbar,
.user-orders-pills-wrap::-webkit-scrollbar {
  display: none;
}

.admin-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 32px;
  line-height: 1;
  box-sizing: border-box;
  user-select: none;
}

.admin-filter-pill,
.admin-filter-pill * {
  white-space: nowrap !important;
}

.admin-filter-pill:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
}

.admin-filter-pill.active {
  background-color: var(--accent-gold-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Elegant Pill Count Badge */
.admin-filter-pill .pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  line-height: 1;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.admin-filter-pill.active .pill-badge {
  background: rgba(197, 160, 89, 0.24);
  color: var(--accent-gold);
}

.admin-orders-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .admin-orders-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-orders-pills-wrap {
    width: 100%;
  }
  .admin-orders-sort-wrap {
    margin-left: 0;
    justify-content: flex-end;
  }
}

#adminOrderSortPickerMount,
#adminProductSortPickerMount,
#adminProductFilterPickerMount {
  min-width: 155px;
}

#adminOrderSortPickerMount .c-picker-trigger,
#adminProductSortPickerMount .c-picker-trigger,
#adminProductFilterPickerMount .c-picker-trigger {
  padding: 6px 14px;
  font-size: var(--font-xs);
  min-height: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-main);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

#adminOrderSortPickerMount .c-picker-trigger:hover,
#adminProductSortPickerMount .c-picker-trigger:hover,
#adminProductFilterPickerMount .c-picker-trigger:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Auto-capitalize first letters of names across all customer inputs & displays */
#regFirstName, #regLastName,
#profFirstName, #profLastName,
#orderFirstName, #orderLastName,
.capitalize-name {
  text-transform: capitalize !important;
}


/* Password Visibility Toggle */
.password-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-input-wrap .c-input,
.password-input-wrap .input-field,
.password-input-wrap input {
  width: 100%;
  padding-right: 44px !important;
  box-sizing: border-box;
}

.btn-toggle-password {
  position: absolute !important;
  right: 10px !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: auto 0 !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  border-radius: var(--radius-sm) !important;
  transform: none !important;
  transition: color var(--transition-fast), background-color var(--transition-fast) !important;
}

.btn-toggle-password:hover,
.btn-toggle-password:focus,
.btn-toggle-password:active {
  transform: none !important;
  color: #087f3b !important;
  background: rgba(8, 127, 59, 0.08) !important;
  border-radius: 50% !important;
}

.btn-toggle-password .svg-icon {
  width: 18px !important;
  height: 18px !important;
  pointer-events: none !important;
  transform: none !important;
  transition: none !important;
  overflow: visible !important;
}

/* Storefront Clean Mint & Emerald Autofill (Matching Input Fields) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:active,
input:autofill,
input:autofill:hover,
input:autofill:active,
textarea:autofill,
textarea:autofill:hover,
textarea:autofill:active,
select:autofill,
select:autofill:hover,
select:autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #edf8f2 inset !important;
  box-shadow: 0 0 0 1000px #edf8f2 inset !important;
  -webkit-text-fill-color: #064e26 !important;
  color: #064e26 !important;
  caret-color: #064e26 !important;
  border-color: #a1d7b3 !important;
  font-family: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus,
input:autofill:focus,
textarea:autofill:focus,
select:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #064e26 !important;
  color: #064e26 !important;
  caret-color: #064e26 !important;
  border-color: #087f3b !important;
  transition: background-color 5000s ease-in-out 0s;
}

input::-ms-reveal,
input::-ms-clear,
input::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ==========================================================================
   ADMIN SLIDEABLE DATA TABLE SYSTEM & RESPONSIVE CHAT GRID
   ========================================================================== */
/* Luxury Customer Search & Stats Bar */
.admin-customer-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 10px;
  margin-bottom: 22px;
}

.admin-customer-search-inner {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 540px;
  display: flex;
  align-items: center;
}

.admin-customer-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-customer-search-input {
  width: 100%;
  padding: 10px 38px 10px 40px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: var(--font-sm);
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.admin-customer-search-input:focus {
  border-color: var(--accent-gold);
}

.admin-customer-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-full);
}

.admin-customer-search-clear:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
}

.admin-customer-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-customer-count-pill strong {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: var(--font-sm);
}

@media (max-width: 768px) {
  .admin-customer-search-bar {
    padding: 12px 14px;
    gap: 12px;
    margin-bottom: 16px;
  }
  .admin-customer-search-inner {
    max-width: 100%;
    min-width: 100%;
  }
  .admin-customer-count-pill {
    width: 100%;
    justify-content: center;
  }
}


.admin-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.admin-data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: var(--font-xs);
  text-align: left;
}

.admin-data-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-data-table tbody tr:hover td {
  background-color: var(--bg-surface-elevated);
}

.admin-data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Admin Chat Console Grid */
.admin-chat-grid {
  display: grid;
  grid-template-columns: clamp(240px, 30vw, 320px) 1fr;
  gap: var(--space-md);
  min-height: 0;
}

#tabChat.active {
  padding-top: 10px !important;
  padding-bottom: 0 !important;
}

@media (min-width: 769px) {
  /* Prevent entire page from scrolling when Admin Live Chat Console is open */
  html.admin-chat-tab-active,
  body.admin-chat-tab-active {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
  }

  body.admin-chat-tab-active .admin-main {
    height: calc(100vh - var(--admin-header-h, 56px) - var(--admin-tabs-h, 46px)) !important;
    max-height: calc(100vh - var(--admin-header-h, 56px) - var(--admin-tabs-h, 46px)) !important;
    overflow: hidden !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.admin-chat-tab-active #tabChat {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    flex: 1 1 0% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.admin-chat-tab-active .admin-chat-grid {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 0% !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: clamp(260px, 28vw, 340px) 1fr !important;
    gap: var(--space-md) !important;
  }

  /* Left Side: scrollable ONLY when content reaches/overflows */
  .admin-chat-grid .admin-panel-card.admin-chat-threads-col {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  .admin-chat-grid .admin-chat-threads-col #adminChatThreadsList {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  /* Right Side: scrollable ONLY when content reaches/overflows */
  .admin-chat-grid .chat-card-wrap.admin-chat-active-col {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  .admin-chat-grid .chat-header {
    flex-shrink: 0 !important;
  }

  .admin-chat-grid .admin-chat-back-btn {
    display: none !important;
  }

  .admin-chat-grid .chat-messages-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  .admin-chat-grid .chat-input-bar {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 8px 10px !important;
  }

  .admin-chat-grid .chat-upload-btn {
    flex: 0 0 38px !important;
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .admin-chat-grid .chat-text-input {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
  }

  .admin-chat-grid .chat-send-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .admin-chat-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    min-height: auto;
  }

  .admin-chat-threads-col {
    max-height: 240px;
  }
}

/* Admin Live Chat Console Mobile Master-Detail Toggle */
.admin-chat-back-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .admin-chat-grid {
    display: block !important;
    position: relative !important;
    min-height: auto !important;
  }

  /* Default on mobile: Show conversation list only, hide active chat */
  .admin-chat-grid .admin-chat-threads-col {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    min-height: calc(100dvh - 180px);
  }

  .admin-chat-grid .admin-chat-active-col {
    display: none !important;
    width: 100% !important;
    height: calc(100dvh - 180px) !important;
    min-height: 480px !important;
    border-radius: var(--radius-md) !important;
  }

  /* When a customer chat is opened on mobile */
  .admin-chat-grid.mobile-chat-open .admin-chat-threads-col {
    display: none !important;
  }

  .admin-chat-grid.mobile-chat-open .admin-chat-active-col {
    display: flex !important;
    flex-direction: column !important;
  }

  .admin-chat-grid.mobile-chat-open .admin-chat-back-btn {
    display: inline-flex !important;
  }

  .admin-chat-grid.mobile-chat-open .chat-messages-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }

  .admin-chat-grid.mobile-chat-open .chat-input-bar {
    flex-shrink: 0 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}


/* Admin Mobile Full-Height Chat & Bottom Pinned Input Bar */
@media (max-width: 768px) {
  body.admin-mobile-chat-open {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  /* Hide top fixed header and tabs so chat takes the entire mobile screen */
  body.admin-mobile-chat-open .header-bar,
  body.admin-mobile-chat-open .admin-nav-tabs {
    display: none !important;
  }

  body.admin-mobile-chat-open .admin-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body.admin-mobile-chat-open #tabChat {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.admin-mobile-chat-open .admin-chat-grid {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.admin-mobile-chat-open .admin-chat-active-col {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    z-index: 100000 !important;
    background: var(--bg-surface) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden !important;
  }

  body.admin-mobile-chat-open .chat-header {
    flex-shrink: 0 !important;
    padding: 10px 14px !important;
    background: var(--bg-surface-elevated) !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  body.admin-mobile-chat-open .chat-messages-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px !important;
  }

  body.admin-mobile-chat-open .chat-input-bar {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding: 8px 10px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    background-color: var(--bg-surface) !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.admin-mobile-chat-open .chat-upload-btn {
    flex: 0 0 38px !important;
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  body.admin-mobile-chat-open .chat-text-input {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
  }

  body.admin-mobile-chat-open .chat-send-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   ADMIN AUTHENTICATION & LOGIN GATEWAY
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 35, 20, 0.85);
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.admin-login-overlay.hidden,
.admin-login-overlay[style*="display: none"],
.admin-login-overlay[style*="display:none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-login-card {
  width: 100%;
  max-width: 410px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: clamp(24px, 5vw, 36px);
  box-sizing: border-box;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-brand {
  text-align: center;
  margin-bottom: 22px;
}

.admin-login-logo {
  height: clamp(44px, 7vw, 60px);
  width: auto;
  max-width: 180px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: none;
  background-color: transparent;
  margin: 0 auto 14px auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.admin-login-title {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px 0;
}

.admin-login-title span {
  color: var(--accent-gold);
}

.admin-login-subtitle {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin: 0;
}

.admin-login-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  margin-bottom: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-weight: 500;
}

/* ==========================================================================
   NEW NKEM GLOBAL UI - EMERALD & MINT MOCKUP DESIGN SYSTEM
   ========================================================================== */

/* ---------------- 1. STOREFRONT HEADER BAR (DARK EMERALD GREEN) ---------------- */
body:not(.admin-body) .header-bar {
  background-color: #075e2f !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
  height: clamp(62px, 9vw, 72px) !important;
}

body:not(.admin-body) .header-container {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body:not(.admin-body) .brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body:not(.admin-body) .brand-title {
  color: #ffffff !important;
  font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

body:not(.admin-body) .brand-title span {
  color: #ffffff !important;
}

.brand-welcome-sub {
  display: flex;
  flex-direction: column;
  margin-top: 1px;
}

.brand-welcome-line {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.68rem, 1.6vw, 0.74rem);
  line-height: 1.2;
}

.brand-welcome-url {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.7rem, 1.7vw, 0.76rem);
  font-weight: 500;
  text-decoration: none;
}

.brand-welcome-url:hover {
  text-decoration: underline;
}

/* Header "Chat on WhatsApp" Pill Button */
.header-whatsapp-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background-color: #25D366 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  font-size: clamp(0.75rem, 1.9vw, 0.86rem) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.header-whatsapp-pill:hover {
  background-color: #20ba5a !important;
  transform: scale(1.02);
}

.header-whatsapp-pill .svg-icon {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
  stroke: none !important;
}

.header-whatsapp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.header-whatsapp-text-small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.95;
}

.header-whatsapp-text-bold {
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 480px) {
  body:not(.admin-body) .header-bar {
    height: 60px !important;
  }
  body:not(.admin-body) .header-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    gap: 6px !important;
  }
  body:not(.admin-body) .brand-wrap {
    gap: 6px !important;
  }
  body:not(.admin-body) .brand-logo-img {
    height: 28px !important;
    max-width: 44px !important;
  }
  body:not(.admin-body) .brand-title {
    font-size: 0.92rem !important;
  }
  body:not(.admin-body) .brand-welcome-line {
    font-size: 0.62rem !important;
  }
  body:not(.admin-body) .brand-welcome-url {
    font-size: 0.65rem !important;
  }
  .header-whatsapp-pill {
    padding: 6px 10px !important;
    gap: 5px !important;
  }
  .header-whatsapp-pill .svg-icon {
    width: 17px !important;
    height: 17px !important;
  }
  .header-whatsapp-text-small {
    font-size: 0.6rem !important;
  }
  .header-whatsapp-text-bold {
    font-size: 0.74rem !important;
  }
}

@media (max-width: 360px) {
  body:not(.admin-body) .brand-welcome-sub {
    display: none !important;
  }
}

/* Desktop Store Navigation */
.desktop-app-nav {
  display: none;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .desktop-app-nav {
    display: flex;
    margin-left: auto;
    margin-right: 6px;
  }
}

.desktop-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px clamp(10px, 1.2vw, 14px);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: var(--transition-fast);
  position: relative;
}

.desktop-nav-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.desktop-nav-btn.active {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.desktop-nav-badge {
  background-color: #e53e3e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}

/* ---------------- 2. APPLICATION MULTI-VIEW SYSTEM (SPA TABS) ---------------- */
.app-view {
  display: none;
  width: 100%;
  animation: appViewFadeIn 0.22s ease-out;
}

.app-view.active {
  display: block;
}

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

/* ---------------- 3. HERO "EVERYTHING DEY" REQUEST CARD (HOME VIEW) ---------------- */
.hero-request-section {
  padding-top: clamp(14px, 2.5vw, 24px);
  padding-bottom: clamp(12px, 2vw, 18px);
}

.hero-request-card {
  background: #ffffff;
  border-radius: clamp(16px, 3.5vw, 24px);
  border: 1px solid #d1ead9;
  box-shadow: none !important;
  padding: clamp(18px, 3vw, 28px);
  margin-left: auto;
  margin-right: auto;
}

.hero-request-title {
  color: #087f3b;
  font-size: clamp(1.85rem, 5.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-request-subtitle {
  color: #065f2c;
  font-size: clamp(1.05rem, 3vw, 1.28rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-request-desc {
  color: #374151;
  font-size: clamp(0.85rem, 2vw, 0.94rem);
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-request-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap !important;
}

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

.hero-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
}

.hero-request-input {
  width: 100%;
  min-width: 0 !important;
  padding: 13px 14px 13px 42px;
  background-color: #ffffff;
  border: 1.5px solid #d1ead9;
  border-radius: 10px;
  font-size: clamp(0.84rem, 2vw, 0.94rem);
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease;
}

.hero-request-input:focus {
  border-color: #087f3b;
}

.btn-send-request {
  flex-shrink: 0 !important;
  background-color: #087f3b;
  color: #ffffff;
  border: 1px solid #065f2c;
  border-radius: 10px;
  padding: 12px clamp(14px, 2.5vw, 24px);
  font-size: clamp(0.84rem, 2vw, 0.96rem);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-send-request:hover {
  background-color: #065f2c;
  border-color: #054821;
}

/* ---------------- 4. "SHOP BY CATEGORY" 3-COLUMN MOCKUP GRID ---------------- */
.home-categories-section {
  padding-top: 10px;
  padding-bottom: 24px;
}

.home-cat-heading {
  color: #065f2c;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 14px);
}

@media (min-width: 640px) {
  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .home-categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.home-category-card {
  background: #ffffff;
  border-radius: clamp(10px, 2.2vw, 14px);
  border: 1px solid #d1ead9;
  box-shadow: none !important;
  padding: clamp(8px, 1.8vw, 12px) 6px clamp(10px, 2vw, 14px) 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.home-category-card:hover {
  border-color: #087f3b;
  background-color: #f7fbf8;
}

.home-category-card:active {
  transform: scale(0.97);
}

.home-category-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 64px;
  max-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
}

.home-category-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.home-category-card:hover .home-category-img {
  transform: scale(1.05);
}

.home-category-title {
  color: #065f2c;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 5. SHOP VIEW TOOLBAR & PRODUCT CARDS ---------------- */
.shop-view-section {
  padding-top: 14px;
  padding-bottom: 28px;
}

.shop-toolbar-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(8, 127, 59, 0.14);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.shop-search-bar {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.shop-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: #f7fbf9;
  border: 1px solid #d1ead9;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #111827;
  outline: none;
}

.shop-search-input:focus {
  border-color: #087f3b;
  background: #ffffff;
}

/* Horizontal Scrollable Category Filter Pills */
.shop-cat-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-cat-pills-bar::-webkit-scrollbar {
  display: none;
}

.shop-cat-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: #f0f7f3;
  color: #065f2c;
  border: 1px solid rgba(8, 127, 59, 0.18);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.shop-cat-pill:hover {
  background: #e2f5ea;
}

.shop-cat-pill.active {
  background: #087f3b;
  color: #ffffff;
  border-color: #087f3b;
  box-shadow: none !important;
}

/* Storefront Product Card Overhaul (Zero Glow, Zero Shadow, Zero Hover Lift) */
body:not(.admin-body) .product-card {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.15s ease !important;
}

body:not(.admin-body) .product-card:hover {
  transform: none !important;
  border-color: #087f3b !important;
  box-shadow: none !important;
}

body:not(.admin-body) .product-card-img-wrap {
  background-color: #f7fbf8 !important;
}

body:not(.admin-body) .product-card-title {
  color: #073b1f !important;
  font-weight: 800 !important;
}

body:not(.admin-body) .product-card-price {
  color: #087f3b !important;
  font-weight: 900 !important;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem) !important;
}

/* "Add to Cart" Button */
.btn-add-to-cart {
  width: 100%;
  background-color: #087f3b;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: var(--font-xs);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color 0.15s ease;
  box-shadow: none !important;
}

.btn-add-to-cart:hover {
  background-color: #065f2c;
  transform: none !important;
}

.btn-add-to-cart:active {
  transform: none !important;
}

.btn-add-to-cart .svg-icon {
  width: 16px;
  height: 16px;
}

/* ---------------- LIST VIEW ARRANGEMENT ENHANCEMENT ---------------- */
.product-grid.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.product-grid.list-view .product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: clamp(120px, 16vw, 160px) !important;
  width: 100% !important;
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.product-grid.list-view .product-card-img-wrap {
  width: clamp(110px, 26vw, 180px) !important;
  min-width: clamp(110px, 26vw, 180px) !important;
  max-width: clamp(110px, 26vw, 180px) !important;
  aspect-ratio: auto !important;
  height: auto !important;
  align-self: stretch !important;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background-color: #edf8f2 !important;
}

.product-grid.list-view .product-card-img-wrap .product-card-img-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.product-grid.list-view .product-card-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: clamp(10px, 1.8vw, 16px) !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.product-grid.list-view .product-card-title {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem) !important;
  font-weight: 700 !important;
  color: #073b1f !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ---------------- WHATSAPP ORDER BUTTON ---------------- */
.btn-whatsapp-order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 9px 14px !important;
  font-size: var(--font-xs) !important;
  font-weight: 700 !important;
  color: #166534 !important;
  background-color: #f7fbf8 !important;
  border: 1px solid #25D366 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.btn-whatsapp-order:hover {
  background-color: #e2f5ea !important;
  border-color: #166534 !important;
  color: #0d4a22 !important;
}

.btn-whatsapp-order .svg-icon {
  width: 15px !important;
  height: 15px !important;
  color: #25D366 !important;
  flex-shrink: 0 !important;
}

/* ---------------- GRID VIEW LAYOUT ---------------- */
.product-grid:not(.list-view) .product-card-desc {
  display: none !important;
}

.product-grid:not(.list-view) .product-card-list-price {
  display: none !important;
}

.product-grid:not(.list-view) .product-card-divider {
  display: block !important;
  height: 1px !important;
  background-color: #eef7f1 !important;
  margin: 6px 0 !important;
}

.product-grid:not(.list-view) .product-card-grid-price {
  display: block !important;
  margin-bottom: 8px !important;
}

.product-grid:not(.list-view) .product-card-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: auto !important;
  border-top: none !important;
  padding-top: 0 !important;
}

.product-grid:not(.list-view) .btn-add-to-cart {
  width: 100% !important;
  order: 1 !important;
}

.product-grid:not(.list-view) .btn-whatsapp-order {
  width: 100% !important;
  order: 2 !important;
}

/* ---------------- LIST VIEW LAYOUT ---------------- */
.product-grid.list-view .product-card-grid-price,
.product-grid.list-view .product-card-divider {
  display: none !important;
}

.product-grid.list-view .product-card-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: clamp(0.74rem, 2vw, 0.85rem) !important;
  color: #5a6e62 !important;
  line-height: 1.4 !important;
  margin: 2px 0 4px 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-grid.list-view .product-card-list-price {
  display: block !important;
  margin-top: 2px !important;
  margin-bottom: 4px !important;
}

.product-grid.list-view .product-card-list-price .product-card-price {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem) !important;
  font-weight: 800 !important;
  color: #087f3b !important;
}

.product-grid.list-view .product-card-footer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid #eef7f1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.product-grid.list-view .btn-whatsapp-order {
  order: 1 !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 7px 10px !important;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.product-grid.list-view .btn-add-to-cart {
  order: 2 !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 7px 10px !important;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.product-grid.list-view .btn-whatsapp-order span,
.product-grid.list-view .btn-add-to-cart span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Tablet & Mobile Breakpoint (<= 540px) - Clean Stacked Layout so both buttons fit perfectly with 100% width */
@media (max-width: 540px) {
  .product-grid.list-view .product-card {
    min-height: 136px !important;
    height: auto !important;
  }

  .product-grid.list-view .product-card-img-wrap {
    width: clamp(96px, 28vw, 120px) !important;
    min-width: clamp(96px, 28vw, 120px) !important;
    max-width: clamp(96px, 28vw, 120px) !important;
    align-self: stretch !important;
    height: auto !important;
  }

  .product-grid.list-view .product-card-content {
    padding: 8px 10px !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  .product-grid.list-view .product-card-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    margin-top: auto !important;
    padding-top: 6px !important;
    border-top: 1px solid #eef7f1 !important;
    width: 100% !important;
  }

  .product-grid.list-view .btn-add-to-cart {
    order: 1 !important;
    width: 100% !important;
    flex: none !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
  }

  .product-grid.list-view .btn-whatsapp-order {
    order: 2 !important;
    width: 100% !important;
    flex: none !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
  }

  .product-grid:not(.list-view) .btn-whatsapp-order,
  .product-grid:not(.list-view) .btn-add-to-cart {
    padding: 7px 8px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }
}

/* Small mobile phones (<= 360px) */
@media (max-width: 360px) {
  .product-grid.list-view .product-card-img-wrap {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
  }

  .product-grid.list-view .product-card-content {
    padding: 6px 8px !important;
    gap: 3px !important;
  }

  .product-grid.list-view .btn-add-to-cart,
  .product-grid.list-view .btn-whatsapp-order {
    height: 28px !important;
    min-height: 28px !important;
    font-size: 0.7rem !important;
    padding: 0 6px !important;
    gap: 4px !important;
  }

  .product-grid.list-view .btn-add-to-cart .svg-icon,
  .product-grid.list-view .btn-whatsapp-order .svg-icon {
    width: 13px !important;
    height: 13px !important;
  }
}

/* From 326px to 540px the description should show */
@media (min-width: 326px) and (max-width: 540px) {
  .product-grid.list-view .product-card-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 0.74rem !important;
    color: #5a6e62 !important;
    line-height: 1.35 !important;
    margin: 2px 0 4px 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Only below 326px (extremely small devices) */
@media (max-width: 325px) {
  .product-grid.list-view .product-card-desc {
    display: none !important;
  }
}

.view-toggle-btn.active {
  color: #087f3b !important;
  background-color: #e2f5ea !important;
}

/* ---------------- PRODUCT DETAILS MODAL THEME CUSTOMIZATION ---------------- */
body:not(.admin-body) .product-details-modal-box {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

body:not(.admin-body) .product-details-modal-box .c-modal-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #d1ead9 !important;
  color: #073b1f !important;
}

body:not(.admin-body) .product-details-modal-box .c-modal-title {
  color: #073b1f !important;
}

body:not(.admin-body) .details-main-img-box {
  background-color: #edf8f2 !important;
  border: 1px solid #d1ead9 !important;
  border-radius: 14px !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

body:not(.admin-body) .details-main-img {
  background-color: transparent !important;
}

body:not(.admin-body) .details-img-zoom-hint {
  background-color: rgba(7, 94, 47, 0.88) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body:not(.admin-body) .details-desc-box {
  background-color: #f7fbf8 !important;
  border: 1px solid #d1ead9 !important;
}

body:not(.admin-body) .details-desc-heading {
  color: #5a6e62 !important;
}

body:not(.admin-body) .details-desc-body {
  color: #2d3748 !important;
}

body:not(.admin-body) .details-product-title {
  color: #073b1f !important;
}

body:not(.admin-body) .details-product-price {
  color: #087f3b !important;
}

body:not(.admin-body) .details-sub-thumb {
  background-color: #ffffff !important;
  border: 1px solid #d1ead9 !important;
}

body:not(.admin-body) .details-sub-thumb.active {
  border-color: #087f3b !important;
  border-width: 2px !important;
}

body:not(.admin-body) .details-thumb-nav-btn {
  background-color: #f7fbf8 !important;
  border: 1px solid #d1ead9 !important;
  color: #087f3b !important;
}

body:not(.admin-body) .details-thumb-nav-btn:hover {
  background-color: #e2f5ea !important;
  border-color: #087f3b !important;
}

body:not(.admin-body) .details-sub-images-track {
  scrollbar-color: #087f3b #edf8f2 !important;
}

body:not(.admin-body) .details-sub-images-track::-webkit-scrollbar-thumb {
  background: #087f3b !important;
}

body:not(.admin-body) .details-sub-images-track::-webkit-scrollbar-track {
  background: #edf8f2 !important;
}

body:not(.admin-body) .details-modal-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: clamp(10px, 1.8vw, 14px) clamp(14px, 2.5vw, 24px) !important;
  background-color: #ffffff !important;
  border-top: 1px solid #d1ead9 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
}

body:not(.admin-body) .details-modal-footer .btn-primary {
  width: 100% !important;
  justify-content: center !important;
  padding: 12px 16px !important;
  font-weight: 800 !important;
  font-size: clamp(0.88rem, 2.2vw, 1rem) !important;
  background-color: #087f3b !important;
  border: 1px solid #087f3b !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body:not(.admin-body) .details-modal-footer .btn-primary:hover:not(:disabled) {
  background-color: #066b31 !important;
  border-color: #066b31 !important;
}

body:not(.admin-body) .details-modal-footer .btn-primary:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

body:not(.admin-body) .details-modal-footer .details-whatsapp-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 11px 16px !important;
  font-weight: 700 !important;
  font-size: clamp(0.84rem, 2vw, 0.94rem) !important;
  color: #166534 !important;
  background-color: #f7fbf8 !important;
  border: 1px solid #25D366 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body:not(.admin-body) .details-modal-footer .details-whatsapp-btn:hover {
  background-color: #e2f5ea !important;
  border-color: #166534 !important;
}

@media (min-width: 680px) {
  body:not(.admin-body) .details-modal-footer {
    flex-direction: row !important;
    gap: 12px !important;
  }
  body:not(.admin-body) .details-modal-footer .btn-primary {
    flex: 1.2 !important;
  }
  body:not(.admin-body) .details-modal-footer .details-whatsapp-btn {
    flex: 1 !important;
  }
}

/* ---------------- PRODUCT DETAILS MODAL MOBILE FIT & VIEWPORT SAFETY ---------------- */
@media (max-width: 680px) {
  #productDetailsModal.c-modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  body:not(.admin-body) #productDetailsModal .product-details-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 92vh !important;
    height: 92dvh !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    border-radius: 18px 18px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid #d1ead9 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body:not(.admin-body) #productDetailsModal .c-modal-header {
    padding: 12px 16px !important;
    flex-shrink: 0 !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    background-color: #ffffff !important;
  }

  body:not(.admin-body) #productDetailsModal .c-modal-title {
    font-size: 1rem !important;
  }

  body:not(.admin-body) #productDetailsModal .details-modal-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 10px 14px 18px 14px !important;
    gap: 12px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body:not(.admin-body) #productDetailsModal .details-gallery-wrap {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    gap: 8px !important;
  }

  body:not(.admin-body) #productDetailsModal .details-main-img-box {
    width: 100% !important;
    height: clamp(190px, 30dvh, 260px) !important;
    min-height: 180px !important;
    max-height: 270px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }

  body:not(.admin-body) #productDetailsModal .details-sub-thumb {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
  }

  body:not(.admin-body) #productDetailsModal .details-product-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  body:not(.admin-body) #productDetailsModal .details-product-price {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
  }

  body:not(.admin-body) #productDetailsModal .details-desc-box {
    padding: 10px 12px !important;
  }

  body:not(.admin-body) #productDetailsModal .details-modal-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 14px max(14px, env(safe-area-inset-bottom, 14px)) 14px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #d1ead9 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  body:not(.admin-body) #productDetailsModal .details-modal-footer .btn-primary {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }

  body:not(.admin-body) #productDetailsModal .details-modal-footer .details-whatsapp-btn {
    padding: 9px 14px !important;
    font-size: 0.86rem !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
  }
}

/* ---------------- 6. CART VIEW (SHOPPING CART & CHECKOUT) ---------------- */
.cart-view-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 14px 40px 14px;
}

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

.cart-heading {
  color: #065f2c;
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  font-weight: 900;
}

.cart-clear-btn {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Empty Cart State */
.cart-empty-state {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(8, 127, 59, 0.14);
  box-shadow: var(--shadow-sm);
  padding: 44px 20px;
  text-align: center;
}

.cart-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #087f3b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.cart-empty-icon .svg-icon {
  width: 34px;
  height: 34px;
}

.cart-empty-title {
  color: #073b1f;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cart-empty-sub {
  color: #5a6e62;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

/* Cart Item Card */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(8, 127, 59, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f7fbf8;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2f5ea;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.cart-item-thumb:hover {
  transform: scale(1.04);
  border-color: #087f3b;
  opacity: 0.95;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  color: #073b1f;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cart-item-title:hover {
  color: #087f3b;
  text-decoration: underline;
}

.cart-item-unit-price {
  color: #087f3b;
  font-size: 0.84rem;
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-group {
  display: inline-flex;
  align-items: center;
  background: #f0f7f3;
  border-radius: 6px;
  border: 1px solid #d1ead9;
  overflow: hidden;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #073b1f;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: #e2f5ea;
}

.cart-qty-value {
  padding: 0 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #073b1f;
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove-btn:hover {
  background: #fee2e2;
}

.cart-item-remove-btn .svg-icon {
  width: 16px;
  height: 16px;
}

/* Cart Checkout & Order Card */
.cart-checkout-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(8, 127, 59, 0.14);
  box-shadow: 0 4px 20px rgba(7, 94, 47, 0.06);
  padding: clamp(16px, 3vw, 22px);
}

.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #4b5563;
}

.cart-summary-line.cart-total-line {
  font-size: 1.05rem;
  font-weight: 900;
  color: #065f2c;
  border-top: 1.5px dashed #d1ead9;
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cart-summary-line.cart-total-line {
    font-size: 0.95rem;
    gap: 6px;
  }
}

.btn-cart-checkout {
  width: 100%;
  padding: 13px;
  background-color: #087f3b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(8, 127, 59, 0.3);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-cart-checkout:hover {
  background-color: #065f2c;
}

.btn-cart-whatsapp {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  background-color: #f7fbf8;
  color: #166534;
  border: 1.5px solid #25D366;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-cart-whatsapp:hover {
  background-color: #e2f5ea;
  border-color: #166534;
  color: #0d4a22;
}

.btn-cart-whatsapp .svg-icon,
.btn-cart-whatsapp .svg-whatsapp {
  width: 20px !important;
  height: 20px !important;
  color: #25D366 !important;
  fill: #25D366 !important;
  flex-shrink: 0 !important;
}

/* ---------------- 7. REQUESTS VIEW (ORDERS & SOURCING REQUESTS) ---------------- */
.requests-view-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 14px 40px 14px;
}

.requests-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(8, 127, 59, 0.14);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.requests-card:hover {
  border-color: #087f3b;
}

.request-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.request-card-title {
  color: #073b1f;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.3;
}

.request-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.request-status-pill.pending {
  background: #fef9c3;
  color: #92400e;
  border: 1px solid #fde047;
}

.request-status-pill.confirmed,
.request-status-pill.approved,
.request-status-pill.delivered {
  background: #e8f7ee;
  color: #065f2c;
  border: 1px solid #a1d7b3;
}

.request-status-pill.shipping,
.request-status-pill.shipped {
  background: #e6f7f2;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.request-status-pill.declined,
.request-status-pill.cancelled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Chat Order Request Card matching My Orders exactly */
.chat-order-request-card {
  width: 100%;
  max-width: min(92vw, 440px);
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(8, 127, 59, 0.18) !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  margin-bottom: 2px !important;
  transition: border-color 0.15s ease;
  cursor: pointer;
}

.chat-order-request-card:hover {
  border-color: #087f3b !important;
}

.chat-msg-row.outgoing .chat-order-request-card,
.chat-msg-row.incoming .chat-order-request-card {
  color: #1a1a1a !important;
}

.chat-msg-row.outgoing .chat-order-request-card *,
.chat-msg-row.incoming .chat-order-request-card * {
  color: inherit;
}

.chat-msg-row.outgoing .chat-order-request-card .request-card-title,
.chat-msg-row.incoming .chat-order-request-card .request-card-title {
  color: #073b1f !important;
}

.chat-msg-row.outgoing .chat-order-request-card .request-code-badge,
.chat-msg-row.incoming .chat-order-request-card .request-code-badge {
  color: #065f2c !important;
  background: #f0f7f3 !important;
}

.chat-msg-row.outgoing .chat-order-request-card .request-status-pill.pending,
.chat-msg-row.incoming .chat-order-request-card .request-status-pill.pending {
  background: #fef9c3 !important;
  color: #92400e !important;
  border: 1px solid #fde047 !important;
}

/* ---------------- SPECIAL SOURCING REQUEST CHAT BUBBLE (DIFFERENTIATED) ---------------- */
.chat-sourcing-request-card {
  width: 100%;
  max-width: min(92vw, 440px);
  background: #f2faf5 !important;
  border-radius: 14px !important;
  border: 2px solid #087f3b !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  margin-bottom: 2px !important;
  text-align: left;
}

.chat-msg-row.outgoing .chat-sourcing-request-card,
.chat-msg-row.incoming .chat-sourcing-request-card {
  color: #1a1a1a !important;
}

.chat-msg-row.outgoing .chat-sourcing-request-card *,
.chat-msg-row.incoming .chat-sourcing-request-card * {
  color: inherit;
}

.sourcing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid #d1ead9;
  margin-bottom: 10px;
}

.sourcing-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #087f3b !important;
  color: #ffffff !important;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
}

.sourcing-card-badge svg {
  stroke: #ffffff;
}

.sourcing-card-guarantee {
  font-size: 0.72rem;
  font-weight: 700;
  color: #073b1f !important;
  background-color: #d1f2de;
  border: 1px solid #a3e2bb;
  padding: 3px 8px;
  border-radius: 12px;
}

.sourcing-item-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #5a6e62 !important;
  letter-spacing: 0.04em;
}

.sourcing-item-name {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: #073b1f !important;
  margin: 3px 0 8px 0 !important;
  line-height: 1.3 !important;
}

.sourcing-details-pill {
  background: #ffffff !important;
  border: 1px solid #d1ead9 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
  color: #1e3a29 !important;
  margin: 8px 0 !important;
  line-height: 1.4 !important;
}

.sourcing-details-pill strong {
  color: #087f3b !important;
  font-weight: 800;
}

.sourcing-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #5a6e62 !important;
  margin-top: 8px;
}

.sourcing-status-dot {
  color: #087f3b !important;
  font-weight: 700;
}

.sourcing-requester-info {
  font-size: 0.8rem;
  color: #3b5043 !important;
  margin-top: 8px;
}

.sourcing-requester-info strong {
  color: #073b1f !important;
}

.sourcing-card-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d1ead9;
}

.sourcing-wa-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: #166534 !important;
  border-color: #25D366 !important;
  background-color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
}

.sourcing-wa-btn:hover {
  background-color: #eafaf1 !important;
  border-color: #128c7e !important;
}

.request-card-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  max-width: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #d1ead9;
  background: #ffffff;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 480px) {
  .request-card-thumb {
    width: 62px;
    height: 62px;
    min-width: 62px;
    max-width: 62px;
  }
}

.request-card-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #5a6e62;
  margin-bottom: 12px;
}

.request-code-badge {
  font-family: monospace;
  font-weight: 700;
  background: #f0f7f3;
  color: #065f2c;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #d1ead9;
}

.request-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #f0f7f3;
  padding-top: 10px;
}

/* ---------------- 8. ACCOUNT VIEW (PROFILE, CHAT & SUPPORT) ---------------- */
.account-view-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 14px 40px 14px;
}

.account-card-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d1ead9;
  box-shadow: none !important;
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 16px;
  overflow: hidden;
  word-break: break-word;
}

.account-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.account-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #087f3b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: none !important;
}

.account-user-name {
  color: #073b1f;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
  word-break: break-word;
}

.account-user-phone {
  color: #5a6e62;
  font-size: 0.84rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.account-support-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1ead9;
  background: #f7fbf8;
  color: #065f2c;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.account-support-btn:hover {
  background: #eaf7f0;
  border-color: #087f3b;
}

.account-support-btn .support-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-support-btn .support-left .svg-icon {
  width: 20px;
  height: 20px;
}

.account-support-btn .support-action-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.82rem !important;
  color: #5a6e62 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.account-support-btn .support-action-link span {
  display: inline-block !important;
  line-height: 1 !important;
}

.account-support-btn .support-chevron-svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  display: inline-block !important;
  color: #5a6e62 !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* ---------------- 9. BOTTOM APP NAVIGATION BAR (5 TABS) ---------------- */
.bottom-nav-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 62px !important;
  background-color: #ffffff !important;
  border-top: 1px solid #d1ead9 !important;
  box-shadow: none !important;
  z-index: 99990 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
}

@media (min-width: 900px) {
  .bottom-nav-bar {
    display: none !important;
  }
}

@media (max-width: 899.98px) {
  body:not(.admin-body):not(.chat-body) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 24px) !important;
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
  position: relative;
}

.bottom-nav-item .svg-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  transition: none;
}

.bottom-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.bottom-nav-item:hover {
  color: #065f2c;
}

.bottom-nav-item.active {
  color: #087f3b !important;
}

.bottom-nav-item.active .svg-icon {
  transform: none !important;
  stroke-width: 2.3;
}

.cart-badge-bubble {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background-color: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: none !important;
}

.account-chat-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: none !important;
}

#accountDirectChatBtn:hover {
  background-color: #def2e6 !important;
  border-color: #065f2c !important;
}

/* ---------------- 10. FLOATING WHATSAPP BUTTON (MOCKUP RIGHT CIRCLE) ---------------- */
.floating-whatsapp-btn {
  position: fixed !important;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  right: 18px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background-color: #25D366 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  transition: background-color 0.15s ease !important;
}

.floating-whatsapp-btn:hover {
  background-color: #20ba5a !important;
  transform: none !important;
  box-shadow: none !important;
}

.floating-whatsapp-btn:active {
  transform: none !important;
}

.floating-whatsapp-btn .svg-icon,
.floating-whatsapp-btn .svg-whatsapp {
  width: 26px !important;
  height: 26px !important;
  fill: #ffffff !important;
  stroke: none !important;
  display: block !important;
}

@media (min-width: 900px) {
  .floating-whatsapp-btn {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    right: 24px !important;
    width: 54px !important;
    height: 54px !important;
  }
}

/* ---------------- ORDER SUCCESS MODAL SPACIOUS & UNSQUEEZED FIT ---------------- */
#orderSuccessModal .c-modal-box {
  width: 100% !important;
  max-width: 520px !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  border: 1px solid #d1ead9 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#orderSuccessModal .receipt-modal-box {
  padding: 18px 20px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  text-align: left !important;
  max-height: calc(90vh - 65px) !important;
  max-height: calc(90dvh - 65px) !important;
}

#orderSuccessModal .success-order-items-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
  margin: 4px 0 !important;
}

#orderSuccessModal .success-order-item-card {
  background: #f7fbf8 !important;
  border: 1.5px solid #d1ead9 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  min-height: 80px !important;
}

#orderSuccessModal .success-order-item-card:hover {
  border-color: #087f3b !important;
}

@media (max-width: 480px) {
  #orderSuccessModal .c-modal-box {
    max-height: 95vh !important;
    max-height: 95dvh !important;
    border-radius: 14px !important;
  }
  #orderSuccessModal .receipt-modal-box {
    padding: 14px 16px !important;
    gap: 10px !important;
    max-height: calc(95vh - 55px) !important;
    max-height: calc(95dvh - 55px) !important;
  }
  #orderSuccessModal .success-order-item-card {
    padding: 10px 12px !important;
    gap: 10px !important;
    min-height: 74px !important;
  }
}


