/* ==========================================================================
   FashionAudit — Outfits ("Dressing for?")
   Pixel-perfect stylesheet. Every value is taken from the design prototype
   (FashionAudit - Occasion First.dc.html). Single 700px breakpoint.

   Namespaced under `.fa` so it never collides with the theme/Elementor.
   The same classes drive both the WordPress output and the preview page.
   ========================================================================== */

/* ---------- Design tokens ---------- */
.fa,
.fa-detail {
  /* colors */
  --fa-bg:          #f7f4ee; /* page background */
  --fa-ink:         #1c1a17; /* primary text + dark surfaces */
  --fa-muted:       #8a8276; /* muted text */
  --fa-muted-2:     #b9b1a2; /* dark-tile subtext */
  --fa-line:        #e2dbcd; /* major hairline */
  --fa-line-inner:  #eee8dc; /* inner hairline (filter rows) */
  --fa-chip-border: #cfc7b8; /* inactive chip border */
  --fa-accent:      #196DF9; /* pop: hero "?", saved hearts, selected tile */

  /* type */
  --fa-head: "Montserrat", system-ui, sans-serif;
  --fa-body: "Inter", system-ui, sans-serif;

  /* responsive-driven layout vars (desktop defaults) */
  --fa-padX: 40px;
  --fa-hero-fs: 64px;
  --fa-tile-cols: repeat(6, 1fr);
  --fa-tile-h: 120px;
  --fa-tile-fs: 20px;
  --fa-label-w: 90px;
  --fa-shelf-cols: repeat(5, 1fr);
  --fa-detail-cols: 1.1fr 1fr;
  --fa-detail-gap: 48px;
  --fa-status-display: block;
}

/* ---------- Root wrapper ---------- */
.fa {
  min-height: 100vh;
  background: var(--fa-bg);
  font-family: var(--fa-body);
  color: var(--fa-ink);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.fa *,
.fa *::before,
.fa *::after,
.fa-detail *,
.fa-detail *::before,
.fa-detail *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.fa-hero {
  padding: 40px var(--fa-padX) 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.fa-hero__title {
  margin: 0;
  font-family: var(--fa-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: var(--fa-hero-fs);
  line-height: 1.05;
  color: var(--fa-ink);
}
.fa-hero__q {
  font-style: italic;
  color: var(--fa-accent);
}
.fa-hero__reset {
  font-size: 13px;
  color: var(--fa-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

/* ---------- Occasion tiles ---------- */
.fa-tiles {
  padding: 24px var(--fa-padX) 12px;
  display: grid;
  grid-template-columns: var(--fa-tile-cols);
  gap: 14px;
}
.fa-tile {
  background: #e2dbcd;               /* default neutral; per-tile bg set inline */
  color: var(--fa-ink);
  outline: 2px solid transparent;
  border-radius: 10px;
  padding: 18px 16px;
  height: var(--fa-tile-h);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  text-align: left;
  font-family: inherit;
}
.fa-tile--dark {
  background: var(--fa-ink);
  color: var(--fa-bg);
}
.fa-tile--selected { outline: 2px solid var(--fa-accent); }
.fa-tile__name {
  font-family: var(--fa-head);
  font-weight: 600;
  font-size: var(--fa-tile-fs);
}
.fa-tile__count {
  font-size: 11px;
  color: var(--fa-muted);
}
.fa-tile--dark .fa-tile__count { color: var(--fa-muted-2); }

.fa-tiles-more {
  display: flex;
  justify-content: center;
  padding: 2px var(--fa-padX) 4px;
}
.fa-tiles-more__btn {
  font-size: 18px;
  color: var(--fa-ink);
  cursor: pointer;
  padding: 6px 14px;
  background: none;
  border: 0;
  line-height: 1;
  transition: transform 0.15s ease;
}
.fa-tiles-more__btn:hover { transform: translateY(2px); }

/* ---------- Chips (shared) ---------- */
.fa-chip {
  padding: 7px 13px;
  border: 1px solid var(--fa-chip-border);
  background: transparent;
  color: var(--fa-ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.fa-chip--active {
  background: var(--fa-ink);
  color: var(--fa-bg);
  border-color: var(--fa-ink);
}

/* ---------- Filter bar — desktop grid ---------- */
.fa-filters {
  margin: 18px var(--fa-padX) 6px;
  padding: 6px 0;
  border-top: 1px solid var(--fa-line);
  border-bottom: 1px solid var(--fa-line);
  display: grid;
  grid-template-columns: var(--fa-label-w) 1fr auto;
  row-gap: 0;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.fa-filters__label {
  color: var(--fa-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fa-filters__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.fa-filters__status {
  color: var(--fa-muted);
  font-size: 12px;
  text-align: right;
  display: var(--fa-status-display);
}
/* rows 2 & 3 get an inner hairline across all three columns */
.fa-filters__label--row {
  border-top: 1px solid var(--fa-line-inner);
  padding: 8px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.fa-filters__chips--row { border-top: 1px solid var(--fa-line-inner); }
.fa-filters__spacer {
  border-top: 1px solid var(--fa-line-inner);
  align-self: stretch;
}

/* ---------- Filter bar — mobile stacked ---------- */
.fa-filters-m {
  margin: 18px 0 6px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--fa-line);
  border-bottom: 1px solid var(--fa-line);
  display: none;          /* shown only under 700px */
  flex-direction: column;
  gap: 12px;
}
.fa-fgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fa-fgroup--last { padding-bottom: 8px; }
.fa-fgroup__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 20px;
}
.fa-fgroup__label {
  color: var(--fa-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 20px;
}
.fa-fgroup__label--head { padding: 0; }
.fa-fgroup__status {
  color: var(--fa-muted);
  font-size: 11px;
}
.fa-fgroup__chips {
  display: flex;
  gap: 6px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 500;
}
.fa-fgroup__chips--scroll { overflow-x: auto; }
.fa-fgroup__chips--wrap { flex-wrap: wrap; }
/* mobile chips are slightly taller */
.fa-filters-m .fa-chip { padding: 8px 14px; flex: none; }

/* ---------- Shelves ---------- */
.fa-shelf__head {
  padding: 22px var(--fa-padX) 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.fa-shelf__title {
  margin: 0;
  font-family: var(--fa-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 28px;
  color: var(--fa-ink);
}
.fa-shelf__count {
  font-size: 12px;
  color: var(--fa-muted);
}
.fa-shelf__viewall {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fa-ink);
  cursor: pointer;
  align-self: center;
  text-decoration: none;
  transition: gap 0.15s ease;
}
.fa-shelf__viewall:hover { gap: 12px; }
.fa-shelf__viewall-arrow { font-size: 13px; }
.fa-shelf__grid {
  padding: 0 var(--fa-padX) 10px;
  display: grid;
  grid-template-columns: var(--fa-shelf-cols);
  gap: 14px;
}

/* ---------- Card (Loop Grid item / Look Card) ---------- */
.fa-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fa-card__img {
  aspect-ratio: 3 / 4;
  background: #dcd4c6;              /* default tone; real photo set inline */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  display: block;
  transition: transform 0.18s ease;
}
.fa-card__img:hover { transform: translateY(-3px); }
.fa-card__heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--fa-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  color: var(--fa-ink);
  border: 0;
  padding: 0;
  line-height: 1;
}
.fa-card__heart--saved { color: var(--fa-accent); }
.fa-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fa-ink);
  cursor: pointer;
  text-decoration: none;
}
.fa-card__meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fa-muted);
}

/* ---------- Empty state ---------- */
.fa-empty {
  padding: 60px 40px;
  text-align: center;
  color: var(--fa-muted);
  font-size: 14px;
}
.fa-empty__reset {
  text-decoration: underline;
  cursor: pointer;
  color: var(--fa-ink);
}

.fa-spacer-44 { height: 44px; }

/* ==========================================================================
   Detail overlay / Single Look
   ========================================================================== */
.fa-detail {
  position: fixed;
  inset: 0;
  background: var(--fa-bg);
  z-index: 20;
  overflow: auto;
  font-family: var(--fa-body);
  color: var(--fa-ink);
}
/* When used as a full page template (not an overlay), opt out of fixed. */
.fa-detail--page {
  position: static;
  inset: auto;
  z-index: auto;
  min-height: 100vh;
}
.fa-detail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--fa-padX);
  position: sticky;
  top: 0;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}
.fa-detail__back {
  font-size: 13px;
  font-weight: 500;
  color: var(--fa-ink);
  cursor: pointer;
  text-decoration: none;
}
.fa-detail__wordmark {
  font-family: var(--fa-head);
  font-size: 20px;
  color: var(--fa-ink);
}
.fa-detail__saved {
  font-size: 13px;
  color: var(--fa-ink);
}
.fa-detail__body {
  display: grid;
  grid-template-columns: var(--fa-detail-cols);
  gap: var(--fa-detail-gap);
  padding: 24px var(--fa-padX) 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.fa-detail__img {
  aspect-ratio: 3 / 4;
  background: #dcd4c6;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
}
.fa-detail__heart {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: var(--fa-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--fa-ink);
  border: 0;
  padding: 0;
  line-height: 1;
}
.fa-detail__heart--saved { color: var(--fa-accent); }
.fa-detail__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.fa-detail__tags {
  display: flex;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fa-muted);
}
.fa-detail__title {
  margin: 0;
  font-family: var(--fa-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 44px;
  line-height: 1.08;
  color: var(--fa-ink);
}

/* items list */
.fa-detail__items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--fa-line);
}
.fa-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fa-line);
}
.fa-item__thumb {
  width: 52px;
  height: 64px;
  background: #e0d9cb;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  flex: none;
}
.fa-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.fa-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fa-ink);
}
.fa-item__brand {
  font-size: 11px;
  color: var(--fa-muted);
}
.fa-item__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--fa-ink);
}
.fa-item--total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 13px;
  border-bottom: 0;
}
.fa-item--total .fa-item__label { color: var(--fa-muted); }
.fa-item--total .fa-item__sum { font-weight: 700; color: var(--fa-ink); }

/* buttons */
.fa-detail__buttons {
  display: flex;
  gap: 10px;
}
.fa-btn {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.1;
  border: 1px solid transparent;
}
.fa-btn--primary {
  background: var(--fa-ink);
  color: var(--fa-bg);
  border-color: var(--fa-ink);
}
.fa-btn--outline {
  background: transparent;
  border: 1px solid var(--fa-ink);
  color: var(--fa-ink);
}

/* similar looks */
.fa-similar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--fa-padX) 60px;
}
.fa-similar__title {
  margin: 0 0 14px;
  font-family: var(--fa-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 26px;
  color: var(--fa-ink);
}
.fa-similar__grid {
  display: grid;
  grid-template-columns: var(--fa-shelf-cols);
  gap: 14px;
}

/* ==========================================================================
   Responsive — single 700px breakpoint
   ========================================================================== */
@media (max-width: 699.98px) {
  .fa,
  .fa-detail {
    --fa-padX: 20px;
    --fa-hero-fs: 42px;
    --fa-tile-cols: repeat(3, 1fr);
    --fa-tile-h: 92px;
    --fa-tile-fs: 16px;
    --fa-label-w: 68px;
    --fa-shelf-cols: repeat(2, 1fr);
    --fa-detail-cols: 1fr;
    --fa-detail-gap: 24px;
    --fa-status-display: none;
  }
  /* swap desktop grid filter bar for the stacked mobile one */
  .fa-filters { display: none; }
  .fa-filters-m { display: flex; }
}
