/* Catalog comparison stays within the approved Rubik / warm sand direction. */
.catalog-heading {
  margin-bottom: 30px;
}
.catalog-tools {
  margin-bottom: 18px;
}
.catalog-studio {
  font-size: 12px;
  color: #6e695d;
}
.catalog-studio summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  list-style: none;
  border-bottom: 1px solid #b3a78d55;
}
.catalog-studio summary::-webkit-details-marker {
  display: none;
}
.catalog-studio summary > span {
  font-size: 18px;
  font-weight: 300;
}
.catalog-studio[open] summary > span {
  transform: rotate(45deg);
}
.studio-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 13px 0 9px;
}
.studio-choices button {
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.3;
  color: #635e52;
  border: 1px solid #b7ad995e;
  border-radius: 5px;
  background: transparent;
}
.studio-choices button[aria-pressed="true"] {
  color: #36392f;
  border-color: #9e937c;
  background: #ded4c2;
}
.studio-choices button:hover {
  border-color: #817660;
}
.studio-choices button:focus-visible,
.catalog-studio summary:focus-visible {
  outline: 2px solid #8f7f61;
  outline-offset: 3px;
}
.catalog-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  align-items: end;
  gap: 24px;
  margin-top: 22px;
}
#catalog-search {
  display: block;
  max-width: none;
  min-width: 0;
}
.catalog-search-label,
.catalog-sort {
  font-size: 12px;
  color: #716b5f;
}
.catalog-search-label {
  display: block;
  margin-bottom: 10px;
}
.catalog-sort {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.catalog-search-field,
.catalog-select-field {
  min-width: 0;
  position: relative;
  height: 54px;
  background: #e4dbcc;
  border: 1px solid #d2c5af;
  border-radius: 8px;
  transition:
    border-color 180ms,
    box-shadow 180ms;
}
.catalog-search-field {
  display: flex;
  align-items: center;
  padding: 0 6px 0 17px;
  gap: 10px;
}
.field-search-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: #77705e;
  stroke-width: 1.5;
}
#catalog-query {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  color: #34392f;
  outline: none;
}
#catalog-query::placeholder {
  color: #81796a;
  opacity: 1;
}
#catalog-search button[type="submit"] {
  align-self: center;
  padding: 11px 17px;
  border-radius: 5px;
  background: #4a4b3d;
  color: #fffdf6;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 20px;
}
.catalog-sort select {
  appearance: none;
  width: 100%;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: inherit;
  padding: 12px 42px 12px 18px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #34392f;
  outline: none;
  cursor: pointer;
}
.catalog-sort option,
.variant-field option {
  background: #f9f5ed;
  color: #34392f;
}
.field-chevron {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-57%);
  pointer-events: none;
  font-size: 22px;
  line-height: 1;
  color: currentColor;
}
.catalog-search-field:focus-within,
.catalog-select-field:focus-within {
  border-color: #807256;
  box-shadow: 0 0 0 3px #93836622;
}
#catalog-search button:focus-visible {
  outline: 2px solid #8f7f61;
  outline-offset: 3px;
}
html[data-catalog-controls="outline"]
  :is(.catalog-search-field, .catalog-select-field) {
  background: transparent;
  border-color: #a99b83;
  border-radius: 3px;
}
html[data-catalog-controls="outline"] #catalog-search button {
  background: #e1d6c2;
  color: #3c4235;
  border: 1px solid #b8aa8e;
  border-radius: 2px;
}
html[data-catalog-controls="pill"]
  :is(.catalog-search-field, .catalog-select-field) {
  background: #f8f3e9;
  border-color: #d0c5b3;
  border-radius: 28px;
}
html[data-catalog-controls="pill"] #catalog-search button {
  border-radius: 24px;
  background: #514c40;
}
html[data-catalog-controls="line"]
  :is(.catalog-search-field, .catalog-select-field) {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a3977e;
  border-radius: 0;
  padding-left: 0;
}
html[data-catalog-controls="line"] #catalog-search button {
  color: #494b3c;
  background: transparent;
  border-left: 1px solid #b1a38c66;
  border-radius: 0;
}
html[data-catalog-controls="line"] .catalog-sort select {
  padding-left: 0;
}
html[data-catalog-controls="inset"]
  :is(.catalog-search-field, .catalog-select-field) {
  background: #dfd5c4;
  border: 1px solid #c6b99e;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px #7b68400c;
}
html[data-catalog-controls="inset"] #catalog-search button {
  background: #f7f2e7;
  color: #494a3d;
  border: 1px solid #c7bca5;
  box-shadow: 0 1px 3px #665a3e0c;
}
.catalog-fields :is(input, select, button) {
  transition:
    background 160ms,
    border-color 160ms;
}
.product-kind,
.catalog-grid .product-kind {
  font-size: 11px;
  line-height: 1.55;
  min-height: 34px;
  color: #756e60;
}
.product-dialog:has(.product-detail) {
  max-width: 1040px;
  padding: 36px;
  background: #fffdf8;
  border-radius: 12px;
}
.product-dialog:has(.product-detail) .dialog-title {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.8px;
  padding-right: 20px;
}
.product-detail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.product-detail #detail-photo {
  height: 440px;
  background: #f0ece3;
  border-radius: 5px;
}
.product-summary .detail-price {
  font-size: 31px;
  letter-spacing: -0.8px;
  font-weight: 450;
}
.product-summary > .catalog-notice {
  font-size: 11px;
  color: #7a7468;
  line-height: 1.7;
  margin-bottom: 18px;
}
.product-summary .catalog-studio {
  margin-top: 12px;
}
.product-summary .studio-choices {
  gap: 5px;
}
.product-summary .studio-choices button {
  padding: 8px 10px;
  font-size: 11px;
}
.buy-panel {
  --purchase: #393c36;
  --purchase-text: #fffdf7;
  --purchase-surface: #edeee7;
  --purchase-border: #bfc4b4;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
html[data-catalog-purchase="cocoa"] .buy-panel {
  --purchase: #655144;
  --purchase-surface: #f0e6db;
  --purchase-border: #d0b9a5;
}
html[data-catalog-purchase="clay"] .buy-panel {
  --purchase: #894f3b;
  --purchase-surface: #f4e6de;
  --purchase-border: #d7b3a1;
}
html[data-catalog-purchase="blue"] .buy-panel {
  --purchase: #415e69;
  --purchase-surface: #e8eff0;
  --purchase-border: #b8ced1;
}
html[data-catalog-purchase="outline"] .buy-panel {
  --purchase: #ede3d2;
  --purchase-text: #464035;
  --purchase-surface: #fffdf8;
  --purchase-border: #b4a58b;
}
.buy-panel label {
  font-size: 13px;
  color: #615d52;
  margin-bottom: 11px;
}
.variant-field {
  position: relative;
  color: var(--purchase-text);
}
.buy-panel select {
  appearance: none;
  font-size: 14px;
  padding: 16px 38px 16px 16px;
  border: 1px solid var(--purchase-border);
  background: var(--purchase-surface);
  color: #383b32;
  border-radius: 6px;
  line-height: 1.4;
  min-height: 54px;
  cursor: pointer;
}
.variant-field .field-chevron {
  color: #6e6a5b;
}
.buy-panel .add-to-cart {
  background: var(--purchase);
  color: var(--purchase-text);
  border: 1px solid var(--purchase);
  font-size: 14px;
  min-height: 54px;
  border-radius: 6px;
  margin-top: 12px;
  padding: 15px 17px;
}
html[data-catalog-purchase="outline"] .add-to-cart {
  border-color: var(--purchase-border);
}
.buy-panel :is(select, button):focus-visible {
  outline: 2px solid #958061;
  outline-offset: 3px;
}
.buy-panel .add-to-cart:hover {
  filter: brightness(0.95);
}
#cart-feedback {
  font-size: 12px;
  line-height: 1.6;
  min-height: 20px;
  color: #5c664d;
}
.product-specs {
  grid-column: 1/-1;
  min-width: 0;
  border-top: 1px solid #dcd4c5;
  padding-top: 25px;
  margin-top: 4px;
}
.specs-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-bottom: 20px;
}
.specs-heading h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.specs-heading .catalog-studio {
  max-width: 100%;
}
.specs-heading:has(details[open]) .catalog-studio {
  flex-basis: 100%;
}
.product-specs dl {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #34382f;
}
.product-specs dl > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.43fr) 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #ded9cd;
  min-width: 0;
}
.product-specs dt {
  font-size: 13px;
  color: #716b5d;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.product-specs dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #34382f;
  overflow-wrap: anywhere;
}
html[data-catalog-specs="table"] .product-specs dl {
  border: 1px solid #dcd4c5;
  border-radius: 5px;
  overflow: hidden;
}
html[data-catalog-specs="table"] .product-specs dl > div {
  padding: 0;
  gap: 0;
}
html[data-catalog-specs="table"] .product-specs :is(dt, dd) {
  padding: 15px 18px;
}
html[data-catalog-specs="table"] .product-specs dt {
  background: #eee8dc;
  border-right: 1px solid #dcd4c5;
}
html[data-catalog-specs="bands"] .product-specs dl > div {
  padding: 17px 20px;
  border: 0;
  border-radius: 3px;
}
html[data-catalog-specs="bands"] .product-specs dl > div:nth-child(odd) {
  background: #f0e9dc;
}
html[data-catalog-specs="cards"] .product-specs dl {
  display: grid;
  gap: 12px;
}
html[data-catalog-specs="cards"] .product-specs dl > div {
  display: block;
  padding: 20px 23px;
  border: 1px solid #dcd3c1;
  border-radius: 7px;
}
html[data-catalog-specs="cards"] .product-specs dd {
  margin-top: 7px;
}
html[data-catalog-specs="tiles"] .product-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
html[data-catalog-specs="tiles"] .product-specs dl > div {
  display: block;
  padding: 20px;
  background: #f1eadf;
  border: 0;
  border-radius: 5px;
}
html[data-catalog-specs="tiles"] .product-specs dd {
  margin-top: 9px;
}
html[data-catalog-specs="paper"] .product-specs dl {
  background: #e9dfcd;
  padding: 8px 26px;
  border: 1px solid #d5c5a9;
  border-radius: 8px;
}
html[data-catalog-specs="paper"] .product-specs dl > div {
  border-color: #cbbd9e70;
}
html[data-catalog-specs="accent"] .product-specs dl {
  display: grid;
  gap: 15px;
}
html[data-catalog-specs="accent"] .product-specs dl > div {
  padding: 8px 20px;
  border: 0;
  border-left: 3px solid #ac9571;
}
html[data-catalog-specs="editorial"] .product-specs dl > div {
  grid-template-columns: minmax(180px, 0.6fr) 1fr;
  padding: 23px 0;
  border-color: #bcb198;
}
html[data-catalog-specs="editorial"] .product-specs dt {
  font-size: 16px;
  font-weight: 500;
  color: #4d4b40;
  letter-spacing: -0.2px;
}
html[data-catalog-specs="numbered"] .product-specs dl {
  counter-reset: spec;
}
html[data-catalog-specs="numbered"] .product-specs dl > div {
  counter-increment: spec;
  position: relative;
  padding-left: 42px;
}
html[data-catalog-specs="numbered"] .product-specs dl > div:before {
  content: counter(spec, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  font-size: 11px;
  color: #94866c;
  font-variant-numeric: tabular-nums;
}
html[data-catalog-specs="ledger"] .product-specs dl > div {
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 22px 0;
  border-bottom: 1px dashed #bdad90;
}
html[data-catalog-specs="ledger"] .product-specs dt {
  color: #7c6c50;
  font-weight: 500;
  font-size: 14px;
}
@media (max-width: 800px) {
  .catalog-fields {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 15px;
  }
  .product-dialog:has(.product-detail) {
    padding: 30px 22px;
  }
  .product-detail {
    gap: 24px;
  }
  .product-detail #detail-photo {
    height: 340px;
  }
}
@media (max-width: 620px) {
  .catalog-fields {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .catalog-search-field {
    padding-left: 12px;
    gap: 8px;
  }
  #catalog-query {
    font-size: 13px;
  }
  #catalog-search button[type="submit"] {
    padding: 11px 13px;
    gap: 9px;
  }
  .catalog-sort select {
    font-size: 13px;
  }
  .catalog-studio {
    font-size: 11px;
  }
  .studio-choices button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-dialog:has(.product-detail) {
    padding: 30px 18px;
  }
  .product-dialog:has(.product-detail) .dialog-title {
    font-size: 24px;
  }
  .product-specs dl > div,
  html[data-catalog-specs="editorial"] .product-specs dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  html[data-catalog-specs="tiles"] .product-specs dl {
    grid-template-columns: 1fr;
  }
  html[data-catalog-specs="table"] .product-specs dt {
    border-right: 0;
    padding-bottom: 8px;
  }
  html[data-catalog-specs="table"] .product-specs dd {
    padding-top: 10px;
  }
  html[data-catalog-specs="paper"] .product-specs dl {
    padding: 5px 17px;
  }
  .product-kind,
  .catalog-grid .product-kind {
    font-size: 10px;
    min-height: 46px;
  }
  .product-summary .detail-price {
    font-size: 28px;
  }
  .buy-panel select {
    font-size: 13px;
    padding-left: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-fields *,
  .buy-panel * {
    transition: none;
  }
}

/* Five size-field treatments; the approved graphite cart button stays fixed. */
.variant-picker { min-width: 0; }
.variant-picker > label { display: block; }
.variant-field select { width: 100%; max-width: 100%; margin: 0; }
html[data-catalog-variant] .variant-field select {
  background: transparent;
  border-color: #b8ac97;
  border-radius: 5px;
  font-size: 14px;
  color: #393c36;
  outline: none;
  box-shadow: none;
}
html[data-catalog-variant] .variant-field select:focus-visible {
  outline: 2px solid #958061;
  outline-offset: 3px;
}
html[data-catalog-variant="rounded"] .variant-field select {
  border-radius: 30px;
  background: #f5efe3;
  border-color: #d3c6b0;
  padding-left: 21px;
}
html[data-catalog-variant="underline"] .variant-field select {
  border: 0;
  border-bottom: 1px solid #a19580;
  border-radius: 0;
  padding-left: 0;
}
html[data-catalog-variant="inset"] .variant-field select {
  background: #e8decb;
  border: 1px solid #d1c1a5;
  border-radius: 9px;
  box-shadow: inset 0 2px 4px #68583c0a;
}
html[data-catalog-variant="frame"] .variant-picker {
  padding: 13px 16px 3px;
  border: 1px solid #b8ac97;
  border-radius: 9px;
  background: #faf6ed;
}
html[data-catalog-variant="frame"] .variant-picker > label {
  margin-bottom: 0;
  font-size: 11px;
  color: #7b705c;
}
html[data-catalog-variant="frame"] .variant-field select {
  border: 0;
  border-radius: 0;
  padding-left: 0;
  padding-top: 10px;
  padding-bottom: 13px;
  min-height: 46px;
}
html[data-catalog-variant="frame"] .variant-field .field-chevron { right: 0; }
html[data-catalog-variant="frame"] .variant-picker:focus-within { border-color: #817057; }
@media (max-width: 620px) {
  html[data-catalog-variant] .variant-field select { font-size: 14px; }
}
