/* ---------- 19. Таблица размеров (по мотивам FIGS) ---------- */
.size-drawer { position: fixed; inset: 0; z-index: 130; }
.size-drawer[hidden] { display: none; }
.size-drawer__scrim { position: absolute; inset: 0; background: rgba(12, 10, 9, 0.4); }
.size-drawer__panel {
  position: absolute; inset-block: 0; right: 0;
  display: flex; flex-direction: column;
  width: min(560px, 100%);
  background: #fff; color: #0c0a09;
  box-shadow: -8px 0 32px rgba(12, 10, 9, 0.18);
  transform: translateX(100%); transition: transform 0.28s ease;
}
.size-drawer.is-open .size-drawer__panel { transform: none; }
.size-drawer__panel:focus, .size-drawer__panel:focus-visible { outline: none; }
.size-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 42px 15px; }
.size-drawer__title { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
.size-drawer__close {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; background: none; color: #0c0a09; cursor: pointer;
}
.size-drawer__close svg { width: 20px; height: 20px; }
.size-drawer__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 42px 40px; padding: 4px; border-radius: 999px; background: #f2f1ef; }
.size-drawer__tab {
  height: 34px; border: 0; border-radius: 999px; background: transparent; color: #6b6b6b;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.size-drawer__tab.is-on { background: #fff; color: #0c0a09; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.size-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 0 42px 32px; }
.size-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.size-drawer__group-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.size-drawer__units { display: inline-flex; padding: 3px; border-radius: 999px; background: #f2f1ef; }
.size-drawer__unit { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #6b6b6b; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; }
.size-drawer__unit.is-on { background: #fff; color: #0c0a09; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.size-drawer__field { display: block; margin-bottom: 14px; }
.size-drawer__field span { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b6b; }
.size-drawer__select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 6px;
  background: #fff; color: #0c0a09; font: inherit; font-size: 15px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%230c0a09' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}

.size-drawer__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 22px; padding: 14px 16px; border-radius: 8px; background: #f7f6f4; }
.size-drawer__summary div { min-width: 0; }
.size-drawer__summary small { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b6b; }
.size-drawer__summary b { font-size: 15px; font-weight: 500; }

.size-drawer__table-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.size-drawer__table-title span { font-size: 13px; color: #6b6b6b; }
.size-guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-guide-table th,
.size-guide-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #ececec; }
.size-guide-table th { font-weight: 500; color: #6b6b6b; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.size-guide-table tr.is-active td { background: #f7f6f4; }

.size-drawer__fit p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.size-drawer__fit ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.6; }
body.size-open { overflow: hidden; }
@media (max-width: 599px) {
  .size-drawer__title { font-size: 20px; }
  .size-drawer__body { padding: 0 16px 24px; }
  .size-drawer__head { padding: 18px 16px 12px; }
  .size-drawer__tabs { margin: 0 16px 14px; }
}
