/* =======================================================
   Clothing directory page
======================================================= */

.clothing-main {
  padding-bottom: 4px;
}

/* =======================================================
   Hero
======================================================= */

.clothing-hero {
  position: relative;
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) 0 38px;
}

.clothing-hero::before,
.clothing-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.clothing-hero::before {
  top: 44px;
  right: 4%;
  width: 142px;
  height: 142px;
  background: var(--pink);
  opacity: 0.52;
}

.clothing-hero::after {
  top: 20px;
  right: 150px;
  width: 74px;
  height: 74px;
  background: var(--yellow);
  opacity: 0.65;
}

.clothing-hero h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7.5vw, 5.9rem);
}

.clothing-intro {
  max-width: 730px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.clothing-intro + .clothing-intro {
  max-width: 680px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* =======================================================
   Price key
======================================================= */

.price-key {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.price-key span {
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 720;
  box-shadow: 0 5px 16px rgba(25, 30, 46, 0.035);
}

.price-key strong {
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

/* =======================================================
   Directory sections
======================================================= */

.directory-featured,
.directory-section {
  margin-bottom: 22px;
}

.directory-featured {
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 1),
      rgba(247, 250, 255, 0.92)
    );
}

.directory-section-heading {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 390px);
  gap: 32px;
  align-items: end;
}

.directory-section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
}

.directory-section-summary {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.66;
}

/* =======================================================
   Featured retailer cards
======================================================= */

.featured-retailer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.featured-retailer {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px rgba(25, 30, 46, 0.045);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.featured-retailer:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.featured-blue {
  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      var(--blue-soft) 100%
    );
}

.featured-yellow {
  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      var(--yellow-soft) 100%
    );
}

.featured-pink {
  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      var(--pink-soft) 100%
    );
}

.featured-neutral {
  background:
    linear-gradient(
      150deg,
      #ffffff 0%,
      var(--surface-soft) 100%
    );
}

.featured-retailer > p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* =======================================================
   Standard retailer grid
======================================================= */

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.retailer-grid-small {
  grid-template-columns: minmax(0, 355px);
}

.retailer-card {
  min-width: 0;
  min-height: 286px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.retailer-card:nth-child(3n + 1) {
  background:
    linear-gradient(
      155deg,
      #ffffff,
      rgba(237, 245, 255, 0.5)
    );
}

.retailer-card:nth-child(3n + 2) {
  background:
    linear-gradient(
      155deg,
      #ffffff,
      rgba(255, 248, 223, 0.52)
    );
}

.retailer-card:nth-child(3n + 3) {
  background:
    linear-gradient(
      155deg,
      #ffffff,
      rgba(255, 241, 246, 0.48)
    );
}

.retailer-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.retailer-card > p {
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* =======================================================
   Retailer card headings
======================================================= */

.retailer-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.retailer-heading > div {
  min-width: 0;
}

.retailer-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.retailer-label {
  margin-bottom: 7px;
  color: var(--blue-deep);
  font-size: 0.64rem;
  font-weight: 830;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.price-band {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(69, 107, 216, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

/* =======================================================
   Tags
======================================================= */

.retailer-tags {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.retailer-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 730;
  line-height: 1.2;
}

/* =======================================================
   Retailer links
======================================================= */

.retailer-link {
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  padding: 11px 15px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.77rem;
  font-weight: 790;
  line-height: 1.3;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.retailer-link span {
  color: var(--ink-faint);
  font-size: 0.86rem;
  transition:
    color 140ms ease,
    transform 140ms ease;
}

.retailer-link:hover {
  border-color: var(--blue-strong);
  background: var(--blue-soft);
  color: var(--blue-deep);
  box-shadow: 0 7px 20px rgba(17, 24, 39, 0.065);
  transform: translateY(-1px);
}

.retailer-link:hover span {
  color: var(--blue-deep);
  transform: translate(2px, -2px);
}

.retailer-link:active {
  transform: translateY(0);
}

.retailer-link:focus-visible {
  outline: 3px solid rgba(69, 107, 216, 0.24);
  outline-offset: 3px;
}

/* =======================================================
   Disclosure
======================================================= */

.directory-disclosure {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 24px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(69, 107, 216, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      var(--blue-soft),
      rgba(255, 255, 255, 0.98)
    );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.directory-disclosure p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.6;
}

.directory-disclosure strong {
  color: var(--ink);
}

.directory-disclosure a {
  flex: 0 0 auto;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 790;
  text-decoration: none;
}

.directory-disclosure a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.directory-disclosure a:focus-visible {
  outline: 3px solid rgba(69, 107, 216, 0.24);
  outline-offset: 4px;
  border-radius: 5px;
}

/* =======================================================
   Tablet
======================================================= */

@media (max-width: 940px) {
  .directory-section-heading {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .directory-section-summary {
    max-width: 700px;
  }

  .retailer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retailer-grid-small {
    grid-template-columns: minmax(0, 355px);
  }

  .directory-disclosure {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}

/* =======================================================
   Mobile
======================================================= */

@media (max-width: 640px) {
  .clothing-hero,
  .directory-disclosure {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .clothing-hero {
    padding-top: 42px;
    padding-bottom: 30px;
    overflow: hidden;
  }

  .clothing-hero::before {
    top: 20px;
    right: -60px;
    width: 125px;
    height: 125px;
    opacity: 0.42;
  }

  .clothing-hero::after {
    top: 3px;
    right: 62px;
    width: 52px;
    height: 52px;
    opacity: 0.52;
  }

  .clothing-hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .clothing-intro {
    font-size: 0.98rem;
  }

  .clothing-intro + .clothing-intro {
    font-size: 0.82rem;
  }

  .price-key {
    margin-top: 22px;
    gap: 7px;
  }

  .price-key span {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.68rem;
  }

  .directory-featured,
  .directory-section {
    margin-bottom: 14px;
  }

  .directory-section-heading {
    margin-bottom: 22px;
  }

  .directory-section-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.75rem);
  }

  .directory-section-summary {
    font-size: 0.84rem;
  }

  .featured-retailer-grid,
  .retailer-grid,
  .retailer-grid-small {
    grid-template-columns: 1fr;
  }

  .featured-retailer,
  .retailer-card {
    min-height: 0;
    padding: 19px;
    border-radius: 19px;
  }

  .featured-retailer > p,
  .retailer-card > p {
    font-size: 0.82rem;
  }

  .retailer-heading h3 {
    font-size: 1.45rem;
  }

  .price-band {
    padding: 7px 8px;
  }

  .retailer-tags {
    margin-bottom: 18px;
  }

  .retailer-link {
    min-height: 46px;
  }

  .directory-disclosure {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  .directory-disclosure a {
    line-height: 1.45;
  }
}

/* =======================================================
   Reduced motion
======================================================= */

@media (prefers-reduced-motion: reduce) {
  .featured-retailer,
  .retailer-card,
  .retailer-link,
  .retailer-link span {
    transition: none;
  }
}