.cs-shop {
  --paper: #faf8f3;
  --ink: #28231f;
  --muted: #645b53;
  --line: #d7cfc4;
  --wine: #66232b;
  color: var(--ink);
  padding: clamp(1.1rem, 3vw, 3.4rem) clamp(1rem, 4.5vw, 6rem)
    clamp(4rem, 8vw, 8rem);
  margin: auto;
  max-width: 112rem;
  min-height: 65vh;
}
.cs-shop * {
  box-sizing: border-box;
}
.cs-shop a {
  color: inherit;
}
.cs-shop button,
.cs-shop select,
.cs-shop input {
  font: inherit;
  color: inherit;
}
.cs-shop button,
.cs-shop select {
  cursor: pointer;
}
.cs-shop :focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.cs-shop h1,
.cs-shop h2,
.cs-shop h3,
.cs-shop figure,
.cs-shop p {
  margin: 0;
}
.cs-shop h1,
.cs-shop h2,
.cs-shop h3 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.cs-shop h1 {
  font-size: clamp(3rem, 6.5vw, 6rem);
}
.cs-shop h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.3rem);
}
.cs-shop h3 {
  font-size: 1.55rem;
}
.cs-crumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: clamp(2rem, 3vw, 4rem);
}
.cs-crumb a {
  text-underline-offset: 0.22rem;
}
.cs-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.cs-intro p {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
}
.cs-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}
.cs-categories a,
.cs-toggle {
  border: 1px solid var(--line);
  border-radius: 3rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  text-decoration: none;
  background: transparent;
}
.cs-categories a[aria-current],
.cs-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.cs-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.cs-filters label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}
.cs-filters select,
.cs-filters input {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.5rem;
  background: transparent;
  max-width: 14rem;
}
.cs-filters input {
  width: 12rem;
}
.cs-count {
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
}
.cs-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.2rem;
}
.cs-card {
  display: block;
  text-decoration: none;
  min-width: 0;
}
.cs-photos {
  position: relative;
  overflow: hidden;
  background: #e8e4da;
  aspect-ratio: 4 / 5;
  display: block;
}
.cs-photos img,
.cs-gallery img,
.cs-cart-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-photos img:nth-child(2) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.cs-photos .cs-open {
  position: absolute;
  inset: auto 0.65rem 0.65rem auto;
  background: var(--paper);
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  opacity: 0;
}
.cs-card:focus-visible .cs-photos img:nth-child(2),
.cs-card:focus-visible .cs-open {
  opacity: 1;
}
@media (hover: hover) {
  .cs-card:hover .cs-photos img:nth-child(2),
  .cs-card:hover .cs-open {
    opacity: 1;
  }
}
.cs-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.cs-price,
.cs-total {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cs-card small,
.cs-details {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.cs-product {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.75fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
.cs-gallery figure {
  aspect-ratio: 14/9;
  background: #e8e4da;
  overflow: hidden;
}
.cs-gallery figure img {
  object-fit: contain;
}
.cs-gallery nav {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}
.cs-buy {
  padding-top: 1rem;
}
.cs-buy .cs-price {
  font-size: 1.55rem;
  margin: 1rem 0 1.5rem;
}
.cs-buy p {
  line-height: 1.6;
}
.cs-buy dl,
.cs-summary dl {
  margin: 2rem 0;
}
.cs-buy dl div,
.cs-summary dl div {
  border-block-start: 1px solid var(--line);
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.cs-buy dd,
.cs-summary dd {
  margin: 0;
  text-align: right;
}
.cs-shop .cs-action,
.cs-shop .cs-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  background: var(--wine);
  border: 1px solid var(--wine);
  color: white;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  font: inherit;
}
.cs-shop .cs-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.cs-order-actions {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.cs-order-actions input {
  padding: 0.7rem;
  width: 4rem;
  border: 1px solid var(--line);
}
.cs-status {
  margin-top: 0.8rem !important;
  min-height: 1.4em;
}
.cs-related {
  margin-top: 5rem;
}
.cs-related h2 {
  margin-bottom: 1.5rem;
}
.cs-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin: 2.2rem 0;
}
.cs-cart-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-block-start: 1px solid var(--line);
}
.cs-cart-row img {
  aspect-ratio: 1;
  height: auto;
}
.cs-cart-row a {
  text-underline-offset: 0.25rem;
}
.cs-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.cs-qty button {
  background: transparent;
  border: 1px solid var(--line);
  min-width: 2.3rem;
  min-height: 2.3rem;
}
.cs-remove {
  background: transparent;
  border: none;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  padding: 0.5rem 0;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
}
.cs-summary {
  align-self: start;
  padding: 1.5rem;
  background: #efeae1;
}
.cs-summary .cs-action {
  width: 100%;
}
.cs-summary small {
  display: block;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.cs-empty {
  padding: 2rem 0;
}
.cs-empty p,
.cs-done p {
  margin: 1rem 0 1.5rem;
  line-height: 1.55;
}
.cs-checkout {
  max-width: 42rem;
}
.cs-checkout fieldset {
  border: none;
  padding: 0;
  margin: 2rem 0;
}
.cs-checkout legend {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.cs-checkout label {
  display: block;
  margin: 0.8rem 0;
}
.cs-checkout input {
  display: block;
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: transparent;
}
.cs-checkout p {
  line-height: 1.55;
  margin: 1rem 0;
}
.cs-search-empty {
  grid-column: 1/-1;
  padding: 3rem 0;
}
@media (max-width: 900px) {
  .cs-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cs-intro {
    display: block;
  }
  .cs-intro p {
    margin-top: 0.8rem;
  }
  .cs-product {
    gap: 1.6rem;
  }
}
@media (max-width: 660px) {
  .cs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.7rem 0.7rem;
  }
  .cs-categories {
    margin: 1.3rem 0;
    flex-wrap: nowrap;
    overflow: auto;
    padding: 0.25rem;
  }
  .cs-categories a {
    white-space: nowrap;
  }
  .cs-product,
  .cs-cart-layout {
    grid-template-columns: 1fr;
  }
  .cs-card-head {
    display: block;
  }
  .cs-card h3 {
    font-size: 1.28rem;
  }
  .cs-price {
    font-size: 0.94rem;
  }
  .cs-count {
    width: 100%;
    margin: 0;
  }
  .cs-filters {
    gap: 0.6rem;
  }
  .cs-filters label {
    flex-wrap: wrap;
  }
  .cs-filters select,
  .cs-filters input {
    max-width: 8rem;
  }
  .cs-cart-row {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  }
  .cs-shop h1 {
    overflow-wrap: anywhere;
  }
  .cs-crumb {
    margin-bottom: 1.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-photos img {
    transition: none;
  }
}
.cs-photos {
  aspect-ratio: 5/4;
}
.cs-photos img:nth-child(2) {
  object-fit: contain;
  background: #e9e3d8;
}
.cs-specs {
  margin: clamp(3rem, 7vw, 7rem) 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 3rem);
}
.cs-specs details {
  border-top: 1px solid var(--line);
}
.cs-specs details:last-child {
  border-bottom: 1px solid var(--line);
}
.cs-specs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  font-size: 1.07rem;
}
.cs-specs summary::-webkit-details-marker {
  display: none;
}
.cs-specs summary::after {
  content: "+";
  font-size: 1.45rem;
}
.cs-specs details[open] summary::after {
  content: "−";
}
.cs-specs dl {
  margin: 0 0 1.35rem;
}
.cs-specs dl div {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  line-height: 1.5;
  font-size: 0.94rem;
}
.cs-specs dl dt {
  color: var(--muted);
}
.cs-specs dl dd {
  margin: 0;
}
.cs-gallery nav {
  flex-wrap: wrap;
}
.cs-gallery figure.is-rotation {
  position: relative;
  width: 100%;
  min-height: 22rem;
  overflow: visible;
}
.cs-gallery .is-rotation canvas {
  max-width: 100%;
}
@media (max-width: 660px) {
  .cs-specs {
    grid-template-columns: 1fr;
  }
  .cs-gallery figure.is-rotation {
    min-height: 20rem;
  }
}
.cs-checkout a.cs-terms {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.cs-gallery figure {
  position: relative;
}
.cs-rotation-message {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: var(--paper);
  padding: 0.7rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.cs-gallery,
.cs-buy {
  min-width: 0;
}
@media (max-width: 660px) {
  .cs-product {
    grid-template-columns: minmax(0, 1fr);
  }
  .cs-gallery figure.is-rotation {
    aspect-ratio: auto;
    height: 22rem;
    min-height: 0;
  }
}
.cs-gallery figure.amarre-spin {
  background: #eadbcd;
}
.amarre-spin .spin-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  padding: 0;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.amarre-spin .spin-stage:active {
  cursor: grabbing;
}
.amarre-spin .spin-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.amarre-spin .spin-stage:focus-visible {
  outline-offset: -4px;
}
.amarre-spin .cs-rotation-buttons {
  z-index: 1;
}

.cs-card-item {
  position: relative;
  min-width: 0;
}
.cs-quick-spin {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.4rem 0.7rem;
  border-radius: 2rem;
  background: rgba(250, 248, 243, 0.96);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s;
}
.cs-card-item:focus-within .cs-quick-spin,
.cs-card-item:hover .cs-quick-spin {
  opacity: 1;
}
@media (hover: none) {
  .cs-quick-spin {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-quick-spin {
    transition: none;
  }
}

.sofa-options { display: grid; gap: 16px; margin: 1.3rem 0; }
.sofa-options fieldset { border: 0; margin: 0; padding: 0; }
.sofa-options legend { margin: 0 0 .45rem; font: inherit; font-weight: 600; }
.sofa-options button { margin: 4px 8px 4px 0; padding: 8px 18px; border: 1px solid #91887a; color: inherit; background: transparent; cursor: pointer; }
.sofa-options button[aria-pressed=true] { outline: 2px solid #483d34; outline-offset: 2px; }
.sofa-options button:focus-visible { outline: 3px dashed #302921; outline-offset: 3px; }
.sofa-options .sofa-swatch { background: var(--fabric); width: 36px; height: 36px; padding: 0; vertical-align: middle; border-color: #0002; }

@media(pointer:coarse),(max-width:700px){.sofa-options .sofa-swatch,.cs-qty button{min-width:44px;min-height:44px}.cs-gallery nav button,.cs-remove{min-height:44px}}
