:root {
  --dark: var(--shadow);
  --forest: var(--pine);
  --display: var(--serif);
}
.forest { background: var(--pine); color: var(--white); }
.forest:hover { background: #2b4e3c; }
.amber { background: var(--gold); color: var(--ink); }
.amber:hover { background: #f2d3a7; }
.outline { color: var(--forest); background: var(--white); border-color: #8ea196; }
.outline:hover { background: #ebf1e8; }

.catalog { scroll-margin-top: 10px; border-top: 1px solid #dadfd4; background: #eeefe6; padding-block: 38px 62px; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.text-link { padding: 0 0 1px; color: #345749; font-size: 14px; border: 0; border-bottom: 1px solid #91a99c; background: transparent; cursor: pointer; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 27px; align-items: start; }
.side { border: 1px solid var(--line); background: #f7f8ef; border-radius: 4px; padding: 15px 10px 10px; }
.side h3 { margin: 0 9px 10px; font-size: 14px; }
.group { display: grid; gap: 2px; }
.group + .group { border-top: 1px solid #dfe5d8; padding-top: 6px; margin-top: 6px; }
.group span.group-name { color: var(--muted); font-size: 12px; margin: 5px 9px; }
.cat { display: flex; gap: 6px; align-items: center; justify-content: space-between; min-height: 39px; padding: 6px 8px; border: 1px solid transparent; border-radius: 4px; text-align: left; background: transparent; cursor: pointer; font-size: 14px; }
.cat:hover { background: #e6eee2; }
.cat[aria-pressed="true"] { background: var(--forest); color: white; }
.count { font-size: 12px; opacity: .84; white-space: nowrap; }
.mobile-category { display: none; }

.filters { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 11px; }
.filters label, .mobile-category { font-size: 13px; font-weight: 700; color: #314c3d; }
.filters input, .filters select, .mobile-category select {
  display: block; width: 100%; height: 44px; padding: 7px 9px; border: 1px solid #bdc9bd;
  border-radius: 4px; background: var(--white); margin-top: 4px; font-size: 14px; font-weight: 400;
}
.filters select:disabled { opacity: .62; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; min-height: 46px; padding: 13px 0 8px; font-size: 14px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.product { min-width: 0; }
.product-open {
  display: flex; flex-direction: column; height: 100%; width: 100%; border: 1px solid #d1d9cd;
  border-radius: 4px; overflow: hidden; background: var(--white); cursor: pointer; padding: 0; text-align: left;
}
.product-open:hover { border-color: #748f7e; background: #f4f9ee; }
.product-picture { width: 100%; background: #24261d; }
.product-picture img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: contain; }
.product-body { padding: 11px 12px 12px; min-height: 104px; display: flex; flex-direction: column; flex: 1; width: 100%; }
.product-code { font-size: 11px; font-weight: 700; letter-spacing: .045em; color: var(--muted); line-height: 1.4; }
.product-title { font: 400 20px/1.19 var(--display); margin: 5px 0 10px; }
.product-bottom { display: flex; margin-top: auto; align-items: baseline; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 13px; }
.product-price { color: var(--forest); font-weight: 700; }
.more { text-align: center; margin-top: 20px; }
.blank { padding: 36px 21px; background: var(--white); border: 1px solid var(--line); }
.blank p { margin: 7px 0 13px; }

dialog { width: min(835px,calc(100% - 24px)); max-width: unset; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #0b251dd1; }
.detail-layout { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.detail-media { position: relative; background: #20261d; min-width: 0; align-self: stretch; display: grid; place-items: center; }
.detail-media img { width: 100%; max-height: 520px; min-height: 315px; object-fit: contain; }
.switch { display: flex; gap: 4px; padding: 4px; border-radius: 5px; position: absolute; left: 12px; bottom: 12px; background: #fffdf3ea; }
.switch button { min-height: 34px; padding: 5px 10px; font-size: 13px; border: none; background: transparent; cursor: pointer; border-radius: 3px; }
.switch button[aria-pressed="true"] { background: var(--forest); color: white; }
.detail-body { padding: 29px 24px 28px; min-width: 0; }
.detail-body h2 { font-size: clamp(27px,3.4vw,41px); margin: 5px 20px 7px 0; }
.detail-description { font-size: 15px; }
.detail-body dl { display: grid; margin-block: 13px; gap: 7px; }
.detail-body dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-body dd { font-size: 14px; }
.detail-price { font-size: 18px; color: var(--forest); font-weight: 700; margin-bottom: 12px; }
.close-form { position: absolute; top: 9px; right: 9px; z-index: 2; }
.close-form button { font-size: 26px; line-height: 1; width: 39px; height: 39px; border: 1px solid #a2b3a6; border-radius: 50%; background: var(--white); cursor: pointer; }

@media (max-width: 1050px) {
  .catalog-layout { grid-template-columns: 186px minmax(0,1fr); gap: 13px; }
}

@media (max-width: 730px) {
  .catalog { padding-block: 25px 41px; }
  .section-head { margin-bottom: 17px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 8px; }
  .side { border: none; padding: 0; background: transparent; }
  .side h3, .side #category-nav { display: none; }
  .mobile-category { display: block; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .filters .search-label { grid-column: 1 / -1; }
  .filters input, .filters select, .mobile-category select { font-size: 16px; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .product-body { padding: 9px; min-height: 91px; }
  .product-title { font-size: 17px; }
  .product-bottom { font-size: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media img { max-height: 290px; min-height: 208px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#cart-status { margin-block: 8px 0; color: var(--muted); font-size: 14px; min-height: 1em; }
#cart-status a { text-decoration: underline; text-underline-offset: 3px; }

.figures-header-top { grid-template-columns: minmax(0, 1fr) auto auto; }
.figures-page .menu [aria-current="page"] {
  color: #395f49;
  text-decoration: underline;
  text-decoration-color: #7f9e87;
  text-underline-offset: 5px;
}
#cart-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  place-items: center;
  background: var(--pine);
  color: var(--white);
  border-radius: 50%;
}
.figures-hero .hero-inner { min-height: 500px; }
.figures-hero .hero-art { width: 82%; object-position: center 28%; }
.figures-hero::after {
  background: linear-gradient(90deg, #14271e 6%, #14271efb 24%, #14271ebe 41%, #14271e22 66%, #14271e09);
}
.figures-hero .hero-text { max-width: 435px; }
.figure-kind[aria-current="true"] { border-color: #638673; }
.figure-kind[data-section="characters"] img {
  object-fit: contain;
  background: #211e19;
}
.figure-kind[data-section="steles"] img { object-position: center 38%; }

.figure-feature { background: #e8eee1; border-block: 1px solid var(--line); }
.feature-display {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(22px, 5vw, 75px);
  padding: clamp(16px, 2.1vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.feature-gallery { min-width: 0; }
.feature-main {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #2b3023;
  border-radius: 4px;
}
.feature-main img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.feature-main figcaption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  max-width: calc(100% - 18px);
  margin: 0;
  padding: 5px 8px;
  border-radius: 3px;
  color: #fff9ef;
  background: #172820e0;
}
.feature-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.feature-options button {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px 5px 5px;
  gap: 8px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #becdbf;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.feature-options button:hover { border-color: #6f8f7c; }
.feature-options button[aria-pressed="true"] {
  background: #dfe9dd;
  border-color: #5d806b;
}
.feature-options button img {
  width: 60px;
  height: 38px;
  object-fit: cover;
  border-radius: 3px;
}
.feature-info { align-self: center; padding: 0 clamp(1px, 1.5vw, 20px) 12px 0; }
.feature-meta { color: var(--muted); font-size: 14px; font-weight: 700; }
.feature-info h3, .custom-category h3 {
  font: 400 clamp(29px, 4vw, 53px)/1.05 var(--serif);
  letter-spacing: -.045em;
  margin-block: 6px 12px;
}
.feature-summary { color: var(--muted); }
.feature-info dl { margin-block: 15px 12px; }
.feature-info dl > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 11px;
  margin-top: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.feature-info dd { margin: 0; font-weight: 700; }
.feature-info dt { color: var(--muted); }
.feature-price { font-weight: 700; margin-block: 14px; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 6px 15px; }
.catalog-actions a[aria-current="true"] { border-color: var(--forest); font-weight: 700; }
.custom-category {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.custom-category img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 36%; }
.custom-category > div { align-self: center; padding: clamp(17px, 4vw, 44px); }
.custom-category p:not(.feature-meta) { color: var(--muted); max-width: 42ch; }
.custom-category .button { margin-top: 15px; }
.detail-body dl { margin-inline: 0; }
.detail-body dd { margin: 0; }
@media (max-width: 730px) {
  .figures-header-top { grid-template-columns: minmax(0, 1fr) auto; }
  .figures-header-top .header-phone { display: none; }
  .figures-hero .hero-inner { min-height: 456px; padding-top: 132px; }
  .figures-hero .hero-art { width: 100%; height: 84%; object-position: 53% 36%; }
  .figures-hero::after { background: linear-gradient(0deg, #14271e 8%, #14271ef7 25%, #14271ec0 52%, #14271e16 95%); }
  .feature-display, .custom-category { grid-template-columns: 1fr; gap: 16px; }
  .feature-info { padding: 0; }
  .feature-main figcaption { font-size: 12px; }
  .custom-category img { min-height: 0; height: auto; aspect-ratio: 1.5; }
  .figures-page .direction img { aspect-ratio: 1.52; }
}
