/* =================== hc-pdp-m1.css =================== */
/* Canonical PDP M1 layout. Single source of truth for hero/buy/tabs rhythm. */

.hc-pdp-m1__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.92fr);
  align-items: start;
  gap: clamp(18px, 2vw, 30px);
  max-width: 100%;
  margin: 16px 0 26px;
}

.hc-pdp-m1__gallery {
  min-width: 0;
}

.hc-pdp-m1__aside {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 10px;
  align-content: start;
}

.hc-pdp-m1__eyebrow {
  margin: 0;
  max-width: 100%;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a6548;
  overflow-wrap: anywhere;
}

.hc-pdp-m1__title {
  margin: 0;
  max-width: 100%;
  color: #1a1714;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(33px, 2.75vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hc-pdp-m1__buy {
  position: sticky;
  top: calc(var(--hc-hdr-h, 72px) + 10px);
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  border: 1px solid rgba(141, 109, 71, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, rgba(251, 247, 237, 0.94) 100%);
  box-shadow: 0 18px 40px -28px rgba(40, 30, 15, 0.28);
}

.hc-pdp-m1__sku-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 4px 4px 10px;
  margin: 0 0 12px;
  border: 1px solid rgba(212, 184, 150, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.2), rgba(184, 154, 111, 0.08));
}

.hc-pdp-m1__sku-key {
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 23, 20, 0.56);
}

.hc-pdp-m1__sku-val {
  min-width: 0;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1714;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.hc-pdp-m1__sku-copy {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(141, 109, 71, 0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #7a6548;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hc-pdp-m1__sku-copy:hover {
  transform: scale(1.08);
  background: #1a1714;
  border-color: #1a1714;
  color: #fff;
}

.hc-pdp-m1__sku-copy svg {
  width: 11px;
  height: 11px;
}

.hc-pdp-m1__sku-copy-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hc-pdp-m1__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.hc-pdp-m1__price {
  color: #1a1714;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(34px, 2.75vw, 46px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hc-pdp-m1__price-old {
  color: rgba(26, 23, 20, 0.42);
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 14px;
  text-decoration: line-through;
}

.hc-pdp-m1__sale-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #8b3f32;
  color: #fff;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hc-pdp-m1__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 10px 0 14px;
  padding: 5px 10px;
  border: 1px solid rgba(61, 107, 79, 0.26);
  border-radius: 999px;
  background: rgba(61, 107, 79, 0.1);
  color: #3d6b4f;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hc-pdp-m1__stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hc-pdp-m1__ctas {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 10px;
  align-items: stretch;
}
/* Compact qty (col 1) sits inline with the primary «В корзину» (col 2);
   secondary CTAs span the full width below. Keeps the buy action dominant. */
.hc-pdp-m1__cta-primary {
  grid-column: 2;
}
.hc-pdp-m1__cta-outline,
.hc-pdp-m1__cta-kit {
  grid-column: 1 / -1;
}

.hc-pdp-m1__cta-kit {
  border-color: rgba(47, 111, 76, 0.30);
  background: rgba(47, 111, 76, 0.08);
  color: #2f6f4c;
  text-decoration: none;
}

.hc-pdp-m1__cta-kit:hover {
  background: #2f6f4c;
  color: #fff;
}

.hc-pdp-m1__qty {
  grid-column: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  min-height: 52px;
  border: 1px solid rgba(141, 109, 71, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.hc-pdp-m1__qty-btn {
  border: 0;
  background: transparent;
  color: #1a1714;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.hc-pdp-m1__qty-btn:hover {
  background: rgba(212, 184, 150, 0.18);
}

.hc-pdp-m1__qty-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-inline: 1px solid rgba(141, 109, 71, 0.14);
  background: transparent;
  text-align: center;
  color: #1a1714;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 14px;
  font-weight: 700;
  appearance: textfield;
}

.hc-pdp-m1__qty-input::-webkit-inner-spin-button,
.hc-pdp-m1__qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hc-pdp-m1__qty-input:focus {
  outline: none;
}

.hc-pdp-m1__atc-form {
  display: contents;
}

.hc-pdp-m1__cta-primary,
.hc-pdp-m1__cta-outline {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hc-pdp-m1__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1a1714;
  background: #1a1714;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hc-pdp-m1__cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(40, 30, 15, 0.48);
}

.hc-pdp-m1__cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 23, 20, 0.24);
  background: #fff;
  color: #1a1714;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Type-specific service tools (раскрой / подбор / …) — modal triggers. */
.hc-pdp-m1__tools {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(141, 109, 71, 0.22);
}
.hc-pdp-m1__tools-label {
  display: block;
  margin-bottom: 9px;
  font: 700 10px/1 var(--hc-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(94, 75, 48, 0.7);
}
.hc-pdp-m1__tools-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.hc-pdp-m1__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(141, 109, 71, 0.3);
  border-radius: 11px;
  background: #fff;
  color: #1a1714;
  font: 600 13px/1.15 var(--hc-sans, "Outfit", sans-serif);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.hc-pdp-m1__tool:hover {
  border-color: #1a1714;
  background: #1a1714;
  color: #fff;
  transform: translateY(-1px);
}

/* Plates: single link to the online cut service (cut.holzcom-mebel.ru) */
.hc-pdp-m1__tool--cut {
  grid-column: 1 / -1;
  border-color: rgba(176, 138, 79, 0.5);
  background: linear-gradient(135deg, #fffdf8 0%, #fbf3e4 100%);
  color: #6b5526;
  text-decoration: none;
}
.hc-pdp-m1__tool--cut:hover {
  border-color: #b08a4f;
  background: linear-gradient(135deg, #1f1a12 0%, #342817 100%);
  color: #f6e9cf;
}
.hc-pdp-m1__tool-ext {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.hc-pdp-m1__tool--cut:hover .hc-pdp-m1__tool-ext {
  transform: translate(2px, -2px);
}

.hc-pdp-m1__cta-outline:hover {
  border-color: #1a1714;
  background: #1a1714;
  color: #fff;
}

.hc-pdp-m1__acts {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(141, 109, 71, 0.22);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hc-pdp-m1__act {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(141, 109, 71, 0.22);
  border-radius: 10px;
  background: #fff;
  color: rgba(26, 23, 20, 0.76);
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.22;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.hc-pdp-m1__act:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 109, 71, 0.38);
  background: rgba(252, 248, 240, 0.94);
}

.hc-pdp-m1__act-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(212, 184, 150, 0.16);
  color: #7a6548;
}

.hc-pdp-m1__act-ico svg {
  width: 13px;
  height: 13px;
}

/* Tabs */
.hc-pdp-m1__tabs {
  margin-top: 20px;
}

.hc-pdp-m1__tabs-bar {
  position: sticky;
  top: calc(var(--hc-hdr-h, 72px) + 6px);
  z-index: 18;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(141, 109, 71, 0.18);
  border-bottom: 1px solid rgba(141, 109, 71, 0.18);
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hc-pdp-m1__tabs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-pdp-m1__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(141, 109, 71, 0.2);
  border-radius: 999px;
  background: #fff;
  color: rgba(26, 23, 20, 0.78);
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hc-pdp-m1__tab:hover {
  border-color: rgba(141, 109, 71, 0.42);
  background: rgba(212, 184, 150, 0.14);
  color: #1a1714;
}

.hc-pdp-m1__tab.is-active {
  border-color: #1a1714;
  background: linear-gradient(180deg, #1f1a15, #14110d);
  color: #fff;
}

.hc-pdp-m1__tab__c {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 184, 150, 0.22);
  color: #7a6548;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hc-pdp-m1__tab.is-active .hc-pdp-m1__tab__c {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hc-pdp-m1__panel {
  max-width: 100%;
  margin: 0;
  padding: 24px 0 12px;
}

.hc-pdp-m1__panel > h3 {
  margin: 0 0 12px;
  color: #1a1714;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(21px, 1.6vw, 25px);
  font-weight: 500;
  letter-spacing: 0;
}

.hc-pdp-m1__panel p,
.hc-pdp-m1__panel li {
  color: rgba(26, 23, 20, 0.78);
}

.hc-pdp-m1__panel ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

@media (max-width: 960px) {
  .hc-pdp-m1__hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hc-pdp-m1__buy {
    position: static;
    top: auto;
  }
}

@media (max-width: 420px) {
  .hc-pdp-m1__ctas {
    grid-template-columns: 1fr;
  }
  .hc-pdp-m1__qty,
  .hc-pdp-m1__cta-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .hc-pdp-m1__title {
    font-size: clamp(28px, 8.8vw, 38px);
  }
  .hc-pdp-m1__acts {
    grid-template-columns: 1fr;
  }
  .hc-pdp-m1__tabs-inner {
    gap: 6px;
  }
  .hc-pdp-m1__tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}
