.ark-lookbook,
.ak-catalog-filters.ark-refine {
  --ark-cream: #f5ebdc;
  --ark-brass: #ba935a;
  --ark-wine: #482820;
  --ark-ink: #211512;
  box-sizing: border-box;
}

.ark-lookbook {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  overflow: hidden;
  margin-block: 1.6rem 1.25rem;
  min-height: 470px;
  border: 1px solid #8d6943;
  color: var(--ark-cream);
  background: radial-gradient(ellipse at 10% 10%, #613a2d 0%, #321f1a 48%, #1b120f 100%);
}

.ark-lookbook-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.35rem, 4.8vw, 4.25rem);
}

.ark-lookbook .ark-lookbook-label {
  margin: 0 0 0.85rem;
  color: #e1bd82;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.ark-lookbook h2 {
  margin: 0;
  color: var(--ark-cream);
  font-family: "Baskerville", Georgia, serif;
  font-size: clamp(2.4rem, 5.1vw, 5.3rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.035em;
}

.ark-lookbook h2 + p {
  margin: 1rem 0 1.5rem;
  max-width: 30ch;
  color: #f1dac8;
  line-height: 1.4;
}

.ark-lookbook .ark-look-feature,
.ark-lookbook .ark-look-search {
  color: var(--ark-cream);
  text-decoration: none;
}

.ark-look-feature {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  width: min(100%, 18rem);
  min-height: 2.1em;
  padding: 0.7rem 0;
  border-block: 1px solid #947252;
  font-size: 1rem;
  line-height: 1.25;
}

.ark-look-search {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.15rem;
  min-height: 44px;
  font-size: 0.91rem;
}

.ark-look-search:hover,
.ark-look-feature:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.ark-look-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(420px, 45vw, 580px);
  overflow: hidden;
  background: #30221e;
  isolation: isolate;
}

.ark-look-stage::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  background: linear-gradient(#2d201b44, #21151266), var(--ark-look-backdrop) center / cover no-repeat;
  filter: blur(13px);
}

.ark-look-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

.ark-look-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.ark-look-controls[hidden],
.ark-refine-results[hidden],
.ark-refine-active[hidden] { display: none; }

.ark-look-controls button {
  appearance: none;
  background: #2b1915;
  color: var(--ark-cream);
  border: 1px solid #8d6943;
  border-radius: 2rem;
  font: inherit;
  min-height: 44px;
  min-width: 44px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

.ark-look-controls button:hover { background: #654333; }
.ark-look-controls output {
  color: #ebcfab;
  padding-inline: 0.25rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.ark-lookbook :focus-visible {
  outline: 2px solid #f8ddad;
  outline-offset: -3px;
}

.ak-catalog-filters.ark-refine {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem 1rem;
  margin-block: 1.5rem 2.5rem;
  padding: clamp(1.1rem, 3.2vw, 2.4rem);
  border: 1px solid #a57c53;
  background: radial-gradient(ellipse at 90% 0%, #fff7e4, transparent 65%), linear-gradient(125deg, #ebd9c1, #f5ecdf);
  color: var(--ark-ink);
  box-shadow: 0 16px 30px #0003;
  scroll-margin-top: 1rem;
}

.ark-refine-heading,
.ak-catalog-filters.ark-refine > .ak-filter-search,
.ark-refine-results,
.ark-refine-garments,
.ark-refine-active { grid-column: 1 / -1; }

.ark-refine-heading h2 {
  margin: 0;
  color: #36221d;
  font-family: "Baskerville", Georgia, serif;
  font-size: clamp(2rem, 3.35vw, 3.55rem);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1;
}

.ark-refine-heading p {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
}

.ak-catalog-filters.ark-refine label {
  display: flex;
  flex-direction: column;
  color: var(--ark-ink);
  font-size: 0.88rem;
  font-weight: 650;
  gap: 0.35rem;
}

.ak-catalog-filters.ark-refine input:not([type=hidden]),
.ak-catalog-filters.ark-refine select {
  background-color: #faf3e9;
  color: #281c18;
  border: 1px solid #a78b72;
  box-sizing: border-box;
  border-radius: 0.2rem;
  min-height: 44px;
  font-weight: 450;
}

.ak-catalog-filters.ark-refine input[type=search] {
  min-height: 53px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  padding-inline: 1rem;
}

.ak-catalog-filters.ark-refine input::placeholder { color: #6f5950; }
.ark-refine-shortcuts,
.ark-refine-active {
  display: flex;
  align-content: flex-start;
  gap: 0.28rem;
  flex-wrap: wrap;
  margin-block: 0.2rem;
}

.ak-catalog-filters.ark-refine .ark-refine-chip,
.ak-catalog-filters.ark-refine .ark-refine-remove,
.ak-catalog-filters.ark-refine .ark-refine-swatch {
  appearance: none;
  flex: 0 0 auto;
  width: auto;
  align-self: auto;
  min-height: 32px;
  min-width: 32px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #a78b72;
  border-radius: 2rem;
  font: inherit;
  font-size: 0.76rem;
  color: #2c1a15;
  background: #f7ead8;
  cursor: pointer;
}

.ak-catalog-filters.ark-refine .ark-refine-swatch {
  display: grid;
  place-items: center;
  padding: 0.2rem;
}

.ark-refine-swatch::before {
  content: "";
  display: block;
  border: 1px solid #39271e65;
  border-radius: 50%;
  background: var(--ark-swatch);
  width: 19px;
  height: 19px;
}

.ark-refine-garments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.55rem;
}

.ak-catalog-filters.ark-refine .ark-refine-garment {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 77px;
  padding: 0.65rem 0.8rem;
  overflow: hidden;
  border: 1px solid #806340;
  border-radius: 0.18rem;
  color: #fff1df;
  background: #47271f;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 1px 6px #160a06;
  cursor: pointer;
}

.ark-refine-garment img,
.ark-refine-garment::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ark-refine-garment img {
  object-fit: cover;
  object-position: 50% 47%;
  z-index: -2;
}

.ark-refine-garment::before {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #27120fe3, #27120f24 82%);
}

.ak-catalog-filters.ark-refine .ark-refine-garment[aria-pressed=true] {
  outline: 2px solid #633d2a;
  outline-offset: 2px;
}

.ark-refine-garment[aria-pressed=true]::after {
  content: "✓";
  color: #ffe0a4;
}

.ak-catalog-filters.ark-refine .ark-refine-chip[aria-pressed=true],
.ak-catalog-filters.ark-refine .ark-refine-swatch[aria-pressed=true],
.ak-catalog-filters.ark-refine .ark-refine-remove:hover {
  background: var(--ark-wine);
  color: #fff4e6;
}

.ark-refine-results {
  padding: 0.8rem 0;
  border-block: 1px solid #bda78c;
}

.ark-refine-results-label { margin: 0 0 0.5rem; font-weight: 650; }
.ark-refine-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.55rem;
}

.ark-refine .ark-refine-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
  padding: 0.28rem;
  background: #fbf2e5;
  border: 1px solid #b7a18c;
  color: #39241d;
  text-decoration: none;
  font-size: 0.79rem;
  line-height: 1.25;
}

.ark-refine-result:hover { border-color: #6d4633; text-decoration: underline; }
.ark-refine-result img {
  width: 3.2rem;
  flex: 0 0 3.2rem;
  height: 3.75rem;
  object-fit: cover;
  object-position: 50% 38%;
}

.ak-catalog-filters.ark-refine > button[type=submit] {
  width: fit-content;
  min-width: 9.5rem;
  padding-inline: 1.25rem;
  background: #4a281f;
  border: 1px solid #4a281f;
  color: #fff4e6;
  border-radius: 0.2rem;
  cursor: pointer;
}

.ak-catalog-filters.ark-refine > a { color: #4a281f; }
.ak-catalog-filters.ark-refine :focus-visible {
  outline: 2px solid #623213;
  outline-offset: 3px;
}

.ak-card-media.ark-look-card img {
  background-color: #2c221d;
  object-fit: cover;
  object-position: 50% 39%;
}

@media (max-width: 850px) {
  .ark-lookbook { min-height: 380px; }
  .ak-catalog-filters.ark-refine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ark-lookbook { grid-template-columns: 1fr; }
  .ark-lookbook-copy { display: grid; padding: 1.2rem 1.1rem; }
  .ark-lookbook h2 { font-size: clamp(2rem, 9vw, 3.1rem); }
  .ark-lookbook h2 + p { margin-block: 0.55rem 0.7rem; }
  .ark-look-stage { grid-row: 1; min-height: clamp(295px, 100vw, 430px); }
  .ark-look-search { margin-top: 0.35rem; }
  .ark-look-controls { margin-top: 0.65rem; }
  .ark-refine-shortcuts { gap: 0.36rem; }
  .ak-catalog-filters.ark-refine .ark-refine-chip,
  .ak-catalog-filters.ark-refine .ark-refine-swatch { min-height: 38px; min-width: 38px; }
}
