/* ==========================================================================
   Hencor Build It - Modern Hardware Store Stylesheet
   Design Token System, Modern Typography, Dark Glassmorphism Aesthetics
   ========================================================================== */

:root {
  --primary-red: #ED1C24;
  --primary-red-hover: #C10712;
  --primary-green: #008751;
  --primary-green-hover: #006638;
  --accent-amber: #F59E0B;
  --accent-amber-hover: #D97706;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE57;
  
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: #1F2937;
  --bg-card-hover: #374151;
  --bg-glass: rgba(17, 24, 39, 0.9);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(237, 28, 36, 0.4);
  --border-green: rgba(0, 135, 81, 0.4);
  
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 25px rgba(229, 9, 20, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

 .demo-mode-banner {
  position: relative;
  z-index: 110;
  padding: 9px 16px;
  text-align: center;
  background: #FBBF24;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.demo-watermark-overlay {
  display: none;
  position: absolute;
  inset: 10%;
  align-items: center;
  justify-content: center;
  transform: rotate(-18deg);
  border: 3px solid rgba(251, 191, 36, 0.82);
  color: rgba(251, 191, 36, 0.92);
  font-size: clamp(1rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 4;
}

html[data-demo-mode="true"] .demo-watermark-overlay { display: flex; }
html[data-demo-mode="true"] .product-lightbox-media { position: relative; }
html[data-demo-mode="true"] .product-lightbox-media .demo-watermark-overlay { inset: 12%; }
html[data-demo-mode="true"] .product-lightbox-media::after {
  content: 'DEMO PREVIEW';
  position: absolute;
  inset: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-18deg);
  border: 3px solid rgba(251, 191, 36, 0.82);
  color: rgba(251, 191, 36, 0.92);
  font-size: clamp(1rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* Light Theme Variables Override */
body.light-theme {
  --bg-main: #F1EFEA;
  --bg-surface: #FAF8F3;
  --bg-card: #FFFDF8;
  --bg-card-hover: #F5F1E8;
  --bg-glass: rgba(250, 248, 243, 0.94);
  --border-color: #D9D3C9;
  --border-highlight: rgba(237, 28, 36, 0.38);
  --border-green: rgba(0, 135, 81, 0.34);
  --text-main: #1B2638;
  --text-muted: #5B6471;
  --text-subtle: #78818D;
  --shadow-sm: 0 2px 4px rgba(53, 45, 32, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(53, 45, 32, 0.12), 0 8px 10px -6px rgba(53, 45, 32, 0.08);
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

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

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  position: relative;
  touch-action: pan-y; /* Block horizontal document swipe panning */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #990000 0%, var(--primary-red) 50%, #990000 100%);
  color: #FFF;
  padding: 8px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.top-bar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-width: 0;
}

.top-bar-info span {
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 0;
}

.status-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge.open {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-badge.closed {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite;
}

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

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-hencor-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-amber);
  letter-spacing: 1.5px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.logo-brand-img {
  height: 38px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform var(--transition-fast);
}

.logo-brand-img:hover {
  transform: scale(1.03);
}

.nav-links-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 8px auto 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links li {
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.nav-links a:hover, .nav-links a.active {
  color: #FFF;
  background: var(--primary-red);
  border-color: var(--primary-red);
}

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

/* Unified Action Button Heights & Alignment */
.btn-nav-action {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.btn-admin-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-admin-nav:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-red);
}

.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-theme-toggle:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.btn-quote-cart {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-quote-cart:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.btn-whatsapp-nav {
  background: var(--primary-green);
  border: 1px solid var(--primary-green);
  color: white;
}

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

.cart-badge {
  background: var(--primary-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: url('assets/hero2.png') right center / cover no-repeat;
  padding: 80px 24px;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(11, 15, 25, 0.96) 0%, 
    rgba(11, 15, 25, 0.88) 35%, 
    rgba(11, 15, 25, 0.45) 60%, 
    rgba(11, 15, 25, 0.05) 85%,
    rgba(11, 15, 25, 0.0) 100%
  ),
  linear-gradient(
    180deg,
    rgba(11, 15, 25, 0.3) 0%,
    transparent 70%,
    var(--bg-main) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.15);
  color: var(--primary-red);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Button Component Styles */
.btn {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary-red);
  color: #FFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.2);
}

/* Quick Features Highlight */
.features-bar {
  max-width: 1280px;
  margin: 28px auto 60px auto;
  position: relative;
  z-index: 10;
  padding: 0 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(229, 9, 20, 0.1);
  border-radius: var(--radius-sm);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

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

/* Section Layouts */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

/* Search & Filter Bar */
.search-filter-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Pagination & Catalog Stats UI */
.pagination-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pagination-btn.active {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 6px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn:hover {
  color: var(--text-main);
  border-color: rgba(255,255,255,0.2);
}

.pill-btn.active {
  background: var(--primary-red);
  color: #FFF;
  border-color: var(--primary-red);
}

/* Product Catalog Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  height: 200px;
  background: #151C2C;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-muted);
  overflow: hidden;
}

body.light-theme .product-img-wrapper {
  background: #E8E5DE;
}

body.light-theme .product-image-trigger img {
  background: #FFFDF8;
  border-radius: 10px;
}

.product-image-trigger {
  cursor: zoom-in;
  outline: none;
}

.product-image-trigger:focus-visible {
  box-shadow: inset 0 0 0 3px var(--accent-amber);
}

.product-image-view-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 8px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-image-trigger:hover .product-image-view-hint,
.product-image-trigger:focus-visible .product-image-view-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Enlarged customer product view */
.product-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.product-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.product-lightbox-modal {
  width: min(1100px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.85fr);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.product-lightbox-overlay.active .product-lightbox-modal {
  transform: translateY(0) scale(1);
}

.product-lightbox-media {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: radial-gradient(circle at center, #263248 0%, #0B1020 72%);
}

.product-lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 620px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.product-lightbox-media-label {
  position: absolute;
  left: 22px;
  bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 15, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-lightbox-details {
  min-width: 0;
  overflow-y: auto;
  padding: 28px;
}

.product-lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.product-lightbox-category {
  margin-bottom: 7px;
  color: var(--accent-amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.product-lightbox-header h2 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
}

.product-lightbox-status {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-lightbox-code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.product-lightbox-code-block span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-lightbox-code-block strong {
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.84rem;
  letter-spacing: 0.3px;
  text-align: right;
  overflow-wrap: anywhere;
}

.product-lightbox-description {
  margin-top: 22px;
}

.product-lightbox-description h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.product-lightbox-description p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.product-lightbox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.product-lightbox-actions .btn {
  width: 100%;
  justify-content: center;
}

.product-lightbox-help {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 185, 129, 0.9);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-specs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-grow: 1;
}

.product-sku-tag {
  font-size: 0.78rem;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.product-public-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
}

.product-public-price strong {
  color: var(--accent-amber);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  white-space: nowrap;
}

.product-public-price span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
}

.product-public-price.price-on-request {
  border-color: rgba(156, 163, 175, 0.25);
  background: rgba(156, 163, 175, 0.08);
}

.product-public-price.price-on-request strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

.product-lightbox-price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
}

.product-lightbox-price-block span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-lightbox-price-block strong {
  color: var(--accent-amber);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-align: right;
}

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

.btn-add-quote {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-add-quote:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #FFF;
}

.btn-quick-wa {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--whatsapp-green);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-quick-wa:hover {
  background: var(--whatsapp-green);
  color: white;
}

/* Premium three-layer catalog card: image/status, product information, actions. */
.product-card-three-layer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 510px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.product-card-three-layer .product-img-wrapper {
  min-height: 214px;
  border-bottom: 1px solid var(--border-color);
}

.product-card-three-layer .product-details {
  min-height: 292px;
  padding: 17px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%);
}

.product-card-three-layer .product-category {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
}

.product-card-three-layer .product-name {
  min-height: 2.7em;
  margin-bottom: 8px;
}

.product-card-three-layer .product-specs {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.45;
}

.product-card-three-layer .product-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

body.light-theme .product-card-three-layer .product-details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 42%);
}

@media (max-width: 540px) {
  .product-card-three-layer {
    min-height: 450px;
  }

  .product-card-three-layer .product-img-wrapper {
    min-height: 142px;
  }

  .product-card-three-layer .product-details {
    min-height: 308px;
    padding: 12px;
  }
}

/* Specials Banner & Flyers Gallery Section */
.specials-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #31103F 50%, #450A0A 100%);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.specials-content {
  max-width: 600px;
}

.specials-tag {
  color: var(--accent-amber);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.specials-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.specials-desc {
  color: #D1D5DB;
  font-size: 1rem;
}

/* Flyers Gallery Cards */
.flyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.flyer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.flyer-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
}

.flyer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: var(--primary-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.flyer-img-box {
  position: relative;
  height: 400px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

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

.flyer-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flyer-img-box:hover .flyer-hover-overlay {
  opacity: 1;
}

.flyer-footer-actions {
  padding: 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

/* Lightbox Modal */
.flyer-lightbox-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 900px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  will-change: opacity;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.flyer-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

/* Expanded Desktop Lightbox Modal & Zoom Toolbar */
@media (min-width: 992px) {
  .flyer-lightbox-modal {
    width: 95vw !important;
    max-width: 1420px !important;
    height: 93vh !important;
    max-height: 93vh !important;
  }
  .flyer-lightbox-content {
    height: calc(93vh - 130px) !important;
  }
  .flipbook-page-img {
    max-height: calc(93vh - 150px) !important;
  }
}

.flipbook-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 30px;
}

.flipbook-zoom-toolbar button {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.flipbook-zoom-toolbar button:hover {
  background: var(--primary-red);
  color: white;
}

.flyer-lightbox-header {
  background: var(--bg-surface);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flyer-lightbox-content {
  position: relative;
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #05080f;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.flipbook-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 1200px;
}

.flipbook-page-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center center;
  backface-visibility: hidden;
}

.flipbook-page-img.flipping-next {
  transform: rotateY(-90deg) scale(0.95);
  opacity: 0.2;
}

.flipbook-page-img.flipping-prev {
  transform: rotateY(90deg) scale(0.95);
  opacity: 0.2;
}

/* Floating Navigation Arrows */
.flipbook-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.flipbook-arrow:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-50%) scale(1.1);
}

.flipbook-arrow.prev {
  left: 12px;
}

.flipbook-arrow.next {
  right: 12px;
}

.flyer-lightbox-actions {
  padding: 14px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

/* Full-Screen Immersive Mobile Lightbox for Phones */
@media (max-width: 768px) {
  .flyer-lightbox-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 99999 !important;
  }

  .flyer-lightbox-modal.active {
    transform: none !important;
  }

  .flyer-lightbox-content {
    padding: 8px;
  }

  .flyer-lightbox-content img {
    max-height: calc(100vh - 140px) !important;
  }

  .flipbook-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* Calculators Section */
.calculators-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.calc-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.calc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-amber);
}

.calc-result-box {
  margin-top: 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed var(--accent-amber);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.calc-result-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-amber);
}

/* Contact & Information Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  color: var(--primary-red);
  font-size: 1.25rem;
  margin-top: 2px;
}

.info-text strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
}

.info-text span, .info-text a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.info-text a:hover {
  color: var(--primary-red);
}

/* Slide-out Quote Cart & Lightbox Drawer Overlay */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.88);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

/* Generic Popup Modal Overlay & Card System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--primary-red);
  background: rgba(237, 28, 36, 0.1);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

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

.cart-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.btn-close-cart:hover {
  color: var(--text-main);
}

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

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  color: var(--accent-amber);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.cart-item-price span {
  color: var(--text-muted);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.qty-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

/* Floating Back-to-Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 108px;
  right: 32px;
  z-index: 99;
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.floating-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.floating-back-to-top:hover {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-4px);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  opacity: 0.6;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Footer */
footer {
  background: #070A12;
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-col p, .footer-col li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li.footer-cat-link {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.footer-col ul li.footer-cat-link:hover {
  color: var(--primary-red);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-attribution {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: right;
}

.footer-attribution-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-social-links .social-icon-link {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  filter: none;
}

.footer-social-links .social-icon-link:hover {
  color: #FFFFFF;
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

.footer-attribution strong {
  color: var(--text-main);
  font-weight: 800;
}

.footer-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Developer Agency Promo Badge (HIDDEN BY DEFAULT UNTIL FULL OKAY) */
#devAttributionContainer {
  display: none !important;
}

/* ==========================================
 * AUTHORIZED SUPPLIER HERO STRIP & PROUDLY SA
 * ========================================== */
.supplier-hero-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 20px;
  position: relative;
  z-index: 20;
}

.supplier-footer-strip {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  border-bottom: none;
}

.supplier-hero-container {
  max-width: 1280px;
  margin: 0 auto;
}

.supplier-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.strip-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-label i {
  color: var(--accent-amber);
}

/* Supplier Logo Grid Layouts (6 vs 12 items) */
/* Supplier Carousel Viewport & Nav Controls */
.supplier-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.supplier-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
  padding: 8px 0;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: ew-resize;
  touch-action: pan-x;
}

.supplier-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.supplier-carousel-track {
  display: flex;
  gap: 16px;
  align-items: center;
  width: max-content;
  animation: none;
  transform: none;
  will-change: auto;
}

.carousel-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.carousel-nav-btn:hover {
  background: var(--accent-amber);
  color: #000;
  border-color: var(--accent-amber);
  transform: scale(1.1);
}

/* Uniform Box Container (70px height constraint) */
.brand-slot {
  min-width: 160px;
  height: 70px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Duotone Grayscale Resting State */
.brand-logo-img,
.brand-slot svg {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* Interactive Hover State: Full Authentic Brand Color Reveal */
.brand-slot:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.brand-slot:hover .brand-logo-img,
.brand-slot:hover svg {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

/* Fallback Brand Text Label inside Slot */
.brand-slot-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-subtle);
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.35s ease, color 0.35s ease;
}

.brand-slot:hover .brand-slot-text {
  filter: grayscale(0%) opacity(1);
  color: var(--accent-amber);
}

/* ==========================================
 * TOP BAR SOCIAL MEDIA LINKS
 * ========================================== */
.top-bar-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-link {
  color: var(--text-subtle);
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.3s ease, transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.social-icon-link:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
  color: #FFF;
}

.social-icon-link.facebook:hover { background: #1877F2; }
.social-icon-link.instagram:hover { background: #E4405F; }
.social-icon-link.tiktok:hover { background: #000000; border: 1px solid #FFF; }
.social-icon-link.youtube:hover { background: #FF0000; }
.social-icon-link.linkedin:hover { background: #0A66C2; }
.social-icon-link.whatsapp:hover { background: #25D366; }

.top-bar .social-icon-link {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  filter: none;
}

.top-bar .social-icon-link:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.24);
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--primary-red);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE & RESPONSIVE UX OPTIMIZATIONS (Smartphones & Tablets)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .specials-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
  }
  
  .flyers-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Navigation Bar Mobile Layout */
  .nav-container {
    height: auto;
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .logo-brand-img {
    height: 34px !important;
  }

  .nav-links-wrapper {
    width: 100%;
    order: 3;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 6px;
    padding: 0 2px 2px;
    border-top: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links-wrapper::-webkit-scrollbar {
    display: none;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 0 11px;
    height: 32px;
  }

  .nav-actions {
    flex: 1 1 100%;
    width: 100%;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .btn-quote-cart, .btn-admin-nav {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Topbar Announcement Bar */
  .top-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .top-bar-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-width: 0;
  }

  .top-bar-info span {
    margin: 0;
    min-width: 0;
    line-height: 1.25;
    gap: 5px;
  }

  .top-bar-info span span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .top-bar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .top-bar-social-links {
    gap: 5px;
  }

  .top-bar-social-links .social-icon-link {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }

  .footer-attribution-group {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .footer-attribution {
    text-align: left;
  }

  .status-badge {
    max-width: 124px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 8px;
    font-size: 0.63rem;
  }

  /* Hero Banner Mobile */
  .hero {
    min-height: auto;
    padding: 36px 16px 50px 16px;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Features Grid */
  .features-bar {
    margin-top: -30px;
    margin-bottom: 30px;
    padding: 0 14px;
  }

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

  .feature-card {
    padding: 16px;
  }

  /* Category Filter Pills Mobile Horizontal Swipe */
  .category-pills {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    display: flex;
  }

  .pill-btn {
    scroll-snap-align: start;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Search Bar & Header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .search-box {
    width: 100%;
  }

  /* Product Catalog Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .product-img-wrapper {
    height: 170px;
  }

  .product-image-view-hint {
    opacity: 0.9;
    transform: translate(-50%, 0);
  }

  .product-lightbox-overlay {
    padding: 12px;
  }

  .product-lightbox-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .product-lightbox-media {
    min-height: 270px;
    max-height: 46vh;
    padding: 18px;
  }

  .product-lightbox-media img {
    max-height: 40vh;
  }

  .product-lightbox-details {
    padding: 20px;
  }

  /* Flyers Gallery Mobile Cards */
  .flyer-img-box {
    height: 260px;
  }

  .flyer-footer-actions {
    flex-direction: column;
    gap: 8px;
  }

  .flyer-footer-actions .btn {
    width: 100%;
  }

  /* Lightbox Modal Mobile */
  .flyer-lightbox-modal {
    width: 96%;
    max-height: 90vh;
  }

  /* DIY Calculators */
  .calc-form-grid {
    grid-template-columns: 1fr !important;
  }

  .calculators-container {
    grid-template-columns: 1fr;
  }

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

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }

  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 16px;
  }

  .toast {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.45rem;
  }
}

@media (max-width: 420px) {
  .top-bar {
    grid-template-columns: 1fr;
  }

  .top-bar-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* Light Mode Hero & Specials Banner Overrides */
body.light-theme .hero-overlay,
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    90deg, 
    rgba(241, 239, 234, 0.94) 0%, 
    rgba(241, 239, 234, 0.84) 36%, 
    rgba(241, 239, 234, 0.58) 64%, 
    rgba(241, 239, 234, 0.22) 100%
  ),
  linear-gradient(
    180deg,
    rgba(241, 239, 234, 0.18) 0%,
    transparent 70%,
    var(--bg-main) 100%
  );
}

body.light-theme .hero-title {
  color: #172033;
  text-shadow: none;
}

body.light-theme .hero-title span {
  background: none;
  color: #B45309;
  -webkit-text-fill-color: initial;
}

body.light-theme .hero-subtitle {
  color: #4B5563;
}

body.light-theme .hero-tag {
  background: rgba(237, 28, 36, 0.1);
  border-color: rgba(237, 28, 36, 0.3);
  color: #ED1C24;
}

body.light-theme .specials-banner {
  background: linear-gradient(135deg, #FBF1ED 0%, #F6EEE5 52%, #F4EEDD 100%);
  border: 1px solid rgba(237, 28, 36, 0.25);
  box-shadow: 0 10px 30px rgba(53, 45, 32, 0.08);
}

body.light-theme .specials-title {
  color: #1E1B4B;
}

body.light-theme .specials-desc {
  color: #475569;
}

/* Compact 2-Column Touch Grid for Smartphones */
@media (max-width: 540px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    min-width: 0;
    padding: 0;
  }

  .product-img-wrapper {
    height: 142px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    right: 8px;
    width: max-content;
    max-width: calc(100% - 16px);
    font-size: 0.62rem;
    padding: 3px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-details {
    padding: 12px;
    min-width: 0;
  }

  .product-category {
    font-size: 0.62rem;
    overflow-wrap: anywhere;
  }

  .product-name {
    font-size: 0.88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .product-specs {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-actions {
    flex-direction: column;
    gap: 6px;
  }

  .btn-add-quote, .btn-quick-wa {
    padding: 8px;
    font-size: 0.75rem;
  }
}

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

/* Language Switcher Pill Dropdown (RETIRED) */
.lang-switcher-wrapper {
  position: relative;
  display: none !important;
}

.lang-pill-btn {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.lang-pill-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.lang-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  width: 220px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  padding: 6px;
}

.lang-dropdown-menu.active {
  display: flex;
}

.lang-option-btn {
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-option-btn:hover {
  background: var(--bg-surface);
  color: var(--primary-red);
}

/* Trade-credit modal contrast audit: readable white copy over the dark premium surface. */
#tradeCreditModalOverlay .modal-card {
  color: #FFFFFF;
  background: linear-gradient(145deg, #1D2636, #354155);
  border-color: rgba(237, 28, 36, 0.58);
}

#tradeCreditModalOverlay .modal-header,
#tradeCreditModalOverlay .modal-header h3,
#tradeCreditModalOverlay .modal-header div {
  color: #FFFFFF;
  background: transparent;
}

#tradeCreditModalOverlay .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

#tradeCreditModalOverlay .form-label,
#tradeCreditModalOverlay strong {
  color: #FFFFFF !important;
}

#tradeCreditModalOverlay .form-input,
#tradeCreditModalOverlay .form-select {
  background: rgba(255, 255, 255, 0.98);
  color: #18202D;
  border-color: rgba(255, 255, 255, 0.62);
}

#tradeCreditModalOverlay .modal-card > div[style*="background"] {
  color: #FFFFFF !important;
  background: rgba(237, 28, 36, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Final mobile header pass: keep all three primary actions visible without
   forcing a clipped horizontal scroll on small screens. */
@media (max-width: 480px) {
  .nav-actions {
    overflow-x: visible;
    justify-content: stretch;
  }

  .nav-actions .btn-nav-action {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px !important;
    gap: 4px;
    font-size: 0.74rem !important;
  }

  .nav-actions .cart-badge {
    padding: 2px 5px;
    font-size: 0.68rem;
  }
}
