/* LUMORA — Shared Design System
   Architectural lighting B2C site
   ========================================================= */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
p { margin: 0; }

/* ---- Design tokens ---- */
:root {
  --ink: #181816;
  --muted: #77736c;
  --muted-2: #aaa79e;
  --cream: #f5f3ee;
  --paper: #fbfaf7;
  --line: #dedbd3;
  --line-dark: #34332f;
  --gold: #a78b5a;
  --white: #ffffff;
  --dark-bg: #171714;
  --dark-2: #24231f;
  --dark-3: #1d1d1b;

  --container: 1320px;
  --gap: 18px;
  --radius: 0;
}

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 34px;
}

.kicker {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---- Topbar ---- */
.topbar {
  height: 34px;
  background: var(--dark-3);
  color: #e9e6df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---- Header / Nav ---- */
header.site-header {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  background: rgba(251,250,247,.96);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-size: 22px;
  letter-spacing: .26em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.logo small {
  display: block;
  font-size: 7px;
  letter-spacing: .38em;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.menu {
  display: flex;
  gap: 34px;
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.menu a {
  position: relative;
  color: var(--ink);
}
.menu a.active { color: var(--gold); }
.menu a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: .25s;
}
.menu a:hover:after { width: 100%; }

/* Nav actions + icon buttons */
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.iconbtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s;
}
.iconbtn:hover { background: var(--cream); }
.iconbtn svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.cart-count {
  position: absolute;
  right: 3px;
  top: 3px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 600;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  font-family: "DM Sans", sans-serif;
}

/* ---- CTA / Button ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
  color: white;
  padding: 16px 25px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  width: max-content;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: .25s;
  font-family: inherit;
}
.cta:hover { background: transparent; color: var(--ink); }
.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta-ghost:hover { background: var(--ink); color: white; }
.textlink {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  width: max-content;
  display: inline-block;
}

/* ---- Section heads ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 28px;
}
.section-head h3 {
  font-family: "Playfair Display", serif;
  font-size: 29px;
  font-weight: 500;
  margin: 0;
}
.section-head a {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Product cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.card {
  background: #eeeae2;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.card-media {
  aspect-ratio: 3 / 4;
  background: #e8e5de;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.card:hover img { transform: scale(1.045); }
.card-info {
  padding: 17px 16px 20px;
  background: var(--paper);
}
.card-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--ink);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
  letter-spacing: .04em;
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: white;
  padding: 7px 9px;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
}

/* ---- Category blocks ---- */
.category {
  height: 440px;
  position: relative;
  overflow: hidden;
  background: #ddd;
  display: block;
}
.category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s;
}
.category:hover img { transform: scale(1.04); }
.category:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
}
.category-label {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  color: white;
}
.category-label strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 31px;
  font-weight: 500;
}
.category-label span {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---- Newsletter ---- */
.newsletter {
  background: var(--dark-2);
  color: #f5f3ee;
  padding: 78px 34px;
  text-align: center;
}
.newsletter h2 {
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 12px;
}
.newsletter p {
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 28px;
}
.email {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid #6f6b63;
}
.email input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: white;
  padding: 15px 0;
  font-size: 13px;
  font-family: inherit;
}
.email input::placeholder { color: #8d8a83; }
.email button {
  background: none;
  color: white;
  border: 0;
  cursor: pointer;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 0 4px;
}

/* ---- Footer ---- */
footer.site-footer {
  background: var(--dark-bg);
  color: #8d8a83;
  padding: 55px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer-brand {
  color: white;
  font-size: 20px;
  letter-spacing: .22em;
  margin-bottom: 14px;
}
footer h4 {
  color: #e8e5dd;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 17px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
}
footer a {
  display: block;
  font-size: 12px;
  margin: 10px 0;
  transition: color .2s;
}
footer a:hover { color: var(--gold); }
footer p { font-size: 12px; line-height: 1.8; max-width: 290px; }
.copyright {
  border-top: 1px solid var(--line-dark);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  letter-spacing: .08em;
}

/* ---- Drawer (cart) ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.38);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: var(--paper);
  padding: 28px;
  transform: translateX(100%);
  transition: .35s;
  overflow-y: auto;
}
.drawer.open .panel { transform: none; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.panel h3 { font-size: 28px; font-weight: 500; margin: 0; }
.close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  color: var(--ink);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .2s;
}
.close:hover { background: var(--cream); }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cart-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item strong {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 500;
  display: block;
}
.cart-item .variant { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cart-item .item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
}
.qty-mini {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty-mini button {
  width: 26px;
  height: 26px;
  background: white;
  border: 0;
  font-size: 14px;
  color: var(--muted);
}
.qty-mini span {
  width: 26px;
  text-align: center;
  font-size: 12px;
}
.item-remove {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.total {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
  font-size: 13px;
  align-items: baseline;
}
.total strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
}
.checkout {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: white;
  border: 0;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.checkout:hover { background: #2e2e2a; }

/* ---- Modal (quick view) ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal.show { display: flex; }
.modal-box {
  background: var(--paper);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.modal-box img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.modal-info { padding: 50px; }
.modal-info h2 { font-size: 40px; font-weight: 500; margin: 0 0 12px; }
.price { font-size: 18px; margin: 18px 0 25px; color: var(--ink); }
.desc { font-size: 13px; color: var(--muted); line-height: 1.8; }
.qty { display: flex; gap: 15px; align-items: center; margin: 28px 0; }
.qty button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s;
}
.qty button:hover { border-color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-size: 14px; }
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  color: var(--ink);
  transition: background .2s;
}
.modal-close:hover { background: var(--cream); }

/* ---- Page header (for inner pages) ---- */
.page-header {
  background: var(--cream);
  padding: 90px 0 70px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.05;
  margin: 0 0 16px;
}
.page-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
}
.breadcrumbs {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { margin: 0 8px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .menu { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box img { min-height: 300px; }
  .modal-info { padding: 30px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-info { padding: 12px; }
  .card-name { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { display: block; line-height: 1.8; }
  .iconbtn { width: 36px; height: 36px; }
  .iconbtn svg { width: 18px; height: 18px; }
}
