:root {
  --rescom-ink: #111110;
  --rescom-text: #3a3a38;
  --rescom-muted: #6e6960;
  --rescom-line: #e7e3dc;
  --rescom-soft: #f6f4f0;
  --rescom-green: #2f4636;
  --rescom-warm: #a08a6f;
}

.rescom-catalog,
.rescom-product {
  color: var(--rescom-ink);
  font-family: Montserrat, "Open Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.rescom-catalog-page.container-wrap,
.rescom-product-page.container-wrap { padding-top: 0 !important; background: #fff; }
.rescom-catalog-page > .main-content,
.rescom-product-page > .main-content { width: 100%; max-width: none; padding: 0; }
.rescom-catalog { width: 100%; max-width: none; background: #fff; }

.rescom-catalog *,
.rescom-product * { box-sizing: border-box; }
.rescom-catalog button,
.rescom-catalog input,
.rescom-catalog select,
.rescom-product button,
.rescom-product input,
.rescom-product textarea { font: inherit; }
.rescom-catalog a,
.rescom-product a { color: inherit; text-decoration: none; }

.rescom-catalog__hero {
  min-height: 320px;
  margin: 28px clamp(20px, 4vw, 56px) 0;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(100% 140% at 18% 8%, rgba(255, 247, 236, .26), transparent 55%),
    linear-gradient(120deg, rgba(22, 20, 18, .94), rgba(39, 35, 31, .84)),
    repeating-linear-gradient(41deg, #24211e 0 3px, #302b27 3px 6px);
}

.rescom-catalog__hero-inner {
  display: flex;
  min-height: 320px;
  max-width: 820px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px);
}

.rescom-catalog__crumbs,
.rescom-product__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rescom-catalog__crumbs a { color: rgba(255, 255, 255, .72); }
.rescom-catalog__hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.rescom-catalog__hero p {
  max-width: 590px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: clamp(15px, 2vw, 18px);
}

.rescom-catalog__layout {
  display: grid;
  grid-template-columns: minmax(240px, 305px) minmax(0, 1fr);
  gap: clamp(34px, 4vw, 58px);
  width: 100%;
  padding: 46px clamp(20px, 4vw, 56px) 84px;
}

.rescom-catalog__layout:not(:has(.rescom-catalog__sidebar)) { grid-template-columns: 1fr; }
.rescom-catalog__sidebar { min-width: 0; }
.rescom-catalog__main { min-width: 0; }

.rescom-catalog__toolbar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rescom-line);
}

.rescom-catalog__toolbar h2 {
  margin: 0;
  color: var(--rescom-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.025em;
}

.rescom-catalog__toolbar p { margin: 5px 0 0; color: #969188; font-size: 13px; }
.rescom-catalog__toolbar-actions { display: flex; gap: 10px; align-items: center; }
.rescom-catalog__filter-button { display: none; }

.rescom-catalog__sort select,
.rescom-catalog__filter-button {
  min-height: 45px;
  border: 1px solid #dcd7d0;
  border-radius: 999px;
  background: #fff;
  color: var(--rescom-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.rescom-catalog__sort select {
  max-width: 210px;
  padding: 0 40px 0 18px;
}

.rescom-catalog__results { position: relative; min-height: 240px; padding-top: 28px; }
.rescom-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
}

.rescom-card { min-width: 0; margin: 0; }
.rescom-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #26231f;
}

.rescom-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.rescom-card:hover .rescom-card__image img { transform: scale(1.035); }
.rescom-card__texture {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, .1), transparent 42%),
    repeating-linear-gradient(37deg, #24211e 0 3px, #2c2824 3px 6px);
}
.rescom-card__texture strong { font-size: 28px; letter-spacing: .12em; }

.rescom-card__arrow {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--rescom-ink);
  font-size: 17px;
  transition: transform .25s ease;
}
.rescom-card:hover .rescom-card__arrow { transform: rotate(45deg); }
.rescom-card__body { padding: 16px 2px 0; }
.rescom-card__meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; color: #817c74; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.rescom-card h3 { margin: 9px 0 0; color: var(--rescom-ink); font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.rescom-card h3 a:hover { color: var(--rescom-green); }
.rescom-card__body > p { min-height: 22px; margin: 6px 0 0; color: var(--rescom-muted); font-size: 12.5px; }
.rescom-card__footer { display: flex; min-height: 28px; gap: 12px; align-items: center; justify-content: space-between; margin-top: 5px; }

.rescom-stock { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.rescom-stock i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #a9a49c; }
.rescom-stock--instock i { background: var(--rescom-green); }
.rescom-stock--onbackorder i { background: var(--rescom-warm); }
.rescom-stock--expected i { background: #7e8466; }
.rescom-stock--outofstock i { background: #aaa59d; }

.rescom-swatches { display: flex; gap: 4px; }
.rescom-swatches span { display: block; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; outline: 1px solid #dad6cf; background: var(--rescom-swatch); }
.rescom-card__colors { color: #8d887f; font-size: 11px; }

.rescom-catalog__empty {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px;
  border-radius: 18px;
  background: var(--rescom-soft);
  text-align: center;
}
.rescom-catalog__empty > span { font-size: 42px; }
.rescom-catalog__empty h3 { margin: 12px 0 4px; font-size: 24px; }
.rescom-catalog__empty p { max-width: 450px; margin: 0; color: var(--rescom-muted); }
.rescom-catalog__empty button { margin-top: 22px; padding: 12px 20px; border: 1px solid var(--rescom-ink); border-radius: 999px; background: var(--rescom-ink); color: #fff; cursor: pointer; }

.rescom-pagination { display: flex; gap: 7px; justify-content: center; margin-top: 52px; }
.rescom-pagination .page-numbers { display: grid; min-width: 42px; height: 42px; padding: 0 8px; place-items: center; border: 1px solid var(--rescom-line); border-radius: 50%; color: var(--rescom-text); font-size: 13px; }
.rescom-pagination .current { border-color: var(--rescom-ink); background: var(--rescom-ink); color: #fff; }

/* Product page */
.rescom-product-page { background: #fff; }
.rescom-product { width: 100%; padding: 34px clamp(20px, 5vw, 72px) 90px; }
.rescom-product__crumbs { margin-bottom: 30px; color: #8d887f; letter-spacing: .08em; }
.rescom-product__crumbs a { color: #5f5b55; }
.rescom-product__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.rescom-product__gallery { min-width: 0; }
.rescom-product__hero-image { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; background: #26231f; }
.rescom-product__hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rescom-product__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 10px; }
.rescom-product__thumbs button { overflow: hidden; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 9px; background: #eee; cursor: pointer; opacity: .7; }
.rescom-product__thumbs button.is-active { border-color: var(--rescom-ink); opacity: 1; }
.rescom-product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rescom-product__summary { position: sticky; top: 110px; padding-top: 8px; }
.rescom-product__brand,
.rescom-eyebrow { color: var(--rescom-warm); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rescom-product__summary h1 { margin: 14px 0 15px; color: var(--rescom-ink); font-size: clamp(34px, 4.5vw, 58px); font-weight: 600; letter-spacing: -.04em; line-height: 1.03; }
.rescom-product__status { color: var(--rescom-muted); font-size: 12px; font-weight: 600; }
.rescom-product__intro { margin-top: 26px; color: #55514b; font-size: 15px; line-height: 1.7; }
.rescom-product__intro p { margin: 0; }
.rescom-product__variants { margin-top: 30px; padding: 25px 0; border-top: 1px solid var(--rescom-line); border-bottom: 1px solid var(--rescom-line); }
.rescom-product__variants-head { display: flex; gap: 14px; justify-content: space-between; font-size: 13px; }
.rescom-product__variants-head span { color: var(--rescom-muted); }
.rescom-product__swatch-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rescom-product__swatch-list button { display: grid; width: 38px; height: 38px; padding: 4px; place-items: center; border: 1px solid transparent; border-radius: 50%; background: #fff; cursor: pointer; }
.rescom-product__swatch-list button span { display: block; width: 28px; height: 28px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%; background: var(--rescom-swatch); }
.rescom-product__swatch-list button.is-active { border-color: var(--rescom-ink); }
.rescom-product__variant-code { display: flex; justify-content: space-between; margin-top: 18px; color: var(--rescom-muted); font-size: 12px; }
.rescom-product__variant-code strong { color: var(--rescom-ink); }
.rescom-product__cta,
.rescom-inquiry__submit { display: flex; min-height: 56px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--rescom-ink); color: #fff !important; cursor: pointer; font-size: 13px; font-weight: 700; }
.rescom-product__cta span,
.rescom-inquiry__submit span { font-size: 20px; }
.rescom-product__cta-note { margin: 12px 15px 0; color: #8b867e; font-size: 11px; line-height: 1.5; }

.rescom-product__details { display: grid; grid-template-columns: minmax(0, .85fr) minmax(390px, 1.15fr); gap: clamp(48px, 8vw, 110px); margin-top: 100px; padding: clamp(48px, 7vw, 86px); border-radius: 22px; background: var(--rescom-soft); }
.rescom-product__details h2,
.rescom-inquiry h2 { margin: 10px 0 20px; font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.rescom-product__description { color: #56514b; line-height: 1.75; }
.rescom-product__specs { margin: 0; }
.rescom-product__specs > div { display: grid; grid-template-columns: 42% 58%; gap: 18px; padding: 13px 0; border-bottom: 1px solid #dedad3; }
.rescom-product__specs dt { color: #817c74; font-size: 12px; }
.rescom-product__specs dd { margin: 0; color: var(--rescom-ink); font-size: 13px; font-weight: 600; }

.rescom-inquiry { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 110px); margin-top: 28px; padding: clamp(48px, 7vw, 86px); border-radius: 22px; background: #20201e; color: #fff; }
.rescom-inquiry h2 { color: #fff; }
.rescom-inquiry__intro p { max-width: 390px; color: rgba(255, 255, 255, .64); }
.rescom-inquiry__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.rescom-inquiry__error { margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 170, 150, .35); border-radius: 9px; background: rgba(120, 30, 20, .24); color: #ffd5ca; font-size: 12px; }
.rescom-inquiry__form label > span { display: block; margin-bottom: 8px; color: rgba(255, 255, 255, .72); font-size: 12px; }
.rescom-inquiry__form input[type="text"],
.rescom-inquiry__form input[type="tel"],
.rescom-inquiry__form input[type="email"],
.rescom-inquiry__form textarea { width: 100%; border: 1px solid rgba(255, 255, 255, .19); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; }
.rescom-inquiry__form input { height: 50px; padding: 0 15px; }
.rescom-inquiry__form textarea { min-height: 110px; padding: 13px 15px; resize: vertical; }
.rescom-inquiry__wide { grid-column: 1 / -1; }
.rescom-inquiry__consent { display: flex; gap: 10px; align-items: flex-start; }
.rescom-inquiry__consent input { width: 18px; height: 18px; flex: none; }
.rescom-inquiry__consent span { margin: 0 !important; }
.rescom-inquiry__submit { width: 100%; margin: 0; background: #fff; color: var(--rescom-ink) !important; }
.rescom-inquiry__honeypot { position: absolute !important; left: -9999px !important; }
.rescom-inquiry__success { align-self: center; text-align: center; }
.rescom-inquiry__success > span { display: grid; width: 58px; height: 58px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: #fff; color: var(--rescom-green); font-size: 25px; }
.rescom-inquiry__success h3 { margin: 0; color: #fff; font-size: 28px; }
.rescom-inquiry__success p { color: rgba(255, 255, 255, .65); }

.rescom-catalog.is-loading [data-rescom-main] { opacity: .55; pointer-events: none; }
.rescom-catalog.is-loading::after { position: fixed; right: 24px; bottom: 24px; z-index: 1000; padding: 10px 15px; border-radius: 999px; background: var(--rescom-ink); color: #fff; content: "Завантаження…"; font-size: 12px; }

@media (max-width: 1180px) {
  .rescom-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 879px) {
  .rescom-catalog__hero { min-height: 275px; margin: 16px 16px 0; }
  .rescom-catalog__hero-inner { min-height: 275px; padding: 34px 25px; }
  .rescom-catalog__layout { display: block; padding: 34px 18px 62px; }
  .rescom-catalog__sidebar { display: none; }
  .rescom-catalog__toolbar { flex-direction: column; gap: 18px; align-items: stretch; }
  .rescom-catalog__toolbar > div:first-child { width: 100%; }
  .rescom-catalog__toolbar-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); }
  .rescom-catalog__filter-button { display: inline-flex; width: 100%; gap: 8px; align-items: center; justify-content: center; padding: 0 16px; }
  .rescom-catalog__toolbar-actions .rescom-catalog__filter-button {
    height: 46px !important;
    min-height: 46px !important;
    border: 1px solid #dcd7d0 !important;
    border-radius: 999px !important;
    background-color: #fff !important;
    box-shadow: none !important;
  }
  .rescom-product { padding: 25px 18px 65px; }
  .rescom-product__top { grid-template-columns: 1fr; gap: 30px; }
  .rescom-product__summary { position: static; }
  .rescom-product__details,
  .rescom-inquiry { grid-template-columns: 1fr; gap: 35px; margin-top: 55px; padding: 38px 24px; }
}

@media (max-width: 560px) {
  .rescom-catalog__toolbar h2 { font-size: 25px; }
  .rescom-catalog__grid { grid-template-columns: 1fr; gap: 32px; }
  .rescom-card__image { aspect-ratio: 1.25; }
  .rescom-product__hero-image { aspect-ratio: 1.08; }
  .rescom-product__details { padding: 32px 20px; }
  .rescom-product__specs > div { grid-template-columns: 1fr; gap: 5px; }
  .rescom-inquiry { padding: 34px 20px; }
  .rescom-inquiry__form { grid-template-columns: 1fr; }
  .rescom-inquiry__wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rescom-card__image img,
  .rescom-card__arrow { transition: none; }
  html:focus-within { scroll-behavior: auto; }
}

/* Product page: mirrors the approved prototype. */
.rescom-product--prototype { padding: 34px clamp(20px, 4vw, 56px) 70px; }
.rescom-product--prototype .rescom-product__top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: flex-start;
}
.rescom-product--prototype .rescom-product__gallery { display: flex; min-width: 0; flex: 1 1 440px; flex-direction: column; gap: 14px; }
.rescom-product--prototype .rescom-product__hero-image { height: clamp(360px, 38vw, 520px); aspect-ratio: auto; border-radius: 24px !important; }
.rescom-product--prototype .rescom-product__hero-image img { border-radius: 24px !important; }
.rescom-product--prototype .rescom-product__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin: 0; }
.rescom-product--prototype .rescom-product__thumbs button { height: 118px; aspect-ratio: auto; overflow: hidden; border-radius: 20px !important; }
.rescom-product--prototype .rescom-product__thumbs button img { display: block; border-radius: 20px !important; }
.rescom-product--prototype .rescom-product__summary { position: static; display: flex; min-width: 0; flex: 1 1 420px; flex-direction: column; gap: 18px; padding-top: 6px; }
.rescom-product__navigation { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.rescom-product__back { display: inline-flex; gap: 9px; align-items: center; padding: 9px 18px; border: 1px solid #dcd7d0; border-radius: 999px; background: #fff; color: var(--rescom-ink); font-size: 13px; font-weight: 600; }
.rescom-product__back:hover { border-color: var(--rescom-ink); background: #f7f5f2; }
.rescom-product--prototype .rescom-product__crumbs { gap: 6px; margin: 0; color: #8a857d; font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rescom-product--prototype .rescom-product__crumbs a { color: var(--rescom-green); text-decoration: underline; text-underline-offset: 3px; }
.rescom-product--prototype .rescom-product__brand { margin-top: 2px; font-size: 12px; letter-spacing: .2em; }
.rescom-product--prototype .rescom-product__summary h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.rescom-product--prototype .rescom-product__intro { margin: 0; color: #5a554e; font-size: 15.5px; line-height: 1.65; }
.rescom-product__availability { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 4px 0; color: var(--rescom-muted); font-size: 14px; }
.rescom-product__availability .rescom-stock { color: var(--rescom-ink); }
.rescom-product__availability .rescom-stock i { width: 8px; height: 8px; }
.rescom-product__divider { width: 1px; height: 16px; background: #e4e0da; }

.rescom-product--prototype .rescom-product__variants { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 22px; border: 1px solid #ece8e2; border-radius: 18px; background: #fbfaf8; }
.rescom-product--prototype .rescom-product__variants-head { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; }
.rescom-product--prototype .rescom-product__variants-head > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.rescom-product--prototype .rescom-product__variants-head small { color: #8a857d; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.rescom-product--prototype .rescom-product__variants-head strong { color: var(--rescom-ink); font-size: 20px; font-weight: 600; }
.rescom-product--prototype .rescom-product__variants-head > div > span { color: var(--rescom-muted); font-size: 13px; }
.rescom-product--prototype .rescom-product__variants-head b { color: inherit; font-weight: 400; }
.rescom-product__variant-status { display: inline-flex; flex: none; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid #e4e0da; border-radius: 999px; background: #fff; color: var(--rescom-text); font-size: 13px; white-space: nowrap; }
.rescom-product__variant-status em { font-style: normal; }
.rescom-product--prototype .rescom-product__swatch-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.rescom-product--prototype .rescom-product__swatch-list button { display: flex; width: 92px; height: auto; flex-direction: column; gap: 7px; align-items: center; padding: 0; border: 0; border-radius: 0; background: none; }
.rescom-product--prototype .rescom-product__swatch-list button > span { width: 52px; height: 52px; border: 1px solid #dcd7d0; border-radius: 12px; background: var(--rescom-swatch); }
.rescom-product--prototype .rescom-product__swatch-list button > small { width: 100%; color: var(--rescom-muted); font-size: 11.5px; line-height: 1.25; overflow-wrap: anywhere; }
.rescom-product--prototype .rescom-product__swatch-list button.is-active > span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rescom-ink); }
.rescom-product--prototype .rescom-product__swatch-list .is-extra { display: none; }
.rescom-product--prototype.show-all-colors .rescom-product__swatch-list .is-extra { display: flex; }
.rescom-product__variant-more { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rescom-product__variant-more button { padding: 12px 22px; border: 1px solid #dcd7d0; border-radius: 999px; background: #fff; color: var(--rescom-ink); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.rescom-product__variant-more span { color: #8a857d; font-size: 12.5px; }
.rescom-product--prototype .rescom-product__cta { min-height: auto; justify-content: center; gap: 10px; margin: 0; padding: 18px 30px; font-size: 15px; }
.rescom-product--prototype .rescom-product__cta:hover { background: var(--rescom-green); }
.rescom-product--prototype .rescom-product__cta-note { margin: -6px 0 0; }

.rescom-product--prototype .rescom-product__details { display: flex; flex-wrap: wrap; gap: clamp(28px, 3.5vw, 56px); margin: clamp(42px, 5vw, 68px) 0 0; padding: 0 0 60px; border-radius: 0; background: #fff; }
.rescom-product--prototype .rescom-product__details > section { min-width: 0; flex: 1 1 400px; }
.rescom-product--prototype .rescom-product__details h2,
.rescom-related > h2 { margin: 0 0 16px; color: var(--rescom-ink); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.rescom-product--prototype .rescom-product__description { color: #5a554e; font-size: 15px; line-height: 1.75; }
.rescom-product--prototype .rescom-product__details h2 { padding: 0 !important; }
.rescom-product--prototype .rescom-product__description p { margin: 0 0 18px !important; padding: 0 !important; }
.rescom-product--prototype .rescom-product__description p:last-child { margin-bottom: 0 !important; }
.rescom-product__applications { padding-top: 18px; }
.rescom-product__applications > strong,
.rescom-product__documents > strong { display: block; margin-bottom: 12px; color: var(--rescom-ink); font-size: 14px; }
.rescom-product__applications > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rescom-product__applications span { padding: 9px 16px; border: 1px solid #dcd7d0; border-radius: 999px; background: #fbfaf8; color: var(--rescom-text); font-size: 13px; }
.rescom-product__documents { padding-top: 24px; }
.rescom-product__documents > a,
.rescom-product__documents > div { display: flex; min-height: 54px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 14px 18px; border: 1px solid #ece8e2; border-radius: 14px; color: var(--rescom-ink); font-size: 14px; }
.rescom-product__documents em { color: var(--rescom-warm); font-size: 12.5px; font-style: normal; }
.rescom-product--prototype .rescom-product__specs { overflow: hidden; border: 1px solid #ece8e2; border-radius: 18px; }
.rescom-product--prototype .rescom-product__specs > div { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid #f1eee9; }
.rescom-product--prototype .rescom-product__specs > div:last-child { border-bottom: 0; }
.rescom-product--prototype .rescom-product__specs dt,
.rescom-product--prototype .rescom-product__specs dd { font-size: 13.5px; font-weight: 400; }
.rescom-product__no-specs { padding: 18px 20px; border: 1px solid #ece8e2; border-radius: 18px; color: var(--rescom-muted); }

.rescom-product--prototype .rescom-inquiry { display: block; margin: 0 0 70px; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: 22px; background: radial-gradient(120% 130% at 80% 0%, rgba(255, 246, 235, .26), rgba(18, 17, 15, .94)), repeating-linear-gradient(38deg, #232120 0 3px, #2a2725 3px 6px); color: var(--rescom-ink); }
.rescom-inquiry__card { max-width: 660px; margin: 0 auto; padding: clamp(24px, 3vw, 40px); border-radius: 20px; background: #fff; }
.rescom-product--prototype .rescom-inquiry__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rescom-inquiry__heading h2 { margin: 0; color: var(--rescom-ink); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.rescom-inquiry__heading p { margin: 8px 0 0; color: var(--rescom-muted); font-size: 14px; line-height: 1.6; }
.rescom-inquiry__context { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin: 8px 0; border: 1px solid #ece8e2; border-radius: 14px; background: #fbfaf8; }
.rescom-inquiry__context > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 14px 16px; border-right: 1px solid #f1eee9; }
.rescom-inquiry__context > div:last-child { border-right: 0; }
.rescom-inquiry__context small { color: #a9a49c; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.rescom-inquiry__context strong { overflow: hidden; color: var(--rescom-ink); font-size: 13px; font-weight: 600; text-overflow: ellipsis; }
.rescom-product--prototype .rescom-inquiry__form input[type="text"],
.rescom-product--prototype .rescom-inquiry__form input[type="tel"],
.rescom-product--prototype .rescom-inquiry__form input[type="email"] { height: 50px; padding: 0 20px; border: 1px solid #dcd7d0; border-radius: 999px; background: #fff; color: var(--rescom-ink); }
.rescom-product--prototype .rescom-inquiry__form textarea { min-height: 112px; padding: 16px 20px; border: 1px solid #dcd7d0; border-radius: 18px; background: #fff; color: var(--rescom-ink); resize: none; }
.rescom-product--prototype .rescom-inquiry__consent span { color: #5a554e; }
.rescom-product--prototype .rescom-inquiry__submit { min-height: 56px; justify-content: center; margin: 0; background: #918d87 !important; color: #fff !important; font-size: 15px; transition: background-color .22s ease, transform .22s ease; }
.rescom-product--prototype .rescom-inquiry__form:valid .rescom-inquiry__submit { background: #2f4636 !important; }
.rescom-product--prototype .rescom-inquiry__form:valid .rescom-inquiry__submit:hover { background: #23372a !important; transform: translateY(-1px); }
.rescom-product--prototype .rescom-inquiry__success { padding: 36px 10px; }
.rescom-product--prototype .rescom-inquiry__success > span { background: var(--rescom-green); color: #fff; }
.rescom-product--prototype .rescom-inquiry__success h3 { color: var(--rescom-ink); }
.rescom-product--prototype .rescom-inquiry__success p { color: #5a554e; }

.rescom-related { padding-bottom: 0; }
.rescom-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 24px; }
.rescom-related__card { overflow: hidden; border: 1px solid #ece8e2; border-radius: 18px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.rescom-related__card:hover { border-color: #cfc9c0; box-shadow: 0 18px 40px rgba(24, 22, 20, .1); }
.rescom-related__image { position: relative; height: 200px; background: #25221f; }
.rescom-related__image img { width: 100%; height: 100%; object-fit: cover; }
.rescom-related__image > small { position: absolute; top: 16px; left: 16px; color: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.rescom-related__card > div:last-child { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.rescom-related__card > div:last-child strong { color: var(--rescom-ink); font-size: 18px; font-weight: 600; }
.rescom-related__card > div:last-child span { color: var(--rescom-muted); font-size: 13px; }
.rescom-product__mobile-bar { display: none; }

@media (max-width: 879px) {
  .rescom-product--prototype { padding: 24px 18px 90px; }
  .rescom-product--prototype .rescom-product__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rescom-product--prototype .rescom-product__summary { display: contents; }
  .rescom-product--prototype .rescom-product__summary > * { order: 3; }
  .rescom-product--prototype .rescom-product__navigation { order: 1; }
  .rescom-product--prototype .rescom-product__gallery { order: 2; margin-bottom: 4px; }
  .rescom-product--prototype .rescom-product__hero-image { height: clamp(330px, 88vw, 500px); }
  .rescom-product--prototype .rescom-product__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .rescom-product--prototype .rescom-product__thumbs button { height: 82px; }
  .rescom-product--prototype .rescom-product__details { display: flex; gap: 42px; margin-top: 38px; padding: 0 0 50px; }
  .rescom-product--prototype .rescom-inquiry { margin-bottom: 52px; padding: 28px 16px; }
  .rescom-product--prototype .rescom-inquiry__form { grid-template-columns: 1fr; }
  .rescom-product--prototype .rescom-inquiry__wide { grid-column: auto; }
  .rescom-inquiry__context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rescom-inquiry__context > div:nth-child(2) { border-right: 0; }
  .rescom-inquiry__context > div:nth-child(-n+2) { border-bottom: 1px solid #f1eee9; }
  .rescom-product__mobile-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 9990; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid #ece8e2; background: #fff; box-shadow: 0 -8px 24px rgba(24, 22, 20, .08); }
  .rescom-product__mobile-bar > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
  .rescom-product__mobile-bar strong,
  .rescom-product__mobile-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rescom-product__mobile-bar strong { font-size: 13px; }
  .rescom-product__mobile-bar span { color: var(--rescom-muted); font-size: 11.5px; }
  .rescom-product__mobile-bar b { font-weight: 400; }
  .rescom-product__mobile-bar > a { min-height: 52px; padding: 15px 22px; border-radius: 999px; background: var(--rescom-ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
}

@media (max-width: 520px) {
  .rescom-product__navigation { align-items: flex-start; flex-direction: column; }
  .rescom-product--prototype .rescom-product__variants-head { align-items: flex-start; flex-direction: column; }
  .rescom-product--prototype .rescom-product__swatch-list button { width: 76px; }
  .rescom-inquiry__context { grid-template-columns: 1fr; }
  .rescom-inquiry__context > div { border-right: 0; border-bottom: 1px solid #f1eee9; }
  .rescom-inquiry__context > div:last-child { border-bottom: 0; }
}
