/* ==========================================================================
   K-FORM KORAT (เค-ฟอร์ม แบบเหล็กก่อสร้าง โคราช)
   Modern Construction & Formwork Rental Stylesheet
   ========================================================================== */

:root {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-light: #fff7ed;
  --primary-border: #fed7aa;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --line-color: #06c755;
  --line-hover: #05a847;
  
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-card: #273549;
  
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --border-dark: #334155;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
  --shadow-orange: 0 10px 25px -5px rgba(234, 88, 12, 0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  --font-base: 'Noto Sans Thai', 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Noto Sans Thai', 'Noto Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--font-base);
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); /* Space for mobile sticky bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container, .container-wide, .container-fluid {
    padding: 0 16px;
  }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.text-center { text-align: center; }
/* Form Controls Base */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 14px;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  text-align: left;
}

.form-control {
  display: block;
  width: 100%;
  font-family: var(--font-base);
  font-size: 0.92rem;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

select.form-control {
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(234, 88, 12, 0.45);
}

.btn-primary-sm {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary-sm:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-line {
  background: var(--line-color);
  color: #ffffff;
}
.btn-line:hover {
  background: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(6, 199, 85, 0.4);
}

.btn-line-sm {
  background: var(--line-color);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-line-sm:hover {
  background: var(--line-hover);
  transform: translateY(-1px);
}

.btn-staff-pos {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.btn-staff-pos:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.08rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: #090e1a;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-tag {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  margin-right: 6px;
  text-transform: uppercase;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}
.top-link:hover {
  color: #ffffff;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.line-highlight {
  color: #4ade80;
  font-weight: 500;
}
.line-highlight:hover {
  color: #86efac;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  transition: height 0.25s ease;
}

/* Header Desktop Scrolled State: 74px -> 56px */
.site-header.scrolled .header-container {
  height: 56px;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile Smart Header: Hide on scroll down, show on scroll up */
@media (max-width: 768px) {
  .site-header.header-hidden {
    transform: translateY(-100%);
  }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: max-content;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
  flex-shrink: 0;
}

.logo-k {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.logo-sub {
  font-size: 0.50rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  white-space: nowrap;
  margin: 0;
}

.brand-name span {
  color: var(--primary);
}

.brand-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 2px;
}

/* Navigation Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: clamp(6px, 1vw, 15px);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .nav-menu {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
  .brand-name {
    font-size: 1.12rem;
  }
  .brand-caption {
    font-size: 0.66rem;
  }
  .btn-line-sm, .btn-primary-sm {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
}

/* Mobile Nav Drawer */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 74px;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--primary);
  gap: 16px;
  align-items: flex-start;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #090e1a 0%, #172236 60%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(234, 88, 12, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #fdba74;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f97316;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.1rem;
  }
}

.highlight-orange {
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 600px;
}

.hero-lead strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  .hero-perks {
    grid-template-columns: 1fr;
  }
}

.perk-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #e2e8f0;
}

.perk-icon {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hotline-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hotline-number {
  color: #fba75d;
  font-weight: 600;
  font-size: 1.05rem;
}
.hotline-number:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hotline-divider {
  color: #475569;
}

/* Hero Stat & Mockup Card */
.stat-highlight-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  position: relative;
}

.card-header-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.preview-mockup {
  background: #090e1a;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
  position: relative;
}

.feature-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #93c5fd;
}

.top-callout { margin-bottom: 16px; }
.bottom-callout { margin-top: 16px; color: #fde047; }

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

.structure-visual {
  padding: 10px 0;
}

.form-panel-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 120px;
}

.panel-box {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border: 2px dashed #93c5fd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #ffffff;
}

.panel-box.right-side {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  border-color: #fdba74;
}

.concrete-core {
  flex: 1.4;
  height: 85%;
  background: #64748b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fb923c;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.card-footer-note {
  font-size: 0.74rem;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================================
   Feature Strip
   ========================================================================== */
.feature-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strip-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strip-icon-box svg {
  width: 24px;
  height: 24px;
}

.strip-info h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.strip-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Section Generic Styles
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
}

.sub-title {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ==========================================================================
   Services & Products Tabs
   ========================================================================== */
.product-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.tab-icon {
  width: 18px;
  height: 18px;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.product-card-detail {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

@media (min-width: 900px) {
  .product-card-detail {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.product-img-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.img-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
}

/* 3D Illustration Mockups */
.product-illustration {
  width: 100%;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-3d {
  width: 140px;
  height: 220px;
  background: #cbd5e1;
  border: 3px solid #f97316;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.column-3d .face {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.formwork-brace {
  background: #0f172a;
  color: #fbbf24;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 3px;
  width: 90%;
  text-align: center;
  border-left: 3px solid #ea580c;
  border-right: 3px solid #ea580c;
}

.beam-3d {
  width: 240px;
  height: 120px;
  display: flex;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border-radius: 6px;
  overflow: hidden;
}

.beam-flange {
  background: #ea580c;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 8px 4px;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beam-concrete {
  flex: 1;
  background: #64748b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.soffit-3d {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.concrete-slab {
  background: #64748b;
  color: #fff;
  padding: 18px;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 4px;
}

.soffit-plate {
  background: #ea580c;
  color: #fff;
  padding: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
}

.scaffold-support {
  background: #334155;
  color: #94a3b8;
  padding: 8px;
  width: 60%;
  text-align: center;
  font-size: 0.7rem;
  border-radius: 4px;
}

.footing-3d {
  width: 200px;
  background: #451a03;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-align: center;
}

.soil-layer { font-size: 0.7rem; color: #d97706; }
.footing-box { background: #ea580c; padding: 12px; font-size: 0.75rem; font-weight: 600; border-radius: 4px; }
.pile-cap { background: #64748b; padding: 10px; font-size: 0.75rem; border-radius: 4px; }

/* Product Info Box */
.product-info-box {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.prod-title {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.prod-desc {
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.specs-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .spec-item {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
}

.spec-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 140px;
}

.spec-val {
  color: var(--text-muted);
}

.prod-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Accessories Banner */
.accessories-bar {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.acc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.acc-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.acc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acc-tag {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-body);
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison-section {
  background: #ffffff;
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.comparison-table th, 
.comparison-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
  background: var(--bg-light);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.comparison-table thead .col-kform {
  background: #0f172a;
  color: #ffffff;
  position: relative;
  width: 38%;
}

.brand-tag {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.feature-name {
  width: 32%;
}

.feature-name strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.feature-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kform-col {
  background: rgba(234, 88, 12, 0.04);
  font-size: 0.95rem;
}

.kform-col.positive {
  color: #047857;
}

.wood-col {
  width: 30%;
  font-size: 0.9rem;
}

.wood-col.negative {
  color: #b91c1c;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: #10b981;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.cross-icon {
  width: 18px;
  height: 18px;
  color: #ef4444;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* ==========================================================================
   Calculator Section (Consolidated Project Estimator)
   ========================================================================== */
.calc-section {
  padding: 55px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, #edf2f7 100%);
}

.calc-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 992px) {
  .calc-container {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 24px;
  }
}

.calc-form-card, .calc-result-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

.calc-struct-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.calc-struct-block:hover {
  border-color: #cbd5e1;
}

.calc-struct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 6px;
}

.calc-struct-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  cursor: pointer;
}

.calc-struct-title input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.calc-struct-sub {
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 500;
}

.calc-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.calc-mini-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
}

.calc-mini-field .form-control {
  padding: 7px 10px;
  font-size: 0.88rem;
  border-radius: 4px;
}

.calc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.input-unit-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit-group .form-control {
  padding-right: 44px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.unit-addon {
  position: absolute;
  right: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
}

.preset-day-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.chip-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

.chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
}

@media (max-width: 540px) {
  .calc-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Calculator Result Card */
.calc-result-card {
  background: #0f172a;
  color: #ffffff;
  border-color: #334155;
  padding: 22px 24px;
  position: relative;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}

.result-header h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
}

.calc-status-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.breakdown-table {
  width: 100%;
  margin-bottom: 14px;
  border-collapse: collapse;
}

.breakdown-table tr {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.breakdown-table td {
  padding: 7px 0;
  font-size: 0.86rem;
}

.breakdown-table td.col-name {
  color: #94a3b8;
}

.breakdown-table td.col-val {
  text-align: right;
  color: #f1f5f9;
  font-weight: 500;
}

.result-total-banner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.res-total-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.res-total-value {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fb923c;
}

.price-estimate-box {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.est-caption {
  font-size: 0.82rem;
  color: #fed7aa;
  margin-bottom: 2px;
}

.est-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fb923c;
  line-height: 1.2;
}

.est-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-top: 3px;
}

.calc-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Project Gallery & Reviews
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-visual {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.gallery-v1 { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(15,23,42,0.95) 100%), #334155; }
.gallery-v2 { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(15,23,42,0.95) 100%), #1e293b; }
.gallery-v3 { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(15,23,42,0.95) 100%), #475569; }
.gallery-v4 { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(15,23,42,0.95) 100%), #0f172a; }

.gallery-overlay {
  padding: 20px;
  color: #ffffff;
  width: 100%;
}

.site-tag {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.gallery-overlay h4 {
  color: #ffffff;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Reviews Wrapper */
.reviews-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .reviews-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-comment {
  font-size: 0.95rem;
  color: var(--text-body);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 18px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.reviewer-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.reviewer-site {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Service Coverage Section
   ========================================================================== */
.coverage-section {
  background: #ffffff;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.coverage-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.coverage-card.highlight-card {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-color: var(--primary-border);
}

.hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.hub-icon svg {
  width: 22px;
  height: 22px;
}

.coverage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hub-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hub-districts {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.hub-delivery-time {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-body);
}

.hub-delivery-time strong {
  color: var(--primary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--bg-light);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-family: var(--font-base);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  padding-bottom: 18px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background: #090e1a;
  color: #ffffff;
  padding: 50px 0;
}

.contact-card-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-card-box {
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
  }
}

.contact-head {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.contact-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.c-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-icon svg {
  width: 18px;
  height: 18px;
}

.phone-icon { background: rgba(234, 88, 12, 0.2); color: #f97316; }
.line-icon { background: rgba(6, 199, 85, 0.2); color: #22c55e; }
.fb-icon { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.map-pin-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.c-label {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.c-val {
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
}

.c-val a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Quick Inquiry Card */
.inquiry-form-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.inquiry-form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.inquiry-form-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.inquiry-form-card .form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-bottom: 15px;
}

.inquiry-form-card .form-label {
  display: block;
  width: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-align: left;
}

.inquiry-form-card .form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  box-sizing: border-box;
}

.inquiry-form-card select.form-control {
  height: 44px;
  line-height: 1.4;
  cursor: pointer;
}

.inquiry-form-card textarea.form-control {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.inquiry-form-card .btn-block {
  width: 100%;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060a12;
  color: #94a3b8;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-about {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 16px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-line {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-contact-line strong {
  color: #ffffff;
}

.footer-cta-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  font-size: 0.82rem;
  text-align: center;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.credit {
  color: #64748b;
}

/* ==========================================================================
   Mobile Sticky Bottom Action Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 999;
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.sticky-btn svg {
  width: 20px;
  height: 20px;
}

.call-btn {
  background: #ea580c;
  color: #ffffff;
}

.line-btn {
  background: #06c755;
  color: #ffffff;
}

.calc-btn {
  background: #0f172a;
  color: #ffffff;
}

.sticky-btn:active {
  opacity: 0.85;
}

/* ==========================================================================
   Real Image Showcase & Visual Enhancements
   ========================================================================== */
.hero-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
}

.hero-photo {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-photo-wrapper:hover .hero-photo {
  transform: scale(1.03);
}

.hero-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-photo-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hero-photo-tag span {
  background: rgba(234, 88, 12, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Visual Comparison Card */
.visual-comparison-card {
  margin-bottom: 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  background: #0f172a;
  color: #ffffff;
}

.comparison-img-box {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

.comparison-photo {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.comparison-card-caption {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0f172a;
}

@media (min-width: 768px) {
  .comparison-card-caption {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.comparison-card-caption h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0;
}

.comparison-card-caption p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
}

/* Product Card Real Photo */
.product-real-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Warehouse Stock Card */
.warehouse-showcase-box {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .warehouse-showcase-box {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.warehouse-img-col img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.warehouse-info-col {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.warehouse-info-col h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.warehouse-info-col p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.warehouse-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.w-stat {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.w-stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.w-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   K-FORM Smart Tracking App Section
   ========================================================================== */
.app-section {
  background: linear-gradient(135deg, #090e1a 0%, #172236 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.app-mockup-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-mockup-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.app-floating-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: #4ade80;
  font-weight: 600;
}

.app-info-col .sub-title {
  color: #fb923c;
}

.app-title {
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.app-lead {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.app-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.app-feature-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateX(4px);
}

.app-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-feat-icon svg {
  width: 20px;
  height: 20px;
}

.app-feat-content h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 2px;
}

.app-feat-content p {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.app-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 6-Grid Reference Gallery */
.gallery-grid-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .gallery-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-ref-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-ref-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.ref-img-holder {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.ref-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-ref-card:hover .ref-img-holder img {
  transform: scale(1.06);
}

.ref-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.ref-badge.highlight-badge {
  background: var(--primary);
}

.ref-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ref-location {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.ref-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.ref-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.ref-footer {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #047857;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Center Alignment for Button Groups & Mobile Header
   ========================================================================== */

/* Top Bar Centering on Mobile */
@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
  .top-bar-left {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .top-bar-right {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
}

/* Mobile Header: Prevent Button Overflow & Clip */
@media (max-width: 600px) {
  .site-header {
    height: 64px;
  }
  .header-container {
    height: 64px;
  }
  .brand-logo {
    gap: 8px;
  }
  .logo-icon {
    width: 38px;
    height: 38px;
  }
  .logo-k {
    font-size: 1.25rem;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-caption {
    font-size: 0.68rem;
  }
  /* Hide the duplicate call button in mobile header (accessible via sticky bar & top bar) */
  .header-actions .btn-primary-sm {
    display: none;
  }
  .header-actions .btn-line-sm {
    padding: 6px 11px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .header-actions .btn-line-sm .btn-icon {
    width: 15px;
    height: 15px;
  }
  .nav-menu.open {
    top: 64px;
  }
}

/* Hero Section: Center Align All Elements & Button Cluster on Mobile */
@media (max-width: 768px) {
  .hero-text-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-badge {
    margin: 0 auto 18px;
  }
  .hero-title {
    text-align: center;
  }
  .hero-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-perks {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .hero-cta-group {
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hotline-box {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

/* App Section: Center Align Buttons on Mobile */
@media (max-width: 768px) {
  .app-info-col {
    text-align: center;
  }
  .app-features-list {
    text-align: left;
  }
  .app-cta-row {
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  .app-cta-row .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Product Detail Tabs: Center Align & 2x2 Grid on Mobile */
@media (max-width: 600px) {
  .product-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.84rem;
    gap: 6px;
  }
  .hero-photo-badge {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    font-size: 0.72rem;
    padding: 5px 10px;
    text-align: center;
    justify-content: center;
  }
  .hero-photo-tag {
    bottom: 10px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    gap: 6px;
  }
  .hero-photo-tag span {
    text-align: center;
    font-size: 0.72rem;
  }
}

@media (max-width: 768px) {
  .product-info-box {
    text-align: center;
  }
  .prod-action-row {
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .prod-action-row .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .specs-grid {
    text-align: left;
  }
  /* Accessories Bar Center on Mobile */
  .accessories-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 16px 14px;
    gap: 12px;
  }
  .acc-title {
    justify-content: center;
  }
  .acc-tags {
    justify-content: center;
  }
  /* Warehouse Showcase Info Center on Mobile */
  .warehouse-info-col {
    padding: 24px 18px;
    text-align: center;
  }
  .warehouse-stat-row {
    gap: 8px;
  }
  .w-stat {
    padding: 8px 4px;
  }
  .w-stat-num {
    font-size: 1.15rem;
  }
  /* Contact Section Center on Mobile */
  .contact-head,
  .contact-desc {
    text-align: center;
  }
  .inquiry-form-card {
    padding: 22px 18px;
  }
  .inquiry-form-card h3,
  .inquiry-form-card p {
    text-align: center;
  }
}

/* Calculator: Segmented 4-Button Row & Centered Actions on Mobile */
@media (max-width: 600px) {
  .calc-form-card,
  .calc-result-card {
    padding: 18px 14px;
  }
  .preset-day-chips {
    justify-content: center;
    gap: 6px;
  }
  .preset-day-chips .chip-btn {
    flex: 1 1 calc(25% - 6px);
    text-align: center;
    padding: 7px 4px;
    font-size: 0.78rem;
  }
  .calc-action-group {
    align-items: center;
  }
  /* Price Cards & Promo Cards on Mobile */
  .price-table-card {
    padding: 18px 14px;
  }
  .promo-box {
    padding: 28px 18px 22px;
  }
  .promo-heading {
    font-size: 1.25rem;
    text-align: center;
  }
  .promo-desc {
    text-align: center;
  }
  .promo-badge-tag {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* VIP Tiers & Promo Box: Anti-clipping on Mobile */
@media (max-width: 540px) {
  .vip-tiers-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .vip-tier-badge {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    text-align: left;
  }
  .promo-code-box {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    text-align: center;
  }
}

/* Footer: Center Align Columns and Button Groups on Mobile */
@media (max-width: 640px) {
  .footer-col {
    text-align: center;
  }
  .footer-cta-btns {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .brand-col .brand-logo {
    justify-content: center;
  }
  .brand-col .footer-about {
    text-align: center;
  }
}

/* ==========================================================================
   Pricing & Promotions Hub Styles (#pricing)
   ========================================================================== */
.pricing-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  padding: 65px 0 75px;
}

.pricing-dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

@media (min-width: 992px) {
  .pricing-dual-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.price-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.price-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.price-hdr-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.price-hdr-icon.shipping-icon {
  background: rgba(6, 199, 85, 0.12);
  color: #059669;
}

.price-hdr-icon svg {
  width: 22px;
  height: 22px;
}

.price-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.price-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Table 1: Rental Rates Table */
.rental-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 460px;
  table-layout: fixed;
}

.rental-rate-table th {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1.5px solid #cbd5e1;
  white-space: nowrap;
}

.rental-rate-table th:first-child {
  text-align: left;
  padding-left: 14px;
  width: 44%;
}

.rental-rate-table th:not(:first-child) {
  width: 14%;
}

.rental-rate-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

.rental-rate-table td:first-child {
  text-align: left;
  padding-left: 14px;
  white-space: normal;
  font-weight: normal;
}

.rental-rate-table tr:hover td {
  background-color: rgba(248, 250, 252, 0.8);
}

.tbl-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.td-highlight {
  color: var(--primary);
  font-weight: 700;
  background: rgba(234, 88, 12, 0.04);
}

.td-best {
  color: #059669;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.04);
}

/* Table 2: Delivery Rates Table (ค่าขนส่งแยกโซน) */
.delivery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 520px;
}

.delivery-table th {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 700;
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1.5px solid #cbd5e1;
  white-space: nowrap;
}

.delivery-table th:first-child {
  text-align: center;
  width: 16%;
}

.delivery-table th:nth-child(2) {
  text-align: left;
  width: 42%;
}

.delivery-table th:nth-child(3) {
  text-align: center;
  width: 18%;
}

.delivery-table th:nth-child(4) {
  text-align: left;
  width: 24%;
}

.delivery-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
  vertical-align: middle;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}

.delivery-table td:first-child {
  text-align: center;
  white-space: nowrap;
}

.delivery-table td:nth-child(2) {
  text-align: left;
  white-space: normal;
}

.delivery-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.delivery-table td:nth-child(4) {
  text-align: left;
  white-space: normal;
}

.delivery-table tr:hover td {
  background-color: rgba(248, 250, 252, 0.8);
}

.zone-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.zone-1 { background: #fef3c7; color: #b45309; }
.zone-2 { background: #e0e7ff; color: #4338ca; }
.zone-3 { background: #f3e8ff; color: #7e22ce; }
.zone-4 { background: #fee2e2; color: #b91c1c; }
.zone-5 { background: #f1f5f9; color: #475569; }

.td-free {
  color: #047857;
  font-size: 0.82rem;
}
.td-free strong {
  color: #059669;
}

.price-card-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.p-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.p-perk-item svg {
  width: 15px;
  height: 15px;
  color: #10b981;
  flex-shrink: 0;
}

.shipping-note-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.shipping-note-box svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Promo Cards (Switch & VIP) */
.promo-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 10px;
}

@media (min-width: 900px) {
  .promo-cards-container {
    grid-template-columns: 1fr 1fr;
  }
}

.promo-box {
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.switch-promo-card {
  background: linear-gradient(135deg, #090e1a 0%, #1e1b4b 60%, #172554 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  color: #ffffff;
}

.vip-promo-card {
  background: linear-gradient(135deg, #090e1a 0%, #0f2b3e 60%, #134e4a 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.4);
  color: #ffffff;
}

.promo-badge-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

.hot-badge {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff;
}

.vip-badge {
  background: linear-gradient(90deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
}

.promo-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
}

.promo-heading {
  font-size: 1.35rem;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 10px;
}

.promo-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 14px;
}

.promo-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: #86efac;
}

.promo-action-side {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-code-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(249, 115, 22, 0.6);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-code-box.vip-code {
  border-color: rgba(56, 189, 248, 0.6);
}

.code-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
}

.code-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 1px;
}

.promo-code-box.vip-code .code-val {
  color: #38bdf8;
}

.vip-tiers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.vip-tier-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-tier-badge strong {
  font-size: 0.76rem;
  color: #e2e8f0;
}

.vip-tier-badge span {
  font-size: 0.7rem;
  color: #38bdf8;
}

.vip-tier-badge.best-tier {
  background: rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
}
.vip-tier-badge.best-tier strong {
  color: #38bdf8;
}
.vip-tier-badge.best-tier span {
  color: #7dd3fc;
  font-weight: 600;
}

.promo-sub-note {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 2px;
}

/* ==========================================================================
   Mobile Responsive Overrides for Pricing & Promotions Hub
   ========================================================================== */
@media (max-width: 600px) {
  .price-table-card {
    padding: 18px 12px;
  }
  .promo-box {
    padding: 28px 16px 22px;
  }
  .promo-heading {
    font-size: 1.22rem;
    text-align: center;
  }
  .promo-desc {
    text-align: center;
  }
  .promo-badge-tag {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

@media (max-width: 540px) {
  .vip-tiers-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .vip-tier-badge {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    text-align: left;
  }
  .promo-code-box {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   Real-Time Stock Indicator & Quick Add to Cart
   ========================================================================== */
.stock-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.84rem;
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #065f46;
}

.stock-indicator strong {
  color: #047857;
  font-weight: 700;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.stock-time {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 600;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.quick-add-cart-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-input-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.cart-qty-field label,
.cart-days-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.btn-qty {
  width: 36px;
  height: 38px;
  background: #f1f5f9;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-qty:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.qty-input {
  flex: 1;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  width: 100%;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-days-select {
  height: 40px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
  padding: 6px 10px;
}

.btn-add-cart {
  width: 100%;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.94rem;
}

/* Navbar Cart Button */
.btn-cart-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.btn-cart-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.cart-badge-count {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.btn-cart-nav:hover .cart-badge-count {
  background: #ffffff;
  color: var(--primary);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 980;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.floating-cart-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.55);
}

.f-cart-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-cart-icon-box svg {
  width: 24px;
  height: 24px;
}

.f-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

.f-cart-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.f-cart-title {
  font-size: 0.72rem;
  color: #fed7aa;
  font-weight: 500;
}

.f-cart-price {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

@media (max-width: 991px) {
  .floating-cart-btn {
    display: none;
  }
}

/* ==========================================================================
   Cart Drawer (Slide-Over Modal)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #ffffff;
}

.cart-hdr-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-hdr-title svg {
  width: 22px;
  height: 22px;
  color: #fb923c;
}

.cart-hdr-title h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
}

.cart-count-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fed7aa;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.btn-close-cart:hover {
  color: #ffffff;
}

.cart-stock-alert {
  background: #ecfdf5;
  border-bottom: 1px solid #d1fae5;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-bottom: 14px;
}

.cart-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.item-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.item-main-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
}

.item-rate-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-del-item {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.82rem;
}

.btn-del-item:hover {
  text-decoration: underline;
}

.item-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.item-line-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.cart-drawer-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-config-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-cfg-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-totals-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-body);
}

.cart-total-row.text-discount {
  color: #059669;
  font-weight: 600;
}

.cart-total-row.total-highlight {
  border-top: 1px dashed #cbd5e1;
  margin-top: 4px;
  padding-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.grand-total-val {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
}

.cart-action-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-text-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  text-align: center;
  cursor: pointer;
  margin-top: 4px;
}
.btn-text-clear:hover {
  color: #ef4444;
  text-decoration: underline;
}

/* ==========================================================================
   Official Quotation Modal & Sheet
   ========================================================================== */
.quotation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quotation-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.quotation-modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 94vh;
  background: #f1f5f9;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.qt-toolbar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qt-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qt-pill-live {
  background: #10b981;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.qt-number-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fba75d;
}

.qt-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-email-qt {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-email-qt:hover { background: #0369a1; }

.btn-line-qt {
  background: #06c755;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-line-qt:hover { background: #05a847; }

.btn-primary-qt {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-primary-qt:hover { background: var(--primary-hover); }

.btn-qt-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}
.btn-qt-close:hover { color: #ffffff; }

.qt-customer-customizer {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}

.qt-customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: flex-end;
}

.qt-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
}

.qt-field .form-control-sm {
  padding: 5px 8px;
  font-size: 0.82rem;
  height: 34px;
}

.vat-toggle-field {
  display: flex;
  align-items: center;
  height: 34px;
}

.vat-switch-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.vat-switch-lbl input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.quotation-sheet-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
}

/* The Quotation Paper (A4 Proportion) */
.quotation-sheet {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #cbd5e1;
  padding: 36px 38px;
  border-radius: 4px;
  color: #1e293b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.qs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.qs-company-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.qs-logo-box {
  width: 52px;
  height: 52px;
  background: #ea580c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.qs-logo-k {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.qs-logo-form {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.qs-company-details h2 {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 2px;
}

.qs-company-details p {
  font-size: 0.74rem;
  color: #475569;
  margin: 1px 0;
  line-height: 1.35;
}

.qs-doc-meta {
  text-align: right;
  min-width: 220px;
}

.qs-doc-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.qs-doc-subtitle {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.qs-meta-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qs-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.text-green-strong {
  color: #059669;
  font-weight: 700;
}

.qs-customer-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.qs-block-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.qs-info-line {
  font-size: 0.8rem;
  margin-bottom: 3px;
  display: flex;
  gap: 6px;
}

.qs-info-line span {
  color: #64748b;
  min-width: 120px;
}

.qs-info-line strong {
  color: #0f172a;
}

.qs-perk-highlight {
  color: #ea580c;
  font-weight: 700;
}

/* Quotation Sheet Table */
.qs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.84rem;
}

.qs-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 10px;
  font-weight: 600;
  border: 1px solid #0f172a;
  font-size: 0.8rem;
}

.qs-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.qs-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* Interactive Self-Service Quotation Elements */
.qs-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.btn-qs-step {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #0f172a;
  transition: all 0.15s ease;
}
.btn-qs-step:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}
.qs-step-input {
  width: 52px;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 2px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: #0f172a;
}
.qs-step-input:focus {
  border-color: #ea580c;
  outline: none;
}
.qs-unit-tag {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: 2px;
}
.qs-days-select {
  padding: 3px 6px;
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}
.btn-qs-del {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.btn-qs-del:hover {
  color: #ef4444;
  background: #fee2e2;
}

.qs-quick-add-bar {
  margin-top: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.qs-quick-add-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-qs-add {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-qs-add:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.qs-inline-input {
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  width: 100%;
  max-width: 250px;
  transition: border-color 0.2s;
}
.qs-inline-input:focus {
  border-color: #ea580c;
  border-style: solid;
  outline: none;
}
.qs-inline-select {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  width: 100%;
  max-width: 250px;
}

.print-only {
  display: none !important;
}

/* Calculations & Totals */
.qs-calc-summary {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 24px;
}

.qs-notes-col {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.74rem;
  color: #475569;
}

.qs-notes-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.qs-notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qs-totals-col {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qs-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #475569;
}

.text-green { color: #059669; }

.qs-net-before-vat {
  border-top: 1px dashed #cbd5e1;
  padding-top: 4px;
  font-weight: 600;
  color: #0f172a;
}

.qs-grand-total {
  border-top: 1.5px solid #0f172a;
  margin-top: 4px;
  padding-top: 6px;
  font-size: 0.95rem;
  color: #0f172a;
}

.qs-grand-total strong {
  font-size: 1.25rem;
  color: #ea580c;
  font-weight: 800;
}

.qs-baht-text {
  text-align: right;
  font-size: 0.74rem;
  color: #64748b;
  font-style: italic;
  margin-top: 2px;
}

/* Signatures */
.qs-signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.qs-sig-box {
  text-align: center;
  position: relative;
}

.qs-sig-stamp {
  position: absolute;
  top: -12px;
  right: 20px;
  opacity: 0.7;
}

.stamp-circle {
  display: inline-block;
  border: 2px dashed #ea580c;
  color: #ea580c;
  border-radius: 50%;
  padding: 8px 10px;
  font-size: 0.65rem;
  font-weight: 800;
  transform: rotate(-12deg);
}

.qs-sig-line {
  border-bottom: 1px dotted #94a3b8;
  width: 80%;
  margin: 40px auto 8px;
}

.qs-sig-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.qs-sig-title {
  font-size: 0.72rem;
  color: #64748b;
}

.qs-footer-tag {
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* Mockup Media Tag */
.mockup-media-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
}
.mockup-corner-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #f1f5f9;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Quotation Modal Mobile Responsive Balance */
@media (max-width: 768px) {
  .quotation-modal-overlay {
    padding: 8px !important;
  }
  .quotation-modal-container {
    max-height: 96vh !important;
    border-radius: var(--radius-lg) !important;
  }
  .qt-toolbar {
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  .qt-toolbar-left {
    gap: 6px !important;
  }
  .qt-number-title {
    font-size: 0.9rem !important;
  }
  .qt-toolbar-actions {
    width: 100% !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }
  .btn-email-qt, .btn-line-qt, .btn-primary-qt {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
  .qt-customer-customizer {
    padding: 10px 14px !important;
  }
  .qt-customizer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .vat-toggle-field {
    grid-column: span 2;
  }
  .quotation-sheet-viewport {
    padding: 12px 6px !important;
  }
  .quotation-sheet {
    padding: 18px 14px !important;
    font-size: 0.78rem !important;
  }
  .qs-header {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .qs-customer-block {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
  }
  .qs-table th, .qs-table td {
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
  }
  .qs-calc-summary {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .qs-totals-col {
    width: 100% !important;
  }
  .qs-signature-row {
    flex-direction: column !important;
    gap: 18px !important;
  }
}

/* Email Sent Modal */
.email-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.email-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.email-modal-box {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 24px;
}

.email-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}

.email-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.email-modal-icon svg { width: 22px; height: 22px; }

.email-modal-header h3 {
  font-size: 1.18rem;
  color: var(--dark);
  margin-bottom: 2px;
}
.email-modal-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.btn-close-email {
  position: absolute;
  top: -6px;
  right: -6px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
}
.btn-close-email:hover { color: #0f172a; }

.email-summary-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.esp-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-body);
}

.text-orange { color: #ea580c; font-weight: 700; }

/* ==========================================================================
   Print Styles for Clean A4 Quotation Output
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  .quotation-sheet, .quotation-sheet * {
    visibility: visible;
  }
  .quotation-modal-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 0;
    margin: 0;
  }
  .quotation-modal-container {
    box-shadow: none;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
  }
  .qt-toolbar, .qt-customer-customizer, .no-print, .btn-qs-del, .qs-quick-add-bar, .qs-stepper-wrap {
    display: none !important;
  }
  .print-only {
    display: inline-block !important;
  }
  .qs-inline-input, .qs-inline-select {
    display: none !important;
  }
  .quotation-sheet-viewport {
    padding: 0;
    margin: 0;
  }
  .quotation-sheet {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 100%;
    width: 100%;
  }
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }
}

/* ==========================================================================
   Interactive Shipping Module & Detailed Logistics Engine
   ========================================================================== */
:root {
  --ship-accent: #ea580c;
  --ship-accent-soft: #fff7ed;
  --ship-steel: #475569;
  --ship-steel-soft: #f1f5f9;
  --ship-good: #16a34a;
  --ship-good-soft: #dcfce7;
  --ship-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* Link inside shipping note box */
.shipping-card-link {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.shipping-card-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* ==========================================================================
   Quick Delivery Quote Module (2-Step Fast Selector: S/M/L/XL + Zone A/B/C/D)
   ========================================================================== */
.quick-delivery-module {
  margin: 32px 0 28px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}

.quick-delivery-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

.qdm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffedd5;
}

.qdm-hdr-left {
  max-width: 760px;
}

.qdm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.qdm-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.qdm-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.qdm-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 991px) {
  .qdm-grid {
    grid-template-columns: 1fr;
  }
}

.qdm-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qdm-step-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.qdm-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--dark);
}

.qdm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.qdm-step-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 500;
}

/* Package and Zone Button Grids */
.qdm-pk-grid,
.qdm-zn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .qdm-pk-grid,
  .qdm-zn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qdm-opt-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.qdm-opt-btn:hover {
  border-color: #fdba74;
  background: #fffaf5;
  transform: translateY(-1px);
}

.qdm-opt-btn.active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.18);
}

.opt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.opt-tag {
  font-weight: 800;
  color: #ea580c;
  background: #ffedd5;
  padding: 1px 6px;
  border-radius: 4px;
}

.opt-qty {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.opt-badge-pop {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: #dc2626;
  padding: 1px 6px;
  border-radius: 10px;
}

.opt-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.opt-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.opt-zone-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qdm-zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-a { background: #16a34a; }
.dot-b { background: #d97706; }
.dot-c { background: #ea580c; }
.dot-d { background: #dc2626; }

.opt-km {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Options Bar Inline */
.qdm-options-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  background: #fff7ed;
  border: 1px dashed #fed7aa;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.qdm-opt-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qdm-lbl-sm {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
}

.qdm-select {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--dark);
  cursor: pointer;
}

.qdm-chk-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}

.qdm-chk-item input {
  width: 17px;
  height: 17px;
  accent-color: #ea580c;
  cursor: pointer;
}

/* Result Card Column */
.qdm-result-col {
  height: 100%;
}

.qdm-result-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.qdm-result-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none;
}

.qrc-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.qrc-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.qrc-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fb923c;
}

.qrc-amount {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.qrc-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 4px;
}

.qrc-trip-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qrc-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.qrc-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qrc-item-lbl {
  color: #94a3b8;
}

.qrc-item-val {
  color: #e2e8f0;
}

.qrc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.btn-copy-quote {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
}
.btn-copy-quote:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.qrc-links-row {
  margin-top: 6px;
  text-align: center;
}

.qrc-link-full {
  font-size: 0.78rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.qrc-link-full:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* 1. Compact Shipping Module on Landing Page */
.shipping-module-card {
  margin: 32px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -5px rgba(234, 88, 12, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}

.shipping-module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
}

.sm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #fed7aa;
}

.sm-hdr-left {
  max-width: 780px;
}

.sm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.sm-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.sm-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.btn-detail-shipping {
  background: #ffffff;
  color: #ea580c;
  border: 1.5px solid #ea580c;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-detail-shipping:hover {
  background: #ea580c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.sm-body-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .sm-body-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sm-controls-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-field-lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-field-lbl-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.sm-val-pill {
  font-family: var(--ship-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ea580c;
  background: #ffedd5;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.sm-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sm-range-slider {
  flex: 1;
  accent-color: #ea580c;
  height: 6px;
  cursor: pointer;
}

.sm-num-input {
  width: 80px;
  height: 38px;
  text-align: center;
  font-family: var(--ship-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px;
}

.sm-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.sm-preset-chips .chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sm-preset-chips .chip-btn:hover {
  border-color: #ea580c;
  color: #ea580c;
}

.sm-preset-chips .chip-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  font-weight: 600;
}

.sm-load-summary {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.sm-options-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.sm-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
}

.sm-chk-label input {
  accent-color: #ea580c;
  width: 16px;
  height: 16px;
}

/* Comparison Cards */
.sm-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sm-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .sm-cards-grid {
    grid-template-columns: 1fr;
  }
}

.sm-vehicle-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: var(--transition);
}

.sm-vehicle-card.best {
  border-color: var(--ship-good);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 0 0 1px var(--ship-good) inset, 0 6px 16px -2px rgba(22, 163, 74, 0.15);
}

.sm-vcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.sm-vcard-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.sm-vcard-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--ship-steel-soft);
  color: var(--ship-steel);
  font-weight: 600;
  white-space: nowrap;
}

.sm-vehicle-card.best .sm-vcard-pill {
  background: var(--ship-good-soft);
  color: var(--ship-good);
}

.sm-vcard-price {
  font-family: var(--ship-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: #ea580c;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sm-vcard-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sm-vcard-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  font-size: 0.76rem;
  color: #475569;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
  margin-top: 4px;
}

.sm-vcard-meta span:nth-child(even) {
  font-family: var(--ship-mono);
  font-weight: 600;
  text-align: right;
  color: var(--dark);
}

.sm-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-detail-expand {
  flex: 1;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-detail-expand:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Detailed Shipping Logistics Modal (เต็มรูปแบบตามแบบฉบับ)
   ========================================================================== */
.shipping-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1025;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.shipping-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.shipping-modal-container {
  width: 100%;
  max-width: 1140px;
  max-height: 94vh;
  background: #f8fafc;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shipping-modal-toolbar {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.smt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.smt-pill {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.smt-left h3 {
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0;
}

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

.shipping-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f1f5f9;
}

.shipping-engine-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shipping-engine-hdr h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.shipping-engine-hdr p {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.shipping-engine-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .shipping-engine-grid {
    grid-template-columns: 1fr;
  }
}

/* Engine Inner Panels */
.shipping-engine-grid .panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-engine-grid .inputs {
  display: grid;
  gap: 18px;
}

.shipping-engine-grid fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.shipping-engine-grid legend {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

.shipping-engine-grid .row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  align-items: center;
}

.shipping-engine-grid .row label {
  font-size: 13.5px;
  color: #1e293b;
}

.shipping-engine-grid .row small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}

.shipping-engine-grid input[type=number],
.shipping-engine-grid select {
  width: 100%;
  font: 600 13.5px var(--ship-mono);
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: right;
  box-sizing: border-box;
}

.shipping-engine-grid select {
  text-align: left;
  font-family: var(--font-base);
  cursor: pointer;
}

.shipping-engine-grid .items {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.shipping-engine-grid .items th {
  font-weight: 600;
  color: #64748b;
  text-align: left;
  padding: 4px 4px 6px;
  font-size: 11.5px;
}

.shipping-engine-grid .items td {
  padding: 3px 4px;
}

.shipping-engine-grid .items td:first-child {
  width: 46%;
}

.shipping-engine-grid .items input {
  padding: 5px 6px;
}

.shipping-engine-grid .items tfoot td {
  border-top: 1.5px solid #cbd5e1;
  padding-top: 8px;
  font-family: var(--ship-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.shipping-engine-grid .vgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12.5px;
}

.shipping-engine-grid .vgrid .h {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.shipping-engine-grid .vgrid .lab {
  grid-column: 1/-1;
  color: #64748b;
  font-size: 11.5px;
  margin-top: 4px;
}

.shipping-engine-grid .toggle {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.shipping-engine-grid .toggle input {
  margin-top: 3px;
  accent-color: #ea580c;
}

.shipping-engine-grid .out {
  display: grid;
  gap: 18px;
}

.shipping-engine-grid .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .shipping-engine-grid .cards {
    grid-template-columns: 1fr;
  }
}

.shipping-engine-grid .card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 4px;
}

.shipping-engine-grid .card.best {
  border-color: var(--ship-good);
  box-shadow: 0 0 0 1px var(--ship-good) inset;
  background: #f0fdf4;
}

.shipping-engine-grid .card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.shipping-engine-grid .card h3 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.shipping-engine-grid .pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--ship-steel-soft);
  color: var(--ship-steel);
  font-weight: 600;
  white-space: nowrap;
}

.shipping-engine-grid .best .pill {
  background: var(--ship-good-soft);
  color: var(--ship-good);
}

.shipping-engine-grid .big {
  font: 700 28px/1.1 var(--ship-mono);
  color: #ea580c;
  font-variant-numeric: tabular-nums;
}

.shipping-engine-grid .sub {
  color: #64748b;
  font-size: 12px;
}

.shipping-engine-grid .kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  font-size: 12.5px;
  margin-top: 6px;
  color: #475569;
}

.shipping-engine-grid .kv span:nth-child(even) {
  font-family: var(--ship-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0f172a;
}

.shipping-engine-grid h2 {
  font-size: 15px;
  color: #0f172a;
  margin: 0 0 10px;
}

.shipping-engine-grid .tbl-wrap {
  overflow-x: auto;
}

.shipping-engine-grid table.bd {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 580px;
}

.shipping-engine-grid .bd th,
.shipping-engine-grid .bd td {
  padding: 7px 9px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.shipping-engine-grid .bd th {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.shipping-engine-grid .bd td.n {
  font-family: var(--ship-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  color: #0f172a;
}

.shipping-engine-grid .bd td.f {
  font-family: var(--ship-mono);
  font-size: 11px;
  color: #64748b;
}

.shipping-engine-grid .bd tr.tot td {
  font-weight: 700;
  border-bottom: 0;
  border-top: 1.5px solid #0f172a;
  font-size: 13.5px;
}

.shipping-engine-grid .bd tr.tot td.n {
  color: #ea580c;
  font-size: 14.5px;
}

.shipping-engine-grid .eq {
  font-family: var(--ship-mono);
  font-size: 12px;
  line-height: 1.7;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre;
  color: #334155;
}

.shipping-engine-grid .eq b {
  color: #ea580c;
  font-weight: 700;
}

.shipping-engine-grid .legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.shipping-engine-grid .legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
}

.shipping-engine-grid .note {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Printing Detailed Shipping Report */
@media print {
  body.printing-shipping * {
    visibility: hidden !important;
  }
  body.printing-shipping #shippingPrintableArea,
  body.printing-shipping #shippingPrintableArea * {
    visibility: visible !important;
  }
  body.printing-shipping .shipping-modal-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 0;
  }
  body.printing-shipping .shipping-modal-container {
    box-shadow: none;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
  }
  body.printing-shipping .shipping-modal-toolbar {
    display: none !important;
  }
  body.printing-shipping .shipping-modal-body {
    padding: 0;
    background: #ffffff;
  }
  body.printing-shipping #shippingPrintableArea {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   Modern Contractor-First Components:
   Hero Split 50/50, Stats Strip, Scale Cards, Mobile Pricing Cards & Steppers
   ========================================================================== */

/* Hero Split 50/50 & Clean Theme (Overlay <= 50%) */
.hero-clean-sec {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  color: #0f172a;
  padding: 42px 0 48px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.hero-clean-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-clean-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-title-clean {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-title-clean span {
  color: #ea580c;
}
.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #334155;
  font-weight: 500;
}
.hero-check-item svg {
  width: 20px;
  height: 20px;
  color: #16a34a;
  flex-shrink: 0;
}
.hero-cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.btn-hero-line {
  background: #06c755;
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
  transition: all 0.2s ease;
}
.btn-hero-line:hover {
  background: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
}
.btn-hero-est {
  background: #ea580c;
  color: #ffffff !important;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
  transition: all 0.2s ease;
}
.btn-hero-est:hover {
  background: #c2410c;
  transform: translateY(-2px);
}
.hero-warehouse-note {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Right Hero Visual & Stock Card */
.hero-right-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.hero-main-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.hero-odoo-badge {
  background: #0f172a;
  color: #f8fafc;
  padding: 16px 20px;
}
.hero-odoo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-odoo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.hero-odoo-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}
.hero-odoo-item span:first-child { color: #94a3b8; }
.hero-odoo-item span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #4ade80;
}

/* Mobile Ordering: Headline -> 16:9 photo -> LINE button */
@media (max-width: 768px) {
  .hero-clean-inner {
    display: flex;
    flex-direction: column;
  }
  .hero-title-clean { font-size: 1.85rem; }
  .hero-main-photo {
    aspect-ratio: 16 / 9;
  }
  .hero-right-card {
    order: 2;
    width: 100%;
    margin: 8px 0 16px;
  }
  .hero-left-content { order: 1; }
  .hero-cta-cluster {
    order: 3;
    width: 100%;
    flex-direction: column;
  }
  .btn-hero-line, .btn-hero-est {
    width: 100%;
    justify-content: center;
  }
}

/* Stats Strip */
.stats-strip {
  background: #0f172a;
  color: #ffffff;
  padding: 24px 0;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
@media (max-width: 768px) {
  .stats-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.stats-strip-item .stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fb923c;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stats-strip-item .stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}
.stats-strip-item .stat-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Project Scale Section ("งานของคุณขนาดไหน?") */
.scale-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .scale-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .scale-cards-grid { grid-template-columns: 1fr; }
}
.scale-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.scale-card:hover {
  border-color: #ea580c;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
  transform: translateY(-3px);
}
.scale-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  width: fit-content;
}
.scale-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.scale-card-qty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 6px;
}
.scale-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 14px;
}
.btn-scale-preset {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.scale-card:hover .btn-scale-preset {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

/* Mobile Pricing Cards (Item 2: Replace table on < 768px) */
.pricing-desktop-table {
  display: block;
}
.pricing-mobile-cards {
  display: none;
}
@media (max-width: 768px) {
  .pricing-desktop-table {
    display: none !important;
  }
  .pricing-mobile-cards {
    display: grid;
    gap: 16px;
  }
}
.sku-mobile-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.smc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.smc-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.smc-title-box h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
}
.smc-title-box p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}
.smc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.smc-slot {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.smc-slot.featured {
  background: #f0fdf4;
  border-color: #86efac;
}
.smc-slot-days {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}
.smc-slot.featured .smc-slot-days {
  color: #16a34a;
  font-weight: 700;
}
.smc-slot-price {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ea580c;
}
.smc-slot.featured .smc-slot-price {
  color: #15803d;
  font-size: 1.05rem;
}
.smc-slot-unit {
  font-size: 0.65rem;
  color: #94a3b8;
}
.smc-action {
  display: flex;
  gap: 8px;
}
.btn-smc-add {
  flex: 1;
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-smc-add:hover {
  background: #c2410c;
}

/* Estimator Stepper Controls */
.stepper-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.btn-stepper {
  width: 42px;
  height: 42px;
  background: #f1f5f9;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
  user-select: none;
}
.btn-stepper:hover {
  background: #e2e8f0;
}
.btn-stepper:active {
  background: #cbd5e1;
}
.stepper-wrap input {
  flex: 1;
  border: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: 'IBM Plex Mono', monospace;
  padding: 8px 4px !important;
  width: 60px;
}

/* 4 Steps Section */
.steps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps-grid-4 { grid-template-columns: 1fr; }
}
.step-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px;
  position: relative;
}
.step-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.step-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.step-card p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* 5 Things for Fast LINE Quote */
.fast-line-checklist-box {
  background: linear-gradient(135deg, #06c755 0%, #05a847 100%);
  border-radius: 16px;
  color: #ffffff;
  padding: 28px 32px;
  margin-top: 24px;
}
.flc-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 768px) {
  .flc-inner { grid-template-columns: 1fr; }
}
.flc-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.flc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.flc-item span.chk {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Navigation Badges & Enhanced Menu Layout
   ========================================================================== */
.nav-link-promo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-badge-pill {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  letter-spacing: 0.2px;
  line-height: 1.3;
  display: inline-block;
}

/* ==========================================================================
   Quotation Sheet: Immediate Payment Box (A4 Printable)
   ========================================================================== */
.btn-pay-qt {
  background: #16a34a;
  color: #ffffff !important;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.4);
}
.btn-pay-qt:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5);
}

.qs-payment-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.qs-pay-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qs-pay-qr-wrap {
  width: 96px;
  height: 96px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qs-pay-qr-wrap img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}
.qs-qr-caption {
  font-size: 0.60rem;
  color: #64748b;
  font-weight: 700;
  margin-top: 1px;
}
.qs-pay-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}
.qs-pay-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.86rem;
  margin-bottom: 2px;
}
.qs-bank-row {
  color: #1e293b;
  font-weight: 600;
}
.qs-bank-acc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-copy-acc {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.70rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}
.btn-copy-acc:hover { background: #e2e8f0; color: #0f172a; }
.qs-acc-name {
  color: #64748b;
  font-size: 0.72rem;
}
.qs-pay-options-note {
  margin-top: 4px;
  font-size: 0.72rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pay-tag-badge {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
}
.qs-pay-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-open-pay-modal {
  background: #16a34a;
  color: #ffffff !important;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.btn-open-pay-modal:hover { background: #15803d; }
.btn-pay-line {
  background: #06c755;
  color: #ffffff !important;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.80rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-pay-line:hover { background: #05a847; }

/* Status Paid Stamp */
.qs-paid-stamp {
  display: none;
  border: 3px solid #16a34a;
  color: #16a34a;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(-8deg);
  margin-left: 10px;
}
.qs-paid-stamp.active {
  display: inline-block;
}

/* ==========================================================================
   Full Interactive Payment Gateway Modal
   ========================================================================== */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.payment-modal-overlay.active {
  display: flex;
}
.payment-modal-container {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  animation: modalScaleIn 0.22s ease-out;
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.pay-header {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pay-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-pay-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.btn-pay-close:hover { color: #ffffff; }

.pay-body {
  padding: 20px;
  max-height: calc(88vh - 70px);
  overflow-y: auto;
}
.pay-amount-banner {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pay-amount-banner .lbl {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}
.pay-amount-banner .doc {
  font-size: 0.76rem;
  color: #0f172a;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}
.pay-amount-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ea580c;
  font-family: 'IBM Plex Mono', monospace;
}

/* Pay Method Tabs */
.pay-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.pay-tab-btn {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.pay-tab-btn.active {
  background: #fff7ed;
  border-color: #ea580c;
  color: #c2410c;
}
.pay-tab-pane {
  display: none;
}
.pay-tab-pane.active {
  display: block;
}

/* PromptPay Card */
.promptpay-card {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.promptpay-qr-img {
  width: 170px;
  height: 170px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 6px;
}
.pay-acc-copy-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: left;
}
.pay-slip-uploader {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pay-slip-uploader:hover {
  border-color: #ea580c;
  background: #fffbf5;
}
.pay-slip-uploader input[type="file"] {
  display: none;
}
.slip-preview-box {
  display: none;
  margin-top: 10px;
  text-align: center;
}
.slip-preview-box img {
  max-height: 140px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* Deposit 0 Baht Card */
.deposit-zero-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.deposit-zero-card h4 {
  color: #15803d;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.deposit-zero-card p {
  font-size: 0.85rem;
  color: #166534;
  line-height: 1.5;
  margin: 0 0 12px;
}
.deposit-zero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: #14532d;
}
.deposit-zero-checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-confirm-pay {
  background: #ea580c;
  color: #ffffff !important;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-confirm-pay:hover {
  background: #c2410c;
}
.btn-confirm-pay.green {
  background: #16a34a;
}
.btn-confirm-pay.green:hover {
  background: #15803d;
}

/* Success Pay State */
.pay-success-state {
  display: none;
  text-align: center;
  padding: 24px 10px;
}
.pay-success-state .icon-big {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}
.pay-success-state h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
.pay-success-state p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0 0 18px;
}

/* ==========================================================================
   Stock Checking & Real-time Inventory Styles
   ========================================================================== */
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 3px;
  border: 1px solid #bbf7d0;
}

.stock-check-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 22px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.scc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-dot-pulse {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: liveDotPulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes liveDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.scc-left strong {
  font-size: 0.96rem;
  color: #f8fafc;
  display: block;
  margin-bottom: 2px;
}
.scc-left p {
  margin: 0;
  font-size: 0.80rem;
  color: #94a3b8;
}
.btn-stock-check {
  background: #ea580c;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
  white-space: nowrap;
}
.btn-stock-check:hover {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

/* ==========================================================================
   Staff Hub & Backend Navigation Elements
   ========================================================================== */
.top-staff-pill {
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid #ea580c;
  color: #ea580c;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.top-staff-pill:hover {
  background: #ea580c;
  color: #ffffff;
}
.staff-indicator-dot {
  width: 6px;
  height: 6px;
  background: #ea580c;
  border-radius: 50%;
  display: inline-block;
}
.top-staff-pill:hover .staff-indicator-dot {
  background: #ffffff;
}

.btn-staff-header {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-staff-header:hover {
  background: #0f172a;
  border-color: #ea580c;
  color: #ffffff;
  transform: translateY(-1px);
}
.staff-badge-tag {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Footer Staff Portal Box */
.footer-staff-portal-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.fsp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}
.fsp-header strong {
  color: #ffffff;
  font-size: 0.95rem;
}
.badge-staff-glow {
  background: #ea580c;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.fsp-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.fsp-link-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.fsp-link-card:hover {
  background: #1e293b;
  border-color: #ea580c;
  transform: translateY(-2px);
}
.fsp-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fsp-title {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.fsp-sub {
  color: #94a3b8;
  font-size: 0.70rem;
}
.fsp-admin-hub {
  border-color: #7c2d12;
  background: #1c130d;
}
.fsp-admin-hub:hover {
  border-color: #f97316;
  background: #27170e;
}

/* Floating Staff Quick Trigger */
.floating-staff-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid #ea580c;
  padding: 8px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.floating-staff-trigger:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.5);
}
.fst-icon { font-size: 1rem; }
.fst-text {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.fst-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}
@media (max-width: 768px) {
  .floating-staff-trigger {
    bottom: 74px; /* above mobile sticky bar */
    right: 12px;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   Customer Delivery Tracking Modal & Top Track Button
   ========================================================================== */
.top-track-btn {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #16a34a;
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.top-track-btn:hover {
  background: #16a34a;
  color: #ffffff;
}

.tracking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tracking-modal-overlay.open {
  display: flex;
}
.tracking-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalFadeIn 0.25s ease;
  border: 1px solid #e2e8f0;
}
.tracking-modal-header {
  background: #0f172a;
  color: #ffffff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.tracking-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tracking-modal-header p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 3px 0 0;
}
.btn-close-tracking {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: all 0.15s ease;
}
.btn-close-tracking:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.tracking-modal-body {
  padding: 20px 22px;
}

/* Tracking Search Form */
.tracking-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tracking-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.tracking-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}
.btn-track-submit {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-track-submit:hover {
  background: #c2410c;
}
.tracking-samples {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tracking-sample-chip {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  color: #0f172a;
  font-weight: 600;
  text-decoration: underline;
}

/* Order Meta Banner */
.tracking-meta-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.tmb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.tmb-id {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}
.tmb-status-pill {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tmb-status-pill.active {
  background: #ffedd5;
  color: #c2410c;
}
.tmb-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
.tmb-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  font-size: 0.8rem;
  color: #475569;
}
.tmb-details strong { color: #0f172a; }

/* Stepper Track */
.tracking-stepper {
  position: relative;
  margin: 0 0 22px 14px;
  padding-left: 24px;
  border-left: 2px solid #e2e8f0;
}
.track-step-item {
  position: relative;
  margin-bottom: 20px;
}
.track-step-item:last-child {
  margin-bottom: 0;
}
.track-step-dot {
  position: absolute;
  left: -33px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.track-step-item.done .track-step-dot {
  background: #16a34a;
}
.track-step-item.active .track-step-dot {
  background: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}
.track-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.track-step-item.active .track-step-title {
  color: #c2410c;
}
.track-step-time {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}
.track-step-desc {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 2px;
  line-height: 1.4;
}

/* Driver & Vehicle Box */
.tracking-driver-card {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.driver-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.driver-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.driver-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}
.driver-truck {
  font-size: 0.78rem;
  color: #7c2d12;
}
.driver-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-driver-call {
  background: #16a34a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.btn-driver-call:hover {
  background: #15803d;
}
.btn-driver-line {
  background: #06c755;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-driver-line:hover {
  background: #05a847;
}

/* Radar Animation Widget */
.tracking-radar-widget {
  margin-top: 14px;
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.trw-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trw-icon {
  font-size: 1.5rem;
}
.trw-title {
  font-size: 0.85rem;
  font-weight: 700;
}
.trw-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}
.trw-radar-ring {
  width: 18px;
  height: 18px;
  border: 2px solid #22c55e;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}
.trw-radar-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 1s infinite;
}

/* ==========================================================================
   Quotation Categorized Table Styles (Grouped by Formwork, Shoring, Accessories)
   ========================================================================== */
.qs-cat-header-row td {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700;
  padding: 8px 12px !important;
  border-top: 2px solid #cbd5e1 !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
}
.qs-cat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.qs-cat-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qs-cat-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}
.qs-delivery-line-row td {
  background: #f8fafc;
}

/* Sticky Bottom Checkout Bar (Stock Table) */
.inv-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.3);
  border-top: 3.5px solid #ea580c;
  padding: 12px 20px;
  display: none;
  animation: stickyBarSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.inv-sticky-bar.show {
  display: block;
}
@keyframes stickyBarSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.inv-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.inv-sticky-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.inv-sticky-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.86rem;
}
.inv-sticky-val {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ea580c;
  font-family: var(--font-mono, monospace);
}
.inv-sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-sticky-quote {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  transition: all 0.15s ease;
}
.btn-sticky-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.55);
  background: #ea580c;
}
.btn-sticky-clear {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-sticky-clear:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Toast Notification for Quick Cart Add */
.kform-toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.kform-toast {
  background: #0f172a;
  color: #ffffff;
  border-left: 4px solid #ea580c;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toastFadeIn 0.25s ease forwards;
  max-width: 420px;
  font-size: 0.86rem;
}
@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.kform-toast-btn {
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.kform-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 2px;
}

