:root {
  --brand: #83B829;
  --brand-dark: #5f8f17;
  --ink: #171717;
  --muted: #666b65;
  --line: #e6e9e2;
  --soft: #f6f8f3;
  --footer: #3E3E3E;
  --white: #ffffff;
  --max: 1220px;
  --shadow: 0 20px 60px rgba(24, 34, 20, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230,233,226,0.9);
}
.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand-logo img {
  width: 170px;
  height: auto;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: #31352e;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--brand-dark); }
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.count-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-btn { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,18,15,0.86), rgba(16,18,15,0.42), rgba(16,18,15,0.04)), url("images/generated/hero-led-lighting.png") center/cover;
  z-index: -1;
}
.hero__content {
  width: min(680px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - var(--max)) / 2));
  padding: 84px 0 112px;
  color: #fff;
  animation: rise 0.75s ease both;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1, .thanks h1 {
  margin: 0;
  font-size: clamp(50px, 7vw, 104px);
  line-height: .95;
  letter-spacing: 0;
}
.hero p:not(.eyebrow), .page-hero p:not(.eyebrow), .thanks p {
  max-width: 620px;
  color: rgba(255,255,255,0.84);
  font-size: 18px;
  line-height: 1.7;
}
.hero__actions, .section__head, .cart-actions, .drawer-actions, .social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-small { min-height: 38px; padding: 9px 14px; font-size: 13px; }

.trust-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  box-shadow: var(--shadow);
}
.trust-strip div {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { margin-bottom: 8px; }
.trust-strip span { color: var(--muted); line-height: 1.55; }

.section, .catalog-layout, .checkout-layout, .contact-layout, .about-detail, .faq-page, .auth-panel {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 92px 0; }
.section--tint {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  background: var(--soft);
}
.section__head {
  justify-content: space-between;
  margin-bottom: 32px;
}
.section__head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}
.section__head a {
  color: var(--brand-dark);
  font-weight: 800;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-tile {
  min-height: 340px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #222;
}
.category-tile img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform .45s ease;
}
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.74));
}
.category-tile:hover img { transform: scale(1.06); }
.category-tile div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
}
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.category-tile p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.1);
  border-color: rgba(131,184,41,0.5);
}
.product-card__image {
  aspect-ratio: 1.18;
  background: #f8faf6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-card__body { padding: 18px; }
.product-card__body small { color: var(--brand-dark); font-weight: 800; }
.product-card h3 {
  min-height: 54px;
  margin: 7px 0 12px;
  font-size: 17px;
  line-height: 1.3;
}
.product-card p {
  color: var(--muted);
  min-height: 66px;
  margin: 0 0 16px;
  line-height: 1.55;
  font-size: 14px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.price { font-weight: 800; font-size: 20px; color: var(--ink); }
.availability { font-size: 12px; color: var(--brand-dark); font-weight: 800; }
.card-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.about-band {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: stretch;
  background: var(--footer);
  color: #fff;
}
.about-band__image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.about-band__copy {
  padding: clamp(42px, 7vw, 96px);
  align-self: center;
}
.about-band h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.05;
}
.about-band p:not(.eyebrow) {
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 26px;
}

.faq-grid, .faq-page {
  display: grid;
  gap: 14px;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  background: #fff;
}
summary {
  cursor: pointer;
  font-weight: 800;
}
details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  padding: 92px max(16px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(90deg, rgba(20,23,18,0.9), rgba(20,23,18,0.58)), url("images/generated/hero-led-lighting.png") center/cover;
  color: #fff;
}
.page-hero--compact { padding-top: 76px; padding-bottom: 76px; }
.page-hero--about {
  background: linear-gradient(90deg, rgba(20,23,18,0.88), rgba(20,23,18,0.48)), url("images/generated/about-workbench.png") center/cover;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  padding: 54px 0 92px;
}
.filters {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
label {
  display: grid;
  gap: 8px;
  color: #373b35;
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(131,184,41,0.25);
  border-color: var(--brand);
}
.catalog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.catalog-bar span { color: var(--muted); font-weight: 700; }
.catalog-bar select { max-width: 260px; }

.product-detail {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 30px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 54px;
}
.product-gallery {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 28px;
}
.product-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}
.product-info p {
  color: var(--muted);
  line-height: 1.7;
}
.spec-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 800; text-align: right; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  padding: 54px 0 92px;
}
.line-list, .checkout-form, .order-summary, .auth-panel form, .contact-card, .contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}
.cart-line {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: #f8faf6;
  border-radius: 8px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
}
.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--soft);
  border-radius: 6px;
}
.order-summary {
  align-self: start;
  display: grid;
  gap: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary-total {
  font-size: 22px;
  font-weight: 800;
}
.checkout-form, .contact-form, .auth-panel form { display: grid; gap: 16px; }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100%);
  background: #fff;
  z-index: 50;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -20px 0 50px rgba(0,0,0,0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; }
.drawer-head button, .remove-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.drawer-body { overflow: auto; padding: 4px 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }
.drawer-actions { margin-top: 16px; }
.drawer-actions .btn { flex: 1; }
.empty-state {
  padding: 34px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.contact-layout, .about-detail {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 34px;
  padding: 54px 0 92px;
}
.contact-card p {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-card a { color: var(--brand-dark); font-weight: 800; }
.social-row a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.about-detail img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 8px;
}
.about-detail h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.about-detail p, .check-list {
  color: var(--muted);
  line-height: 1.7;
}
.check-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  background: var(--brand);
}
.faq-page { padding: 54px 0 92px; }
.auth-panel { padding: 54px 0 92px; }
.auth-panel form { max-width: 520px; margin: 0 auto; }
.thanks {
  min-height: calc(100svh - 82px);
  display: grid;
  place-content: center;
  justify-items: start;
  padding: 64px max(16px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(90deg, rgba(20,23,18,0.86), rgba(20,23,18,0.44)), url("images/generated/hero-led-lighting.png") center/cover;
  color: #fff;
}

.site-footer {
  background: var(--footer);
  color: #fff;
}
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}
.footer-inner img { width: 170px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-inner p, .footer-inner a {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}
.footer-inner h3 { margin: 0 0 14px; }
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px max(16px, calc((100vw - var(--max)) / 2));
  color: rgba(255,255,255,0.64);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-links {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-band, .catalog-layout, .product-detail, .checkout-layout, .contact-layout, .about-detail, .footer-inner {
    grid-template-columns: 1fr;
  }
  .filters { position: static; }
}

@media (max-width: 640px) {
  .brand-logo img { width: 132px; }
  .nav { min-height: 72px; width: min(100% - 20px, var(--max)); gap: 10px; }
  .nav-links { top: 72px; }
  .hero { min-height: 660px; }
  .hero__content { padding-top: 64px; padding-bottom: 86px; }
  .hero h1, .page-hero h1, .thanks h1 { font-size: 48px; }
  .trust-strip { margin-top: 0; width: 100%; }
  .section { padding: 62px 0; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-tile { min-height: 260px; }
  .product-card h3, .product-card p { min-height: auto; }
  .catalog-bar { align-items: stretch; flex-direction: column; }
  .catalog-bar select { max-width: none; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line > strong { grid-column: 2; }
  .page-hero, .page-hero--compact { padding-top: 56px; padding-bottom: 56px; }
}
