:root {
  --bg: #f7f4ef;
  --surface: #fffdfa;
  --surface-strong: #f1ebe2;
  --ink: #211d18;
  --muted: #6e655a;
  --line: #ddd3c7;
  --wood: #7a4f30;
  --wood-dark: #4a2d1e;
  --sage: #506450;
  --whatsapp: #1f9d55;
  --shadow: 0 18px 55px rgba(35, 27, 19, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  align-items: center;
  background: var(--wood-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  height: 48px;
  justify-content: center;
  letter-spacing: 0;
  width: 48px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--surface-strong);
  color: var(--ink);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  padding: 9px;
  width: 44px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 26px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 116px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, rgba(20, 16, 13, 0.76), rgba(20, 16, 13, 0.46), rgba(20, 16, 13, 0.08));
  content: "";
  inset: 0;
  position: absolute;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-content {
  align-content: center;
  color: #fff;
  display: grid;
  max-width: 790px;
  min-height: calc(100vh - 116px);
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 78px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #f1d6b1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.95;
  margin-bottom: 18px;
  max-width: 720px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-content > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  max-width: 690px;
}

.hero-actions,
.section-actions,
.product-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  box-shadow: 0 10px 24px rgba(33, 29, 24, 0.18);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--wood);
  color: #fff;
}

.button.whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 70px);
}

.section.alt {
  background: var(--surface);
}

.section-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 1180px;
}

.section-header p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 610px;
}

.feature-grid,
.category-grid,
.testimonial-grid,
.faq-grid {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1180px;
}

.feature-grid {
  grid-template-columns: repeat(5, 1fr);
}

.feature,
.category-card,
.testimonial,
.faq-item,
.contact-panel,
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature {
  padding: 22px;
}

.feature b {
  color: var(--wood-dark);
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p,
.testimonial p,
.category-card p,
.faq-item p,
.product-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
}

.split-copy p,
.rich-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.image-stack {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 0.74fr;
}

.image-stack img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
  grid-row: span 2;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  overflow: hidden;
}

.category-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.category-card div {
  padding: 18px;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial {
  padding: 22px;
}

.testimonial strong {
  color: var(--sage);
  display: block;
  margin-bottom: 8px;
}

.catalog-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 220px;
  padding: 18px clamp(18px, 5vw, 70px);
  position: sticky;
  top: 76px;
  z-index: 10;
}

.search-input,
.select-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  height: 48px;
  padding: 0 14px;
  width: 100%;
}

.catalog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1220px;
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  background: var(--surface-strong);
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.tag {
  background: #e8efe7;
  border: 1px solid #cbd9ca;
  border-radius: 999px;
  color: var(--sage);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-self: start;
  padding: 5px 9px;
}

.price {
  color: var(--wood-dark);
  font-size: 22px;
  font-weight: 900;
}

.product-page {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 70px);
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.thumb-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
}

.thumb-button {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.thumb-button.active {
  border-color: var(--wood);
}

.thumb-button img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.product-info {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  position: sticky;
  top: 104px;
}

.product-info h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 12px;
}

.product-description {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.meta-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-top: 18px;
}

.meta-list div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.colors-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(8, 1fr);
  margin: 24px auto 0;
  max-width: 1180px;
}

.color-swatch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.color-swatch img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.color-swatch span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  min-height: 42px;
  padding: 8px;
}

.faq-grid {
  grid-template-columns: 1fr;
}

.faq-item {
  padding: 20px;
  scroll-margin-top: 110px;
}

.faq-item a {
  color: var(--wood);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
}

.contact-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.9fr 1.1fr;
  margin: 0 auto;
  max-width: 1180px;
}

.contact-panel {
  padding: 24px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.contact-list div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 420px;
  overflow: hidden;
}

.map-frame iframe {
  border: 0;
  height: 100%;
  min-height: 420px;
  width: 100%;
}

.notice {
  background: #fff7e8;
  border: 1px solid #ead4a9;
  border-radius: var(--radius);
  color: #694910;
  line-height: 1.55;
  padding: 14px;
}

.site-footer {
  align-items: center;
  background: var(--wood-dark);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 70px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.76);
  margin: 6px 0 0;
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #f2d8b6;
  font-weight: 800;
}

.loading-state,
.empty-state {
  align-items: center;
  display: grid;
  min-height: 420px;
  padding: 48px 24px;
  text-align: center;
}

.empty-state p,
.loading-state p {
  color: var(--muted);
}

@media (max-width: 1060px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-page,
  .contact-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    align-content: start;
    background: var(--surface);
    border-left: 1px solid var(--line);
    bottom: 0;
    box-shadow: var(--shadow);
    display: none;
    gap: 0;
    padding: 86px 20px 20px;
    position: fixed;
    right: 0;
    top: 0;
    width: min(340px, 88vw);
  }

  body.menu-open .main-nav {
    display: grid;
  }

  .main-nav a {
    border-radius: 6px;
    font-size: 18px;
    padding: 16px;
  }

  .hero,
  .hero-content {
    min-height: calc(100vh - 92px);
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(20, 16, 13, 0.22), rgba(20, 16, 13, 0.84));
  }

  .hero-content {
    align-content: end;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
    top: 70px;
  }

  .catalog-grid,
  .testimonial-grid,
  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    display: grid;
  }

  .colors-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumb-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer {
    align-items: start;
    display: grid;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .hero-actions,
  .section-actions,
  .product-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
