:root {
  color-scheme: light;
  --ink: #182523;
  --muted: #66716e;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #d9ddd8;
  --teal: #1e5953;
  --teal-light: #d8e7e2;
  --coral: #d86149;
  --yellow: #e4b844;
  --shadow: 0 12px 36px rgba(24, 37, 35, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 4vw;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(24, 37, 35, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a,
.desktop-nav button {
  padding: 10px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  color: var(--coral);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: auto auto;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
}

.language-button {
  min-width: 42px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.language-button:last-child {
  border-right: 0;
}

.language-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.saved-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.saved-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.saved-symbol {
  font-size: 18px;
  line-height: 1;
}

.saved-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  font-size: 11px;
}

.hero {
  position: relative;
  min-height: 620px;
  height: calc(100vh - 112px);
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(42px, 7vw, 104px);
  background:
    url("assets/furniture-hero.jpg") center 54% / cover no-repeat,
    #446c66;
  color: var(--white);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 32, 30, 0.84) 0%, rgba(15, 32, 30, 0.46) 45%, rgba(15, 32, 30, 0.08) 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 10vw, 154px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  margin: 28px 0 34px;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.35;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 220px;
  min-height: 52px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--yellow);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: #f0c855;
}

.hero-index {
  position: absolute;
  right: 4vw;
  bottom: 54px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero-index span {
  font-family: Georgia, serif;
  font-size: 68px;
}

.hero-index small {
  max-width: 90px;
  font-size: 12px;
  line-height: 1.4;
}

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

.category-feature {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 128px;
  padding: 24px 5vw;
  text-align: left;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.furniture-feature {
  background: var(--teal);
  color: var(--white);
}

.sports-feature {
  background: var(--coral);
  color: var(--white);
}

.feature-number {
  font-family: Georgia, serif;
  font-size: 42px;
}

.category-feature strong,
.category-feature small {
  display: block;
}

.category-feature strong {
  margin-bottom: 7px;
  font-size: 19px;
}

.category-feature small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.feature-arrow {
  font-size: 28px;
  transition: transform 180ms ease;
}

.category-feature:hover .feature-arrow {
  transform: translateX(6px);
}

.collection {
  padding: 90px 4vw 110px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  max-width: 1440px;
  margin: 0 auto 48px;
}

.section-heading h2,
.story-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.collection-summary {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px) 160px;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: inline-flex;
  gap: 6px;
}

.filter-button {
  min-height: 42px;
  padding: 0 15px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button span {
  margin-left: 4px;
  font-size: 11px;
}

.filter-button:hover {
  border-color: var(--line);
}

.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.search-field {
  position: relative;
  display: block;
}

.search-field input,
.sort-field select {
  width: 100%;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
}

.search-field input {
  padding: 0 14px 0 42px;
}

.search-field input:focus,
.sort-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 89, 83, 0.12);
}

.search-icon {
  position: absolute;
  top: 13px;
  left: 15px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.sort-field select {
  padding: 0 34px 0 12px;
  cursor: pointer;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  min-height: 54px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-line button,
.empty-state button {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--coral);
  font-weight: 900;
  cursor: pointer;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #b9c3be;
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  background: #f2f3ef;
  color: var(--white);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 37, 35, 0.04), transparent 48%, rgba(18, 37, 35, 0.55));
}

.product-image {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  background: var(--white);
}

.product-sequence,
.product-type,
.save-product {
  position: relative;
  z-index: 1;
}

.product-sequence {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  border-radius: 3px;
  font-family: Georgia, serif;
  font-size: 18px;
}

.product-type {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.save-product {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  font-size: 21px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.save-product:hover {
  transform: scale(1.08);
}

.save-product[aria-pressed="true"] {
  background: var(--yellow);
}

.save-product[aria-pressed="true"] span[aria-hidden="true"] {
  transform: rotate(45deg);
}

.save-product span {
  display: block;
  line-height: 1;
  transition: transform 160ms ease;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 20px;
}

.product-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.product-name {
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.product-summary-card {
  display: -webkit-box;
  overflow: hidden;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.product-price {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.product-link:hover {
  color: var(--coral);
}

.empty-state {
  max-width: 1440px;
  min-height: 280px;
  margin: 0 auto;
  padding: 72px 20px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--white);
}

.empty-state strong {
  display: block;
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  min-height: 680px;
  background: var(--teal);
  color: var(--white);
}

.story-image {
  min-height: 560px;
  background: url("assets/fitness-hero.jpg") center / cover no-repeat;
}

.story-copy {
  align-self: center;
  padding: 76px 8vw 76px 7vw;
}

.story-copy h2 {
  max-width: 620px;
}

.story-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.9;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.story-stats span {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.story-stats span:last-child {
  border-right: 0;
}

.story-stats strong,
.story-stats small {
  display: block;
}

.story-stats strong {
  font-family: Georgia, serif;
  font-size: 36px;
}

.story-stats small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.67);
}

.notice-band {
  padding: 34px 4vw;
  background: var(--yellow);
}

.notice-band p {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
}

.notice-band strong {
  margin-right: 12px;
}

[dir="rtl"] .hero-scrim {
  background: linear-gradient(270deg, rgba(15, 32, 30, 0.84) 0%, rgba(15, 32, 30, 0.46) 45%, rgba(15, 32, 30, 0.08) 78%);
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .product-kicker {
  letter-spacing: 0;
}

[dir="rtl"] .hero-index {
  right: auto;
  left: 4vw;
}

[dir="rtl"] .feature-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .category-feature:hover .feature-arrow {
  transform: scaleX(-1) translateX(6px);
}

[dir="rtl"] .search-icon {
  right: 15px;
  left: auto;
}

[dir="rtl"] .search-field input {
  padding: 0 42px 0 14px;
}

[dir="rtl"] .product-sequence {
  right: 14px;
  left: auto;
}

[dir="rtl"] .save-product {
  right: auto;
  left: 14px;
}

[dir="rtl"] .product-type {
  right: 18px;
  left: auto;
}

[dir="rtl"] .product-name {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .notice-band strong {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .story-stats span {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

[dir="rtl"] .story-stats span:last-child {
  border-left: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 36px 4vw;
  background: #162321;
  color: var(--white);
  font-size: 12px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  background: var(--white);
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

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

  .brand-story {
    grid-template-columns: 1fr 1fr;
  }

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

  .sort-field {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 600px;
    height: calc(100svh - 72px);
    max-height: 760px;
    padding: 48px 24px;
    background-position: 43% center;
  }

  .hero-scrim {
    background: linear-gradient(0deg, rgba(15, 32, 30, 0.86) 0%, rgba(15, 32, 30, 0.34) 70%);
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 88px);
  }

  .hero-index {
    display: none;
  }

  .category-band {
    grid-template-columns: 1fr;
  }

  .category-feature {
    min-height: 106px;
    padding: 20px 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection {
    padding: 68px 20px 82px;
  }

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

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

  .filter-button {
    padding: 0 8px;
  }

  .sort-field {
    grid-column: auto;
  }

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

  .brand-story {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 440px;
  }

  .story-copy {
    padding: 58px 24px 68px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 220px;
  }

  .site-footer p:last-child {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .saved-button > span:nth-child(2) {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .language-button {
    min-width: 34px;
    padding: 0 7px;
  }

  .hero {
    min-height: 560px;
    padding: 40px 20px;
  }

  .hero-copy {
    max-width: 290px;
    font-size: 21px;
  }

  .feature-number {
    font-size: 34px;
  }

  .category-feature {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
  }

  .section-heading h2,
  .story-copy h2 {
    font-size: 43px;
  }

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

  .product-visual {
    aspect-ratio: 1 / 1;
  }

  .product-info {
    min-height: 300px;
  }

  .story-image {
    min-height: 360px;
  }

  .story-stats span {
    padding: 15px 10px;
  }

  .story-stats strong {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
