@import url("../fonts/lato-dancingscript.css");

:root {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --text-dim: #b0b0b0;
  --accent: #ffffff;
  --max: 1200px;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  margin: 0 0 .5em;
}

.alt-font {
  font-family: "Dancing Script", cursive;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-dim); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.uppercase { text-transform: uppercase; letter-spacing: .04em; }

/* Topbar */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.brand span { font-family: "Dancing Script", cursive; font-weight: 400; font-size: 1.3em; margin-right: 4px; }

.main-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.main-nav a.active { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.header-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 700; }
.header-actions .divider { width: 1px; height: 16px; background: var(--line); }

.search-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 6px 6px 6px 14px; min-width: 180px; }
.search-box input { background: transparent; border: 0; color: var(--text); flex: 1; outline: none; font-family: inherit; }
.search-box button { background: transparent; border: 0; color: var(--text); cursor: pointer; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 90px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .08;
  pointer-events: none;
}
.hero-illustration img { width: 90%; max-width: 900px; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 6vw, 64px); margin-bottom: 4px; }
.hero h1.script { font-size: clamp(20px, 3vw, 30px); }
.hero .btn { margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); color: #000; }
.btn.solid { background: var(--accent); color: #000; }
.btn.solid:hover { background: transparent; color: var(--accent); }

/* Intro */
.intro {
  padding: 70px 0 30px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.intro h2 { font-size: 28px; margin-bottom: 22px; }
.intro p { color: var(--text-dim); margin-bottom: 18px; font-size: 15px; }
.intro a { text-decoration: underline; color: var(--text); }

/* Product grid */
.section { padding: 40px 0 60px; }
.section-title { text-align: center; margin-bottom: 30px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--bg);
  padding: 26px 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.product-thumb img { width: 80%; height: auto; }
.product-cat { font-size: 11px; letter-spacing: .08em; color: var(--text-dim); }
.product-name { font-size: 13px; font-weight: 700; min-height: 2.6em; }
.product-price { font-size: 15px; font-weight: 700; margin-top: auto; }

.center-cta { text-align: center; margin-top: 36px; }

/* Feature row */
.features {
  border-top: 1px solid var(--line);
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.feature img { width: 44px; height: 44px; margin-bottom: 14px; }
.feature h5 { font-size: 13px; letter-spacing: .05em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #000; padding: 50px 0 20px; }
.footer-title { font-size: 13px; letter-spacing: .05em; margin-bottom: 16px; }
.footer-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-products li { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.footer-products .thumb { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--text-dim); }
.footer-products .thumb img { width: 26px; height: 26px; }
.footer-products .name { color: var(--text-dim); }
.footer-products .price { color: var(--text); font-weight: 700; }

.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-dim); }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 900px) {
  .main-nav, .search-box { display: none; }
  .nav-toggle { display: block; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
