:root {
  --ink: #20241f;
  --muted: #656c62;
  --line: #e4e8df;
  --surface: #f7f9f4;
  --paper: #ffffff;
  --sage: #516f55;
  --sage-2: #819c7a;
  --oak: #b78355;
  --charcoal: #2a3029;
  --shadow: 0 18px 48px rgba(38, 45, 36, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(228, 232, 223, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: white;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 26px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  background: var(--surface);
  color: var(--ink);
}

.cart-count {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--sage);
  color: white;
  font-size: 12px;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 118px);
  padding: 42px 0 34px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6.4vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  white-space: nowrap;
}

.primary-button {
  padding: 0 22px;
  background: var(--sage);
  color: white;
  font-weight: 800;
}

.primary-button:hover {
  background: #405944;
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
  background: var(--charcoal);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-stat {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  width: min(260px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 38px rgba(32, 36, 31, 0.14);
}

.hero-stat strong {
  font-size: 18px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 13px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.trust-row div {
  min-height: 104px;
  padding: 22px;
  background: white;
}

.trust-row strong {
  display: block;
  margin-bottom: 5px;
}

.trust-row span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 62px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-header p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile div {
  position: absolute;
  inset: auto 14px 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.product-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.product-copy {
  padding: 16px;
}

.product-copy p {
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.product-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
}

.review-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.rating {
  color: var(--oak);
  letter-spacing: 0;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.price {
  font-size: 18px;
}

.compare,
.price-line span {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: line-through;
}

.room-band {
  background: var(--surface);
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 34px;
  align-items: center;
}

.room-layout img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.room-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.room-copy article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.room-copy p {
  color: var(--muted);
}

.page-head {
  padding: 52px 0 28px;
}

.page-head p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.catalog-count {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sage);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: start;
  padding: 34px 0 52px;
}

.gallery-main {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gallery-strip a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.detail-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 58px);
}

.price-line {
  margin: 22px 0;
}

.price-line strong {
  font-size: 32px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.option-grid div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.option-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.option-grid strong {
  font-size: 14px;
}

.qty-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.qty-field input {
  width: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.service-list span {
  padding-left: 18px;
  background: linear-gradient(var(--sage), var(--sage)) 0 0.72em / 7px 7px no-repeat;
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 58px;
}

.detail-panels article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.detail-panels h2 {
  font-size: 20px;
}

.detail-panels p,
.detail-panels li {
  color: var(--muted);
}

.detail-panels ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.reviews-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: var(--surface);
}

.reviews-band blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  padding-bottom: 76px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cart-image {
  width: 124px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.cart-copy p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-control button,
.qty-control span {
  display: grid;
  height: 34px;
  place-items: center;
  background: white;
}

.qty-control span {
  border-inline: 1px solid var(--line);
  font-weight: 800;
}

.line-total {
  min-width: 88px;
  text-align: right;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cart-summary h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.cart-summary .total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
}

.cart-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: start;
  padding: 34px 0 72px;
}

.about-story img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.about-copy p,
.about-list li {
  color: var(--muted);
}

.about-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  .hero,
  .room-layout,
  .detail-layout,
  .reviews-band,
  .about-story,
  .cart-layout {
    grid-template-columns: 1fr;
  }

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

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

  .detail-panels,
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar .container {
    flex-direction: column;
    gap: 2px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  h1 {
    font-size: 42px;
  }

  .product-grid,
  .category-grid,
  .catalog-toolbar,
  .detail-panels,
  .trust-row,
  .room-copy,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cart-image {
    width: 96px;
  }

  .qty-control,
  .line-total {
    grid-column: 2;
    justify-self: start;
  }

  .line-total {
    text-align: left;
  }
}
