/* ============================================================
   GCCPricing.com — Main Stylesheet
   Bootstrap 5 base | Dark/Light mode | Responsive
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --gccp-primary:     #0d6efd;
  --gccp-primary-rgb: 13,110,253;
  --gccp-accent:      #f59e0b;
  --gccp-success:     #10b981;
  --gccp-danger:      #ef4444;
  --gccp-info:        #3b82f6;
  --gccp-dark:        #0f172a;
  --gccp-body-bg:     #f8fafc;
  --gccp-card-bg:     #ffffff;
  --gccp-border:      #e2e8f0;
  --gccp-text:        #1e293b;
  --gccp-muted:       #64748b;
  --gccp-footer-bg:   #0f172a;
  --gccp-navbar-h:    68px;
  --transition:       0.25s ease;
  --radius:           0.75rem;
  --radius-lg:        1.25rem;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:           0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:        0 10px 40px rgba(0,0,0,.12);
}

[data-bs-theme="dark"] {
  --gccp-body-bg:   #0d1117;
  --gccp-card-bg:   #161b22;
  --gccp-border:    #30363d;
  --gccp-text:      #e6edf3;
  --gccp-muted:     #8b949e;
  --gccp-footer-bg: #010409;
  color-scheme: dark;
}

/* ─── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--gccp-body-bg);
  color: var(--gccp-text);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; }

a { color: var(--gccp-primary); transition: color var(--transition); text-decoration: none; }
a:hover { color: #0a58ca; }

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

/* ─── Fixed Header (top bar + navbar + ticker always visible) */
#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}

/* CSS fallback so content doesn't jump before JS sets paddingTop */
body {
  padding-top: 155px; /* approx desktop header height: top bar + navbar + ticker */
}
@media (max-width: 767.98px) {
  body { padding-top: 110px; } /* mobile: no top bar */
}

/* ─── Top Bar ────────────────────────────────────────────────── */
.top-bar {
  background: var(--gccp-card-bg);
  border-bottom: 1px solid var(--gccp-border);
  font-size: 0.78rem;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.main-navbar {
  background: var(--gccp-card-bg) !important;
  border-bottom: 1px solid var(--gccp-border);
  height: var(--gccp-navbar-h);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.main-navbar.scrolled { box-shadow: var(--shadow); }

.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gccp-primary), #0ea5e9);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.brand-name { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--gccp-text); letter-spacing: -0.5px; }
.brand-sub  { font-size: 0.65rem; color: var(--gccp-muted); margin-top: -4px; }

.navbar-search .form-control {
  background: var(--gccp-body-bg);
  border-color: var(--gccp-border);
  border-radius: var(--radius) 0 0 var(--radius);
  width: 220px;
  min-width: 0;
  font-size: 0.875rem;
}
.navbar-search .btn { border-color: var(--gccp-border); border-radius: 0 var(--radius) var(--radius) 0; }

.nav-link { font-size: 0.875rem; padding: 0.5rem 0.7rem !important; border-radius: 0.5rem; color: var(--gccp-text) !important; }
.nav-link:hover, .nav-link.active { color: var(--gccp-primary) !important; background: rgba(var(--gccp-primary-rgb),.07); }

.mega-menu { border-radius: var(--radius) !important; }

.user-avatar-sm {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}

.country-flag { font-size: 0.76rem; color: var(--gccp-muted); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d6efd 100%);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-pattern.svg') center/cover;
  opacity: 0.05;
}
.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; font-weight: 800; line-height: 1.2; }
.hero-sub   { font-size: 1.05rem; color: rgba(255,255,255,.75); }

.hero-search-box {
  background: var(--gccp-card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.stat-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(8px);
}
.stat-pill .stat-num { font-size: 1.4rem; font-weight: 700; display: block; }
.stat-pill .stat-lbl { font-size: 0.72rem; opacity: 0.75; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--gccp-card-bg);
  border: 1px solid var(--gccp-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-hover:hover { transform: translateY(-3px); }

.card-header-custom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gccp-border);
  font-weight: 600;
}

/* ─── Price Cards ────────────────────────────────────────────── */
.price-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.price-card .price-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(var(--gccp-primary-rgb),.08), rgba(var(--gccp-primary-rgb),.02));
  border-bottom: 1px solid var(--gccp-border);
}
.price-value { font-size: 1.5rem; font-weight: 700; color: var(--gccp-primary); }
.price-unit  { font-size: 0.75rem; color: var(--gccp-muted); }

.price-badge-up   { background: #fef2f2; color: #ef4444; padding: 0.2rem 0.5rem; border-radius: 0.4rem; font-size: 0.75rem; font-weight: 600; }
.price-badge-down { background: #f0fdf4; color: #10b981; padding: 0.2rem 0.5rem; border-radius: 0.4rem; font-size: 0.75rem; font-weight: 600; }
.price-badge-same { background: #f8fafc; color: var(--gccp-muted); padding: 0.2rem 0.5rem; border-radius: 0.4rem; font-size: 0.75rem; }

[data-bs-theme="dark"] .price-badge-up   { background: rgba(239,68,68,.15); }
[data-bs-theme="dark"] .price-badge-down { background: rgba(16,185,129,.15); }

/* ─── Country Price Table ────────────────────────────────────── */
.country-price-row { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--gccp-border); }
.country-price-row:last-child { border-bottom: none; }
.country-flag-icon { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; }

/* ─── Category Cards ─────────────────────────────────────────── */
.cat-card {
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  width: 100%;
  color: var(--gccp-text);
  background: var(--gccp-card-bg);
  border: 1px solid var(--gccp-border);
  transition: all var(--transition);
  overflow: hidden;
  box-sizing: border-box;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--gccp-primary); }
.cat-card .fw-semibold { font-size: 0.82rem; line-height: 1.3; }
.cat-card .text-muted  { font-size: 0.7rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cat-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 0.75rem;
}

/* ─── Section Titles ─────────────────────────────────────────── */
.section-title { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 700; }
.section-subtitle { color: var(--gccp-muted); font-size: 0.95rem; }
.section-divider { width: 50px; height: 4px; background: linear-gradient(90deg, var(--gccp-primary), #0ea5e9); border-radius: 2px; }

/* ─── Material Table ─────────────────────────────────────────── */
.materials-table { font-size: 0.875rem; }
.materials-table thead th { background: rgba(var(--gccp-primary-rgb),.06); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-color: var(--gccp-border); white-space: nowrap; }
.materials-table tbody tr { transition: background var(--transition); }
.materials-table tbody tr:hover { background: rgba(var(--gccp-primary-rgb),.04); }
.materials-table td { border-color: var(--gccp-border); vertical-align: middle; }

/* ─── Stale Price Warning ────────────────────────────────────── */
.price-stale { opacity: 0.6; }
.price-stale::after { content: ' ⚠'; color: var(--gccp-accent); font-size: 0.7rem; }

/* ─── Trend Chart Area ───────────────────────────────────────── */
.chart-container { position: relative; width: 100%; }

/* ─── Search & Filter Panel ──────────────────────────────────── */
.filter-panel {
  background: var(--gccp-card-bg);
  border: 1px solid var(--gccp-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky; top: 10px;
}
.filter-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gccp-muted); margin-bottom: 0.4rem; }

/* ─── BOQ Styles ─────────────────────────────────────────────── */
.boq-row { background: var(--gccp-card-bg); border: 1px solid var(--gccp-border); border-radius: 0.5rem; padding: 0.75rem; margin-bottom: 0.5rem; }
.boq-total { background: linear-gradient(135deg, var(--gccp-primary), #0ea5e9); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.boq-total .total-label { font-size: 0.9rem; opacity: 0.85; }
.boq-total .total-value { font-size: 2rem; font-weight: 800; }

/* ─── Supplier Cards ─────────────────────────────────────────── */
.supplier-card { border-radius: var(--radius); overflow: hidden; }
.supplier-logo-placeholder { width: 60px; height: 60px; background: var(--gccp-body-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gccp-primary); }
.verified-badge { background: #ecfdf5; color: #059669; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 2rem; }
[data-bs-theme="dark"] .verified-badge { background: rgba(5,150,105,.2); }

/* ─── Subscription Plan Cards ────────────────────────────────── */
.plan-card { border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.featured { border: 2px solid var(--gccp-primary); }
.plan-card .plan-header { padding: 2rem; text-align: center; }
.plan-card .plan-price { font-size: 2.5rem; font-weight: 800; }
.plan-card .plan-period { font-size: 0.85rem; color: var(--gccp-muted); }
.plan-badge-popular { background: var(--gccp-primary); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.9rem; border-radius: 2rem; letter-spacing: 0.5px; }
.plan-feature { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0; font-size: 0.875rem; border-bottom: 1px solid var(--gccp-border); }
.plan-feature:last-child { border-bottom: none; }
.plan-feature .check { color: var(--gccp-success); }
.plan-feature .cross { color: var(--gccp-muted); opacity: 0.4; }

/* ─── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--gccp-dark);
  position: fixed; left: 0; top: 0;
  overflow-y: auto;
  transition: transform var(--transition);
  z-index: 1040;
}
.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--gccp-body-bg);
  transition: margin-left var(--transition);
}
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

.admin-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,.65);
  font-size: 0.875rem;
  border-radius: 0.5rem;
  margin: 1px 0.5rem;
  transition: all var(--transition);
  text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-nav-link .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

/* ─── KPI Cards ──────────────────────────────────────────────── */
.kpi-card {
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--gccp-card-bg);
  border: 1px solid var(--gccp-border);
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  content: '';
  position: absolute; right: -20px; bottom: -20px;
  width: 80px; height: 80px;
  background: var(--kpi-color, var(--gccp-primary));
  border-radius: 50%;
  opacity: 0.06;
}
.kpi-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kpi-value { font-size: 1.75rem; font-weight: 700; }
.kpi-label { font-size: 0.8rem; color: var(--gccp-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-change { font-size: 0.78rem; font-weight: 600; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-control, .form-select {
  background-color: var(--gccp-card-bg);
  border-color: var(--gccp-border);
  color: var(--gccp-text);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gccp-primary);
  box-shadow: 0 0 0 3px rgba(var(--gccp-primary-rgb), .15);
  background-color: var(--gccp-card-bg);
  color: var(--gccp-text);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn { border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; transition: all var(--transition); }
.btn-primary { background: var(--gccp-primary); border-color: var(--gccp-primary); }
.btn-primary:hover { background: #0a58ca; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--gccp-primary-rgb),.4); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

/* ─── Badges & Pills ─────────────────────────────────────────── */
.badge { font-weight: 500; border-radius: 0.4rem; }

/* ─── Live Ticker ────────────────────────────────────────────── */
.price-ticker {
  background: #0f172a;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 120s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0 2rem;
  color: rgba(255,255,255,.9);
  font-size: 0.82rem;
}
.ticker-item .ti-name { color: rgba(255,255,255,.6); }
.ticker-up   { color: #4ade80; }
.ticker-down { color: #f87171; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── News Cards ─────────────────────────────────────────────── */
.news-card-img { height: 160px; object-fit: cover; }

/* ─── API Docs Box ───────────────────────────────────────────── */
.api-endpoint {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  overflow-x: auto;
}
.api-method-get    { color: #4ade80; }
.api-method-post   { color: #60a5fa; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--gccp-footer-bg); color: rgba(255,255,255,.75); }
.footer-newsletter { background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-heading { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 0.85rem; transition: color var(--transition); display: inline-flex; align-items: center; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-color: rgba(255,255,255,.08) !important; }

/* ─── Utility ────────────────────────────────────────────────── */
.text-muted { color: var(--gccp-muted) !important; }
.border-color { border-color: var(--gccp-border) !important; }
.bg-card { background-color: var(--gccp-card-bg) !important; }
.rounded-gccp { border-radius: var(--radius) !important; }
.shadow-gccp  { box-shadow: var(--shadow) !important; }

/* ─── Spinners / Loading ─────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

/* ─── Responsive Fixes ───────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .navbar-search { display: none !important; }
}
@media (max-width: 767.98px) {
  .hero-section { min-height: 340px; padding: 2rem 0; }
  .plan-card { margin-bottom: 1rem; }
  .materials-table { font-size: 0.78rem; }
  .kpi-value { font-size: 1.4rem; }
  /* Ensure no horizontal overflow on mobile */
  body { overflow-x: hidden; }
  .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.4rem; }
  .hero-sub { font-size: 0.9rem; }
  .section-title { font-size: 1.15rem; }
  /* Hero search box — tighter padding on phones */
  .hero-search-box { padding: 1rem; border-radius: var(--radius); }
  /* Stat pills — 2-column grid on small phones */
  .stat-pill .stat-num { font-size: 1.1rem; }
  /* Category cards — reduce fixed height on small screens */
  .cat-card { height: 130px !important; min-height: 130px !important; max-height: 130px !important; }
  .cat-icon { width: 46px; height: 46px; font-size: 1.2rem; margin-bottom: 0.5rem; }
  /* Price cards — full-width on phones */
  .price-value { font-size: 1.25rem; }
  /* Plans */
  .plan-card .plan-price { font-size: 2rem; }
}

/* ─── Mobile Enhancements ────────────────────────────────────── */

/* Touch target minimum 44px height — use flex, not inline-flex, on block-level items */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .form-control,
  .form-select {
    min-height: 44px;
  }
  /* List items in nav / offcanvas — block-level, so use flex not inline-flex */
  .list-group-item a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.6rem 0;
  }
  .dropdown-item {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  /* BOQ table → card layout on mobile */
  #boqTable thead { display: none; }
  #boqTable,
  #boqTable tbody,
  #boqTable tr,
  #boqTable td { display: block; width: 100%; }
  #boqTable tr {
    background: var(--gccp-card-bg, #fff);
    border: 1px solid var(--gccp-border-color, #dee2e6);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
  }
  #boqTable td {
    padding: 0.25rem 0;
    border: none;
    text-align: right;
  }
  #boqTable td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--bs-secondary);
    text-align: left;
  }
  #boqTable td:last-child { padding-top: 0.5rem; border-top: 1px solid var(--gccp-border-color, #dee2e6); margin-top: 0.25rem; }

  /* Filter sidebar → bottom drawer on mobile */
  .filter-sidebar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1055;
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform .3s ease;
    padding: 1.25rem;
    background: var(--gccp-card-bg, #fff);
  }
  .filter-sidebar.is-open { transform: translateY(0); }
  .filter-sidebar::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto 1rem;
  }
  .filter-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1054;
  }
  .filter-sidebar-backdrop.is-open { display: block; }
  #filterToggleBtn { display: inline-flex !important; }

  /* Smooth horizontal scroll on tables */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  /* Hide less-critical price columns on small screens */
  .materials-table .col-hide-mobile,
  .materials-table th.col-hide-mobile,
  .materials-table td.col-hide-mobile { display: none; }
  /* Tighter cell padding on mobile tables */
  .materials-table th,
  .materials-table td { padding: 0.4rem 0.5rem; }

  /* Tighten hero on small screens */
  section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  /* Country hub stat cards — 2 per row */
  .country-stat-row .col-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Show filter toggle button only on mobile */
#filterToggleBtn { display: none; }

/* ─── Extra Mobile Tweaks ────────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Ticker — faster on mobile for better UX */
  .ticker-track { animation-duration: 60s; }
  .ticker-item { padding: 0 1rem; font-size: 0.78rem; }

  /* Section vertical rhythm — tighter on mobile */
  .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

  /* Footer columns — full width stack */
  .site-footer .col-md-6 { margin-bottom: 1.5rem; }
  .footer-newsletter .d-flex { flex-direction: column; gap: 0.75rem; }
  .footer-newsletter .btn { width: 100%; justify-content: center; }

  /* BOQ total card — scale down big number */
  .boq-total .total-value { font-size: 1.5rem; }

  /* Floating WhatsApp button — smaller on mobile */
  #waFloatBtn { width: 48px; height: 48px; min-width: 48px; font-size: 1.3rem; }

  /* Offcanvas nav — ensure full viewport height */
  .offcanvas.offcanvas-start { width: min(320px, 90vw) !important; }

  /* Card grid spacing */
  .row.g-4 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  .row.g-3 { --bs-gutter-x: 0.5rem;  --bs-gutter-y: 0.5rem; }

  /* Prevent text overflow in cards */
  .card-title, .card-text, h5, h6 { overflow-wrap: break-word; word-break: break-word; }

  /* Country price table rows — stack label + value vertically */
  .country-price-row { flex-wrap: wrap; gap: 0.25rem; }

  /* Page headings */
  h1 { font-size: clamp(1.3rem, 5vw, 2rem); }
  h2 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
}

/* ─── Print Styles ───────────────────────────────────────────── */
@media print {
  .main-navbar, .site-footer, .price-ticker, #themeToggle { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
