/* ============================================================
   legrand-style.css  —  Megastandard × Legrand brand section
   Official Legrand colors: #E2001A (red), #1A1A1A (near-black)
   ============================================================ */

:root {
  --lg-red:        #E2001A;
  --lg-red-dark:   #B5001A;
  --lg-black:      #1A1A1A;
  --lg-dark:       #111111;
  --lg-gray:       #F4F4F4;
  --lg-gray-med:   #DEDEDE;
  --lg-white:      #FFFFFF;
  --lg-text:       #222222;
  --lg-muted:      #666666;
  --lg-shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --lg-shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --lg-shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --lg-shadow-red: 0 4px 20px rgba(226,0,26,0.25);
  --lg-radius-sm:  6px;
  --lg-radius-md:  12px;
  --lg-transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── OVERRIDES ───────────────────────────────────────── */
.legrand-page .nav-container,
.legrand-page nav {
  margin-bottom: 0 !important;
}

/* ── HERO ──────────────────────────────────────────── */
.lg-hero {
  background: linear-gradient(135deg, #111 0%, #2a0008 50%, #1a1a1a 100%);
  padding: 90px 24px 70px;
  position: relative;
  overflow: hidden;
  /* No margin-top gap — navbar border handles separation */
  margin-top: 0;
}
.lg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 50%, rgba(226,0,26,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 600px 300px at 80% 30%, rgba(226,0,26,0.10) 0%, transparent 70%);
}
.lg-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-red), transparent);
}
.lg-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.lg-hero-wordmark {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  font-family: 'Montserrat', 'Inter', sans-serif;
  flex-shrink: 0;
}
.lg-hero-wordmark em { font-style: normal; color: var(--lg-red); }
.lg-hero-content { flex: 1; min-width: 280px; }
.lg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226,0,26,0.15);
  border: 1px solid rgba(226,0,26,0.4);
  color: #ff6677;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.lg-hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--lg-red);
  border-radius: 50%;
  animation: lg-pulse 2s infinite;
}
@keyframes lg-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
@keyframes lg-spin { to{transform:rotate(360deg)} }
@keyframes lg-fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.lg-hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}
.lg-hero-title em { font-style: normal; color: var(--lg-red); }
.lg-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 24px;
}
.lg-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.lg-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--lg-red);
  font-family: 'Montserrat', 'Inter', sans-serif;
}
.lg-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.lg-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── BUTTONS ───────────────────────────────────────── */
.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--lg-radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--lg-transition);
  font-family: inherit;
}
.lg-btn-red {
  background: var(--lg-red);
  color: #fff;
  box-shadow: var(--lg-shadow-red);
}
.lg-btn-red:hover {
  background: var(--lg-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(226,0,26,0.4);
  color: #fff;
}
.lg-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.lg-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.lg-btn-ghost {
  background: var(--lg-gray);
  color: var(--lg-text);
  border: 1px solid var(--lg-gray-med);
}
.lg-btn-ghost:hover { background: var(--lg-gray-med); }

/* ── SECTION WRAPPER ───────────────────────────────── */
.lg-section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.lg-section-white { background: #fff; }
.lg-section-gray  { background: var(--lg-gray); }
.lg-section-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lg-red); margin-bottom: 8px;
}
.lg-section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: var(--lg-black);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  font-family: 'Montserrat', 'Inter', sans-serif;
}
.lg-section-sub { font-size: 16px; color: var(--lg-muted); max-width: 600px; }
.lg-section-header { margin-bottom: 36px; }

/* ── CATEGORY GRID ─────────────────────────────────── */
.lg-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 16px;
}
.lg-cat-card {
  background: #fff;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-md);
  padding: 28px 20px 22px;
  text-decoration: none;
  color: var(--lg-text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: var(--lg-transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: lg-fadeUp 0.4s ease both;
}
.lg-cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lg-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.lg-cat-card:hover::after { transform: scaleX(1); }
.lg-cat-card:hover {
  border-color: var(--lg-red);
  box-shadow: var(--lg-shadow-md);
  transform: translateY(-4px);
}
.lg-cat-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #fff0f1, #ffe0e3);
  border-radius: var(--lg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--lg-red);
  transition: var(--lg-transition);
}
.lg-cat-card:hover .lg-cat-icon {
  background: var(--lg-red);
  color: #fff;
}
.lg-cat-name { font-weight: 700; font-size: 14px; line-height: 1.4; }
.lg-cat-count { font-size: 12px; color: var(--lg-muted); }
.lg-cat-arrow {
  margin-top: auto;
  color: var(--lg-red);
  font-size: 18px;
  transition: transform 0.2s;
}
.lg-cat-card:hover .lg-cat-arrow { transform: translateX(4px); }

/* ── BRANDS SCROLL ─────────────────────────────────── */
.lg-brands-scroll {
  overflow-x: auto;
  padding: 8px 24px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--lg-red) transparent;
  display: flex;
  justify-content: center;
}
.lg-brands-scroll::-webkit-scrollbar { height: 4px; }
.lg-brands-scroll::-webkit-scrollbar-thumb { background: var(--lg-red); border-radius: 2px; }
.lg-brands-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px 0;
}
.lg-brand-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--lg-gray-med);
  border-radius: 40px;
  padding: 9px 18px;
  text-decoration: none;
  color: var(--lg-text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--lg-transition);
  cursor: pointer;
}
.lg-brand-chip:hover {
  background: var(--lg-red);
  color: #fff;
  border-color: var(--lg-red);
  box-shadow: var(--lg-shadow-red);
  transform: translateY(-2px);
}
.lg-brand-dot {
  width: 7px; height: 7px;
  background: var(--lg-red);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--lg-transition);
}
.lg-brand-chip:hover .lg-brand-dot { background: #fff; }

/* ── PRODUCT CARDS ─────────────────────────────────── */
.lg-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 20px;
}
.lg-product-card {
  background: #fff;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--lg-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  animation: lg-fadeUp 0.4s ease both;
}
.lg-product-card:hover {
  box-shadow: var(--lg-shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}
.lg-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lg-product-img-wrap {
  aspect-ratio: 4/3;
  background: #f8f8f8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lg-product-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
  display: block;
}
.lg-product-card:hover .lg-product-img-wrap img { transform: scale(1.06); }
.lg-img-fallback {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-size: 44px; color: var(--lg-gray-med);
  background: #f8f8f8;
}
.lg-product-price.no-price { font-size: 13px; color: var(--lg-muted); font-weight: 500; }
.lg-product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--lg-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.lg-product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lg-product-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-red);
}
.lg-product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lg-black);
  flex: 1;
}
.lg-product-sku {
  font-size: 11px;
  color: var(--lg-muted);
  font-family: monospace;
}
.lg-product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--lg-black);
  margin-top: 6px;
}
.lg-product-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--lg-gray);
  display: flex;
  gap: 8px;
}
.lg-product-footer .btn-q {
  flex: 1;
  background: var(--lg-red);
  color: #fff;
  border: none;
  border-radius: var(--lg-radius-sm);
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--lg-transition);
}
.lg-product-footer .btn-q:hover { background: var(--lg-red-dark); }
.lg-product-footer .btn-d {
  background: var(--lg-gray);
  color: var(--lg-black);
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-sm);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--lg-transition);
}
.lg-product-footer .btn-d:hover { background: var(--lg-gray-med); }

/* ── FILTER BAR ────────────────────────────────────── */
.lg-filter-bar {
  background: #fff;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.lg-search-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.lg-search-input:focus {
  border-color: var(--lg-red);
  box-shadow: 0 0 0 3px rgba(226,0,26,0.08);
}
.lg-filter-select {
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff0f1;
  border: 1px solid rgba(226,0,26,0.2);
  color: var(--lg-red);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--lg-transition);
}
.lg-chip.active, .lg-chip:hover {
  background: var(--lg-red);
  color: #fff;
  border-color: var(--lg-red);
}

/* ── PRODUCT DETAIL PAGE ───────────────────────────── */
.lg-detail-wrap {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 40px 24px 60px;
}
.lg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lg-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.lg-breadcrumb a { color: var(--lg-muted); text-decoration: none; }
.lg-breadcrumb a:hover { color: var(--lg-red); }
.lg-breadcrumb .sep { opacity: 0.4; }
.lg-breadcrumb .current { color: var(--lg-black); font-weight: 500; }
.lg-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .lg-detail-grid { grid-template-columns: 1fr; }
  .lg-hero-wordmark { font-size: 38px; }
}

/* Gallery */
.lg-gallery { position: sticky; top: 100px; align-self: start; }
.lg-main-img-wrap {
  aspect-ratio: 1;
  background: #f8f8f8;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.lg-main-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; padding: 24px;
}
.lg-thumb-row { display: flex; gap: 8px; overflow-x: auto; }
.lg-thumb {
  width: 72px; height: 72px;
  border: 2px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
  background: #f8f8f8;
}
.lg-thumb.active, .lg-thumb:hover { border-color: var(--lg-red); }
.lg-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Info column */
.lg-detail-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lg-detail-brand-badge {
  background: var(--lg-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.lg-detail-parent { font-size: 12px; color: var(--lg-muted); }
.lg-detail-title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 900;
  color: var(--lg-black);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  font-family: 'Montserrat', 'Inter', sans-serif;
}
.lg-detail-sku { font-size: 13px; color: var(--lg-muted); font-family: monospace; margin-bottom: 20px; }
.lg-detail-sku span { color: var(--lg-black); font-weight: 600; }
.lg-price-box {
  background: linear-gradient(135deg, #fff0f1, #fff8f8);
  border: 1px solid rgba(226,0,26,0.15);
  border-radius: var(--lg-radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.lg-price-label {
  font-size: 11px;
  color: var(--lg-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.lg-price-val {
  font-size: 36px;
  font-weight: 900;
  color: var(--lg-black);
  line-height: 1;
  font-family: 'Montserrat', 'Inter', sans-serif;
}
.lg-price-note { font-size: 12px; color: var(--lg-muted); margin-top: 6px; }
.lg-desc { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 24px; }
.lg-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.lg-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #14a349;
  margin-bottom: 20px;
}
.lg-availability .dot {
  width: 8px; height: 8px;
  background: #14a349;
  border-radius: 50%;
}

/* Tabs */
.lg-tabs {
  border-bottom: 2px solid var(--lg-gray-med);
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
}
.lg-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--lg-transition);
  font-family: inherit;
}
.lg-tab-btn.active { color: var(--lg-red); border-bottom-color: var(--lg-red); }
.lg-tab-btn:hover:not(.active) { color: var(--lg-black); }
.lg-tab-panel { display: none; }
.lg-tab-panel.active { display: block; animation: lg-fadeUp 0.3s ease; }

/* Features */
.lg-features-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.lg-features-list li {
  display: flex; align-items: flex-start;
  gap: 12px; font-size: 15px; line-height: 1.5;
}
.lg-features-list li::before {
  content: '✓';
  color: var(--lg-red);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Specs table */
.lg-specs-table { width: 100%; border-collapse: collapse; }
.lg-specs-table tr { border-bottom: 1px solid var(--lg-gray); }
.lg-specs-table tr:last-child { border-bottom: none; }
.lg-specs-table td { padding: 12px 16px; font-size: 14px; vertical-align: top; }
.lg-specs-table td:first-child { font-weight: 600; color: var(--lg-muted); width: 40%; }
.lg-specs-table tr:nth-child(even) { background: #f9f9f9; }

/* Resources */
.lg-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 12px;
}
.lg-resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--lg-gray);
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--lg-text);
  transition: var(--lg-transition);
}
.lg-resource-card:hover {
  background: #fff;
  border-color: var(--lg-red);
  box-shadow: var(--lg-shadow-sm);
}
.lg-resource-icon {
  width: 40px; height: 40px;
  background: #fff;
  border-radius: var(--lg-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--lg-red);
  flex-shrink: 0;
  border: 1px solid var(--lg-gray-med);
}
.lg-resource-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.lg-resource-type {
  font-size: 11px; color: var(--lg-muted);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 2px;
}

/* Loading / Empty */
.lg-loading {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 60px 24px; color: var(--lg-muted);
}
.lg-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--lg-gray-med);
  border-top-color: var(--lg-red);
  border-radius: 50%;
  animation: lg-spin 0.8s linear infinite;
}
.lg-empty { text-align: center; padding: 60px 24px; color: var(--lg-muted); }
.lg-empty-icon { font-size: 48px; opacity: 0.4; margin-bottom: 16px; }

/* Pagination */
.lg-pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 8px;
  margin-top: 48px; flex-wrap: wrap;
}
.lg-pg-btn {
  min-width: 40px; height: 40px;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-sm);
  background: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--lg-transition); color: var(--lg-text);
  font-family: inherit;
}
.lg-pg-btn:hover, .lg-pg-btn.active {
  background: var(--lg-red); color: #fff; border-color: var(--lg-red);
}
.lg-pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Related products */
.lg-related-section { background: var(--lg-gray); padding: 60px 0; }
.lg-related-scroll {
  overflow-x: auto;
  padding: 8px 24px 16px;
}
.lg-related-row {
  display: flex; gap: 16px; min-width: max-content;
}
.lg-related-card {
  width: 220px;
  background: #fff;
  border: 1px solid var(--lg-gray-med);
  border-radius: var(--lg-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--lg-transition);
  flex-shrink: 0;
}
.lg-related-card:hover {
  box-shadow: var(--lg-shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.lg-related-img {
  aspect-ratio: 4/3;
  background: #f8f8f8;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lg-related-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.lg-related-body { padding: 12px 14px; }
.lg-related-brand { font-size: 10px; font-weight: 700; color: var(--lg-red); text-transform: uppercase; letter-spacing: 0.06em; }
.lg-related-name { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 4px 0; }
.lg-related-price { font-size: 15px; font-weight: 800; }

/* Responsive */
@media (max-width: 640px) {
  .lg-hero { padding: 60px 24px 40px; }
  .lg-cat-grid { grid-template-columns: 1fr 1fr; }
  .lg-product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .lg-product-grid { grid-template-columns: 1fr; }
  .lg-cat-grid { grid-template-columns: 1fr; }
}

/* ── LEGRAND PAGE BODY OVERRIDE ────────────────────── */
/* Ensure navbar bottom border doesn't create white gap */
body.legrand-page .navbar {
  border-bottom: 2px solid var(--lg-red);
  margin-bottom: 0;
}
body.legrand-page .navbar + * { margin-top: 0; }

/* Image container min-height to show fallback box properly */
.lg-product-img-wrap { min-height: 160px; }

/* Translation support */
[data-i18n-lg="legrand_hero_title"] span.gradient-text { color: var(--lg-red); }
