/* ================================================
   VAiR Corporation App — Main Stylesheet
   Professional HVAC Supply — Mobile First
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  --blue-dark: #0f2d5a;
  --blue-mid: #1a4a8a;
  --blue-accent: #2563eb;
  --blue-light: #dbeafe;
  --red-hot: #dc2626;
  --red-light: #fee2e2;
  --green-stock: #16a34a;
  --green-light: #dcfce7;
  --amber-limited: #d97706;
  --amber-light: #fef3c7;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.2s ease;
  --header-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }

/* --- Utility --- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================
   HEADER
   ================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-dark);
  color: var(--white);
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 12px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo-mark {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--white);
}
.header-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.header-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-header-call {
  display: none;
  background: var(--red-hot);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-header-call:hover { background: #b91c1c; }
@media (min-width: 640px) { .btn-header-call { display: flex; align-items: center; gap: 6px; } }

.btn-header-login {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-header-login:hover { background: rgba(255,255,255,0.2); }

.btn-header-quote {
  background: var(--blue-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-header-quote:hover { background: #1d4ed8; }

/* ================================================
   SAME-DAY DELIVERY BANNER
   ================================================ */
#same-day-banner {
  background: linear-gradient(135deg, var(--red-hot), #b91c1c);
  color: var(--white);
  padding: 10px 0;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.banner-icon { font-size: 20px; animation: pulse-truck 2s infinite; }
@keyframes pulse-truck {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.banner-text { font-size: 14px; font-weight: 700; letter-spacing: 0.3px; }
.banner-text span { font-size: 16px; }
.banner-countdown {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.banner-countdown.urgent { animation: blink-urgent 1s infinite; }
@keyframes blink-urgent {
  0%, 100% { background: rgba(0,0,0,0.25); }
  50% { background: rgba(255,255,0,0.3); }
}

/* ================================================
   NAVIGATION / CATEGORY TABS
   ================================================ */
#cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner {
  display: flex;
  gap: 0;
  padding: 0;
  min-width: max-content;
}
.cat-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-nav-btn:hover { color: var(--blue-accent); background: var(--gray-50); }
.cat-nav-btn.active {
  color: var(--blue-accent);
  border-bottom-color: var(--blue-accent);
}
.cat-nav-btn .cat-icon { font-size: 16px; }

/* ================================================
   MAIN CONTENT AREA
   ================================================ */
#main {
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 60px;
}

/* ================================================
   HOME PAGE
   ================================================ */
.home-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #1e56a0 100%);
  color: var(--white);
  padding: 40px 0 48px;
  text-align: center;
}
.home-hero h1 {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.home-hero h1 span { color: #60a5fa; }
.home-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 24px;
}
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.hero-badge.daikin {
  background: rgba(255,255,255,0.95);
  color: var(--blue-dark);
  border-color: transparent;
  font-weight: 800;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 16px;
  gap: 12px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.section-subtitle { font-size: 13px; color: var(--gray-500); font-weight: 400; }
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-accent);
  white-space: nowrap;
  cursor: pointer;
}
.section-link:hover { text-decoration: underline; }

/* ================================================
   CATEGORY GRID
   ================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 20px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-color, var(--blue-accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  border-color: var(--cat-color, var(--blue-accent));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.category-card:hover::before { opacity: 1; }
.category-card:active { transform: translateY(0); }

.cat-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
  background: var(--cat-bg, var(--blue-light));
}
.cat-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: 6px;
}
.cat-card-desc {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.4;
  display: none;
}
@media (min-width: 768px) { .cat-card-desc { display: block; } }
.cat-card-count {
  display: inline-block;
  margin-top: 8px;
  background: var(--cat-bg, var(--blue-light));
  color: var(--cat-color, var(--blue-accent));
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
}
.cat-card-sameday {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red-hot);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ================================================
   PRODUCT GRID & CARDS
   ================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.product-card:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-card:active { transform: translateY(0); }

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}
.product-card-sku {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.product-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  flex: 1;
}
.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spec-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.spec-tag.highlighted {
  background: var(--blue-light);
  color: var(--blue-accent);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
  gap: 8px;
}
.btn-quote-small {
  background: var(--blue-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-quote-small:hover { background: #1d4ed8; }

/* Inventory Badges */
.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.inv-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.inv-badge.in-stock { background: var(--green-light); color: var(--green-stock); }
.inv-badge.in-stock::before { background: var(--green-stock); }
.inv-badge.limited { background: var(--amber-light); color: var(--amber-limited); }
.inv-badge.limited::before { background: var(--amber-limited); }
.inv-badge.call { background: var(--gray-100); color: var(--gray-600); }
.inv-badge.call::before { background: var(--gray-400); }

/* Same-Day Badge on Product */
.sameday-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red-hot);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* Featured star */
.featured-star {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--amber-limited);
  font-size: 14px;
}

/* ================================================
   CATEGORY PAGE
   ================================================ */
.cat-page-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.cat-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-accent);
  cursor: pointer;
  margin-bottom: 16px;
}
.cat-page-back:hover { text-decoration: underline; }
.cat-page-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 14px;
}
.cat-page-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.cat-page-desc {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.6;
}
.cat-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cat-page-tag {
  background: var(--blue-light);
  color: var(--blue-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ================================================
   PRODUCT DETAIL PAGE
   ================================================ */
.product-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 0 48px;
}
.product-detail-header {
  margin-bottom: 24px;
}
.product-detail-name {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.product-detail-sku {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-detail-desc {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 24px;
}
.specs-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
}
.specs-table-header {
  background: var(--gray-50);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
.specs-row {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.specs-row:last-child { border-bottom: none; }
.specs-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  width: 140px;
  flex-shrink: 0;
}
.specs-value {
  font-size: 13px;
  color: var(--gray-900);
  font-weight: 500;
}

.product-detail-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--gray-500); background: var(--gray-50); }

/* ================================================
   SEARCH RESULTS
   ================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  padding-top: var(--header-height);
}
.search-panel {
  background: var(--white);
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:hover { background: var(--gray-50); }
.search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.search-result-text { flex: 1; min-width: 0; }
.search-result-name { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.search-result-cat { font-size: 12px; color: var(--gray-500); }
.search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

/* ================================================
   MODALS
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-title { font-size: 18px; font-weight: 800; color: var(--gray-900); }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 20px 24px 24px; }

/* Form Styles */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--red-hot); margin-left: 2px; }
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-900);
  transition: var(--transition);
  outline: none;
  background: var(--white);
}
.form-input:focus { border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input::placeholder { color: var(--gray-400); }
.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-900);
  transition: var(--transition);
  outline: none;
  resize: vertical;
  background: var(--white);
}
.form-textarea:focus { border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-900);
  transition: var(--transition);
  outline: none;
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.form-divider-line { flex: 1; height: 1px; background: var(--gray-200); }
.form-divider-text { font-size: 12px; color: var(--gray-400); font-weight: 500; }

.form-error {
  font-size: 12px;
  color: var(--red-hot);
  margin-top: 4px;
  display: none;
}
.form-group.has-error .form-input,
.form-group.has-error .form-select { border-color: var(--red-hot); }
.form-group.has-error .form-error { display: block; }

/* ================================================
   USER PROFILE (logged in)
   ================================================ */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}
.user-avatar:hover { border-color: rgba(255,255,255,0.7); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  animation: dropdown-in 0.15s ease;
  z-index: 150;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.user-dropdown-name { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.user-dropdown-email { font-size: 12px; color: var(--gray-500); }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.user-dropdown-item:hover { background: var(--gray-50); }
.user-dropdown-item.danger { color: var(--red-hot); }

/* ================================================
   SERVICES STRIP
   ================================================ */
.services-strip {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.9);
  padding: 28px 0;
  margin-top: 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.service-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.service-text { font-size: 13px; font-weight: 500; line-height: 1.4; }

/* ================================================
   DAIKIN PARTNER SECTION
   ================================================ */
.daikin-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.daikin-badge {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  text-align: center;
  flex-shrink: 0;
}
.daikin-badge-title { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; }
.daikin-badge-name { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.daikin-badge-sub { font-size: 11px; opacity: 0.7; }
.daikin-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.daikin-content p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ================================================
   REGULATIONS NOTICE
   ================================================ */
.regulations-card {
  background: var(--amber-light);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--amber-limited);
  padding: 18px 20px;
  margin-top: 24px;
}
.regulations-title {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.regulations-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.regulations-list li {
  font-size: 13px;
  color: #78350f;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}
.regulations-list li::before { content: '→'; flex-shrink: 0; font-weight: 700; }

/* ================================================
   FOOTER
   ================================================ */
#footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 32px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.footer-brand-name { font-size: 22px; font-weight: 900; color: var(--white); margin-bottom: 6px; }
.footer-brand-sub { font-size: 13px; line-height: 1.6; }
.footer-section-title { font-size: 12px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li { font-size: 13px; cursor: pointer; }
.footer-links li:hover { color: var(--white); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toast-in 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}
.toast.success { background: var(--green-stock); }
.toast.error { background: var(--red-hot); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

/* ================================================
   LOADING STATE
   ================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.empty-state-text { font-size: 14px; line-height: 1.6; }

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (max-width: 480px) {
  .header-logo-sub { display: none; }
  .header-search { max-width: 160px; }
}
@media (max-width: 360px) {
  .header-search { display: none; }
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }
.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 10px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-nav-btn.active { color: var(--blue-accent); }
.mobile-nav-btn .nav-icon { font-size: 20px; }
#main { padding-bottom: 80px; }
@media (min-width: 768px) { #main { padding-bottom: 40px; } }

/* ================================================
   FIND THE RIGHT PART — FINDER WIDGET
   ================================================ */
.finder-widget {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow-md);
}
.finder-header {
  background: var(--blue-dark);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.finder-header-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.finder-header-title { font-size: 18px; font-weight: 800; }
.finder-header-sub { font-size: 13px; opacity: 0.75; margin-top: 2px; }
.finder-body { padding: 20px 24px 24px; }

/* Type buttons */
.finder-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.finder-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.finder-type-btn .ft-icon { font-size: 18px; }
.finder-type-btn .ft-hint {
  display: none;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
  margin-top: 1px;
}
@media (min-width: 640px) {
  .finder-type-btn { flex-direction: column; align-items: flex-start; padding: 12px 14px; gap: 2px; }
  .finder-type-btn .ft-hint { display: block; }
}
.finder-type-btn:hover {
  border-color: var(--blue-accent);
  background: var(--blue-light);
  color: var(--blue-accent);
}
.finder-type-btn.active {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: var(--white);
}
.finder-type-btn.active .ft-hint { color: rgba(255,255,255,0.7); }

/* Filter rows */
.finder-filters {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.finder-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  margin-top: 14px;
}
.finder-filter-label:first-child { margin-top: 0; }
.finder-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.finder-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.finder-chip:hover { border-color: var(--blue-accent); color: var(--blue-accent); }
.finder-chip.active {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: var(--white);
}

/* Finder results */
.finder-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}
.finder-results-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
}
.finder-clear-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.finder-clear-btn:hover { background: var(--gray-100); color: var(--gray-700); }
.finder-no-match {
  text-align: center;
  padding: 32px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--gray-300);
}
.finder-no-match-icon { font-size: 36px; margin-bottom: 12px; }
.finder-no-match-title { font-size: 16px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.finder-no-match-text { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }

/* ================================================
   CATEGORY FILTER BAR
   ================================================ */
.cat-filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.cat-filter-bar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-filter-group { margin-bottom: 12px; }
.cat-filter-group:last-child { margin-bottom: 0; }
.cat-filter-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.cat-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-filter-chip {
  padding: 5px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-filter-chip:hover { border-color: var(--blue-accent); color: var(--blue-accent); }
.cat-filter-chip.active {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: var(--white);
}
.cat-filter-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--blue-accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  margin-left: 6px;
}
.cat-filter-clear {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
}
.cat-filter-clear:hover { color: var(--red-hot); }

/* ================================================
   PRODUCT IMAGE AREA
   ================================================ */
.product-img-area {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  background: var(--gray-50);
  flex-shrink: 0;
}
.product-img-area img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  background: var(--white);
}
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cat-bg, #f3f4f6);
}
.product-img-placeholder .placeholder-icon { font-size: 40px; opacity: 0.5; }
.product-img-placeholder .placeholder-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Detail page image */
.product-detail-img-area {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--gray-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-200);
}
.product-detail-img-area img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  background: var(--white);
}
.product-detail-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.product-detail-img-placeholder .big-icon { font-size: 72px; opacity: 0.25; }
.photo-upload-hint {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* ================================================
   COMPATIBILITY SECTION
   ================================================ */
.compat-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
}
.compat-section-header {
  background: linear-gradient(135deg, #064e3b, #065f46);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compat-row {
  display: flex;
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.compat-row:last-child { border-bottom: none; }
.compat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  width: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compat-value {
  font-size: 13px;
  color: var(--gray-900);
  font-weight: 500;
  line-height: 1.4;
}
.compat-value .v-chip {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 2px 3px 2px 0;
}
.compat-warning {
  background: #fffbeb;
  border-top: 1px solid #fcd34d;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.compat-warning-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.compat-warning-text { font-size: 13px; color: #92400e; font-weight: 500; line-height: 1.5; }

/* Compat mini on product cards */
.compat-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.compat-mini-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Spec sheet button */
.specsheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.specsheet-btn:hover { background: var(--gray-200); border-color: var(--gray-400); }
.specsheet-btn.request { color: var(--blue-accent); border-color: var(--blue-accent); background: var(--blue-light); }
.specsheet-btn.request:hover { background: #bfdbfe; }

/* ================================================
   NEW FEATURES: Cart, Language Switcher, Order Flow
   ================================================ */

/* ─── LANGUAGE SWITCHER ─────────────────────────── */
.lang-btn {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.22); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 500;
  min-width: 130px;
  overflow: hidden;
}
.lang-option {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition);
}
.lang-option:hover { background: var(--gray-100); }
.lang-option.active { background: var(--blue-light); color: var(--blue-accent); }

/* ─── CART HEADER BUTTON ────────────────────────── */
.cart-header-btn {
  position: relative;
  background: var(--blue-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.cart-header-btn:hover { background: #1d4ed8; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--red-hot);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--blue-dark);
}
.mobile-cart-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(12px);
  background: var(--red-hot);
  color: white;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
}

/* ─── ADD-TO-ORDER BUTTONS ──────────────────────── */
.btn-add-to-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}
.btn-add-to-order-sm {
  background: var(--blue-dark);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-add-to-order-sm:hover { background: var(--blue-accent); transform: scale(1.03); }

/* ─── CART MODAL ────────────────────────────────── */
.cart-modal {
  max-width: 480px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.cart-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}
.cart-empty {
  text-align: center;
  padding: 48px 24px;
}
.cart-empty-icon { font-size: 52px; margin-bottom: 12px; }
.cart-empty-title { font-size: 18px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.cart-empty-sub { font-size: 14px; color: var(--gray-500); }

.cart-count-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px 8px;
  border-bottom: 1px solid var(--gray-100);
}

.cart-items-list { padding-bottom: 0; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.cart-item:hover { background: var(--gray-50); }
.cart-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.cart-item-sd { font-size: 11px; font-weight: 700; color: var(--red-hot); margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cart-qty-wrap {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { background: var(--gray-200); }
.cart-qty-input {
  width: 36px;
  height: 28px;
  text-align: center;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--red-hot); background: var(--red-light); }

.cart-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 2px solid var(--gray-200);
  background: white;
  position: sticky;
  bottom: 0;
}

/* ─── CHECKOUT FORM ─────────────────────────────── */
.checkout-form { padding: 0 20px 24px; }
.checkout-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-accent);
  cursor: pointer;
  padding: 16px 0 12px;
  display: block;
}
.checkout-back:hover { text-decoration: underline; }

.checkout-order-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 20px;
}
.checkout-summary-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-icon { font-size: 16px; flex-shrink: 0; }
.checkout-summary-name { flex: 1; font-weight: 600; color: var(--gray-800); }
.checkout-summary-qty { font-size: 12px; font-weight: 700; color: var(--gray-500); }

/* ─── PRODUCT CARD UPDATED (no SKU line) ─────────── */
.product-card-top {
  padding: 12px 12px 4px;
}
.product-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}
/* Remove any lingering SKU style */
.product-card-sku { display: none !important; }

/* ─── PRODUCT DETAIL UPDATED (no SKU) ───────────── */
.product-detail-sku { display: none !important; }

/* ─── MOBILE RESPONSIVE TWEAKS ──────────────────── */
@media (max-width: 640px) {
  .cart-header-btn .cart-btn-label { display: none; }
  .lang-btn span:not(:first-child) { display: none; }
  .header-actions { gap: 5px !important; }
  .btn-header-call { display: none; }
}

/* ─── BUILDING PROFILES ──────────────────────────── */
.buildings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.building-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.building-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.building-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.building-card-info {
  flex: 1;
  min-width: 0;
}

.building-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.building-card-address {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.building-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.building-equip-count {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 99px;
}

.building-card-arrow {
  font-size: 24px;
  color: #9ca3af;
  font-weight: 300;
  flex-shrink: 0;
}

/* Building Detail Header */
.building-detail-header {
  padding: 20px 0 24px;
  border-bottom: 1.5px solid #e5e7eb;
  margin-bottom: 8px;
}

.building-contact-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

/* Equipment List */
.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.equipment-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s;
}
.equipment-card:hover {
  border-color: #d1d5db;
}

.equipment-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment-card-info {
  flex: 1;
  min-width: 0;
}

.equipment-type-label {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.equipment-make-model {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.equipment-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.equip-edit-btn,
.equip-delete-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background 0.15s;
}
.equip-edit-btn:hover { background: #e5e7eb; }
.equip-delete-btn:hover { background: #fee2e2; }

/* ─── RTL SUPPORT (Arabic) ───────────────────────── */
[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .cat-nav-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .mobile-bottom-nav {
  flex-direction: row-reverse;
}
[dir="rtl"] .cart-item {
  flex-direction: row-reverse;
}
[dir="rtl"] .building-card {
  flex-direction: row-reverse;
}
[dir="rtl"] .equipment-card {
  flex-direction: row-reverse;
}
[dir="rtl"] .building-card-arrow {
  transform: scaleX(-1);
}
[dir="rtl"] body {
  font-family: 'Segoe UI', 'Arial', system-ui, sans-serif;
}
[dir="rtl"] .cat-page-back::before {
  content: none;
}
[dir="rtl"] .hero-badges {
  direction: rtl;
}
[dir="rtl"] .product-card-footer {
  flex-direction: row-reverse;
}
[dir="rtl"] .building-detail-header > div:first-child {
  flex-direction: row-reverse;
}
[dir="rtl"] .checkout-form .form-label,
[dir="rtl"] .form-label {
  display: block;
  text-align: right;
}
[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea {
  text-align: right;
}
[dir="rtl"] .modal-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .cart-modal-body .cart-items-list {
  direction: rtl;
}
[dir="rtl"] .banner-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

/* ─── LANG DROPDOWN (larger for 6 languages) ────── */
.lang-dropdown {
  min-width: 160px;
}

/* ─── ORDER CONFIRM MODAL ────────────────────────── */
.order-confirm-modal {
  position: relative;
  max-width: 380px;
  padding: 28px 24px 20px;
}

.order-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity 0.15s, transform 0.1s;
}
.order-send-btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}
.order-send-btn.whatsapp {
  background: #25d366;
  color: white;
}
.order-send-btn.whatsapp:hover {
  background: #1ebe59;
}
.order-send-btn.sms {
  background: var(--blue-mid);
  color: white;
}
.order-send-btn.sms:hover {
  background: var(--blue-dark);
}
