/* ==========================================================================
   LG Brand Storefront (/brands/lg/) — design language inspired by LG.com:
   white/near-black surfaces, LG Active Red accent, pill buttons, image-led
   tiles, horizontal product rails. Self-contained (.lgs- prefix) and
   explicit about its colors so it renders identically in both site themes.
   ========================================================================== */

.lgs {
  --lg-red: #a50034;
  --lg-red-dark: #86002b;
  --lg-black: #0e0e0e;
  --lg-ink: #1a1a1a;
  --lg-ink-soft: #4b4b4b;
  --lg-gray: #f6f5f3;
  --lg-line: #e6e3de;
  --lg-white: #ffffff;
  --lg-radius: 14px;
  --lg-radius-pill: 100px;
  background: var(--lg-white);
  color: var(--lg-ink);
  font-size: 15px;
  line-height: 1.55;
}

.lgs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.lgs h1, .lgs h2, .lgs h3 {
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------------- Buttons & links ---------------- */
.lgs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--lg-radius-pill);
  font-size: 14px !important;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.lgs-btn-red { background: var(--lg-red); color: #fff !important; }
.lgs-btn-red:hover, .lgs-btn-red:focus { background: var(--lg-red-dark); color: #fff !important; }
.lgs-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.65); }
.lgs-btn-ghost:hover, .lgs-btn-ghost:focus { background: rgba(255,255,255,.12); color: #fff !important; }
.lgs-section .lgs-btn-ghost,
.lgs-section-gray .lgs-btn-ghost { color: var(--lg-ink) !important; border-color: var(--lg-ink); }

.lgs-link {
  color: var(--lg-red) !important;
  font-weight: 600;
  font-size: 14px !important;
  text-decoration: none;
  white-space: nowrap;
}
.lgs-link:hover { text-decoration: underline; }

/* ---------------- Hero ---------------- */
.lgs-hero {
  position: relative;
  background-color: var(--lg-black);
  background-size: cover;
  background-position: center right;
  color: #fff;
}
.lgs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%);
}
.lgs-hero-inner {
  position: relative;
  padding: 84px 0 64px;
  max-width: 560px;
}
.lgs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffb1c8;
  margin: 0 0 14px;
}
.lgs-hero-title {
  font-size: 44px;
  line-height: 1.05;
  color: #fff;
}
.lgs-hero-title span { color: #ffb1c8; }
.lgs-hero-sub {
  margin: 16px 0 26px;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  max-width: 46ch;
}
.lgs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lgs-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.lgs-hero-stats strong { color: #fff; font-size: 15px; margin-right: 4px; }

/* ---------------- Quick links ---------------- */
.lgs-quicklinks { background: var(--lg-black); padding: 0 0 22px; }
.lgs-pills { display: flex; gap: 10px; }
.lgs-pills a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--lg-radius-pill);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.lgs-pills a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.lgs-pills-dark { margin-top: 18px; }
.lgs-pills-dark a {
  color: var(--lg-ink) !important;
  border-color: var(--lg-line);
  background: var(--lg-gray);
}
.lgs-pills-dark a:hover { border-color: var(--lg-ink); background: var(--lg-white); }
.lgs-pills-dark small { color: var(--lg-ink-soft); }

/* ---------------- Trust strip ---------------- */
.lgs-trust { border-bottom: 1px solid var(--lg-line); background: var(--lg-white); }
.lgs-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.lgs-trust-grid > div { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--lg-ink-soft); }
.lgs-trust-grid strong { color: var(--lg-ink); font-size: 13.5px; }
.lgs-trust-grid i { font-size: 22px; color: var(--lg-red); flex: none; margin-top: 2px; }

/* ---------------- Sections ---------------- */
.lgs-section { padding: 46px 0; background: var(--lg-white); }
.lgs-section-gray { background: var(--lg-gray); }
.lgs-section-dark { background: var(--lg-black); color: #fff; }
.lgs-section-dark .lgs-link { color: #ff5c8a !important; }
.lgs-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.lgs-section-head h2 { font-size: 26px; }

/* ---------------- Horizontal rails ---------------- */
.lgs-scroll-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.lgs-scroll-row::-webkit-scrollbar { display: none; }
.lgs-card-row { gap: 14px; }
.lgs-card-row > * { scroll-snap-align: start; }

/* ---------------- Product card ---------------- */
.lgs-card {
  flex: 0 0 230px;
  width: 230px;
  background: var(--lg-white);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.lgs-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.lgs-section-dark .lgs-card { border-color: transparent; }
.lgs-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  padding: 14px;
}
.lgs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lgs-card-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--lg-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--lg-radius-pill);
}
.lgs-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lgs-card-title {
  color: var(--lg-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.lgs-card-title:hover { color: var(--lg-red) !important; }
.lgs-card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.lgs-card-price { font-size: 16px; font-weight: 700; color: var(--lg-ink); }
.lgs-card-price del { color: var(--lg-ink-soft); font-size: 12.5px; font-weight: 400; margin-left: 6px; }
.lgs-card-cart {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--lg-ink);
  background: transparent;
  color: var(--lg-ink);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.lgs-card-cart:hover { background: var(--lg-red); border-color: var(--lg-red); color: #fff; }
.lgs-card-stock { font-size: 12px !important; color: #b4491f; }

/* ---------------- Category tiles ---------------- */
.lgs-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lgs-cat-tile {
  position: relative;
  display: block;
  border-radius: var(--lg-radius);
  overflow: hidden;
  background: var(--lg-black);
  aspect-ratio: 10 / 11;
  text-decoration: none;
}
.lgs-cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.lgs-cat-tile:hover img { transform: scale(1.04); }
.lgs-cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%);
}
.lgs-cat-tile-body {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lgs-cat-tile-name { color: #fff; font-size: 18px; font-weight: 700; }
.lgs-cat-tile-tag { color: rgba(255,255,255,.8); font-size: 12px !important; }
.lgs-cat-tile-count {
  color: #fff;
  font-size: 12px !important;
  font-weight: 600;
  margin-top: 6px;
}
.lgs-cat-tile-count::after { content: " →"; }

/* ---------------- Banner ---------------- */
.lgs-banner { background: var(--lg-white); padding: 0 0 46px; }
.lgs-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--lg-radius);
}

/* ---------------- Tech story ---------------- */
.lgs-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lgs-tech-card {
  background: var(--lg-white);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 22px 20px;
}
.lgs-tech-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--lg-red); }
.lgs-tech-card p { margin: 0; font-size: 13.5px; color: var(--lg-ink-soft); }

/* ---------------- Guides ---------------- */
.lgs-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lgs-guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--lg-white);
  transition: box-shadow .15s ease, transform .15s ease;
}
.lgs-guide-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.lgs-guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.lgs-guide-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.lgs-guide-title { color: var(--lg-ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.lgs-guide-excerpt { color: var(--lg-ink-soft); font-size: 13px !important; }
.lgs-guide-read { color: var(--lg-red); font-size: 13px !important; font-weight: 600; }

/* ---------------- Final CTA ---------------- */
.lgs-final { background: var(--lg-black); color: #fff; padding: 46px 0; }
.lgs-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.lgs-final h2 { font-size: 24px; color: #fff; }
.lgs-final p { margin: 8px 0 0; color: rgba(255,255,255,.8); max-width: 56ch; }
.lgs-final-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- Page-specific chrome tweak ----------------
   The black header/footer chrome itself is site-wide (promo.css).
   Here we only remove the footer's top gap so the black final-CTA
   band flows straight into the black footer on this page. */
footer.footer {
  margin-top: 0 !important;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
  .lgs-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .lgs-tech-grid { grid-template-columns: repeat(2, 1fr); }
  .lgs-guides-grid { grid-template-columns: 1fr 1fr; }
  .lgs-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lgs-hero-inner { padding: 56px 0 44px; }
  .lgs-hero-title { font-size: 32px; }
  .lgs-section { padding: 34px 0; }
  .lgs-section-head h2 { font-size: 21px; }
  .lgs-card { flex-basis: 172px; width: 172px; }
  .lgs-guides-grid { grid-template-columns: 1fr; }
  .lgs-tech-grid { grid-template-columns: 1fr; }
  .lgs-cat-grid { gap: 10px; }
  .lgs-cat-tile-name { font-size: 15px; }
}
