/* BoboEdu: clothing-shop.css
   Clothing shop entrances, outfit controls and paged garment previews. */

.clothing-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.clothing-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.15;
  scroll-margin-top: 100px;
}
.clothing-content .note {
  margin: 6px 0 0;
}
.clothing-outfit {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.clothing-outfit-art {
  flex: 0 0 94px;
  width: 94px;
}
.clothing-outfit-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.clothing-outfit-copy {
  min-width: 0;
  flex: 1;
}
.clothing-default {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}
.clothing-outfit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.clothing-outfit-actions .btn,
.clothing-equipped .btn {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}
.clothing-equipped {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.clothing-equipped li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.clothing-equipped .btn {
  flex-shrink: 0;
}
.clothing-equipped li > span {
  overflow-wrap: anywhere;
}
.clothing-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clothing-shop-door {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.clothing-directory-art {
  flex: 0 0 70px;
  width: 70px;
  display: block;
  padding: 6px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.clothing-directory-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.clothing-directory-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.clothing-directory-copy strong {
  font: 700 20px / 1.15 var(--font-display);
}
.clothing-directory-copy > span:not(.clothing-enter) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}
.clothing-directory-copy small {
  color: var(--muted);
  font-size: 12px;
}
.fashion-boutique .clothing-shop-door {
  border-top: 5px solid var(--boutique-colour, var(--accent));
}
.fashion-boutique .clothing-directory-art {
  background: color-mix(in srgb, var(--boutique-colour, var(--accent)) 18%, var(--surface));
}
.fashion-group-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.fashion-item-store {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}
.fashion-directory .clothing-directory-copy > span:not(.clothing-enter) {
  font-size: 13px;
}
.fashion-preview {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.fashion-preview::backdrop {
  background: rgb(10 10 25 / 65%);
}
.fashion-preview h3 {
  margin: 0;
  font: 700 24px / 1.2 var(--font-display);
}
.fashion-preview-art {
  margin: 16px auto;
  width: min(200px, 100%);
}
.fashion-preview-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.fashion-preview > .btn {
  width: 100%;
  margin-top: 16px;
}
.clothing-item .clothing-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.4;
}
.clothing-enter {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
@media (hover: hover) {
  .clothing-shop-door:hover {
    border-color: var(--accent);
    background: var(--surface);
  }
}
.clothing-breadcrumb .btn {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}
.clothing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.clothing-field {
  display: grid;
  gap: 6px;
  flex: 1 1 190px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}
.clothing-field input,
.clothing-field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px var(--font-ui);
}
.clothing-results {
  min-width: 0;
}
.clothing-result-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  scroll-margin-top: 100px;
}
.clothing-grid {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}
.clothing-grid .clothing-art {
  width: 108px;
  aspect-ratio: 160 / 250;
  padding: 6px;
  background: var(--surface);
  border-radius: 12px;
}
.clothing-detail {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.clothing-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.clothing-pagination .btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .clothing-directory {
    grid-template-columns: 1fr;
  }
  .clothing-outfit {
    gap: 12px;
    padding: 12px;
    align-items: start;
  }
  .clothing-outfit-art {
    flex-basis: 66px;
    width: 66px;
  }
  .clothing-content h3 {
    font-size: 23px;
  }
  .clothing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .clothing-item {
    padding: 10px 6px;
  }
  .clothing-item .nm {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}
