.store-catalog-page,
.store-product-page {
  --market-ink: #211a13;
  --market-muted: #685d50;
  --market-line: #e6ded2;
  --market-paper: #f5f1e9;
  --market-accent: #8e5e26;
  color: var(--market-ink);
  background: var(--market-paper);
}
.market-catalog, .market-product { width: min(1216px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 80px; }
.market-catalog { padding-top: 54px; }
.market-catalog-heading > p:not(.market-kicker) { margin-top: 16px; font-size: 16px; line-height: 1.6; }
.market-kicker { color: var(--market-accent); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.market-catalog-heading h1 { margin: 14px 0 0; font-size: clamp(38px, 5vw, 68px); font-weight: 850; letter-spacing: -.05em; line-height: 1.05; }
.market-back {
  display: inline-flex; align-items: center; min-height: 42px; margin-bottom: 20px; padding: 0 14px;
  border: 1px solid var(--market-line); border-radius: 13px; background: #fffefc; font-size: 13px; font-weight: 800;
}
.market-back:hover { background: var(--market-ink); color: #fffefc; }
.market-categories { margin-top: 36px; }
.market-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.market-section-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; line-height: 1.15; }
.market-section-heading > p { color: var(--market-muted); font-size: 13px; text-align: right; }
.market-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.market-category {
  display: flex; flex-direction: column; min-width: 0; min-height: 188px; padding: 14px;
  overflow: hidden; border: 1px solid var(--market-line); border-radius: 20px; background: #fffefc;
  box-shadow: 0 10px 34px #452f2307; transition: border-color .18s, box-shadow .18s;
}
.market-category-image { height: 112px; width: 100%; margin-bottom: 9px; overflow: hidden; border-radius: 12px; }
.market-image { display: grid; min-width: 0; min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.market-image img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.market-category-image img { width: 89%; object-position: center 35%; transition: transform .18s; }
.market-category strong { font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.market-category small { margin-top: 5px; color: #736351; font-size: 11px; line-height: 1.22; }
.market-category:hover, .market-category:focus-visible { border-color: #d0ae84; box-shadow: 0 14px 28px #452f2314; }
.market-category:hover img { transform: scale(1.06); }
.market-models { margin-top: 34px; padding: 20px; border: 1px solid var(--market-line); border-radius: 30px; background: #fffefc; box-shadow: 0 12px 35px #452f2309; }
.market-models .market-section-heading { align-items: center; }
.market-models .market-section-heading .market-kicker { margin-bottom: 7px; }
.market-models .market-section-heading h2 { color: var(--market-muted); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.market-model-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.market-model-actions #all-models { border: 0; background: none; color: var(--market-accent); font-weight: 800; font-size: 13px; }
.market-model-actions #all-models[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.market-round {
  width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--market-line); border-radius: 50%; background: #fffefc; color: var(--market-ink); font-size: 19px;
}
.market-round:hover { background: #f5f1e9; }
.market-round:disabled { opacity: .45; cursor: default; }
.market-model-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 12px; margin: 0; padding: 3px 2px 9px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.market-model {
  display: grid; grid-template-rows: 132px auto; align-content: start; width: 100%; min-height: 216px; padding: 12px;
  border: 1px solid #e7dac8; border-radius: 21px; background: #fffaf2; color: var(--market-ink); text-align: left;
}
.market-model[aria-pressed="true"] { background: var(--market-ink); color: #fffefc; }
.market-model-image { overflow: hidden; border-radius: 13px; background: #fffefc; }
.market-model-image img { width: 90%; }
.market-model strong { margin-top: 11px; font-size: 15px; }
.market-catalog-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 22px; margin-top: 26px; }
.market-filters[hidden] + .market-results { grid-column: 1 / -1; }
.market-mobile-filter { display: none; }
.market-filters {
  min-width: 0; padding: 26px; border: 1px solid var(--market-line); border-radius: 28px;
  background: #fffefc; box-shadow: 0 12px 36px #452f2308;
}
.market-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 24px; }
.market-filter-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.market-filter-heading button { border: 0; background: none; color: var(--market-accent); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.market-filter-heading button:disabled { color: #76695a; cursor: default; opacity: .65; }
.market-filter-section { min-width: 0; margin: 0; padding: 19px 0 21px; border: 0; box-shadow: inset 0 1px #e6ded2; }
.market-filter-section > legend, .market-filter-section > label {
  float: left; width: 100%; margin: 0 0 13px; padding: 0; color: #211a13; font-size: 14px; font-weight: 800; text-transform: uppercase;
}
.market-filter-section > div, .market-filter-section > input { clear: both; }
.market-price-range { position: relative; height: 25px; margin: 3px 0 13px; }
.market-price-range::before { position: absolute; inset: 11px 8px auto; height: 4px; border-radius: 3px; background: var(--market-accent); content: ""; }
.market-price-range input {
  appearance: none; position: absolute; inset: 0; width: 100%; height: 25px; margin: 0;
  border: 0; background: transparent; pointer-events: none;
}
.market-price-range input::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--market-accent);
  box-shadow: 0 4px 13px #b67b3036; pointer-events: auto; cursor: ew-resize;
}
.market-price-range input::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--market-accent); pointer-events: auto; cursor: ew-resize;
}
.market-price-inputs { display: grid; align-items: center; grid-template-columns: repeat(2, minmax(0, 1fr)) 52px; gap: 8px; }
.market-price-inputs label {
  display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 52px; padding: 0 10px;
  border: 1px solid var(--market-line); border-radius: 15px; background: #f6ecde; color: #211a13; font-weight: 750; font-size: 13px;
}
.market-price-inputs input { appearance: textfield; width: 100%; min-width: 0; background: transparent; border: 0; color: inherit; font-weight: 800; }
.market-price-inputs input::-webkit-inner-spin-button, .market-price-inputs input::-webkit-outer-spin-button { appearance: none; }
.market-apply-price { width: 52px; height: 52px; background: var(--market-ink); color: #fffefc; border: 0; }
.market-apply-price:hover, .market-dark-button:hover { background: #3f3021; }
.market-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.market-pills :is(button,a) {
  display: inline-flex; min-height: 43px; align-items: center; padding: 9px 14px; border: 1px solid var(--market-line);
  border-radius: 999px; background: #fffefc; color: #685d50; font-size: 13px; font-weight: 750; text-align: left;
}
.market-pills :is(button,a):hover { border-color: var(--market-accent); }
.market-pills [aria-pressed="true"], .market-pills [aria-current="true"] { border-color: var(--market-ink); color: #fffefc; background: var(--market-ink); }
.market-search input {
  width: 100%; min-height: 46px; padding: 0 11px; border: 1px solid var(--market-line);
  border-radius: 12px; background: #f6ecde; color: var(--market-ink);
}
.market-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.market-dark-button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  padding: 0 17px; border: 0; border-radius: 11px; background: var(--market-ink); color: #fffefc;
  box-shadow: 0 10px 22px #452f2322; font-size: 13px; font-weight: 800; text-align: center;
}
.market-filter-show { width: 100%; }
.market-results { min-width: 0; }
.market-count { color: #685d50; font-size: 13px; margin: 2px 0 16px; scroll-margin-top: 16px; }
.market-count:empty { display: none; }
.market-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.market-item {
  display: flex; flex-direction: column; min-width: 0; min-height: 530px; padding: 17px;
  border: 1px solid var(--market-line); border-radius: 24px; background: #fffefc; box-shadow: 0 14px 40px #452f2309;
}
.market-item:hover { border-color: #d0ae84; }
.market-item-media { position: relative; min-width: 0; aspect-ratio: 1; }
.market-item-image { width: 100%; height: 100%; overflow: hidden; border-radius: 16px; background: var(--yps-product-backdrop); }
.market-item-image img { width: 92%; height: 92%; }
.market-image-placeholder::before {
  display: block; width: 44%; aspect-ratio: 1; background: url("/assets/yps-logo.webp") center / contain no-repeat;
  border-radius: 50%; opacity: .24; content: "";
}
.market-color-label {
  position: absolute; bottom: 4%; left: 4%; max-width: 92%; padding: 7px 11px; overflow: hidden;
  border-radius: 20px; background: #fffefcf2; color: #211a13; box-shadow: 0 5px 13px #452f2311; white-space: nowrap; text-overflow: ellipsis;
  font-size: 11px; font-weight: 750; pointer-events: none;
}
.market-gallery-arrow { position: absolute; top: calc(50% - 19px); width: 38px; height: 38px; background: #fffc; box-shadow: 0 8px 16px #452f2322; font-size: 27px; line-height: 1; }
.market-gallery-arrow.prev { left: 4px; }
.market-gallery-arrow.next { right: 4px; }
.market-swatches { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; }
.market-swatch {
  display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid #d8cbb9; border-radius: 50%;
  background: #fffefc; color: #71614e; --swatch: #adb1b8;
}
.market-swatch::before { content: ""; width: 24px; height: 24px; border: 1px solid #1113; border-radius: 50%; background: var(--swatch); }
.market-swatch[aria-pressed="true"] { border: 2px solid var(--market-accent); box-shadow: 0 0 0 2px #b67b3028; }
.market-swatch[data-swatch="orange"] { --swatch: #cc6e42; }
.market-swatch[data-swatch="red"] { --swatch: #ba2538; }
.market-swatch[data-swatch="wine"] { --swatch: #6a263c; }
.market-swatch[data-swatch="navy"] { --swatch: #354869; }
.market-swatch[data-swatch="blue"] { --swatch: #a0bece; }
.market-swatch[data-swatch="purple"] { --swatch: #ada5bc; }
.market-swatch[data-swatch="pink"] { --swatch: #ebb9c9; }
.market-swatch[data-swatch="green"] { --swatch: #97a58b; }
.market-swatch[data-swatch="gold"] { --swatch: #dbbd8c; }
.market-swatch[data-swatch="black"] { --swatch: #29292e; }
.market-swatch[data-swatch="white"] { --swatch: #eeeee7; }
.market-item h3 { min-height: 42px; margin: 14px 0 20px; font-size: 16px; font-weight: 780; line-height: 1.24; overflow-wrap: anywhere; }
.market-item h3 a:hover { text-decoration: underline; }
.market-item-price { margin-top: auto; font-size: 19px; font-weight: 850; }
.market-item-price.market-price-unknown { color: var(--market-muted); font-size: 15px; }
.market-item-button { align-self: stretch; margin-top: 14px; }
.market-item-stock { margin-top: 13px; color: #735f48; font-size: 11px; text-align: right; }
.market-item-stock.in-stock { color: #176846; }
.market-item-stock.in-stock::before { content: "• "; }
.market-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; padding: 20px; border: 1px solid var(--market-line); border-radius: 16px; background: #fffefc; color: var(--market-muted); }
.market-status p { flex: 1 1 210px; }
.market-more { display: flex; width: fit-content; margin: 24px auto 0; }

.market-product { padding-top: 30px; }
.market-breadcrumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; color: #685d50; font-size: 13px; }
.market-breadcrumbs a { color: var(--market-ink); }
.market-breadcrumbs a:hover { text-decoration: underline; }
.market-breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.market-product-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; gap: 36px;
  padding: 34px; border: 1px solid var(--market-line); border-radius: 30px; background: #fffefc; box-shadow: 0 14px 45px #452f230a;
}
.market-product-media {
  position: relative; width: 100%; min-height: 500px; display: grid; place-items: center;
  overflow: hidden; border-radius: 26px; background: var(--yps-product-backdrop);
}
.market-product-media > .market-image { width: 100%; min-height: 0; height: min(43vw, 580px); }
.market-product-media img { width: 86%; height: 86%; }
.market-product-stock {
  position: absolute; top: 22px; left: 22px; padding: 11px 17px; border-radius: 99px; background: #f3e7d5;
  color: #735f48; font-size: 14px; font-weight: 800;
}
.market-product-stock.in-stock { background: var(--market-ink); color: #fffefc; }
.market-product-copy { padding-top: 4px; min-width: 0; }
.market-product-copy h1 { margin: 18px 0; font-size: clamp(32px, 3.35vw, 50px); font-weight: 850; line-height: 1.04; letter-spacing: -.06em; overflow-wrap: anywhere; }
.market-product-options { display: grid; gap: 14px; margin: 0 0 24px; }
.market-product-options:empty { display: none; }
.market-product-option { min-width: 0; margin: 0; padding: 0; border: 0; }
.market-product-option legend { margin: 0 0 8px; padding: 0; color: var(--market-muted); font-size: 14px; }
.market-product-option legend strong { color: var(--market-ink); }
.market-product-option .market-pills a { min-height: 44px; padding-inline: 16px; border-radius: 14px; color: var(--market-ink); font-size: 15px; }
.market-product-option .market-pills [aria-current] { color: #fffefc; }
.market-product-price { margin: 20px 0 12px; font-size: 42px; font-weight: 850; line-height: 1.1; letter-spacing: -.04em; }
.market-product-price.market-price-unknown { color: var(--market-muted); font-size: 24px; letter-spacing: -.03em; }
.market-product-note { margin-bottom: 17px; color: var(--market-muted); font-size: 14px; line-height: 1.45; }
.market-product-back { width: min(100%, 300px); }
.market-product-info { margin-top: 18px; padding: 28px 34px; border: 1px solid var(--market-line); border-radius: 24px; background: #fffefc; }
.market-product-info h2 { margin-bottom: 12px; font-size: 23px; }
.market-description { color: var(--market-muted); font-size: 15px; line-height: 1.58; overflow-wrap: anywhere; }
.market-description p { margin: 0 0 14px; white-space: pre-wrap; }
.market-description h3 { margin: 0 0 6px; color: var(--market-ink); font-size: 16px; }
.market-description ul { margin: 0 0 16px; padding-inline-start: 22px; }
.market-description li + li { margin-top: 4px; }
.market-description-source {
  display: block;
  width: fit-content;
  color: var(--market-accent);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1060px) {
  .market-catalog-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 16px; }
  .market-filters { padding: 20px; }
  .market-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .market-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-product-card { padding: 24px; gap: 24px; }
  .market-product-media { min-height: 390px; }
}
@media (max-width: 760px) {
  .market-catalog, .market-product { width: calc(100% - 16px); padding-bottom: 56px; }
  .market-catalog { padding-top: 32px; }
  .market-product { padding-top: 22px; }
  .market-catalog-heading h1 { font-size: 38px; margin-top: 13px; }
  .market-catalog-heading > p:not(.market-kicker) { margin-top: 12px; }
  .market-categories { margin-top: 29px; }
  .market-section-heading h2 { font-size: 22px; }
  .market-section-heading > p { font-size: 11px; }
  .market-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .market-category { min-height: 150px; padding: 9px; border-radius: 16px; }
  .market-category-image { height: 94px; margin-bottom: 5px; }
  .market-category strong { font-size: 15px; }
  .market-category small { font-size: 10px; }
  .market-models { margin-top: 25px; padding: 14px; border-radius: 20px; }
  .market-model-rail { grid-auto-columns: 138px; gap: 8px; }
  .market-model { min-height: 162px; grid-template-rows: 92px auto; padding: 8px; border-radius: 15px; }
  .market-model-actions .market-round { width: 34px; height: 34px; }
  .market-model-actions #all-models { padding-inline: 1px; white-space: nowrap; font-size: 12px; }
  .market-catalog-layout { display: block; margin-top: 11px; }
  .market-mobile-filter {
    display: flex; width: 100%; min-height: 55px; justify-content: space-between; align-items: center; gap: 8px;
    margin-top: 22px; padding: 0 14px; border: 1px solid var(--market-line); border-radius: 14px; background: #fffefc; color: var(--market-ink);
  }
  .market-mobile-filter span { color: var(--market-muted); font-size: 12px; }
  .market-filters { display: none; }
  .market-filters.market-filters-open { display: block; margin-bottom: 14px; }
  .market-card-grid { gap: 9px; }
  .market-item { min-height: 355px; padding: 9px; border-radius: 17px; }
  .market-item h3 { margin: 12px 0 16px; font-size: 14px; }
  .market-swatches { margin-top: 10px; gap: 4px; }
  .market-swatch { width: 36px; height: 36px; }
  .market-swatch::before { width: 20px; height: 20px; }
  .market-gallery-arrow { width: 34px; height: 34px; top: calc(50% - 17px); }
  .market-item-price { font-size: 17px; }
  .market-item-price.market-price-unknown { font-size: 13px; }
  .market-item-button { margin-top: 10px; min-height: 45px; }
  .market-item-stock { font-size: 10px; }
  .market-product-card { grid-template-columns: 1fr; gap: 17px; padding: 16px; border-radius: 22px; }
  .market-product-media { min-height: 280px; border-radius: 18px; }
  .market-product-media > .market-image { height: clamp(280px, 71vw, 440px); }
  .market-product-stock { top: 14px; left: 14px; font-size: 12px; }
  .market-product-copy h1 { font-size: clamp(28px, 8vw, 36px); margin: 13px 0; }
  .market-product-price { font-size: 34px; }
  .market-product-info { padding: 19px; }
}

.market-seo-products { margin: 26px 0; }
.market-seo-products h2 { font-size: 24px; }
.market-seo-products details {
  margin: 8px 0;
  padding: 12px 16px;
  border: 1px solid var(--market-line);
  border-radius: 12px;
  background: var(--yps-surface);
}
.market-seo-products summary { cursor: pointer; font-weight: 800; }
.market-seo-products small,
.market-seo-products li span { color: var(--market-muted); }
.market-seo-products li { margin: 9px 0; }
.market-seo-products li a { text-decoration: underline; text-underline-offset: 3px; }
