/* Dar & Mada — Scandinavian bright design system (redesign round 10). */
/* Core: tokens, base, header, home sections, product cards, footer.   */
:root {
  --paper: #fcfcfa;
  --surface: #f4f2ec;
  --surface-2: #eceae1;
  --ink: #1e221e;
  --muted: #575e54;
  --sticky-header-space: 121px;
  --line: #e6e4db;
  --accent: #3f6b54;
  --accent-deep: #2e5240;
  --clay: #c67b4f;
  --tint-sage: #e9eee2;
  --tint-sky: #e4ebec;
  --tint-sand: #f5ecdc;
  --tint-blush: #f3e7de;
  --tint-stone: #efede6;
  --footer: #243228;
  --footer-soft: #a9b5a6;
  --footer-ink: #e9ede6;
  --white: #fff;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(30, 34, 30, 0.07);
  --shadow-md: 0 12px 28px -8px rgba(30, 34, 30, 0.14);
  --shadow-lg: 0 28px 56px -20px rgba(30, 34, 30, 0.22);
  --gutter: clamp(20px, 4.45vw, 80px);
  --font: "IBM Plex Sans Arabic", sans-serif;
  --font-display: Alexandria, "IBM Plex Sans Arabic", sans-serif;
  --font-price: "Space Grotesk", Inter, sans-serif;
  --olive: var(--accent); /* legacy alias */
}
html[lang="en"] {
  --font: Inter, sans-serif;
  --font-display: "Space Grotesk", Inter, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-header-space);
}
/* One header offset plus a small breathing room, including keyboard targets. */
:where([id], a, button, input, select, summary) {
  scroll-margin-block: 16px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
::selection {
  background: #d9e6d9;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1440px;
  margin-inline: auto;
}
.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;
}
.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 12px;
  background: var(--ink);
  color: var(--white);
  z-index: 40;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
#main-content:focus {
  outline: none;
}

/* ---------- Demo bar ---------- */
.demo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 4px 20px;
  background: var(--ink);
  color: #f2f3ee;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fc3a9;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding-block: 6px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  flex-shrink: 0;
}
.brand-ar {
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-dot {
  color: var(--clay);
}
.brand-en {
  font: 600 8.5px/1.3 "Space Grotesk", Inter, sans-serif;
  letter-spacing: 3.5px;
  margin-top: 5px;
  color: var(--muted);
}
.header-search {
  display: flex;
  flex: 1;
  max-width: 460px;
  margin-inline: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(63, 107, 84, 0.12);
}
.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 8px 20px;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-pill);
}
.header-search input:focus-visible {
  outline: none;
}
.header-search input::placeholder {
  color: var(--muted);
}
.header-search button {
  width: 48px;
  flex: none;
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-pill);
}
.header-search svg {
  margin-inline: auto;
}
.header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.header-actions a,
.language-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  background: transparent;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-actions a:hover,
.language-button:hover,
.header-actions a[aria-current="page"] {
  background: var(--surface);
}
.header-actions svg,
.header-search svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}
.language-button[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}
.language-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
.language-flag {
  width: 24px;
  height: 17px;
  object-fit: contain;
  border-radius: 3px;
  flex: none;
}
.cart-link {
  position: relative;
  font-family: var(--font-price);
  font-weight: 500;
}
#cart-count {
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  display: grid;
  place-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 11.5px;
  line-height: 1;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--r-pill);
}
.menu-button span {
  width: 20px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}
.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.9px) rotate(45deg);
}
.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.9px) rotate(-45deg);
}

/* Header nav row */
.desktop-nav {
  display: flex;
  position: relative;
  align-items: center;
  gap: 8px;
  padding-block: 0 4px;
  font-size: 15px;
  border-top: 0;
}
.desktop-nav a,
.category-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  transition: background 0.2s;
  cursor: pointer;
  list-style: none;
}
.desktop-nav a:hover,
.category-menu summary:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--surface);
}
.desktop-nav a[aria-current="page"] {
  font-weight: 600;
}
.category-menu {
  position: static;
}
.category-menu summary::-webkit-details-marker {
  display: none;
}
.category-menu summary:after {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-end: 1.8px solid currentColor;
  border-block-end: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.category-menu[open] summary:after {
  transform: rotate(225deg) translateY(-2px);
}
.category-menu-links {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.category-menu-links a {
  padding: 14px 18px;
  min-height: 52px;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: background 0.2s;
}
.category-menu-links a:hover {
  background: var(--tint-sage);
}

/* Mobile drawer */
.mobile-nav {
  padding-block: 16px 26px;
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-size: 16px;
}
.mobile-nav > a {
  border-bottom: 1px solid var(--line);
}
.drawer-account-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 10px;
}
.drawer-account-controls .language-button {
  justify-content: flex-start;
}
.mobile-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  padding-top: 10px;
}
.mobile-categories a {
  border-bottom: 1px solid var(--line);
}

/* ---------- Typography & shared ---------- */
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--accent);
}
.eyebrow > span:first-child:empty {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
}
html[lang="en"] .eyebrow {
  letter-spacing: 2.2px;
  font-size: 12px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  margin-block: 20px 18px;
}
h1 > span {
  display: block;
}
.headline-soft {
  color: var(--accent);
}
html[lang="en"] h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin-block: 24px 20px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}
html[lang="en"] h2 {
  letter-spacing: -0.6px;
  font-weight: 500;
  line-height: 1.2;
}

/* Buttons */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.primary-button:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.primary-button:active {
  transform: none;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  min-height: 50px;
  padding: 10px 26px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.secondary-button:hover {
  background: var(--ink);
  color: var(--white);
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  background: var(--surface);
  transition: background 0.2s;
}
.ghost-button:hover {
  background: var(--surface-2);
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.2px;
  font-size: 14px;
}
.text-link:hover {
  color: var(--accent);
}
.direction-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.25s;
}
html[dir="rtl"] .direction-arrow {
  transform: rotate(180deg);
}
.primary-button:hover .direction-arrow,
.secondary-button:hover .direction-arrow {
  transform: translateX(4px);
}
html[dir="rtl"] .primary-button:hover .direction-arrow,
html[dir="rtl"] .secondary-button:hover .direction-arrow {
  transform: rotate(180deg) translateX(4px);
}

/* Section headings */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.section-aside {
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 6px;
}

/* ---------- Hero ---------- */
.hero-scandi {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74vh, 760px);
  overflow: hidden;
  background: var(--surface);
}
.hero-inner {
  padding-block: clamp(28px, 4vw, 56px);
}
.hero-copy {
  min-width: 0;
  max-width: 540px;
  padding: clamp(28px, 3.2vw, 46px);
  background: rgba(252, 252, 250, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: rise-in 0.7s ease both;
}
.hero-copy h1 {
  margin-block: 16px 14px;
}
.hero-description {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
/* Widened past the inline-end edge to crop the photo's white door-frame strip. */
.hero-media > img {
  width: 106%;
  max-width: none;
  height: 100%;
  margin-inline-start: -1%;
  object-fit: cover;
  object-position: 50% 62%;
}
/* Mirrored in RTL so the sofa and flowers stay clear of the inline-start card. */
html[dir="rtl"] .hero-media > img {
  transform: scaleX(-1);
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Categories ---------- */
.categories {
  padding-block: clamp(26px, 3.3vw, 44px) clamp(18px, 2.4vw, 30px);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: center;
  padding-block: 6px 10px;
  border-radius: var(--r-md);
}
.category-media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint-stone);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:nth-child(7n + 1) .category-media {
  background: var(--tint-sage);
}
.category-card:nth-child(7n + 2) .category-media {
  background: var(--tint-sand);
}
.category-card:nth-child(7n + 3) .category-media {
  background: var(--tint-sky);
}
.category-card:nth-child(7n + 4) .category-media {
  background: var(--tint-blush);
}
.category-card:nth-child(7n + 5) .category-media {
  background: var(--tint-stone);
}
.category-card:nth-child(7n + 6) .category-media {
  background: var(--tint-sky);
}
.category-card:nth-child(7n + 7) .category-media {
  background: var(--tint-sand);
}
.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}
.category-card:hover .category-media {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card:hover .category-media img {
  transform: scale(1.06);
}
.category-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  min-width: 0;
}
.category-card:hover .category-title {
  color: var(--accent);
}

/* ---------- Rooms ---------- */
.rooms {
  padding-block: clamp(22px, 2.8vw, 40px);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.room-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 0.92;
}
.room-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.room-card:hover > img {
  transform: scale(1.05);
}
.room-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(200deg, transparent 46%, rgba(20, 26, 21, 0.62));
}
.room-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(10, 14, 11, 0.4);
}
.room-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(252, 252, 250, 0.94);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  transition: background 0.2s, gap 0.2s;
}
.room-card:hover .room-cta {
  background: var(--white);
}
.room-cta .direction-arrow {
  width: 17px;
  height: 17px;
}

/* ---------- Featured collection ---------- */
.collection {
  padding-block: clamp(22px, 2.8vw, 40px) clamp(30px, 4vw, 56px);
}
.price-note {
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 6px;
}
.collection-more {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

/* Product cards (home + collection + favorites) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px) clamp(14px, 1.6vw, 24px);
}
.product-card {
  position: relative;
  min-width: 0;
  scroll-margin-top: 16px;
}
.product-card:target {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: var(--r-md);
}
.product-card-link {
  display: block;
}
.product-card-link:focus-visible {
  outline-offset: 6px;
  border-radius: var(--r-md);
}
.product-image {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: background 0.25s;
}
.product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card-link:hover .product-image {
  background: var(--surface-2);
}
.product-card-link:hover .product-image img {
  transform: scale(1.04);
}
.product-meta {
  padding: 15px 6px 0;
}
.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-topline h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.product-card-link:hover h3 {
  color: var(--accent);
}
.swatch {
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  background: var(--swatch);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 4px var(--line);
  margin-inline-end: 4px;
}
.product-type,
.product-material {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.card-bottom > .direction-arrow {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.2s, color 0.2s;
}
html[dir="rtl"] .card-bottom > .direction-arrow {
  transform: rotate(180deg);
}
.product-card-link:hover .card-bottom > .direction-arrow {
  background: var(--ink);
  color: var(--white);
}
.product-price {
  font-family: var(--font-price);
  font-size: 18px;
  font-weight: 600;
}
.currency {
  font: 500 12px var(--font-price);
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-inline-start: 4px;
}
.favorite-button {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: transform 0.2s, color 0.2s;
}
.favorite-button:hover {
  transform: scale(1.08);
  color: var(--accent);
}
.favorite-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.favorite-button[aria-pressed="true"] {
  color: var(--accent);
}
.favorite-button[aria-pressed="true"] svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.availability {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  margin-block: 10px;
}
.product-card > .availability {
  padding-inline: 6px;
  margin-block: 6px 0;
}
.unavailable,
.field-error {
  color: #9c3f2b;
}

/* ---------- Craft band ---------- */
.craft {
  padding-block: clamp(20px, 3vw, 40px) clamp(44px, 5.5vw, 84px);
}
.craft-panel {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  background: var(--tint-sage);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.6vw, 56px);
}
.craft-copy h2 {
  margin-block: 14px 16px;
  max-width: 480px;
}
.craft-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  max-width: 460px;
}
.craft-values {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.craft-values li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.craft-values svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  stroke-width: 1.4;
  margin-top: 3px;
}
.craft-values h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
}
.craft-values p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}
.craft-media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--footer-ink);
  scroll-margin-top: 16px;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: clamp(30px, 4vw, 70px);
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3.5vw, 44px);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: #c9d6c5;
  margin-top: 2px;
}
.footer-story > p:not(.footer-tagline) {
  max-width: 380px;
  font-size: 14px;
  line-height: 2;
  color: var(--footer-soft);
  margin-top: 14px;
}
.footer-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 237, 230, 0.14);
  max-width: 380px;
}
.footer-caption {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--footer-ink);
}
.footer-note p {
  font-size: 12.5px;
  color: var(--footer-soft);
  line-height: 1.9;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.footer-links h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--footer-soft);
  margin-bottom: 14px;
}
html[lang="ar"] .footer-links h3 {
  letter-spacing: 0;
  font-size: 13px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 15px;
  color: var(--footer-ink);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.back-top {
  gap: 10px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--footer-soft) !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(233, 237, 230, 0.14);
  padding-block: 18px;
  font-size: 12px;
  color: var(--footer-soft);
}
.footer-bottom > span:first-child {
  font-family: var(--font-price);
  letter-spacing: 1.6px;
}
.noscript-note {
  padding: 20px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root {
    --sticky-header-space: 177px;
  }
  .header-inner {
    gap: 16px;
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .category-menu-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-scandi {
    min-height: clamp(480px, 62vh, 620px);
  }
  .hero-copy {
    max-width: 480px;
  }
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-story {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 18px;
    --sticky-header-space: 0px;
  }
  html {
    scroll-padding-top: var(--sticky-header-space);
  }
  body {
    font-size: 15.5px;
  }
  .demo-bar {
    min-height: 30px;
    font-size: 11px;
  }
  .site-header {
    position: relative;
  }
  .header-inner {
    min-height: 0;
    padding-block: 8px;
    gap: 8px;
  }
  .brand-ar {
    font-size: 23px;
  }
  .brand-en {
    font-size: 7.5px;
    letter-spacing: 2.6px;
    margin-top: 4px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 0;
  }
  .header-actions .account-link,
  .header-actions > .language-button {
    display: none;
  }
  .header-actions a {
    min-width: 44px;
    padding-inline: 8px;
  }
  .menu-button {
    display: flex;
  }
  .header-search input {
    padding: 8px 16px;
    font-size: 16px;
  }
  .hero-scandi {
    display: block;
    min-height: 0;
    overflow: visible;
    background: none;
  }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    overflow: hidden;
  }
  .hero-media > img {
    height: auto;
    aspect-ratio: 5 / 4;
  }
  .hero-inner {
    padding-block: 0 24px;
  }
  .hero-copy {
    position: relative;
    max-width: none;
    margin-top: -52px;
    padding: 22px 20px 24px;
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
  }
  h1 {
    font-size: 32px;
    margin-block: 12px 10px;
  }
  html[lang="en"] h1 {
    font-size: 38px;
    margin-block: 14px 12px;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.9;
  }
  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }
  .primary-button {
    min-height: 50px;
    font-size: 14px;
    padding: 10px 24px;
  }
  .ghost-button {
    min-height: 50px;
    font-size: 14px;
    padding: 10px 20px;
  }
  .section-heading {
    margin-bottom: 20px;
    gap: 12px;
  }
  .section-aside {
    display: none;
  }
  .categories {
    padding-block: 22px 16px;
  }
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .category-card {
    gap: 9px;
    padding-block: 2px 4px;
  }
  .category-title {
    font-size: 12px;
  }
  .rooms {
    padding-block: 18px;
  }
  .room-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .room-grid::-webkit-scrollbar {
    display: none;
  }
  .room-card {
    flex: 0 0 76%;
    scroll-snap-align: center;
    aspect-ratio: 0.98;
  }
  .collection {
    padding-block: 18px 32px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .product-card {
    scroll-margin-top: 16px;
  }
  .product-meta {
    padding: 12px 2px 0;
  }
  .product-topline h3 {
    font-size: 15.5px;
  }
  .product-type,
  .product-material {
    font-size: 13px;
  }
  .product-price {
    font-size: 16.5px;
  }
  .card-bottom > .direction-arrow {
    width: 30px;
    height: 30px;
    padding: 7px;
  }
  .favorite-button {
    inset-inline-end: 8px;
    top: 8px;
    height: 44px;
    width: 44px;
  }
  .collection-more {
    margin-top: 26px;
  }
  .craft {
    padding-block: 14px 40px;
  }
  .craft-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 20px 26px;
    border-radius: 22px;
  }
  .craft-media {
    order: -1;
  }
  .craft-media img {
    aspect-ratio: 16 / 10;
  }
  .craft-values {
    margin-top: 22px;
    gap: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 34px 26px;
  }
  .footer-links {
    gap: 0;
  }
  .footer-links h3 {
    margin-bottom: 8px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding-block: 16px 20px;
  }
}
@media (max-width: 380px) {
  :root {
    --gutter: 14px;
  }
  .brand-ar {
    font-size: 21px;
  }
  h1 {
    font-size: 29px;
  }
  html[lang="en"] h1 {
    font-size: 34px;
  }
  .category-grid {
    gap: 12px 8px;
  }
  .category-title {
    font-size: 10.5px;
  }
  .product-grid {
    gap: 20px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
