/* ==========================================================================
   Power Build Vaalwater - Design System & Stylesheet
   ========================================================================== */


:root {
  /* Color Tokens */
  --primary-yellow: #FFB800;
  --primary-yellow-hover: #E5A600;
  --primary-yellow-glow: rgba(255, 184, 0, 0.25);
  
  --brand-navy: #0B132B;
  --brand-slate: #1C2541;
  --brand-blue: #3A506B;
  --brand-accent: #00B4D8;
  
  --bg-dark: #070B19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-surface-glass: rgba(17, 24, 39, 0.85);
  
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;
  --text-dark: #111827;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(255, 184, 0, 0.4);
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--primary-yellow-glow);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme {
  --bg-dark: #F1EFEA;
  --bg-surface: #FAF8F3;
  --bg-surface-elevated: #FFFDF8;
  --bg-surface-glass: rgba(250, 248, 243, 0.94);
  --text-main: #1B2638;
  --text-muted: #5B6471;
  --text-subtle: #78818D;
  --border-color: #D9D3C9;
  --border-highlight: rgba(255, 184, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(53, 45, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(53, 45, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(53, 45, 32, 0.16);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.demo-mode-banner {
  position: relative;
  z-index: 110;
  padding: 0.65rem 1rem;
  text-align: center;
  background: #FBBF24;
  color: #071323;
  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-detail-media { position: relative; }
html[data-demo-mode="true"] .product-detail-media .demo-watermark-overlay { inset: 12%; }
.detail-whatsapp-btn:disabled,
#copy-whatsapp-btn:disabled { opacity: 0.55; cursor: not-allowed; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Chivo', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #090E1F 0%, #15203A 50%, #090E1F 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item i {
  color: var(--primary-yellow);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.closed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 12px 28px rgba(7, 11, 25, 0.16);
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 104px;
  padding: 1rem 0 1.15rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  align-self: flex-start;
  min-height: 64px;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.brand-logo-image {
  width: 184px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  align-self: flex-start;
  border-radius: var(--radius-sm);
  background: #075A98;
  padding: 5px 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, #D99B00 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.15rem;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1;
}

.brand-title span {
  color: var(--primary-yellow);
}

.brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: clamp(1rem, 2.6vw, 2.75rem);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  padding-top: 0.65rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-yellow);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0;
  flex: 0 0 auto;
}

.header-action-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 174px;
}

.header-action-stack .btn-primary,
.header-action-stack .rfq-trigger-btn {
  width: 100%;
  justify-content: center;
}

.header-action-stack .btn-primary {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}

.header-action-stack .rfq-trigger-btn {
  padding-top: 0.52rem;
  padding-bottom: 0.52rem;
}

.theme-toggle-btn,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover,
.mobile-menu-toggle:hover {
  color: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

.mobile-menu-toggle {
  display: none;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.admin-link:hover {
  color: var(--primary-yellow);
}

.rfq-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  position: relative;
}

.rfq-trigger-btn:hover {
  background: rgba(255, 184, 0, 0.15);
  border-color: var(--primary-yellow);
  transform: translateY(-2px);
}

.rfq-badge {
  width: 22px;
  height: 22px;
  background-color: var(--primary-yellow);
  color: var(--brand-navy);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-yellow) 0%, #E5A600 100%);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: 0 4px 14px var(--primary-yellow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
  background: linear-gradient(135deg, #FFC526 0%, #F5B400 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* The Power Build storefront is light-only. Keep this hero CTA readable when
   the generic secondary-button hover would otherwise become transparent over
   the dark hero photography. */
.paint-calculator-cta {
  border-color: rgba(255, 184, 0, 0.55);
}

.paint-calculator-cta:hover,
body.light-theme .paint-calculator-cta:hover {
  background: rgba(255, 253, 248, 0.97);
  border-color: var(--primary-yellow);
  color: #1B2638;
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.2);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
}

.hero-section::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: -4%;
  background: url('assets/buco-hero-banner.png') center / cover no-repeat;
  opacity: 0.98;
  transform: scale(1.04);
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 25, 0.52) 0%, rgba(7, 11, 25, 0.26) 36%, rgba(7, 11, 25, 0.04) 68%, rgba(7, 11, 25, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 11, 25, 0.01) 0%, rgba(7, 11, 25, 0.26) 100%);
}

@keyframes hero-kenburns {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.2%, -0.6%, 0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: var(--primary-yellow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title span.highlight {
  color: var(--primary-yellow);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  font-family: 'Chivo', sans-serif;
}

.stat-value span {
  color: var(--primary-yellow);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Feature Cards Grid */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-glass-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-normal);
  animation: feature-float 7s ease-in-out infinite;
  backdrop-filter: blur(12px);
}

.hero-card-stack .feature-glass-card:nth-child(2) {
  animation-delay: -2.2s;
}

.hero-card-stack .feature-glass-card:nth-child(3) {
  animation-delay: -4.4s;
}

@keyframes feature-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.feature-glass-card:hover {
  transform: translateX(8px);
  border-color: var(--border-highlight);
  background: rgba(31, 41, 55, 0.95);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 184, 0, 0.1);
  color: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Brand Bar */
.brand-strip {
  background: var(--bg-surface);
  padding: 1.25rem 0;
  border-y: 1px solid var(--border-color);
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-x;
  opacity: 0.85;
}

.brand-strip-inner::-webkit-scrollbar {
  display: none;
}

.brand-strip-inner:active {
  cursor: grabbing;
}

.brand-pill {
  flex: 0 0 auto;
  font-family: 'Chivo', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-pill-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-link-icon {
  color: var(--primary-yellow);
  font-size: 0.72em;
  opacity: 0.82;
}

.brand-pill-link:focus-visible {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Published Flyer Showcase */
.flyer-showcase-section[hidden] {
  display: none;
}

.flyer-showcase-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

.flyer-showcase-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.flyer-showcase-media {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--brand-navy);
}

.flyer-showcase-media > a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.flyer-showcase-ribbon {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-yellow);
  color: var(--brand-navy);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flyer-showcase-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.flyer-showcase-media:hover .flyer-showcase-image {
  transform: scale(1.02);
}

.flyer-showcase-pdf {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #FFFFFF;
  text-align: center;
}

.flyer-showcase-pdf i {
  color: var(--primary-yellow);
  font-size: 4rem;
}

.flyer-showcase-pdf span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.flyer-showcase-dates {
  margin: 0.5rem 0 1rem;
  color: var(--primary-yellow-hover);
  font-weight: 800;
}

.flyer-showcase-description {
  max-width: 560px;
  color: var(--text-muted);
}

.flyer-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.pdf-catalogs-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

.pdf-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pdf-catalog-card {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 96px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pdf-catalog-card:hover {
  border-color: var(--primary-yellow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.pdf-catalog-card:focus-visible {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 3px;
}

.pdf-catalog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.14);
  color: var(--primary-yellow);
  font-size: 1.25rem;
}

.pdf-catalog-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pdf-catalog-copy strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.pdf-catalog-copy span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.pdf-catalog-action {
  color: var(--primary-yellow);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

/* In-page branded catalogue viewer */
.catalog-viewer-overlay[hidden] {
  display: none;
}

.catalog-viewer-overlay {
  position: fixed;
  z-index: 2500;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 7, 18, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.catalog-viewer-shell {
  display: flex;
  flex-direction: column;
  width: min(1600px, 96vw);
  height: min(96vh, 1100px);
  max-height: 96vh;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.catalog-viewer-toolbar,
.catalog-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated);
}

.catalog-viewer-toolbar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-color);
}

.catalog-viewer-close-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #a75436;
  border-radius: 11px;
  background: #a75436;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(167, 84, 54, 0.2);
}

.catalog-viewer-close-button:hover,
.catalog-viewer-close-button:focus-visible {
  background: #91472f;
  border-color: #91472f;
  outline: none;
}

.catalog-viewer-brand {
  flex: 1 1 auto;
}

.catalog-viewer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.catalog-viewer-brand-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.catalog-viewer-toolbar .section-tag {
  margin-bottom: 0.2rem;
}

.catalog-viewer-toolbar h2 {
  color: var(--text-main);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.catalog-viewer-page-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1rem;
  overflow: auto;
  background: #E9E5DD;
}

.catalog-viewer-page-wrap.is-zoomed {
  cursor: grab;
  touch-action: pan-x pan-y;
}

.catalog-viewer-page-wrap.is-panning {
  cursor: grabbing;
  user-select: none;
}

.catalog-viewer-page {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(1420px, 100%);
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 0, 0.45);
  border-radius: var(--radius-md);
  background: #F5F2EB;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.catalog-viewer-page.is-zoomed {
  overflow: visible;
}

.catalog-viewer-page.page-turn,
.catalog-viewer-page.page-turn-next,
.catalog-viewer-page.page-turn-prev {
  animation: catalog-page-in 260ms ease-out;
}

.catalog-viewer-page img {
  width: 100%;
  height: 100%;
  max-height: 76vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s ease-out;
}

.catalog-viewer-page-number {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 184, 0, 0.45);
  border-radius: var(--radius-full);
  background: rgba(7, 11, 25, 0.86);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
}

.catalog-viewer-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.catalog-viewer-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.catalog-viewer-pan-hint {
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 700;
}

.catalog-viewer-pan-hint i {
  margin-right: 0.25rem;
  color: var(--primary-yellow);
}

.catalog-viewer-zoom-controls .btn-secondary {
  min-width: 2.35rem;
  padding: 0.6rem 0.7rem;
}

.catalog-viewer-zoom-level {
  min-width: 3.65rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--primary-yellow);
  font-size: 0.8rem;
  font-weight: 800;
}

.catalog-viewer-zoom-level:hover,
.catalog-viewer-zoom-level:focus-visible {
  border-color: var(--primary-yellow);
  color: var(--text-main);
}

@keyframes catalog-page-in {
  from { opacity: 0; transform: translateX(18px) rotateY(-2deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

.catalog-viewer-page.page-turn-prev {
  animation-name: catalog-page-in-prev;
}

@keyframes catalog-page-in-prev {
  from { opacity: 0; transform: translateX(-18px) rotateY(2deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

.catalog-viewer-footer {
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
}

.catalog-viewer-footer p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.catalog-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.catalog-viewer-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.catalog-viewer-controls .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid #25D366;
  border-radius: var(--radius-md);
  background: #25D366;
  color: #062b17;
  font-weight: 800;
  transition: var(--transition-normal);
}

.catalog-viewer-controls .btn-whatsapp:hover {
  transform: translateY(-2px);
  background: #4be383;
  border-color: #4be383;
}

.brand-pill:hover {
  color: var(--primary-yellow);
  transform: translateY(-2px);
}

/* Local Product Image Library */
.image-library-section {
  padding: 2.5rem 0 1.75rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

.compact-section-header {
  margin-bottom: 1.75rem;
}

.image-library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.image-library-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
}

.image-library-card::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 25, 0.9));
}

.image-library-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-library-card:hover img {
  transform: scale(1.06);
}

.image-library-card span {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  color: #FFFFFF;
  font-weight: 800;
}

/* Catalog Section */
.catalog-section {
  padding: 3.25rem 0 3rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.75rem;
}

.section-tag {
  color: var(--primary-yellow);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mobile-catalog-hero {
  display: none;
}

/* Search & Filter Bar */
.filter-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-bar-row {
  display: flex;
  gap: 1rem;
}

.search-input-group {
  flex: 1;
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3.25rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 1rem;
  transition: var(--transition-fast);
}

body.light-theme .search-input {
  background: #FFFDF8;
  color: var(--text-main);
}

.search-input:focus {
  border-color: var(--primary-yellow);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-yellow-glow);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-pill {
  padding: 0.6rem 1.2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.category-pill.active {
  background: var(--primary-yellow);
  color: var(--brand-navy);
  border-color: var(--primary-yellow);
  font-weight: 700;
}

.category-pill-count {
  display: inline-flex;
  min-width: 1.65em;
  min-height: 1.65em;
  align-items: center;
  justify-content: center;
  margin-left: .18rem;
  padding: 0 .42em;
  border-radius: 999px;
  background: rgba(23, 49, 38, .08);
  font-size: .72em;
  font-weight: 800;
  line-height: 1;
}

.category-pill.active .category-pill-count {
  background: rgba(255, 255, 255, .2);
}

.catalog-export-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) max-content minmax(170px, auto);
  align-items: end;
  gap: 0.85rem;
  padding-top: 0.15rem;
}

.catalog-filter-select {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-filter-select select {
  min-height: 42px;
  padding: 0.65rem 2rem 0.65rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
}

.catalog-filter-select select:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px var(--primary-yellow-glow);
}

.catalog-export-button {
  min-height: 42px;
  max-width: 100%;
  white-space: nowrap;
}

.explore-mix-button.active {
  border-color: #a75436;
  background: #a75436;
  color: #fff;
}

.catalog-filter-summary {
  align-self: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .catalog-export-toolbar { grid-template-columns: minmax(220px, 1fr) max-content; align-items: end; }
  .catalog-filter-summary { grid-column: 1 / -1; align-self: start; }
}

@media (max-width: 600px) {
  .catalog-export-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .catalog-export-button { width: 100%; justify-content: center; }
  .catalog-filter-summary { grid-column: auto; }
}

.catalog-export-toolbar { border-top: 1px solid var(--border-color); }
.catalog-filter-toggle { display: none; }
.catalog-filter-select { flex: 0 1 300px; }
.product-card { content-visibility: auto; contain-intrinsic-size: 520px; }
.product-thumb { aspect-ratio: 1 / 1; }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.96), rgba(28, 37, 65, 0.92));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.catalog-pagination-top { display: none; margin-top: 0; margin-bottom: 1.25rem; }
@media (max-width: 768px) { .catalog-pagination-top { display: flex; } }

.catalog-pagination-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 190px;
  color: #FFFFFF;
  font-size: 0.84rem;
}

.catalog-pagination-kicker {
  color: var(--primary-yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
  font-weight: 900;
}

.catalog-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.catalog-page-control,
.catalog-page-number {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #E5E7EB;
  font-size: 0.82rem;
  font-weight: 800;
  transition: var(--transition-fast);
}

.catalog-page-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
}

.catalog-page-number {
  width: 38px;
  padding: 0.45rem;
}

.catalog-page-control:hover:not(:disabled),
.catalog-page-number:hover:not(.active) {
  border-color: var(--primary-yellow);
  color: var(--primary-yellow);
  background: rgba(255, 184, 0, 0.1);
  transform: translateY(-1px);
}

.catalog-page-control:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.catalog-page-number.active {
  border-color: var(--primary-yellow);
  background: var(--primary-yellow);
  color: var(--brand-navy);
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.25);
}

.catalog-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.catalog-page-ellipsis {
  color: var(--text-muted);
  padding: 0 0.1rem;
}

.catalog-result-count {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.product-thumb-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #1F2937;
  cursor: zoom-in;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  background: var(--primary-yellow);
  color: var(--brand-navy);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-brand-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 0.2rem 0.6rem;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-code {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: #FFFFFF;
}

.product-specs-list {
  list-style: none;
  margin-bottom: 1rem;
  flex: 1;
}

.product-specs-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.product-specs-list li i {
  color: var(--primary-yellow);
  font-size: 0.75rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  gap: 0.5rem;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.product-view-btn {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-view-btn:hover {
  color: var(--primary-yellow);
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-family: 'Chivo', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-yellow);
}

.product-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.add-quote-btn {
  padding: 0.6rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-quote-btn:hover {
  background: var(--primary-yellow);
  color: var(--brand-navy);
  border-color: var(--primary-yellow);
}

/* Paint Coverage Calculator Section */
.calculator-section {
  padding: 3.25rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0F172A 100%);
  border-y: 1px solid var(--border-color);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calculator-section .calc-card {
  padding: 2.1rem;
}

.calculator-section .calc-form-group {
  margin-bottom: 1rem;
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.credit-promo-block {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1.6rem;
  border: 1px solid rgba(246, 191, 36, 0.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(11, 31, 55, 0.9), rgba(20, 45, 76, 0.72));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.credit-promo-copy h3 {
  margin: 0.65rem 0 0.55rem;
  color: var(--text-main);
  font-size: 1.45rem;
}

.credit-promo-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.credit-promo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 1rem;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
}

.credit-promo-points i {
  margin-right: 0.3rem;
  color: var(--primary-yellow);
}

.credit-promo-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(3, 12, 24, 0.34);
}

.credit-promo-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(246, 191, 36, 0.16);
  color: var(--primary-yellow);
}

.credit-promo-action strong {
  color: var(--text-main);
  font-size: 1rem;
}

.credit-promo-action > span {
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.calc-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--primary-yellow);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-yellow-glow);
}

.calc-measurement-input {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.55);
  color: var(--text-main);
  font-family: 'Chivo', sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
}

.calc-measurement-input:hover {
  border-color: var(--primary-yellow);
}

body.light-theme .calc-input,
body.light-theme .calc-select {
  background: #FFFDF8;
  border-color: #B8B0A3;
  color: #1B2638;
}

body.light-theme .calc-measurement-input {
  background: #FFF7D6;
  border-color: var(--primary-yellow-hover);
  color: #1B2638;
}

.calc-input::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}

.calc-results-box {
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.calc-result-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.calc-result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-result-val {
  font-family: 'Chivo', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-yellow);
}

/* RFQ Side Drawer */
.rfq-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.rfq-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rfq-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.rfq-drawer-overlay.active .rfq-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.drawer-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.drawer-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rfq-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.rfq-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.rfq-item-info {
  flex: 1;
}

.rfq-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.rfq-item-price {
  font-size: 0.85rem;
  color: var(--primary-yellow);
  font-weight: 600;
}

.rfq-qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  width: 24px;
  text-align: center;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rfq-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Store Info & Contact Section */
.store-section {
  padding: 3.25rem 0 4rem;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* The branch map belongs with the inquiry/contact panel so the two lower cards
   retain a clean, parallel layout. */
#store-info > .store-grid > .info-card:first-child > .premium-map-card {
  display: none;
}

.contact-map-card {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.store-contact-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.delivery-calculator-card {
  margin-top: 1.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 184, 0, 0.38);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), rgba(7, 19, 39, 0.04));
}

.delivery-calculator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.delivery-calculator-heading .section-tag {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.delivery-calculator-note {
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.delivery-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(120px, 0.75fr);
  gap: 0.75rem;
}

.delivery-calculator-grid .calc-form-group {
  margin-bottom: 0;
}

.delivery-calculator-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
}

.delivery-calculator-result span {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.delivery-calculator-result strong {
  flex: 0 0 auto;
  color: var(--primary-yellow);
  font-family: 'Chivo', sans-serif;
  font-size: 1.25rem;
  white-space: nowrap;
}

.delivery-calculator-help {
  margin-top: 0.65rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  line-height: 1.45;
}

.premium-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.premium-map-heading .section-tag {
  margin: 0;
}

.premium-map-directions {
  white-space: nowrap;
}

.premium-map-address {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hours-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--primary-yellow);
}

.location-map-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 184, 0, 0.06);
}

.location-map-note > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.location-map-note strong { color: var(--primary-yellow); }
.location-map-note span { color: var(--text-muted); font-size: 0.86rem; }
.location-map-note .btn-secondary { white-space: nowrap; }

.premium-map-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.premium-map-frame {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, var(--brand-slate), var(--brand-navy));
}

.premium-map-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 25, 0) 45%, rgba(7, 11, 25, 0.82) 100%);
  content: '';
  pointer-events: none;
}

.premium-map-frame iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  filter: saturate(0.88) contrast(1.04);
}

.premium-map-overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.premium-map-overlay strong {
  font-family: 'Chivo', sans-serif;
  font-size: 1.05rem;
}

.premium-map-overlay > span:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.premium-map-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-yellow);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-map-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.premium-map-footer span:first-child {
  color: var(--primary-yellow);
}

@media (max-width: 600px) {
  .credit-inquiry-card {
    padding: 1.25rem;
  }

  .credit-inquiry-grid,
  .credit-inquiry-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .premium-map-frame,
  .premium-map-frame iframe {
    min-height: 225px;
    height: 225px;
  }

  .premium-map-footer {
    flex-direction: column;
    gap: 0.25rem;
  }

  .premium-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .premium-map-address {
    text-align: left;
  }

  .delivery-calculator-grid {
    grid-template-columns: 1fr;
  }

  .delivery-calculator-note {
    font-size: 0.62rem;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.credit-inquiry-card {
  max-width: 760px;
}

.credit-inquiry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.credit-inquiry-header h2 {
  margin: 0.2rem 0 0.35rem;
}

.credit-inquiry-header p,
.credit-inquiry-note {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.credit-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.credit-inquiry-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.credit-inquiry-actions > * {
  flex: 1;
}

.credit-inquiry-note {
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* Product Detail View */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3, 6, 12, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.product-detail-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-detail-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  width: min(82vw, 1480px);
  height: min(86vh, 920px);
  max-width: calc(100vw - 2.5rem);
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: var(--transition-normal);
}

.product-detail-overlay.active .product-detail-modal {
  transform: translateY(0) scale(1);
}

.product-detail-close {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 11, 25, 0.72);
  color: #FFFFFF;
  font-size: 1rem;
}

.product-detail-media {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at center, #263248 0%, #0B1020 72%);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  max-height: 780px;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform-origin: center;
  will-change: transform;
  transition: transform 180ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

.product-detail-media.is-zoomed { cursor: grab; }
.product-detail-media.is-zoomed img { transition: none; cursor: grab; }
.product-detail-media.is-panning,
.product-detail-media.is-panning img { cursor: grabbing; }
@media (min-width: 769px) {
  .product-detail-media { touch-action: none; }
}
.product-zoom-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(23,49,38,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .28s ease, transform .28s ease;
}
.product-zoom-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }
.product-zoom-gesture { position: relative; display: block; width: 29px; height: 20px; }
.product-zoom-gesture i { position: absolute; top: 2px; width: 9px; height: 16px; border: 2px solid #fff; border-radius: 8px; animation: tidy-pinch 1.15s ease-in-out infinite alternate; }
.product-zoom-gesture i:first-child { left: 2px; transform: rotate(-18deg); }
.product-zoom-gesture i:last-child { right: 2px; transform: rotate(18deg); animation-direction: alternate-reverse; }
@keyframes tidy-pinch { from { margin-inline: 3px; } to { margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .product-zoom-gesture i { animation: none; } }

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(5, 12, 9, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.product-image-lightbox.active { opacity: 1; visibility: visible; }
.product-lightbox-brand {
  position: fixed;
  z-index: 2602;
  top: max(.75rem, env(safe-area-inset-top));
  left: max(.75rem, env(safe-area-inset-left));
  display: flex;
  max-width: min(72vw, 520px);
  align-items: center;
  gap: .75rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(23,49,38,.16);
  border-radius: 14px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  color: #173126;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.product-lightbox-brand img { width: 110px; height: 36px; object-fit: contain; object-position: left center; }
.product-lightbox-brand span,.product-lightbox-brand strong,.product-lightbox-brand small { display:block; min-width:0; }
.product-lightbox-brand strong { font-size:.78rem; letter-spacing:.02em; }
.product-lightbox-brand small { margin-top:.15rem; overflow:hidden; color:#68756f; font-size:.7rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.product-image-lightbox-viewport {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: max(4rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
  background: #fff;
  touch-action: none;
}
.product-image-lightbox-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
  transition: transform 180ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.product-image-lightbox-viewport.is-zoomed img { transition: none; }
.product-image-lightbox-close {
  position: fixed;
  z-index: 2602;
  top: max(.85rem, env(safe-area-inset-top));
  right: max(.85rem, env(safe-area-inset-right));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: #173126;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  font-size: 1.2rem;
}
.product-lightbox-zoom-hint { bottom: max(1.25rem, env(safe-area-inset-bottom)); white-space: nowrap; }
@media (orientation: landscape) and (max-height: 600px) {
  .product-image-lightbox-viewport { padding: .75rem 4.5rem .75rem 1rem; }
  .product-image-lightbox-close { top: .6rem; right: .6rem; }
  .product-lightbox-zoom-hint { bottom: .75rem; }
  .product-lightbox-brand { max-width:58vw; padding:.4rem .65rem; }
  .product-lightbox-brand img { width:88px; height:30px; }
}

.product-detail-content {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(2rem, 3vw, 3.5rem);
}

.product-detail-content h2 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.product-detail-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
}

.product-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-detail-status.out-of-stock {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.product-detail-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-detail-code strong {
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.product-detail-price {
  margin-top: 1rem;
  color: var(--primary-yellow);
  font-family: 'Chivo', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.product-detail-specs {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.product-detail-specs li {
  display: flex;
  gap: 0.55rem;
}

.product-detail-specs i {
  color: var(--primary-yellow);
  margin-top: 0.25rem;
}

.product-detail-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.detail-whatsapp-btn {
  border-color: var(--success);
  color: var(--success);
}

.product-detail-share-btn { border-color: rgba(189,89,62,.35); color: #bd593e; }

/* Signature floating actions shared across the storefront platform */
.floating-back-to-top {
  position: fixed;
  right: 32px;
  bottom: 108px;
  z-index: 99;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  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-yellow);
  color: var(--brand-navy);
  border-color: var(--primary-yellow);
  transform: translateY(-4px);
}

.floating-whatsapp {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success);
  color: #FFFFFF;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.floating-whatsapp::before {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--success);
  border-radius: 50%;
  content: '';
  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; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary-yellow);
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-message {
  color: var(--text-muted);
}

.rfq-discount-toggle-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.customer-remarks-section { padding: 64px 0 76px; background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,244,236,.96)); border-top: 1px solid rgba(17,24,39,.08); }
.customer-remarks-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.customer-remarks-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.customer-remarks-google-link { white-space: nowrap; }
.customer-remarks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.customer-google-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -4px 0 24px; padding: 18px 22px; border: 1px solid rgba(17,24,39,.1); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(17,24,39,.07); }
.customer-google-summary strong { color: var(--text-main); font-size: 2rem; line-height: 1; }
.customer-google-summary-stars { color: var(--primary-yellow); letter-spacing: .1em; }
.customer-google-summary span:not(.customer-google-summary-stars) { color: var(--text-muted); font-weight: 800; }
.customer-google-summary small { margin-left: auto; color: var(--text-muted); font-weight: 800; }
.customer-remark-card { min-height: 170px; padding: 22px; border: 1px solid rgba(17,24,39,.1); border-radius: 16px; background: rgba(255,255,255,.78); box-shadow: 0 14px 34px rgba(17,24,39,.08); }
.customer-remark-stars { color: var(--primary-yellow); letter-spacing: .12em; font-size: .85rem; margin-bottom: 12px; }
.customer-remark-text { color: var(--text-main); line-height: 1.65; font-size: .95rem; margin: 0 0 14px; }
.customer-remark-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.customer-remark-tag { padding: 4px 8px; border-radius: 999px; background: rgba(246, 166, 35, .13); color: var(--text-main); font-size: .7rem; font-weight: 800; }
.customer-remark-customer { color: var(--text-muted); font-size: .8rem; font-weight: 800; }
.customer-review-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.customer-review-author > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.customer-review-author strong, .customer-review-author a { color: var(--text-main); font-size: .86rem; font-weight: 900; }
.customer-review-author span { color: var(--text-muted); font-size: .75rem; }
.customer-review-avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
.customer-review-avatar-fallback { display: grid; place-items: center; background: rgba(17,24,39,.08); color: var(--text-muted); }
.customer-review-source { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--primary-orange); font-size: .78rem; font-weight: 900; }
.customer-google-notice { max-width: 900px; margin: 18px 0 0; color: var(--text-muted); font-size: .76rem; line-height: 1.55; }
.customer-testimonials { margin-top: 42px; padding-top: 34px; border-top: 1px solid rgba(17,24,39,.1); }
.customer-testimonials h3 { margin: 8px 0 20px; color: var(--text-main); font-size: 1.35rem; }
.catalog-viewer-inquiry-placeholder { opacity: .62; cursor: not-allowed; pointer-events: none; }
@media (max-width: 720px) { .customer-remarks-header { align-items: flex-start; flex-direction: column; } .customer-remarks-actions { width: 100%; } .customer-remarks-google-link { flex: 1; justify-content: center; } .customer-google-summary small { width: 100%; margin-left: 0; } }

.footer-brand-line {
  margin-bottom: 0.3rem;
  color: var(--text-main);
  font-family: 'Chivo', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
}

.trademark-notice {
  max-width: 620px;
  margin-top: 0.65rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

@media (max-width: 540px) {
    .footer-links {
        gap: 0.75rem 1rem;
    }
}

.footer-attribution {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-subtle);
  font-size: 0.78rem;
}

.footer-attribution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-attribution a {
  color: var(--primary-yellow);
  font-weight: 700;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.footer-social-links .social-icon-link {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-subtle);
  text-decoration: none;
  filter: grayscale(100%) opacity(0.68);
  transition: filter var(--transition-fast), transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.footer-social-links .social-icon-link:hover {
  color: #FFFFFF;
  border-color: var(--primary-yellow);
  filter: grayscale(0%) opacity(1);
  transform: translateY(-2px) scale(1.08);
}

.footer-social-links .social-icon-link.facebook:hover { background: #1877F2; }
.footer-social-links .social-icon-link.instagram:hover { background: #E4405F; }
.footer-social-links .social-icon-link.tiktok:hover { background: #000000; border-color: #FFFFFF; }
.footer-social-links .social-icon-link.youtube:hover { background: #FF0000; }
.footer-social-links .social-icon-link.linkedin:hover { background: #0A66C2; }
.footer-social-links .social-icon-link.whatsapp:hover { background: #25D366; }

body.light-theme .top-bar {
  background: linear-gradient(90deg, #075A98 0%, #0B477A 50%, #075A98 100%);
  color: rgba(255, 255, 255, 0.9);
}

body.light-theme .site-header {
  border-bottom-color: var(--border-color);
}

body.light-theme .brand-title,
body.light-theme .nav-link:hover,
body.light-theme .nav-link.active,
body.light-theme .product-title,
body.light-theme .add-quote-btn {
  color: var(--text-main);
}

body.light-theme .hero-section,
body.light-theme .catalog-section,
body.light-theme .store-section {
  background: var(--bg-dark);
}

body.light-theme .hero-section::after {
  background:
    linear-gradient(90deg, rgba(7, 15, 34, 0.48) 0%, rgba(7, 15, 34, 0.22) 38%, rgba(7, 15, 34, 0.04) 70%, rgba(7, 15, 34, 0.16) 100%),
    linear-gradient(180deg, rgba(7, 15, 34, 0.01) 0%, rgba(7, 15, 34, 0.24) 100%);
}

body.light-theme .hero-title {
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(3, 10, 24, 0.72);
}

body.light-theme .hero-subtitle,
body.light-theme .stat-label {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(3, 10, 24, 0.72);
}

body.light-theme .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.34);
}

body.light-theme .feature-glass-card {
  background: rgba(7, 19, 39, 0.78);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

body.light-theme .feature-text p {
  color: rgba(255, 255, 255, 0.82);
}

body.light-theme .feature-text h4 {
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(3, 10, 24, 0.62);
}

body.light-theme .catalog-pagination {
  background: linear-gradient(135deg, #1B2638, #30415E);
}

body.light-theme .calculator-section {
  background: linear-gradient(180deg, #E9E4D9 0%, #F1EFEA 100%);
}

body.light-theme .product-thumb-container {
  background: #E8E5DE;
}

body.light-theme .product-thumb {
  background: #FFFDF8;
  border-radius: var(--radius-sm);
}

body.light-theme .product-brand-tag {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(7, 71, 122, 0.24);
  color: #075A98;
  box-shadow: 0 3px 12px rgba(11, 19, 43, 0.16);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1160px) and (min-width: 993px) {
  header nav {
    margin-left: 1rem;
  }

  .nav-links {
    gap: 0.9rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-action-stack {
    min-width: 160px;
  }

  .header-actions .btn-primary {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Keep Trade Desk and the action controls in separate rows at intermediate
   desktop widths. This prevents the final nav item from sitting over Admin
   on laptop and narrow desktop layouts. */
@media (max-width: 1280px) and (min-width: 769px) {
  .header-inner {
    flex-wrap: wrap;
  }

  header nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding-top: 0.75rem;
  }

  .nav-link {
    white-space: nowrap;
    font-size: 0.86rem;
  }
}

@media (max-width: 992px) {
  .hero-grid, .calc-grid, .store-grid {
    grid-template-columns: 1fr;
  }

  .credit-promo-block {
    grid-template-columns: 1fr;
  }

  .flyer-showcase-shell {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .image-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdf-catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .catalog-viewer-overlay {
    align-items: stretch;
    padding: 0;
  }

  .catalog-viewer-shell {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .catalog-viewer-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: calc(68px + env(safe-area-inset-top));
    padding: max(0.55rem, env(safe-area-inset-top)) 0.75rem 0.55rem;
  }

  .catalog-viewer-close-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 1rem;
  }

  .catalog-viewer-brand {
    justify-content: flex-end;
  }

  .catalog-viewer-brand > div {
    display: none;
  }

  .catalog-viewer-brand-logo {
    height: 36px;
    max-width: 128px;
  }

  .catalog-viewer-toolbar .section-tag {
    display: none;
  }

  .catalog-viewer-toolbar h2 {
    max-width: 58vw;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-viewer-page-wrap {
    flex: 1;
    padding: 0.4rem;
    overflow: hidden;
  }

  .catalog-viewer-page {
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    border-radius: 0.7rem;
  }

  .catalog-viewer-page img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .catalog-viewer-footer {
    display: block;
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem max(0.55rem, env(safe-area-inset-bottom));
  }

  .catalog-viewer-footer > p,
  .catalog-viewer-tools,
  #catalog-viewer-download {
    display: none;
  }

  .catalog-viewer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.6rem;
  }

  .catalog-viewer-controls > * {
    min-height: 52px;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    padding: 0.7rem 0 0.85rem;
  }

  header nav {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .brand-logo-image {
    width: 150px;
    height: 50px;
  }

  .brand-text-wrapper {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 184, 0, 0.1);
  }

  .header-actions {
    margin-left: auto;
    gap: 0.5rem;
  }

  .header-action-stack {
    min-width: 0;
  }

  .theme-toggle-btn span,
  .rfq-trigger-btn span:not(.rfq-badge) {
    display: none;
  }

  .theme-toggle-btn,
  .rfq-trigger-btn {
    padding: 0.65rem 0.75rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
  }

  .product-detail-modal {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }

  .product-detail-media {
    min-height: 250px;
    max-height: 38vh;
    padding: 1.25rem;
  }

  .product-detail-content {
    padding: 1.5rem;
  }

  .floating-back-to-top {
    right: 20px;
    bottom: 88px;
    width: 44px;
    height: 44px;
  }

  .floating-whatsapp {
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.75rem;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 1rem;
  }

  .footer-attribution-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-social-links {
    margin-left: 0;
    justify-content: flex-start;
  }

  .top-bar-inner {
    align-items: stretch;
  }

  .top-bar-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .top-bar-status {
    align-self: flex-start;
  }

  .image-library-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .image-library-card img {
    height: 135px;
  }

  .image-library-card span {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.6rem;
    font-size: 0.78rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-thumb-container {
    height: 220px;
  }

  .product-footer {
    align-items: flex-end;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.65rem;
  }

  .location-map-note { align-items: flex-start; flex-direction: column; }
  .location-map-note .btn-secondary { width: 100%; }

  .store-contact-actions {
    flex-direction: column;
  }

  .store-contact-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* BUCO Lephalale light-only brand layer */
:root,
body.light-theme {
  --primary-yellow: #F7941D;
  --primary-yellow-hover: #D8750D;
  --primary-yellow-glow: rgba(247, 148, 29, 0.24);
  --brand-navy: #3A3A36;
  --brand-slate: #5A5A53;
  --brand-blue: #77776D;
  --brand-accent: #F7941D;
  --primary-green: #F7941D;
  --accent-amber: #F7941D;
  --primary-red: #F7941D;
  --bg-dark: #EEEDE5;
  --bg-surface: #FCFBF5;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-glass: rgba(252, 251, 245, 0.94);
  --text-main: #30302C;
  --text-muted: #62625A;
  --text-subtle: #83837A;
  --text-dark: #30302C;
  --border-color: #D5D5CA;
  --border-highlight: rgba(247, 148, 29, 0.42);
  --success: #16834E;
  --warning: #D8750D;
  --shadow-sm: 0 2px 8px rgba(58, 58, 54, 0.08);
  --shadow-md: 0 8px 24px rgba(58, 58, 54, 0.12);
  --shadow-lg: 0 16px 48px rgba(58, 58, 54, 0.16);
  --shadow-glow: 0 0 30px rgba(247, 148, 29, 0.18);
}

body.light-theme {
  background: var(--bg-dark);
}

.brand-logo-image {
  width: 164px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.brand-title,
.section-tag,
.product-brand-tag {
  color: var(--primary-green) !important;
}

.site-header,
.top-bar {
  border-color: rgba(247, 148, 29, 0.24);
}

.top-bar-status .status-badge.open {
  border-color: rgba(247, 148, 29, 0.5);
  color: #B45C08;
}

.hero-section::before {
  background: url('assets/buco-hero-banner.png') center / cover no-repeat;
  opacity: 1;
  filter: saturate(1.08) brightness(1.06);
}

.hero-section::after {
  background:
    linear-gradient(90deg, rgba(22, 24, 23, 0.42) 0%, rgba(22, 24, 23, 0.22) 42%, rgba(22, 24, 23, 0.08) 78%, rgba(22, 24, 23, 0.18) 100%),
    linear-gradient(180deg, rgba(22, 24, 23, 0.02) 0%, rgba(22, 24, 23, 0.18) 82%, rgba(22, 24, 23, 0.38) 100%);
}

.highlight,
.hero-title .highlight {
  color: var(--primary-yellow) !important;
}

.btn-primary {
  color: #17324D;
  background: linear-gradient(135deg, #F7941D 0%, #E27E11 100%);
  box-shadow: 0 5px 16px rgba(247, 148, 29, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #FFA842 0%, #E88919 100%);
  color: #17324D;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0, 122, 61, 0.06);
}

.brand-pill:hover,
.brand-pill:focus-visible {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0, 122, 61, 0.07);
}

.brand-strip {
  background: #3A3A36;
}

.catalog-section,
.store-section,
.calculator-section,
.pdf-catalogs-section {
  background: var(--bg-dark);
}

.feature-icon,
.premium-map-kicker {
  color: var(--primary-green);
}

.floating-whatsapp {
  background: var(--success) !important;
}

@media (max-width: 700px) {
  .brand-logo-image { width: 138px; }
}

/* The supplied BUCO reference uses a compact orange tile rather than a blue badge. */
.brand-logo {
  align-items: center;
  min-height: 84px;
}

.brand-logo-image {
  width: 82px;
  height: 84px;
  max-height: 84px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.top-bar {
  background: #3A3A36;
  color: #fff;
}

body.light-theme .top-bar {
  background: #3A3A36;
  color: #fff;
}

.top-bar a,
.top-bar-item i {
  color: #F7941D;
}

body.light-theme .hero-section::after {
  background:
    linear-gradient(90deg, rgba(22, 24, 23, 0.42) 0%, rgba(22, 24, 23, 0.22) 42%, rgba(22, 24, 23, 0.08) 78%, rgba(22, 24, 23, 0.18) 100%),
    linear-gradient(180deg, rgba(22, 24, 23, 0.02) 0%, rgba(22, 24, 23, 0.18) 82%, rgba(22, 24, 23, 0.38) 100%);
}

@media (min-width: 901px) {
  .header-inner {
    min-height: 116px;
    padding-bottom: 1.55rem;
  }

  .hero-section {
    min-height: 760px;
  }
}

.brand-strip .brand-pill,
.brand-strip .brand-pill-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.brand-strip .brand-pill:hover,
.brand-strip .brand-pill:focus-visible {
  color: #F7941D;
  border-color: #F7941D;
  background: rgba(247, 148, 29, 0.12);
}

@media (max-width: 700px) {
  .brand-logo-image { width: 68px; height: 72px; }
}

/* BUCO reference banner pass: match the supplied 1440px composition while
   keeping the storefront's controls and department links live HTML. */
@media (min-width: 901px) {
  .site-header > .container {
    max-width: 1392px;
  }

  .site-header .header-inner {
    min-height: 146px;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .site-header .brand-logo {
    min-height: 94px;
  }

  .site-header .brand-logo-image {
    width: 86px;
    height: 94px;
  }

  .hero-section {
    min-height: 760px;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .hero-grid {
    width: 100%;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 2.8rem;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-visual {
    transform: translateY(-34px);
  }

  .feature-glass-card {
    min-height: 120px;
  }
}

body.light-theme .hero-section::after {
  background:
    linear-gradient(90deg, rgba(22, 24, 23, 0.24) 0%, rgba(22, 24, 23, 0.12) 42%, rgba(22, 24, 23, 0.04) 78%, rgba(22, 24, 23, 0.14) 100%),
    linear-gradient(180deg, rgba(22, 24, 23, 0.03) 0%, rgba(22, 24, 23, 0.20) 84%, rgba(22, 24, 23, 0.30) 100%);
}

/* BUCO trust tag: keep the orange accent while preserving readability over
   both the bright construction sky and darker foreground imagery. */
.hero-tag {
  color: #FFFFFF;
  background: rgba(36, 38, 36, 0.72);
  border-color: rgba(247, 148, 29, 0.86);
  box-shadow: 0 8px 22px rgba(20, 22, 21, 0.24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.hero-tag i { color: #F7941D; }

.hero-tag:hover,
.hero-tag:focus-within {
  background: rgba(36, 38, 36, 0.84);
  border-color: #FFFFFF;
}

/* High-contrast trade-desk surfaces: orange accents on readable charcoal. */
.credit-promo-block {
  color: #FFFFFF;
  background: linear-gradient(135deg, #3A3A36, #5A5A53);
  border-color: rgba(247, 148, 29, 0.62);
}

.credit-promo-copy h3,
.credit-promo-points,
.credit-promo-action strong {
  color: #FFFFFF !important;
}

.credit-promo-copy p,
.credit-promo-action > span {
  color: rgba(255, 255, 255, 0.88) !important;
}

.credit-promo-action {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
}

.credit-inquiry-card {
  color: #FFFFFF;
  background: linear-gradient(145deg, #3A3A36, #5A5A53);
  border-color: rgba(247, 148, 29, 0.62);
}

.credit-inquiry-card h2,
.credit-inquiry-card .calc-label {
  color: #FFFFFF !important;
}

.credit-inquiry-card .credit-inquiry-header p,
.credit-inquiry-card .credit-inquiry-note {
  color: rgba(255, 255, 255, 0.88) !important;
}

.credit-inquiry-card .calc-input,
.credit-inquiry-card .calc-select {
  background: rgba(255, 255, 255, 0.98);
  color: #30302C;
  border-color: rgba(255, 255, 255, 0.58);
}
.floating-whatsapp{right:30px;bottom:30px;width:60px;height:60px;padding:0;border:0;border-radius:50%;background:#25D366!important;color:#fff;box-shadow:0 4px 20px rgba(37,211,102,.4);font-size:2rem}.floating-whatsapp:hover{background:#25D366!important;color:#fff;transform:scale(1.1);box-shadow:0 4px 20px rgba(37,211,102,.4)}.floating-whatsapp::before{inset:-6px;border:2px solid #25D366;border-radius:50%;opacity:.6;animation:shared-whatsapp-pulse 2s infinite}.floating-whatsapp>.fa-whatsapp{font-size:2rem;line-height:1}@keyframes shared-whatsapp-pulse{0%{transform:scale(.95);opacity:.8}100%{transform:scale(1.3);opacity:0}}@media(max-width:700px){.floating-whatsapp{right:20px;bottom:20px;width:54px;height:54px;font-size:1.75rem}.floating-whatsapp>.fa-whatsapp{font-size:1.75rem}}
.floating-whatsapp{display:grid!important;place-items:center;align-content:center;justify-content:center}.floating-whatsapp>.fa-whatsapp{display:grid;width:1em;height:1em;margin:0;padding:0;place-items:center;line-height:1!important;text-align:center}

/* Tidy Planet mobile catalogue-first experience */
.mobile-menu-heading,.mobile-menu-quote-link{display:none}
.pwa-install-link{display:none}
@media(max-width:768px){
html,body{max-width:100%;overflow-x:clip}
body{padding-top:62px}
body.mobile-nav-open{overflow:hidden}
body.mobile-nav-open::before{content:"";position:fixed;inset:0;z-index:1090;background:rgba(13,23,19,.58);backdrop-filter:blur(3px)}
.top-bar,.hero-section,.brand-strip,.image-library-section{display:none!important}
.site-header{position:fixed;top:0;right:0;left:0;z-index:1100;width:100%;box-shadow:0 8px 24px rgba(23,33,29,.1)}
.header-inner{min-height:62px;height:62px;padding:.4rem .8rem;flex-wrap:nowrap;gap:.5rem}
.brand-logo{flex:1 1 auto;min-width:0}.brand-logo-image{width:138px;height:40px}
header nav{order:3;margin-left:0}.mobile-menu-toggle{position:relative;z-index:1120;width:40px;height:40px;margin:0;padding:0;border:1px solid rgba(23,49,38,.12);border-radius:50%;background:#173126;color:#fff;box-shadow:0 5px 14px rgba(23,49,38,.16)}
.nav-links,.nav-links.mobile-open{position:fixed;top:0;right:0;bottom:auto;z-index:1110;display:flex;width:min(88vw,350px);height:100dvh;max-height:none;padding:5rem 1rem max(1.25rem,env(safe-area-inset-bottom));gap:.3rem;overflow-y:auto;border:0;border-radius:22px 0 0 22px;background:#fffaf1;box-shadow:-20px 0 50px rgba(23,33,29,.22);transform:translateX(104%);visibility:hidden;transition:transform 220ms ease,visibility 220ms ease}
.nav-links.mobile-open{transform:translateX(0);visibility:visible}.mobile-menu-heading,.mobile-menu-quote-link,.mobile-account-link,.pwa-install-link:not([hidden]){display:block}
.nav-links>li{flex:0 0 auto;width:100%}.mobile-menu-heading{margin:0 0 .75rem;padding:0 .75rem 1rem;border-bottom:1px solid rgba(23,49,38,.12)}
.mobile-menu-heading span,.mobile-menu-heading small{display:block}.mobile-menu-heading span{color:#173126;font-size:1.15rem;font-weight:900}.mobile-menu-heading small{margin-top:.25rem;color:#68756f;font-size:.78rem;line-height:1.45}
.nav-link,.mobile-menu-quote-link .nav-link{display:flex;width:100%;align-items:center;gap:.65rem;padding:.9rem .8rem;border:0;border-radius:12px;background:transparent;color:#173126;font:inherit;font-weight:750;text-align:left}
.pwa-install-link .nav-link{border:1px solid rgba(23,49,38,.14);background:#f4efe6;color:#173126}
.mobile-menu-quote-link{margin-top:auto;padding-top:1rem}.mobile-menu-quote-link .nav-link{justify-content:center;background:#bf543b;color:#fff}
.header-actions{order:2;margin-left:0}.header-actions .admin-link,.header-action-stack>.btn-primary{display:none}.header-action-stack{display:block;min-width:0}
.header-action-stack .rfq-trigger-btn,.rfq-trigger-btn{width:40px;height:40px;justify-content:center;padding:0;border:0;border-radius:50%;background:#bd593e;color:#fff;box-shadow:0 5px 14px rgba(189,89,62,.2)}.rfq-trigger-btn i{color:#fff!important}.rfq-trigger-btn>span:not(.rfq-badge){display:none}.rfq-badge{top:-3px;right:-3px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;background:#173126;color:#fff;font-size:.65rem}
header>.shared-account-link{display:none!important}
.catalog-section{padding:1.25rem 0 2.75rem;scroll-margin-top:64px}.catalog-section .section-header{margin-bottom:1rem;text-align:left}.catalog-section .section-tag{font-size:.67rem}.catalog-section .section-title{margin-top:.35rem;font-size:clamp(1.55rem,7vw,2rem);line-height:1.08}.catalog-section .section-desc{display:none}
.filter-wrapper{position:sticky;top:62px;z-index:30;margin:0 -1rem 1rem;padding:.55rem 1rem;border-radius:0;background:rgba(250,246,238,.97);box-shadow:0 8px 18px rgba(23,33,29,.08);backdrop-filter:blur(12px)}
.catalog-filter-toggle{display:flex;width:100%;min-height:44px;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem .8rem;border:1px solid rgba(23,49,38,.13);border-radius:12px;background:#fff;color:#173126;font-weight:850;text-align:left}.catalog-filter-toggle span{display:flex;align-items:center;gap:.55rem}.catalog-filter-toggle-chevron{transition:transform .2s ease}.filter-wrapper.is-expanded .catalog-filter-toggle-chevron{transform:rotate(180deg)}
.filter-wrapper:not(.is-expanded) .search-bar-row,.filter-wrapper:not(.is-expanded) .category-pills,.filter-wrapper:not(.is-expanded) .catalog-export-toolbar{display:none}.filter-wrapper.is-expanded .search-bar-row{margin-top:.7rem}.filter-wrapper.is-expanded .category-pills{margin-top:.7rem}.filter-wrapper.is-expanded .catalog-export-toolbar{margin-top:.65rem;max-height:min(56dvh,520px);overflow-y:auto;padding-bottom:.35rem}
.category-pills{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}.category-pills::-webkit-scrollbar{display:none}.category-pill{flex:0 0 auto;scroll-snap-align:start}
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.product-card{min-width:0;border-radius:16px;box-shadow:0 5px 16px rgba(23,33,29,.07)}.product-card:hover{transform:none}
.product-thumb-container{height:clamp(145px,43vw,190px);background:#fff}.product-thumb{padding:.5rem}.product-brand-tag,.product-specs-list,.product-view-btn,.demo-watermark-overlay{display:none!important}
.product-details{padding:.8rem}.product-title{display:-webkit-box;min-height:2.65em;margin-bottom:.35rem;overflow:hidden;color:#173126;font-size:.88rem;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-code{margin-bottom:.55rem;font-size:.63rem}
.product-footer{align-items:stretch;flex-direction:column;padding-top:.65rem}.product-price{font-size:1rem}.product-unit,.product-availability{font-size:.65rem}.add-quote-btn{width:100%;justify-content:center;padding:.62rem .45rem;font-size:.72rem}
.catalog-pagination{align-items:stretch;flex-direction:column;margin-top:1.25rem;padding:1rem;border:1px solid rgba(255,255,255,.16);border-radius:18px;box-shadow:0 8px 22px rgba(23,33,29,.12)}body.light-theme .catalog-pagination{background:linear-gradient(135deg,#1b2b44,#284063)}.catalog-pagination-kicker{color:#f2a07e}.catalog-pagination-summary,.catalog-pagination-summary strong,.catalog-page-position{color:#fff}.catalog-pagination-summary strong{font-size:.98rem}.catalog-page-position{display:block;margin-top:.2rem;font-size:.8rem;font-weight:800}.catalog-pagination-controls{justify-content:space-between;gap:.65rem}.catalog-page-numbers{display:none}.catalog-page-control{flex:1;justify-content:center;border-color:rgba(255,255,255,.25);background:#fff;color:#173126}.catalog-page-control:disabled{background:rgba(255,255,255,.42);color:#26384d;opacity:1}.catalog-page-control:not(:disabled):last-child{background:#173f2d;color:#fff}
.product-detail-overlay{align-items:flex-end;padding:0}.product-detail-modal,.product-detail-overlay.active .product-detail-modal{position:absolute;left:0;right:0;bottom:0;top:auto;display:flex;width:100%;height:min(94dvh,900px);max-width:none;max-height:calc(100dvh - 6px);flex-direction:column;overflow:hidden;border-radius:22px 22px 0 0;transform:none!important}.product-detail-media{flex:0 0 clamp(260px,44dvh,420px);width:100%;min-height:0;height:auto;max-height:none;padding:1rem;background:#fff}.product-detail-media img{width:100%;height:100%;max-height:none;object-fit:contain}.product-detail-content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:1rem 1.15rem max(1.25rem,env(safe-area-inset-bottom));background:#fffaf1;color:#173126}.product-detail-close{position:absolute;top:.75rem;right:.75rem;bottom:auto;background:#173126}.product-detail-content h2{color:#173126;font-size:1.35rem}.product-detail-content h3{margin-top:1rem;color:#173126}.product-detail-actions{position:sticky;bottom:0;margin:1rem -.25rem -.25rem;padding:.75rem .25rem .25rem;background:linear-gradient(180deg,transparent,#fffaf1 22%)}
.pdf-catalog-grid{gap:.75rem}.pdf-catalog-card{grid-template-columns:auto minmax(0,1fr);min-height:0;padding:.9rem;border-radius:16px}.pdf-catalog-action{grid-column:2;white-space:normal}.pdf-catalog-copy strong{font-size:.9rem}.pdf-catalog-copy span{font-size:.74rem;line-height:1.4}
}
@media(max-width:360px){.product-grid{gap:.55rem}.product-details{padding:.65rem}.product-thumb-container{height:138px}}

@media (max-width: 768px) {
  .catalog-section .section-header {
    display: none;
  }

  .mobile-catalog-hero {
    position: relative;
    display: block;
    min-height: clamp(292px, 76vw, 360px);
    margin: -1.25rem -1rem 1rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(23, 49, 38, 0.12);
    background: #f7ecdd;
    isolation: isolate;
  }

  .mobile-catalog-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .mobile-catalog-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(250, 243, 232, 0.99) 0%, rgba(250, 243, 232, 0.96) 35%, rgba(250, 243, 232, 0.72) 49%, rgba(250, 243, 232, 0.08) 67%);
    pointer-events: none;
  }

  .mobile-catalog-hero-content {
    display: flex;
    width: min(57%, 260px);
    min-height: clamp(292px, 76vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.15rem 0 1.15rem 1rem;
    color: #173126;
  }

  .mobile-catalog-hero-kicker {
    margin-bottom: 0.55rem;
    color: #b64f35;
    font-size: clamp(0.65rem, 2.5vw, 0.78rem);
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .mobile-catalog-hero-content h2 {
    max-width: 8.5em;
    margin: 0;
    color: #173126;
    font-size: clamp(1.65rem, 7.1vw, 2.25rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 0.98;
  }

  .mobile-catalog-hero-content p {
    margin: 0.72rem 0 0;
    color: #28483b;
    font-size: clamp(0.72rem, 2.6vw, 0.86rem);
    font-weight: 750;
    line-height: 1.35;
  }

  .mobile-catalog-hero-cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.68rem 0.88rem;
    border-radius: 10px;
    background: #a75436;
    color: #fff;
    box-shadow: 0 8px 18px rgba(181, 80, 43, 0.24);
    font-size: clamp(0.74rem, 2.75vw, 0.88rem);
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-catalog-hero-cta:focus-visible {
    outline: 3px solid #173126;
    outline-offset: 3px;
  }
}

@media (max-width: 390px) {
  .mobile-catalog-hero {
    min-height: 286px;
  }

  .mobile-catalog-hero-content {
    width: 58%;
    min-height: 286px;
    padding-left: 0.85rem;
  }

  .mobile-catalog-hero-shade {
    background: linear-gradient(90deg, rgba(250, 243, 232, 0.99) 0%, rgba(250, 243, 232, 0.96) 38%, rgba(250, 243, 232, 0.68) 52%, rgba(250, 243, 232, 0.06) 70%);
  }
}
/* Product size and variation selection */
.product-options-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  margin-top: 0.45rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-yellow);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Shared commercial card geometry. Themes may restyle these zones, but must
   preserve their alignment contract so mixed titles, options and prices line up. */
.product-options-slot {
  display: flex;
  min-height: 2.45rem;
  align-items: flex-start;
}

@media (min-width: 769px) {
  .product-details {
    min-height: 320px;
  }

  .product-title {
    display: -webkit-box;
    min-height: 3.35rem;
    max-height: 3.35rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-code {
    min-height: 2.05rem;
    max-height: 2.05rem;
    overflow: hidden;
  }

  .product-footer {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) minmax(132px, 154px);
    align-items: end;
    margin-top: auto;
    gap: 0.75rem;
  }

  .product-price-wrapper {
    min-width: 0;
    align-self: end;
  }

  .product-price {
    display: block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .product-unit {
    display: block;
    min-height: 2.2em;
    margin-top: 0.2rem;
    line-height: 1.1;
  }

  .product-card-actions {
    width: 100%;
    min-width: 0;
  }

  .product-availability {
    display: flex;
    min-height: 2.5em;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
  }

  .product-view-btn {
    min-height: 1.25rem;
  }

  .add-quote-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    white-space: nowrap;
  }
}

.product-detail-variant {
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.product-detail-variant label {
  display: block;
  margin-bottom: 0.45rem;
  color: #fff;
  font-weight: 800;
}

.product-detail-variant select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-highlight);
  border-radius: 9px;
  background: var(--bg-dark);
  color: #fff;
  font: inherit;
}

.product-detail-variant p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.product-detail-content .product-detail-variant {
  background: #f4efe6;
  border-color: rgba(23, 49, 38, 0.16);
}

.product-detail-content .product-detail-variant label {
  color: #173126;
}

.product-detail-content .product-detail-variant select {
  background: #ffffff;
  color: #173126;
  border-color: rgba(189, 89, 62, 0.45);
}

.product-detail-content .product-detail-variant p {
  color: #68756f;
}

@media (max-width: 768px) {
  .product-options-badge { font-size: 0.66rem; }
  .product-detail-variant { margin: 0.65rem 0; padding: 0.7rem; }
}

/* V19 mobile catalogue hierarchy and controls */
@media (max-width: 768px) {
  .mobile-catalog-hero,
  .mobile-catalog-hero-content {
    min-height: clamp(188px, 49vw, 252px);
  }

  .mobile-catalog-hero-content {
    width: 54%;
    padding: 0.75rem 0 0.75rem 1rem;
  }

  .mobile-catalog-hero-kicker {
    margin-bottom: 0.38rem;
    font-size: clamp(0.58rem, 2vw, 0.68rem);
  }

  .mobile-catalog-hero-content h2 {
    max-width: 8.25em;
    font-size: clamp(1.28rem, 5.4vw, 1.68rem);
    line-height: 1;
  }

  .mobile-catalog-hero-content p {
    margin-top: 0.52rem;
    font-size: clamp(0.62rem, 2.15vw, 0.72rem);
  }

  .mobile-catalog-hero-cta {
    min-height: 36px;
    margin-top: 0.68rem;
    padding: 0.52rem 0.72rem;
    border-radius: 9px;
    font-size: clamp(0.66rem, 2.35vw, 0.76rem);
  }

  .filter-wrapper {
    position: relative;
    top: auto;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    margin: 0 -1rem 0.2rem;
    padding: 0.78rem 1rem 0.45rem;
    column-gap: 0.5rem;
    row-gap: 0.42rem;
    border-width: 1px 0;
    background: #faf6ee;
    box-shadow: 0 5px 15px rgba(23, 49, 38, 0.05);
    backdrop-filter: none;
  }

  .filter-wrapper .search-bar-row,
  .filter-wrapper:not(.is-expanded) .search-bar-row {
    order: 1;
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .filter-wrapper .category-pills,
  .filter-wrapper:not(.is-expanded) .category-pills {
    order: 2;
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding: 0 0 0.12rem;
  }

  .catalog-filter-toggle {
    order: 3;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 72px;
    min-height: 46px;
    justify-content: center;
    gap: 0;
    padding: 0.42rem 0.55rem;
    border-color: #a75436;
    border-radius: 14px;
    background: #a75436;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
    box-shadow: 0 5px 14px rgba(167, 84, 54, 0.2);
  }

  .catalog-filter-toggle > span {
    gap: 0.35rem;
  }

  .catalog-filter-toggle-chevron {
    display: none;
  }

  .filter-wrapper .catalog-export-toolbar {
    order: 4;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .catalog-filter-toggle-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .filter-wrapper.is-expanded .catalog-export-toolbar {
    margin-top: 0.1rem;
  }

  .search-input-group {
    min-height: 46px;
  }

  .search-input {
    min-height: 46px;
    padding-left: 2.75rem;
    border-color: rgba(23, 49, 38, 0.18);
    border-radius: 15px;
    background: #fff;
    color: #173126;
    font-size: 0.84rem;
    box-shadow: 0 4px 12px rgba(23, 49, 38, 0.04);
  }

  .category-pills {
    gap: 0.42rem;
  }

  .category-pill {
    min-height: 34px;
    padding: 0.42rem 0.68rem;
    border-color: rgba(23, 49, 38, 0.15);
    background: #fff;
    color: #324b40;
    font-size: 0.7rem;
    font-weight: 750;
  }

  .category-pill.active {
    border-color: #a75436;
    background: #a75436;
    color: #fff;
  }

  .catalog-pagination,
  body.light-theme .catalog-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
    padding: 0.68rem 0.72rem;
    border: 1px solid rgba(23, 49, 38, 0.15);
    border-radius: 15px;
    background: #fffaf1;
    box-shadow: 0 6px 16px rgba(23, 49, 38, 0.07);
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .catalog-pagination-top {
    margin-top: 0;
    margin-bottom: 0.85rem;
  }

  .catalog-pagination-summary {
    min-width: 0;
    gap: 0.08rem;
    color: #173126;
  }

  .catalog-pagination-kicker {
    display: none;
  }

  .catalog-pagination-summary strong,
  .catalog-page-position {
    color: #173126;
  }

  .catalog-pagination-summary strong {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .catalog-page-position {
    margin-top: 0.08rem;
    font-size: 0.66rem;
    color: #68756f;
  }

  .catalog-pagination-controls {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .catalog-page-control {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.46rem 0.58rem;
    border-color: rgba(23, 49, 38, 0.16);
    background: #fff;
    color: #173126;
    font-size: 0.68rem;
  }

  .catalog-page-control:disabled {
    background: #f0ece4;
    color: #8a958f;
  }

  .catalog-page-control:not(:disabled):last-child {
    border-color: #a75436;
    background: #a75436;
    color: #fff;
  }
}

@media (max-width: 390px) {
  .mobile-catalog-hero,
  .mobile-catalog-hero-content {
    min-height: 188px;
  }

  .mobile-catalog-hero-content {
    width: 55%;
    padding-left: 0.8rem;
  }

  .catalog-page-control span {
    display: none;
  }

  .catalog-page-control {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
}
