:root {
  --bg: #f7f5f1;
  --bg-soft: #efece6;
  --surface: #ffffff;
  --ink: #171513;
  --ink-soft: #5c574f;
  --line: #e2ddd4;
  --accent: #6b5843;
  --accent-deep: #4a3b2c;
  --sale: #9b3b2f;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(23, 21, 19, 0.08);
  --font: "Manrope", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --container: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  background: var(--ink);
  color: #f3efe8;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__links a:hover,
.topbar__phone a:hover { opacity: 0.75; }
.topbar__phone { display: flex; gap: 12px; align-items: center; opacity: 0.9; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.2rem;
}
.logo__text {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  outline: none;
}
.search button {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--ink-soft);
}

.header-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.header-actions__link:hover { color: var(--accent); }

.main-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.main-nav__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
}
.main-nav__list::-webkit-scrollbar { display: none; }
.main-nav__list a {
  display: block;
  padding: 14px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.main-nav__list a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-soft); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--full { width: 100%; }

/* Hero slider */
.hero-slider {
  position: relative;
  color: #f7f3ec;
  height: clamp(420px, 58vh, 640px);
  overflow: hidden;
  background: #1c1814;
}
.hero-slider__track {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-color: #2a2420;
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.25) 100%),
    var(--slide-image, linear-gradient(135deg, #2a2420 0%, #4a3b2c 45%, #7a6550 100%));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.hero-slide.is-active .hero-slide__bg {
  transform: scale(1);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 88px);
  max-width: 640px;
  animation: rise 0.8s ease both;
}
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 14px;
}
.hero-slide h1,
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero-slide p,
.hero p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 42ch;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero-slider__nav:hover { background: rgba(255,255,255,0.32); }
.hero-slider__nav--prev { left: 16px; }
.hero-slider__nav--next { right: 16px; }
.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-slider__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.hero-slider__dots button.is-active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

/* Legacy hero (fallback) */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2a2420 0%, #4a3b2c 45%, #7a6550 100%);
  color: #f7f3ec;
  min-height: clamp(360px, 52vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--soft { background: var(--surface); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head p { margin: 6px 0 0; color: var(--ink-soft); }
.section-head a {
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* Category strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 16px;
  text-align: center;
  transition: 0.25s ease;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat-tile__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--accent);
}
.cat-tile span {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
  border: 1px solid transparent;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, #ebe6dd, #d8d0c4 55%, #c9bfb0);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  z-index: 1;
}
.product-card__body { padding: 16px 14px 18px; }
.product-card__cat {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.product-card__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-old {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.88rem;
}
.price-current {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Promo banners */
.promo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.promo {
  position: relative;
  min-height: 280px;
  padding: 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  background: #2f2924;
}
.promo--warm {
  background: linear-gradient(145deg, #5c4633, #8d6e52);
}
.promo--cool {
  background: linear-gradient(145deg, #1f2a2e, #3d545c);
}
.promo h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 8px;
}
.promo p { margin: 0 0 18px; opacity: 0.85; max-width: 32ch; }

/* Breadcrumb / page head */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.page-hero p { margin: 8px 0 0; color: var(--ink-soft); max-width: 60ch; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 40px 0 64px;
}
.gallery {
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery__main {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #ebe6dd, #d0c7b8);
  overflow: hidden;
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}
.gallery__thumbs button {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--bg);
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-active { border-color: var(--ink); }

.product-info__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: #fff;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.product-info h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 10px;
  line-height: 1.1;
}
.product-info__cat {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.product-info__price .price-current { font-size: 1.6rem; }
.product-info__short {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 1.02rem;
}
.product-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.features-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.features-table th,
.features-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.features-table th {
  width: 38%;
  color: var(--ink-soft);
  font-weight: 500;
}
.product-desc {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.product-desc > h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.product-desc__body {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.product-desc__body p { margin: 0 0 14px; }
.product-desc__body h2,
.product-desc__body h3,
.product-desc__body h4 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  margin: 22px 0 10px;
  line-height: 1.25;
}
.product-desc__body h2 { font-size: 1.45rem; }
.product-desc__body h3 { font-size: 1.25rem; }
.product-desc__body h4 { font-size: 1.1rem; }
.product-desc__body ul,
.product-desc__body ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  list-style: revert;
}
.product-desc__body li { margin-bottom: 6px; }
.product-desc__body a {
  color: var(--accent);
  text-decoration: underline;
}
.product-desc__body strong,
.product-desc__body b { color: var(--ink); font-weight: 700; }
.product-desc__body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  color: var(--ink-soft);
}

/* Content pages */
.content-page {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  margin: 32px 0 64px;
  max-width: 860px;
}
.content-page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0 0 20px;
}
.content-page p { color: var(--ink-soft); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0 64px;
}
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
}
.contact-card h2,
.contact-form h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0 0 16px;
}
.contact-list { display: grid; gap: 14px; }
.contact-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  outline: none;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--ink); }
.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.alert--ok { background: #e8f1ea; color: #1f5a2c; }
.alert--err { background: #f8e8e8; color: #8a1f1f; }

/* Empty / misc */
.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px dashed var(--line);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
}
.pager .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.seo-block {
  padding: 48px 0 72px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.seo-block h2 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 28px 0 10px;
}
.seo-block h2:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: #1c1916; color: #d8d2c8; margin-top: 0; }
.footer-cta {
  background: linear-gradient(120deg, #3d3228, #6a5643);
  color: #fff;
}
.footer-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.footer-cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 6px;
}
.footer-cta p { margin: 0; opacity: 0.85; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}
.footer-brand p { color: #a8a095; font-size: 0.92rem; max-width: 36ch; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.footer-social a { font-size: 0.85rem; border-bottom: 1px solid transparent; }
.footer-social a:hover { border-bottom-color: currentColor; }
.site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: #8f877c;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
}

/* Placeholder furniture silhouette */
.ph-furniture {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(74, 59, 44, 0.35);
  font-family: var(--display);
  font-size: 1.4rem;
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .search { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    border-top: 0;
  }
  .main-nav.is-open {
    display: block;
    position: absolute;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav__list {
    flex-direction: column;
    padding: 8px 16px 16px;
  }
  .main-nav__list a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .promo-grid,
  .product-detail,
  .contact-grid { grid-template-columns: 1fr; }
  .header-actions__link span { display: none; }
  .topbar__links { display: none; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
