/* clothing.css — responsive, online images integrated */

/* tokens */
:root {
  --bg: #0f1724;
  --panel: rgba(255, 255, 255, 0.03);
  --muted: #b7c4cc;
  --text: #f7f6f3;
  --accent: #ff6e50;
  --accent-2: #ffdda8;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 12px;
  --container: 1200px;
  --gap: 18px;
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
  --transition: 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}


.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);

  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

/* reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #07101a 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: inherit;
  text-decoration: none;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  border-radius: 6px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 16, 0.94),
    rgba(6, 10, 16, 0.7)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.brand__text strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.brand__text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* nav */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.nav__list {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  padding: 6px;
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.nav__list li {
  flex: 0 0 auto;
}
.nav__list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}
.nav__list a:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.nav__list a.active {
  color: var(--text);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
}

/* header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}
.profile-name {
  font-weight: 700;
  color: var(--text);
}

/* divider */
.header-divider {
  height: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* hero */
.hero-strap {
  padding: 40px 0 20px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}
.kicker {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero-inner h1 {
  font-size: 32px;
  margin: 0 0 12px;
}
.lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 18px;
}
.hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-ctas {
  display: flex;
  gap: 12px;
}

/* filters */
.filters {
  margin: 22px 0;
}
.filters-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.06);
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  padding-left: 8px;
}
.search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.icon {
  opacity: 0.9;
}
.filter-chips {
  display: flex;
  gap: 8px;
}
.chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.filter-actions {
  margin-left: auto;
}
.btn--clear {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}

/* active chips */
.active-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(255, 110, 80, 0.06),
    rgba(255, 255, 255, 0.01)
  );
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}

/* gallery */
.gallery-section {
  margin: 18px 0 36px;
}
.section-head h2 {
  margin: 0 0 6px;
}
.section-head .muted {
  color: var(--muted);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.garment-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
  transition: transform var(--transition);
}
.garment-card:hover {
  transform: translateY(-6px);
}
.media {
  position: relative;
  display: block;
  overflow: hidden;
  height: 220px;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s cubic-bezier(0.2, 0.8, 0.2, 0.9);
}
.garment-card:hover .media img {
  transform: scale(1.04);
}
.media-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
}
.media-label small {
  display: block;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 12px;
  opacity: 0.95;
}
.card-body {
  padding: 14px;
}
.meta-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}
.card-link {
  color: var(--accent);
  font-weight: 700;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: var(--glass);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn--primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #07101a;
  font-weight: 700;
}
.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text);
}

/* learn panel + mini map */
.learn-panel {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 28px 0;
}
.learn-card {
  flex: 1;
  background: var(--panel);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.mini-map {
  width: 220px;
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* curator note */
.curator-note {
  margin: 34px 0 90px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.curator-note blockquote {
  flex: 1;
  margin: 0;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  color: var(--muted);
  font-style: italic;
}

/* footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 30px 0;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 220px 160px;
  gap: 20px;
  align-items: start;
}
.footer-col .muted {
  color: var(--muted);
  font-size: 14px;
}

/* RESPONSIVE: more breakpoints to make layout fluid */
@media (max-width: 1200px) {
  .container {
    padding: 0 18px;
  }
  .hero-image img {
    height: 300px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 320px;
  }
  .hero-image img {
    height: 260px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media {
    height: 210px;
  }
  .nav__list {
    gap: 8px;
    padding-bottom: 6px;
  }
}
@media (max-width: 700px) {
  .header-top {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }
  .brand__text small {
    display: none;
  }
  .profile-name {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    height: 220px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .media {
    height: 200px;
  }
  .learn-panel {
    flex-direction: column;
  }
  .mini-map {
    width: 100%;
  }
  .filters-form {
    align-items: stretch;
  }
  .filter-actions {
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  body {
    font-size: 15px;
  }
  .hero-image img {
    height: 180px;
  }
  .media {
    height: 160px;
  }
  .nav__list a {
    padding: 6px 10px;
    font-size: 13px;
  }
  .kicker {
    font-size: 11px;
  }
  .hero-inner h1 {
    font-size: 22px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
