/*
 * calculator.css — OUTLINE Theme
 * Стили калькулятора стоимости товара
 */

/* ── Обёртка ─────────────────────────────────────────────── */
.calc-wrapper {
  background: #F8F6F2;
  border: 1px solid #ECECEC;
  padding: 32px;
  margin: 32px 0;
}

.calc-header { margin-bottom: 28px; }
.calc-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 6px;
}
.calc-subtitle { font-size: .8rem; color: #7A7A7A; }

/* ── Двухколоночный лейаут ───────────────────────────────── */
.calc-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
}

/* ── Шаги ────────────────────────────────────────────────── */
.calc-steps { display: flex; flex-direction: column; gap: 20px; }
.calc-step   { display: flex; flex-direction: column; gap: 12px; }

.calc-step-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #B89A5A;
}
.calc-step-disabled { color: #C0C0C0 !important; }
.calc-hint {
  font-size: .75rem;
  color: #9A9A9A;
  font-style: italic;
}

/* ── Чипы ────────────────────────────────────────────────── */
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.calc-chip {
  padding: 9px 18px;
  border: 1px solid #E0E0E0;
  background: #fff;
  color: #4A4A4A;
  font-size: .8125rem;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: all .2s;
  border-radius: 2px;
  white-space: nowrap;
}
.calc-chip:hover  { border-color: #B89A5A; color: #B89A5A; }
.calc-chip.active {
  border-color: #B89A5A;
  background: #B89A5A;
  color: #fff;
  font-weight: 500;
}

/* ── Цвета ───────────────────────────────────────────────── */
.calc-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.calc-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform .2s;
  width: 60px;
}
.calc-color-item:hover { transform: translateY(-3px); }
.calc-color-item.active .calc-color-swatch {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #B89A5A;
}
.calc-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1);
  transition: box-shadow .2s;
}
.calc-color-name {
  font-size: .65rem;
  text-align: center;
  color: #4A4A4A;
  line-height: 1.2;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-color-label {
  font-size: .6rem;
  color: #9A9A9A;
  text-align: center;
}

/* ── Количество ──────────────────────────────────────────── */
.calc-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #E0E0E0;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.calc-qty-btn:hover { border-color: #B89A5A; color: #B89A5A; }
.calc-qty-input {
  width: 56px;
  height: 40px;
  text-align: center;
  border: 1px solid #E0E0E0;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
}
.calc-qty-hint {
  font-size: .75rem;
  color: #B89A5A;
  font-weight: 500;
}

/* ── Результат (правая колонка) ──────────────────────────── */
.calc-result {
  position: sticky;
  top: 90px;
  transition: opacity .3s;
}
.calc-result-inner {
  background: #fff;
  border: 1px solid #ECECEC;
  padding: 24px;
}
.calc-result-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7A7A7A;
  margin-bottom: 12px;
}
.calc-result-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.calc-result-old {
  font-size: .9rem;
  text-decoration: line-through;
  color: #C0C0C0;
}
.calc-result-price {
  font-size: 2rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1;
}
.calc-result-badge {
  font-size: .75rem;
  font-weight: 600;
  color: #B89A5A;
  background: rgba(184,154,90,.1);
  padding: 3px 8px;
  border-radius: 2px;
}
.calc-result-b2b {
  font-size: .8rem;
  color: #B89A5A;
  font-weight: 500;
  margin-bottom: 6px;
  min-height: 18px;
}
.calc-result-total {
  font-size: .875rem;
  color: #5A5A5A;
  padding: 10px 0;
  border-top: 1px solid #ECECEC;
  margin-top: 8px;
  min-height: 38px;
}
.calc-result-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: #9A9A9A;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ECECEC;
}

/* ── Сводка выбора ───────────────────────────────────────── */
.calc-summary {
  margin-top: 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #ECECEC;
  border-left: 3px solid #B89A5A;
}
.calc-summary-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #B89A5A;
  margin-bottom: 10px;
}
.calc-summary-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-summary-item {
  font-size: .8rem;
  color: #4A4A4A;
  background: #F8F6F2;
  padding: 4px 10px;
  border-radius: 2px;
}
.calc-summary-item strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* ── Мобильная адаптация ─────────────────────────────────── */
@media (max-width: 600px) {
  .calc-wrapper { padding: 20px; }
  .calc-result  { position: static; }
  .calc-result-price { font-size: 1.6rem; }
}
