:root {
  --ink: #111;
  --muted: #666;
  --bg: #fff;
  --line: #eee;
  --red: #ee2624;
  --teal: #2bb8c8;
  --blush: #f4b8c8;
  --dark: #111111;
  --gray: #f5f5f5;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; min-height: 36px; text-align: center; flex-wrap: wrap;
}
.topbar a {
  background: var(--red); color: #fff; padding: 4px 10px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.brand {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap;
}
.brand span { color: var(--red); }
.search-box {
  display: flex; align-items: center;
  background: var(--gray); border-radius: 999px; padding: 0 14px;
  max-width: 520px; width: 100%; margin: 0 auto;
}
.search-box input {
  flex: 1; border: 0; background: transparent; padding: 10px 8px; outline: none;
}
.search-box button { border: 0; background: none; cursor: pointer; font-size: 16px; }
.header-icons { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.header-icons a { font-weight: 500; }
.nav-row {
  display: flex; gap: 22px; justify-content: center;
  padding: 0 0 10px; font-size: 13px; font-weight: 500;
}
.nav-row ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.nav-row a:hover { color: var(--red); }
.menu-toggle { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; }

.hero-full {
  position: relative; min-height: 420px;
  background: #222 center/cover no-repeat;
  color: #fff; display: flex; align-items: center;
}
.hero-full::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.2));
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0; max-width: 560px; }
.hero-copy h1 {
  margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-transform: uppercase;
}
.hero-copy p { margin: 0 0 18px; font-size: 15px; opacity: .92; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 8px;
  padding: 10px 18px; background: var(--ink); color: #fff; font-weight: 600;
}
.btn:hover { opacity: .9; }
.btn-red { background: var(--red); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #ddd; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

.cat-icons {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  padding: 28px 0 8px;
}
.cat-icon { text-align: center; width: 84px; font-size: 12px; font-weight: 500; }
.cat-icon i {
  display: block; width: 68px; height: 68px; margin: 0 auto 8px;
  border-radius: 50%; background: var(--gray) center/cover no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
}

.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0 8px;
}
.duo-card {
  min-height: 280px; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; color: #fff; background: #333 center/cover no-repeat;
}
.duo-card.teal { background-color: var(--teal); }
.duo-card.blush { background-color: var(--blush); color: #222; }
.duo-card h2 { margin: 0; font-size: 2rem; font-weight: 800; }
.duo-card .btn { align-self: flex-start; }

.section { padding: 28px 0 12px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.section-head a { font-size: 13px; color: var(--muted); }

.grid-products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.card { background: #fff; }
.card-media {
  display: block;
  aspect-ratio: 1; background: var(--gray) center/cover no-repeat;
  border-radius: 8px; position: relative;
}
.card-body { padding: 10px 2px 16px; }
.card-body h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; line-height: 1.35; min-height: 2.6em; }
.price { font-weight: 700; font-size: 14px; }
.card-actions { display: flex; gap: 8px; margin-top: 8px; }

.story {
  margin: 28px 0;
  border-radius: 12px; min-height: 220px;
  color: #fff; padding: 32px;
  background: #1d4ed8 center/cover no-repeat;
}
.story h2 { margin: 0 0 8px; font-size: 1.8rem; font-weight: 800; }

.page-hero { padding: 28px 0 8px; }
.page-hero h1 { margin: 0; font-size: 1.8rem; font-weight: 800; }
.lede { color: var(--muted); margin: 8px 0 0; }

.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 28px 0 40px; align-items: start;
}
.product-gallery {
  aspect-ratio: 1; border-radius: 12px;
  background: var(--gray) center/cover no-repeat;
}
.product-info h1 { margin: 0 0 10px; font-size: 1.6rem; }
.product-info .price { font-size: 1.3rem; color: var(--red); }

.content { color: var(--muted); }

.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.post-cover {
  display: block;
  min-height: 280px;
  border-radius: 12px;
  background: var(--gray) center/cover no-repeat;
  margin: 16px 0 20px;
}
.post-sidebar { position: sticky; top: 88px; }
.side-box {
  background: var(--gray);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.side-box h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.side-search { display: flex; gap: 8px; }
.side-search input { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px solid #e8e8e8; font-size: 13px; line-height: 1.4; }
.side-list li:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--red); }
.side-cta p { margin: 0 0 10px; color: var(--muted); }
.form { display: grid; gap: 10px; }
.form input, .form textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 12px 0 40px; }
.contact-photo { min-height: 320px; border-radius: 12px; background: var(--gray) center/cover no-repeat; }

.site-footer { background: var(--dark); color: #bbb; padding: 40px 0 20px; margin-top: 40px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a:hover { color: #fff; }
.foot-copy { border-top: 1px solid #222; margin-top: 28px; padding-top: 16px; color: #777; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px;
}
.modal.open { display: flex; }
.modal-card { width: min(420px, 100%); background: #fff; border-radius: 12px; padding: 22px; }
.modal-card h3 { margin-top: 0; font-size: 1.3rem; }
.form-msg { min-height: 1.2em; font-size: 13px; }
.form-msg.ok { color: #157347; }
.form-msg.err { color: var(--red); }

.pagination { display: flex; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 6px; background: var(--gray); }
.not-found { padding: 64px 0; text-align: center; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto auto; }
  .search-box, .nav-row { display: none; }
  .nav-row.open { display: flex; flex-direction: column; padding: 12px 16px; }
  .menu-toggle { display: block; }
  .grid-products, .duo, .product-layout, .contact-grid, .footer-grid, .post-layout { grid-template-columns: 1fr 1fr; }
  .post-sidebar { position: static; }
  .hero-full { min-height: 300px; }
}
@media (max-width: 640px) {
  .grid-products, .footer-grid, .contact-grid, .product-layout, .post-layout { grid-template-columns: 1fr; }
}
