:root {
  color-scheme: light;
  --paper: #e9e7e1;
  --ink: #252724;
  --accent: #4a5244;
  --line: #cccac2;
  --surface: #f2f0ea;
  --muted: #565b53;
  font-family: Optima, Candara, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; object-fit: cover; }

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(24px, 6vw, 96px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.wordmark span { font-size: 16px; }
.header nav { display: flex; gap: clamp(16px, 4vw, 48px); }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.showroom-film {
  position: relative;
  height: 100svh;
  background: var(--accent);
}

.showroom-film-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-film-actions {
  position: absolute;
  inset: auto clamp(16px, 6vw, 96px) 24px;
  display: flex;
  justify-content: flex-end;
}

.showroom-film-actions > * {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.showroom-film-actions > *:hover { background: var(--paper); }
.showroom-film-actions > *:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.hero {
  position: relative;
  background: var(--surface);
}

.hero-link { display: block; }
.hero-link:focus-visible { outline-offset: -4px; }
.hero-image { height: auto; aspect-ratio: 64 / 15; object-position: center 60%; }
h1, h3 { font-family: Georgia, serif; font-weight: 400; margin: 0; }
.hero-controls button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 28px/1 Georgia, serif;
  cursor: pointer;
}
.hero-controls button:hover { background: var(--paper); }
.hero-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#previous-room, #next-room { top: 50%; translate: 0 -50%; }
#previous-room { left: clamp(4px, 1.5vw, 24px); }
#next-room, #toggle-rotation { right: clamp(4px, 1.5vw, 24px); }
#toggle-rotation { bottom: 6px; font: 16px/1 sans-serif; }

.rooms { max-width: 1480px; margin: auto; padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 96px); }
h1 { font-size: clamp(32px, 4vw, 54px); margin-bottom: 25px; letter-spacing: -.03em; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.room-grid article { scroll-margin-block: 24px; }
.room-grid article:target h3 { text-decoration: underline; text-underline-offset: 6px; }
.room-grid img { aspect-ratio: 5 / 4; background: var(--line); }
h3 { font-size: 26px; margin-top: 15px; }
.room-grid p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.room-grid p a { text-decoration: underline; text-underline-offset: 3px; }
.room-grid p a:hover { color: var(--ink); }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 680px) {
  .header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .header nav { flex-wrap: wrap; font-size: 14px; }
  .hero-controls:not([hidden]) { display: flex; justify-content: flex-end; gap: 4px; padding: 0 12px; }
  .hero-controls button { position: static; }
  #previous-room, #next-room { translate: none; }
  .room-grid { grid-template-columns: 1fr; gap: 30px; }
  .room-grid img { aspect-ratio: 3 / 2; }
}

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

.rooms-trigger, .room-menu button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.rooms-trigger { padding: 10px 4px; }
.rooms-trigger span { margin-left: 5px; }
.room-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(100%, clamp(760px, 69vw, 1200px));
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(20px, 5vw, 48px);
  background: var(--paper);
  color: var(--ink);
  border: 0;
}
.room-menu::backdrop { background: rgb(37 39 36 / 42%); }
body:has(.room-menu[open]) { overflow: hidden; }
.room-menu-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.room-menu h2, .catalog h2 { font: 400 clamp(30px, 4vw, 48px) Georgia, serif; margin: 0; }
.room-menu-heading button { width: 44px; height: 44px; font-size: 28px; }
.room-menu-layout { display: grid; grid-template-columns: minmax(115px, 1fr) minmax(0, 4fr); gap: 16px; }
#room-choices button { display: block; width: 100%; padding: 14px 8px; text-align: left; }
#room-choices button[aria-pressed="true"] { background: #e7e9e1; }
.room-menu-types { padding-left: clamp(10px, 3vw, 28px); border-left: 1px solid var(--line); }
.room-menu-types h3 { margin: 8px 0 12px; font-size: 22px; }
.room-menu-types ul, .catalog-grid { list-style: none; margin: 0; padding: 0; }
.room-menu-types ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#room-types > div + div { margin-top: 24px; }
.room-menu-types h4 { margin: 0 0 10px; font-weight: 600; color: var(--muted); }
.room-menu-types a { display: block; height: 100%; border-bottom: 1px solid var(--line); }
.room-menu-types a img { aspect-ratio: 16 / 9; height: auto; }
.room-menu-types a img.product-cutout { object-fit: contain; background: var(--surface); }
.catalog-cover.product-cutout {
  aspect-ratio: 7 / 5;
  object-fit: cover;
  background: #dbd6d3;
}
.room-menu-types a span { display: block; padding: 10px 0; overflow-wrap: anywhere; }
.room-menu-types li:has(.room-option-trigger) { position: relative; }
.room-menu-types li:has(.room-option-trigger) a span { padding-right: 38px; }
.room-menu .room-option-trigger {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 36px;
  height: 40px;
  font-size: 24px;
}
.room-option-trigger[aria-expanded="true"] { background: #e7e9e1; }
.room-menu-options { border-left: 1px solid var(--line); padding-left: 14px; }
.room-menu-options h3 { margin: 8px 0 12px; font-size: 22px; }
.room-menu-options ul { list-style: none; margin: 0; padding: 0; }
.room-menu-options a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.room-menu-options a:hover { text-decoration: underline; }
.catalog-grid li:target { border-color: var(--accent); background: #e7e9e1; }

@media (min-width: 761px) {
  .room-menu-layout { grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr); }
  .room-menu-layout:has(.room-menu-options:not([hidden])) { grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr) minmax(130px, 1.4fr); }
  .room-menu-types ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .room-menu-options { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
}
.room-menu-types a[aria-current="page"] { border-color: var(--accent); }
.room-menu-types a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog { scroll-margin-top: 20px; border-top: 1px solid var(--line); }
.catalog > p { color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.catalog-grid li { padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.catalog-grid h2 { font-size: clamp(21px, 2.3vw, 28px); }

@media (max-width: 680px) {
  .header { flex-direction: row; align-items: center; }
}

@media (max-width: 980px) {
  .room-menu { width: min(720px, 100%); }
}

@media (max-width: 560px) {
  .room-menu-layout { grid-template-columns: minmax(0, 1fr); }
  #room-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .room-menu-types { padding-left: 0; border-left: 0; }
  .room-menu-types ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.catalog-cover { aspect-ratio: 3 / 1; margin: 20px 0 28px; }
.catalog-cover.product-cutout { max-width: 400px; }
.product-measurement { position: relative; max-width: 400px; margin: 20px 0 28px; }
.product-measurement .catalog-cover { margin: 0; }
.measurement-popover { position: relative; width: max-content; margin: 4px 0 0 auto; }
.measurement-popover summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.measurement-popover summary::-webkit-details-marker { display: none; }
.measurement-popover summary svg { width: 17px; height: 17px; }
.measurement-values {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(100% + 4px);
  width: 132px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.measurement-values::after { content: ""; position: absolute; inset: 100% 0 auto; height: 5px; }
.measurement-values dl { margin: 0; }
.measurement-values dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.measurement-values dd { margin: 0; white-space: nowrap; }

.product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; }
.product-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.product-card:target { outline: 2px solid var(--accent); outline-offset: 2px; scroll-margin: 18px; }
.product-card .product-measurement { max-width: none; margin: 0; }
.product-card img { aspect-ratio: 7 / 5; object-fit: contain; background: #dbd6d3; }
.product-photo-viewport { position: relative; overflow: hidden; }
.product-photo-viewport img { transition: transform 260ms ease-in-out; }
.product-card .product-room-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .product-photo-viewport img { transition: none; }
}
.product-photo-link { position: absolute; inset: 0; }
.product-photo-link:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .product-measurement.has-room-photo:hover .product-photo-viewport > img:first-child { transform: translateX(-100%); }
  .product-measurement.has-room-photo:hover .product-photo-viewport > .product-room-photo { transform: translateX(0); }
}
.product-card .measurement-popover { position: absolute; z-index: 1; right: 8px; bottom: 8px; margin: 0; }
.product-card-body { padding: 14px; }
.product-card-body h2 { font-size: 21px; }
.product-card-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card-price { margin: 10px 0; font-weight: 700; }
.add-to-basket { min-height: 40px; padding: 6px 12px; border: 1px solid var(--accent); background: var(--accent); color: white; font: inherit; cursor: pointer; }
.add-to-basket:hover { background: var(--ink); }
.demo-basket { min-height: 1.5em; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.product-detail-layout.no-product-media { grid-template-columns: minmax(0, 1fr); }
.detail-gallery { margin: 0; min-width: 0; }
.detail-gallery-viewport { position: relative; overflow: hidden; }
.detail-gallery img { aspect-ratio: 7 / 5; object-fit: contain; background: #dbd6d3; transition: transform 260ms ease-in-out; }
.detail-gallery img + img { position: absolute; inset: 0; height: 100%; object-fit: cover; transform: translateX(100%); }
.detail-gallery[data-slide="1"] img:first-child { transform: translateX(-100%); }
.detail-gallery[data-slide="1"] img + img { transform: translateX(0); }
.detail-gallery figcaption { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.detail-gallery-controls button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.detail-gallery-controls button:disabled { opacity: .5; cursor: default; }
.product-detail-layout h1 { margin-bottom: 12px; }
.product-detail-layout p { line-height: 1.55; }
.product-detail-specs { margin: 24px 0; }
.product-detail-specs div { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.product-detail-specs dd { margin: 0; text-align: right; }
.product-palette { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.product-palette li { display: flex; align-items: center; gap: 6px; }
.product-swatch { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; background: var(--swatch); }
@media (max-width: 760px) { .product-detail-layout { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .detail-gallery img { transition: none; } }
.sehpa-page { max-width: 1760px; padding-inline: clamp(12px, 2.5vw, 42px); }
.sehpa-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.sehpa-layout:has(> aside[hidden]) { grid-template-columns: minmax(0, 1fr); }
.sehpa-filter-panel { padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.sehpa-filter-panel summary { font-weight: 600; cursor: pointer; }
.filter-group { border: 0; border-top: 1px solid var(--line); margin: 12px 0 0; padding: 8px 0 0; min-width: 0; }
.filter-group legend { padding: 0 6px 0 0; font-weight: 600; }
.filter-choice { display: flex; gap: 7px; align-items: center; margin: 5px 0; }
.filter-choice input { accent-color: var(--accent); }
.filter-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.filter-range label { font-size: 13px; }
.filter-range input { display: block; width: 100%; min-width: 0; padding: 6px; border: 1px solid var(--line); font: inherit; }
.filter-range-compact { grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); gap: 4px; align-items: center; font-size: 12px; }
.filter-range-compact + .filter-range-compact { margin-top: 4px; }
.filter-range-compact input { padding: 4px; font-size: 12px; }
.filter-range-headings { color: var(--muted); font-size: 11px; }
.filter-range-headings > :first-child { grid-column: 2; }
.filter-reset { margin-top: 16px; padding: 7px 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
#sehpa-result-count { margin: 0; }
@media (max-width: 850px) {
  .sehpa-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 380px) {
  .product-list { grid-template-columns: 1fr; }
}
.catalog-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.catalog-grid li { min-height: 96px; }

.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.set-card, .set-summary { background: var(--surface); border: 1px solid var(--line); }
.set-card img { aspect-ratio: 4 / 3; }
.set-card > div, .set-summary { padding: 20px; }
.set-card:hover h2, .room-grid article a:hover { text-decoration: underline; text-underline-offset: 4px; }
.selection { scroll-margin-top: 20px; max-width: 900px; }
.selection + .selection { margin-top: 48px; }
.selection .set-card h3 { margin-top: 0; }
.selection .set-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.set-card h2, .set-summary h2, .set-parts h2 { font-size: 25px; }
.set-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.set-detail > img { aspect-ratio: 4 / 3; }
.set-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-summary dd { margin: 0; white-space: nowrap; }
.set-parts { margin-top: 32px; }
.set-parts table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.set-parts th, .set-parts td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.set-parts td:nth-child(n+2) { white-space: nowrap; }
.set-parts summary { cursor: pointer; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-parts summary h2 { display: inline; margin-left: 5px; }
.set-parts a { text-decoration: underline; text-underline-offset: 4px; }
.set-parts a:hover { color: var(--accent); }
@media (max-width: 620px) {
  .set-detail { grid-template-columns: 1fr; }
}

.header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.favorite-button {
  margin: 4px 0 4px 8px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.favorite-button[aria-pressed="true"] {
  background: #454a35;
  color: white;
}


.profile-page {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
}

.profile-header {
  border-bottom: 1px solid var(--line);
}

.profile-header button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.profile-header button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.profile-main {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 48px 24px 64px;
}

.profile-main h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
}

.profile-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
}

.profile-nav {
  display: grid;
  align-content: start;
}

.profile-nav a {
  padding: 10px 14px;
  border-inline-start: 2px solid transparent;
}

.profile-nav a:hover,
.profile-nav a[aria-current="page"] {
  background: var(--surface);
  border-inline-start-color: var(--accent);
}

.profile-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(20px, 4vw, 40px);
}

.profile-panel h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
}

.profile-form {
  max-width: 480px;
  margin-bottom: 32px;
}

.profile-form .profile-save {
  background: var(--accent);
  color: white;
}

@media (max-width: 620px) {
  .profile-main { padding-top: 32px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-nav { display: flex; flex-wrap: wrap; }
}

.profile-page {
  --profile-text: #252724;
  --profile-secondary: #454940;
  --profile-control-border: #70766a;
  color: var(--profile-text);
}

.profile-panel {
  background: #f8f7f3;
}

.profile-page [data-flux-heading],
.profile-page [data-flux-label] {
  color: var(--profile-text);
}

.profile-page [data-flux-text],
.profile-page [data-flux-description] {
  color: var(--profile-secondary);
}

.profile-page [data-flux-error] {
  color: #942e26;
}

.profile-page input:not([type="hidden"]) {
  background: #fff;
  color: var(--profile-text);
  border-color: var(--profile-control-border);
  color-scheme: light;
}

.profile-page input[aria-invalid="true"] {
  border-color: #942e26;
}

.profile-page :is(a, button, input):focus-visible {
  outline: 2px solid #40533b;
  outline-offset: 3px;
}

.profile-nav a[aria-current="page"] {
  background: #dce3d7;
  font-weight: 600;
}

.profile-page .profile-save,
.profile-page .profile-save:hover {
  background: #3b4a35;
  color: #fff;
}

.profile-page .profile-save:hover {
  background: #2f3c2a;
}

:root {
  --paper: #f7f5ef;
  --surface: #efede5;
  --line: #cbc9bf;
  --store-max: 1280px;
  --store-edge: clamp(20px, 5.55vw, 80px);
  --font-text: "Archivo", system-ui, sans-serif;
  --font-display: var(--font-text);
  --s-2: 8px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --gutter: 24px;
  --t-lead: 22px;
  --nav: 24px;
  --r-md: 0px;
  font-family: var(--font-text);
}
[hidden] { display: none !important; }
h1, h2, h3, .catalog h2, .room-menu h2 { font-family: var(--font-display); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; inset: 8px auto auto 8px; z-index: 20; padding: 12px 16px;
  background: var(--ink); color: var(--paper);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(20px, 5vw, 70px); row-gap: 0;
  padding: 0 max(var(--store-edge), calc((100% - var(--store-max)) / 2));
  min-height: 83px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.header .wordmark, .footer .wordmark {
  display: inline-flex; align-items: baseline; gap: 7px;
  font: 600 31px/1 var(--font-text); letter-spacing: -.065em; white-space: nowrap;
}
.header .wordmark span, .footer .wordmark span {
  font-size: 15px; font-weight: 500; letter-spacing: -.025em;
}
.header nav { align-items: center; column-gap: clamp(10px, 2vw, 28px); white-space: nowrap; }
.header nav a, .header .rooms-trigger {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 14px;
}
.header-search {
  display: flex; justify-self: center; align-items: center; width: min(100%, 540px); min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
}
.header-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-search input {
  width: 100%; min-width: 0; height: 44px; border: 0; background: transparent;
  color: var(--ink); padding-inline: 14px 4px; font: inherit;
}
.header-search label {
  flex: none; padding: 0 10px 0 12px; border-right: 1px solid var(--line);
  font-size: 13px; cursor: text;
}
.header-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.header-search button {
  display: grid; place-items: center; flex: 0 0 46px; height: 44px; border: 0;
  background: transparent; color: var(--ink); cursor: pointer;
}
.header-search button:hover { background: var(--paper); }
.header .store-departments {
  display: flex; justify-content: center; gap: clamp(24px, 4vw, 58px); grid-column: 1 / -1;
  border-top: 1px solid var(--line); margin-top: 0;
}
.store-home .header {
  position: fixed; inset: 0 0 auto; z-index: 5;
  min-height: 128px; grid-template-rows: 82px 45px;
}
.store-home { --nav: 128px; }
html:has(.store-home) { scroll-padding-top: 136px; scroll-behavior: auto; }
.wrap {
  width: min(var(--store-max), calc(100% - 2 * var(--store-edge)));
  margin-inline: auto;
}
.store-hero {
  height: max(668px, 100svh); container-type: inline-size;
  background: var(--paper);
}
.store-hero > .wrap { height: 100%; }
.store-hero-stage { display: block; min-height: 0; }
.store-hero-shell {
  height: 100%; display: grid; grid-template-rows: auto minmax(245px, 1fr);
}
.store-hero-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start; gap: var(--gutter);
  padding-block: calc(var(--nav) + clamp(32px, 6vh, 66px)) clamp(28px, 5vh, 50px);
}
.store-hero h1 {
  grid-column: span 7; text-wrap: balance;
  font: 400 clamp(54px, 7vw, 100px)/.94 var(--font-display);
  letter-spacing: -.072em; margin: 0;
}
.store-hero-head > div { grid-column: span 5; }
.store-hero p { max-width: 35ch; margin: 0 0 19px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }
.store-hero-photo {
  height: 100%; min-height: 0; width: 100cqw; margin-inline: calc((100% - 100cqw) / 2);
  object-position: 50% 68%;
}
.store-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 46px; padding: 10px 17px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--paper); font: 500 15px/1.2 var(--font-text); cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.store-button:hover { background: var(--ink); transform: translateY(-2px); }
.store-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.store-button:active { transform: translateY(1px); }
.store-rooms { min-height: 100svh; padding-block: calc(var(--nav) + 48px) 32px; }
.store-rooms h2 {
  font: 400 clamp(34px, 4.3vw, 62px)/1.04 var(--font-display);
  letter-spacing: -.05em; margin: 0 0 30px;
}
.store-room-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.store-room { min-width: 0; }
.store-room-photo, .browse-photo { display: block; overflow: hidden; }
.store-room-photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; transition: transform 200ms ease;
}
.store-room-photo:hover img, .browse-photo:hover img { transform: scale(1.03); }
.store-room h3 { font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.045em; margin: 10px 0 3px; }
.store-room h3 a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.store-room h3 span { font-size: 16px; }
.store-room-links {
  display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); font-size: 14px;
}
.store-room-links a { min-height: 44px; display: flex; align-items: center; }
.store-room a:hover, .store-text-link, .basket-product:hover {
  text-decoration: underline; text-underline-offset: 4px;
}
.footer {
  padding-inline: max(var(--store-edge), calc((100% - var(--store-max)) / 2));
  gap: 20px; align-items: center;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.browse-page, .basket-page { min-height: 70svh; }
.browse-filters {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: 12px;
  align-items: end; border-block: 1px solid var(--line); padding-block: 16px;
}
.browse-filters label { display: block; margin-bottom: 6px; font-size: 14px; }
.browse-filters select {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit;
}
.browse-filters .browse-priced, .browse-filters > a {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0;
}
.browse-priced input { accent-color: var(--accent); margin-inline: 0 8px; }
.browse-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.browse-list .product-card { display: flex; flex-direction: column; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.browse-list .product-card img { aspect-ratio: 5 / 4; transition: transform 200ms ease; background: var(--surface); }
.browse-list .product-card-body { display: grid; padding: 13px 0; flex: 1; }
.browse-list h2 { font: 500 21px/1.2 var(--font-display); margin: 0; }
.browse-category { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.store-card-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.favorite-button, .add-to-basket { min-height: 44px; }
.store-card-actions .favorite-button { margin: 0; }
.basket-items, #favorite-list { list-style: none; padding: 0; }
.basket-items li {
  display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(90px, auto) auto;
  align-items: center; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line);
}
.basket-product, .basket-quantity { display: flex; align-items: center; gap: 8px; }
.basket-product img { width: 74px; height: 62px; object-fit: contain; background: var(--surface); }
.basket-quantity button, .basket-remove {
  min-height: 44px; min-width: 44px; border: 1px solid var(--line);
  color: var(--ink); background: var(--paper); cursor: pointer; font: inherit;
}
.basket-quantity button:hover, .basket-remove:hover { background: var(--surface); }
.basket-quantity span { min-width: 22px; text-align: center; }
.basket-total { font-size: 21px; font-weight: 600; }
#favorite-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
#favorite-list li { max-width: 350px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
#favorite-list img { aspect-ratio: 5 / 4; object-fit: contain; margin-bottom: 10px; background: var(--surface); }
#favorite-list .favorite-button { margin-left: 0; }

@media (max-width: 1000px) {
  .store-room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-room-photo img { aspect-ratio: 5 / 4; }
  .browse-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .header, .store-home .header {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; gap: 8px 10px; padding-block: 12px;
  }
  .header .wordmark { font-size: 25px; }
  .header .wordmark span { font-size: 12px; }
  .header nav { justify-content: end; column-gap: 10px; }
  .header nav a, .header .rooms-trigger { font-size: 13px; }
  .header .rooms-trigger { padding-inline: 0; }
  .header .rooms-trigger span { margin-left: 3px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .header .store-departments { justify-content: start; flex-wrap: nowrap; gap: 18px; overflow-x: auto; }
  .store-home { --nav: 176px; }
  html:has(.store-home) { scroll-padding-top: 184px; }
  .store-hero { height: max(719px, 100svh); }
  .store-hero-head { grid-template-columns: 1fr; gap: 18px; padding-block: calc(var(--nav) + 28px) 28px; }
  .store-hero-head > div { grid-column: 1; }
  .store-hero h1 { grid-column: 1; font-size: clamp(40px, 9.2vw, 64px); }
  .store-hero p { margin-bottom: 13px; }
  .store-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  .header .wordmark { gap: 4px; font-size: 22px; }
  .header .wordmark span { font-size: 10px; }
  .header nav { gap: 8px; }
  .header nav a[href$="kesfet.html"] { display: none; }
  .header .store-departments a[href$="kesfet.html"] { display: inline-flex; }
  .header nav a, .header .rooms-trigger { font-size: 12px; }
  .store-hero-head .store-button { width: 100%; }
  .store-rooms { min-height: 200svh; }
  .store-room-grid { gap: 14px; }
  .store-room-photo img { aspect-ratio: 3 / 4; }
  .store-room-links a { font-size: 13px; }
  .browse-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse-list { grid-template-columns: minmax(0, 1fr); }
  .basket-items li { grid-template-columns: 1fr auto; gap: 8px; }
  .basket-product { grid-column: 1 / -1; }
  .basket-items strong { grid-column: 2; grid-row: 2; text-align: right; }
  .basket-remove { justify-self: start; }
  .footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .store-button, .store-room-photo img, .browse-photo img { transition: none; }
  .store-button:hover, .store-button:active, .store-room-photo:hover img, .browse-photo:hover img { transform: none; }
}

.store-home .header .wordmark { min-height: 44px; align-items: center; }
.store-room a:focus-visible { scroll-margin-block: 24px; }
.store-home .store-closing { display: block; min-height: 100svh; padding: calc(var(--nav) + 48px) 0 72px; }
.store-home .store-closing > .wrap { min-height: calc(100svh - var(--nav) - 121px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.store-care {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start; gap: var(--gutter);
}
.store-care > div { grid-column: span 7; }
.store-care > img { grid-column: span 5; }
.store-care h2 { font: 400 clamp(33px, 4.3vw, 62px)/1.04 var(--font-display); letter-spacing: -.05em; margin: 0; }
.store-care p { margin: 16px 0 22px; line-height: 1.5; }
.store-care img { height: auto; aspect-ratio: 4 / 3; }
.store-closing-links {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.store-closing-links .wordmark { align-items: center; min-height: 44px; }
@media (max-width: 740px) {
  .store-care { grid-template-columns: 1fr; }
  .store-care > div, .store-care > img { grid-column: 1; }
}
@media (max-width: 450px) {
  .store-closing-links { flex-wrap: wrap; gap: 6px; }
}


@media (max-width: 360px) {
  .header .wordmark { font-size: 18px; }
  .header .wordmark span { font-size: 9px; }
  .header nav { gap: 6px; }
  .header nav a, .header .rooms-trigger { font-size: 11px; }
}

.storefront-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#storefront-sync-feedback {
  position: fixed;
  z-index: 10;
  inset: auto 16px 16px;
  max-width: 38rem;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.header .wordmark, .footer .wordmark {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 2px;
  width: max-content;
  min-height: 44px;
}
.wordmark img {
  display: block;
  width: clamp(112px, 11vw, 156px);
  height: auto;
}
.header .wordmark span, .footer .wordmark span {
  font: 500 10px/1.2 var(--font-text);
  letter-spacing: .1em;
}
@media (max-width: 450px) {
  .header .wordmark img { width: clamp(78px, 24vw, 105px); }
  .header .wordmark span { font-size: 9px; }
}


.header:has(> .storefront-nav-account) {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  column-gap: clamp(12px, 2.5vw, 32px);
}
.storefront-nav-account {
  justify-self: end;
  white-space: nowrap;
  min-height: 44px;
  padding: 7px 12px;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.storefront-nav-account:hover {
  border-color: var(--accent);
  background: var(--surface);
}
@media (max-width: 740px) {
  .header:has(> .storefront-nav-account) {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto;
    column-gap: 10px;
  }
  .header:has(> .storefront-nav-account) > nav[aria-label="Ana menü"] { grid-column: 2 / -1; }
  .header:has(> .storefront-nav-account) > .header-search { grid-column: 1 / 3; }
  .storefront-nav-account { grid-column: 3; grid-row: 2; font-size: 13px; }
}
