/* Cloth comparison card. Behaviour in cloth-compare.js. */
.cc-section { background: #F8F7F5; padding: 80px 24px; }
.cc-section__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cc-section h2 { font-family: 'Nunito', sans-serif; font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; letter-spacing: -0.7px; color: #111; margin: 0 0 8px; }
.cc-section__sub { font-family: 'Nunito', sans-serif; font-size: 14px; color: #888; margin: 0 0 36px; }

.cc {
  max-width: 600px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid #ececec; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 40px -24px rgba(0,0,0,0.18);
  padding: 22px 24px 24px; font-family: 'Nunito', sans-serif; color: #111;
}
.cc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cc__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #777; }
.cc__title svg, .cc__h svg { color: #999; flex-shrink: 0; }
.cc__select select {
  height: 34px; padding: 0 30px 0 12px; border: 1px solid #e3e3e3; border-radius: 8px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: #111; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.cc__select select:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.cc__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cc__note { margin: 0 0 16px; font-size: 12.5px; color: #888; }

/* One bar per cloth for the chosen measure */
.cc__rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.cc__row {
  display: block; padding: 12px 12px 14px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; color: inherit; transition: background .15s;
}
@media (hover: hover) and (pointer: fine) { .cc__row:hover { background: #f7f7f7; } }
.cc__row.is-current { border-color: #e9e9e9; background: #fafafa; }
.cc__rowtop { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.cc__ico { color: #999; display: flex; }
.cc__rowname { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc__rowname strong { font-size: 14.5px; font-weight: 800; }
.cc__rowname em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #CC0000; margin-left: 6px; vertical-align: 2px; }
.cc__rowname small { font-size: 11.5px; color: #999; }
.cc__rowval { font-size: 18px; font-weight: 900; letter-spacing: -0.3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc__track { height: 8px; border-radius: 999px; background: #f0f0f0; overflow: hidden; }
.cc__fill { height: 100%; border-radius: 999px; background: #c9c9c9; width: 0; transition: width 1s cubic-bezier(0.23, 1, 0.32, 1); }
.cc__row.is-best .cc__fill { background: #111; }
.cc__row.is-current .cc__fill { background: #CC0000; }

/* Every measure at once */
.cc__block { margin-bottom: 20px; }
.cc__h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #111; margin: 0 0 10px; }
.cc__tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cc__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cc__table th, .cc__table td { padding: 9px 8px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: top; }
.cc__table thead th { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #999; }
.cc__table tbody th { font-weight: 700; color: #888; white-space: nowrap; width: 1%; padding-right: 14px; }
.cc__table td { font-weight: 700; color: #111; }
.cc__table .is-current { background: #fff5f5; }
.cc__table thead .is-current { color: #CC0000; }
.cc__table tr:last-child th, .cc__table tr:last-child td { border-bottom: 0; }

.cc__actions { display: flex; gap: 8px; }
.cc__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px;
  border: 1px solid #e3e3e3; border-radius: 8px; background: #fff; color: #111; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; transition: background .15s, transform .16s cubic-bezier(0.23,1,0.32,1);
}
.cc__btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cc__btn:hover { background: #f6f6f6; } }

@media (max-width: 520px) {
  .cc-section { padding: 56px 16px; }
  .cc { padding: 18px 14px 18px; }
  .cc__head { flex-wrap: wrap; }
  .cc__row { padding: 10px 8px 12px; }
  .cc__rowval { font-size: 16px; }
  .cc__table { font-size: 12px; }
  .cc__table th, .cc__table td { padding: 8px 5px; }
}
@media (prefers-reduced-motion: reduce) { .cc__fill, .cc__row, .cc__btn { transition: none; } }
