/* FF-LOOK-1 — pagine Look, riquadri «Completa il look», Compra il look.
   Mobile prima, desktop dopo. Fondo bianco, testo nero, titoli Bodoni Moda
   corsivo, testi Inter, collage con 4 px di spazio, pillole nere. */

.look-page,
.look-page *,
.look-buy-page,
.look-buy-page * {
  box-sizing: border-box;
}

.look-page,
.look-buy-page {
  background: #fff;
  color: #111;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 16px 48px;
  width: 100%;
}

body.look-page-body,
body.look-buy-body,
body.look-page-body .app,
body.look-buy-body .app {
  background: #fff;
}

.look-page a,
.look-buy-page a {
  color: #111;
  text-decoration: none;
}

.look-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #555;
  margin: 18px 0 4px;
}

.look-title,
.look-head-title {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.02;
  margin: 0 0 10px;
}

.look-title { font-size: clamp(38px, 10vw, 76px); }
.look-head-title { font-size: clamp(34px, 8vw, 64px); }

.look-sub {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  max-width: 44rem;
  margin: 0 0 18px;
}

.look-size {
  margin: 0 0 14px;
}

.look-size-pill {
  border: 1px solid #111;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1;
  padding: 10px 15px;
  list-style: none;
  max-width: 100%;
}
.look-size-pill::-webkit-details-marker { display: none; }
.look-size-pill::after { content: " ⌄"; font-size: 11px; }
.look-size[open] .look-size-pill { background: #111; color: #fff; border-color: #111; }

.look-size-panel {
  border: 1px solid #111;
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.look-size-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.look-size-fields label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.look-size select,
.look-size input,
.look-buy-form select,
.look-buy-form input,
.look-buy-form textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #111;
  border-radius: 10px;
  color: #111;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.look-size-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.look-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}

.look-pills::-webkit-scrollbar { display: none; }

.look-pill {
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  padding: 10px 15px;
  background: #fff;
}

.look-pill.is-active {
  background: #111;
  color: #fff;
}

.look-btn {
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
}

.look-btn-dark,
.look-btn.btn-primary,
.look-btn-primary {
  background: #111;
  color: #fff;
}

.look-page a.look-btn-dark,
.look-buy-page a.look-btn-dark,
.look-page a.look-btn-primary,
.look-buy-page a.look-btn-primary,
a.look-btn-dark,
button.look-btn-dark {
  color: #fff;
}

.look-btn-block { display: flex; width: 100%; }
.look-btn-small { min-height: 36px; padding: 7px 12px; font-size: 12px; }

.look-collage {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  height: 430px;
  margin: 0 0 12px;
  min-height: 0;
}

.look-hero-page .look-collage {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  height: 540px;
  min-height: 0;
}

.look-tile {
  background: #f3f3f1;
  display: block;
  overflow: hidden;
  position: relative;
}

.look-tile img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.look-tile.is-hero { grid-column: 1 / 2; grid-row: 1 / 3; }
.look-collage > .look-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.look-collage > .look-tile:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.look-collage > .look-tile:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
.look-collage > .look-tile:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
.look-collage > .look-tile:nth-child(6) { display: none; }

/* FF-LOOK-1B — le schede della pagina Look: 4 foto in 2×2, nessun vuoto. */
.look-collage.is-card {
  aspect-ratio: 4 / 3;
  height: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.look-collage.is-card > .look-tile,
.look-collage.is-card > .look-tile.is-hero {
  grid-column: auto !important;
  grid-row: auto !important;
}
.look-collage.is-card > .look-tile:nth-child(n+5) { display: none; }

/* Tre soli pezzi: il principale occupa due righe, nessuna cella vuota. */
.look-collage.is-card-3 { grid-template-columns: 1.35fr 1fr; }
.look-collage.is-card-3 > .look-tile.is-hero { grid-column: 1 !important; grid-row: 1 / 3 !important; }
.look-collage.is-card-3 > .look-tile:nth-child(2) { grid-column: 2 !important; grid-row: 1 !important; }
.look-collage.is-card-3 > .look-tile:nth-child(3) { grid-column: 2 !important; grid-row: 2 !important; }

.look-hero-page .look-collage > .look-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.look-hero-page .look-collage > .look-tile:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.look-hero-page .look-collage > .look-tile:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
.look-hero-page .look-collage > .look-tile:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
.look-hero-page .look-collage > .look-tile:nth-child(6) { display: none; }

.look-tile-label {
  background: rgba(255,255,255,.92);
  bottom: 4px;
  font-size: 10px;
  left: 4px;
  letter-spacing: .06em;
  padding: 3px 6px;
  position: absolute;
  text-transform: uppercase;
}

.look-section-title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 6vw, 42px);
  margin: 30px 0 12px;
  line-height: 1.05;
}

.look-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.look-card { display: block; margin: 0 0 22px; }

.look-card .look-collage {
  margin-bottom: 8px;
  min-height: 0;
}

.look-card-title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 2px;
}

.look-card-title a { color: inherit; text-decoration: none; }

.look-card-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.look-card-meta {
  color: #555;
  font-size: 12px;
  margin: 0;
}

.look-card-price {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

/* FF-LOOK-1E — pagina mai vuota: taglie vicine ben visibili. */
.look-fallback-note {
  border-left: 3px solid #111;
  font-size: 15px;
  line-height: 1.4;
  margin: 22px 0 14px;
  padding: 2px 0 2px 12px;
}

.look-card-size {
  display: inline-block;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  margin: 4px 0 6px;
  padding: 5px 9px;
}

.look-card-size span {
  color: #555;
  font-weight: 400;
}

.look-all-sizes {
  display: flex;
  justify-content: center;
  margin: 26px 0 8px;
}

.look-empty {
  border: 1px solid #111;
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
}

.look-desc {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 42rem;
  white-space: pre-line;
}

.look-meta-line {
  color: #555;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 14px;
  margin: 0 0 20px;
}

.look-items { display: grid; gap: 0; margin: 18px 0; }

.look-item {
  align-items: center;
  border-top: 1px solid #e7e7e4;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  padding: 12px 0;
}

.look-item:last-child { border-bottom: 1px solid #e7e7e4; }

.look-item-thumb {
  background: #f3f3f1;
  display: block;
  height: 76px;
  overflow: hidden;
  width: 76px;
}

.look-item-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }

.look-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 3px;
}

.look-item-meta {
  color: #555;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.look-item-size {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
  margin-top: 3px;
}

.look-ai-mark { font-size: 12px; }

.look-item-side {
  align-items: flex-end;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.look-item-price { font-size: 14px; font-weight: 600; white-space: nowrap; }

.look-item-tools {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.look-x {
  align-items: center;
  background: #fff;
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0 10px;
}

.look-badge-chat {
  color: #555;
  font-size: 10px;
  letter-spacing: .03em;
}

.look-seller-note {
  background: #f6f6f4;
  border-radius: 12px;
  font-size: 12px;
  margin: 14px 0;
  padding: 10px 12px;
}

.look-alts {
  margin: 8px 0 14px;
  border: 1px solid #e7e7e4;
  border-radius: 14px;
  padding: 10px;
}

.look-alts summary { cursor: pointer; font-size: 13px; }

.look-alts-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.look-alt {
  background: #fff;
  border: 1px solid #e7e7e4;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 0 0 6px;
  text-align: left;
  font: inherit;
  color: #111;
}

.look-alt img { aspect-ratio: 1; display: block; object-fit: cover; width: 100%; }
.look-alt span { font-size: 10px; padding: 0 6px; }

.look-totals {
  border: 1px solid #111;
  border-radius: 18px;
  padding: 16px;
  margin: 22px 0;
  display: grid;
  gap: 6px;
}

.look-total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.look-total-line strong { font-size: 18px; }

.look-total-note { color: #555; font-size: 11px; margin: 4px 0 0; }

.look-actions { display: grid; gap: 10px; margin-top: 16px; }
.look-actions .look-btn { width: 100%; }

.look-toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
  max-width: calc(100vw - 32px);
}

.look-toast.is-on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.look-toast button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; text-decoration: underline; }

/* «Completa il look» sotto la descrizione dell'annuncio */
.look-completa {
  background: #fff;
  border-radius: 18px;
  color: #111;
  margin: 22px 0;
  padding: 16px;
}

.look-completa-title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 27px;
  line-height: 1.05;
  margin: 0 0 10px;
}

.look-completa-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.look-completa-grid .look-tile { aspect-ratio: 1; }

.look-completa-note { color: #555; font-size: 11px; margin: 0 0 10px; }
.look-completa .look-btn { width: 100%; }

/* Riquadro in home */
.look-week {
  background: #fff;
  color: #111;
  margin: 26px 0;
  padding: 18px 16px;
  border-radius: 18px;
}

.look-week-title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.05;
  margin: 0 0 10px;
}

.look-week .look-collage { min-height: 320px; margin-bottom: 12px; }
.look-week-meta { color: #555; font-size: 12px; margin: 0 0 10px; }

/* Scheda Look nel catalogo Abbigliamento */
.cat-tab-look { white-space: nowrap; }

/* Compra il look */
.look-buy-page { max-width: 880px; }

.look-buy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 0;
}

.look-progress {
  margin: 16px 0 22px;
}

.look-progress-text { font-size: 13px; margin: 0 0 7px; }

.look-progress-bar {
  display: flex;
  gap: 3px;
  height: 7px;
}

.look-progress-seg {
  background: #d9d9d5;
  border-radius: 99px;
  flex: 1;
}

.look-progress-seg.is-paid { background: #111; }

.look-countdown { color: #555; font-size: 12px; margin: 7px 0 0; }

.look-buy-seller {
  border: 1px solid #111;
  border-radius: 18px;
  margin: 0 0 16px;
  padding: 14px;
}

.look-buy-seller-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.look-buy-seller-name { font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-size: 23px; }

.look-buy-line { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; margin: 3px 0; }
.look-buy-actions { display: grid; gap: 8px; margin-top: 12px; }
.look-buy-actions .look-btn { width: 100%; }

.look-buy-form {
  border: 1px solid #e7e7e4;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
}

.look-buy-form label { display: grid; font-size: 12px; gap: 4px; }
.look-buy-form textarea { min-height: 74px; }

.look-disclaimer { color: #555; font-size: 12px; line-height: 1.5; margin: 18px 0; }

.look-seller-notice {
  border: 1px solid #111;
  border-radius: 14px;
  margin: 14px 0;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.look-seller-notice p { font-size: 13px; margin: 0; }

.look-admin-card {
  border: 1px solid #111;
  border-radius: 18px;
  margin: 18px 0;
  padding: 16px;
}

.look-admin-card h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 28px;
  margin: 0 0 8px;
}

.look-admin-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.look-admin-num { font-size: 24px; font-weight: 700; }
.look-admin-lbl { color: #555; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

@media (min-width: 700px) {
  .look-page, .look-buy-page { padding: 0 28px 64px; }
  .look-size-panel { grid-template-columns: 1fr auto; align-items: end; }
  .look-size-fields { grid-column: 1 / 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .look-size-actions { grid-column: 2 / 3; justify-content: flex-end; }
  .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .look-collage { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: 0; height: 460px; }
  .look-collage > .look-tile.is-hero { grid-column: 1 / 2; grid-row: 1 / 3; }
  .look-collage > .look-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .look-collage > .look-tile:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
  .look-collage > .look-tile:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .look-collage > .look-tile:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .look-collage > .look-tile:nth-child(6) { display: none; }
  .look-hero-page .look-collage { grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); height: 620px; }
  .look-hero-page .look-collage > .look-tile.is-hero { grid-column: 1 / 2; grid-row: 1 / 4; }
  .look-hero-page .look-collage > .look-tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .look-hero-page .look-collage > .look-tile:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .look-hero-page .look-collage > .look-tile:nth-child(4) { grid-column: 2 / 3; grid-row: 3 / 4; }
  .look-hero-page .look-collage > .look-tile:nth-child(3):last-child { grid-row: 2 / 4; }
  .look-hero-page .look-collage > .look-tile:nth-child(5),
  .look-hero-page .look-collage > .look-tile:nth-child(6) { display: none; }
  .look-collage > .look-tile:nth-child(6) { display: block; }
  .look-hero-page .look-collage > .look-tile:nth-child(6) { display: none; }
  .look-item { grid-template-columns: 92px minmax(0, 1fr) 190px; }
  .look-item-thumb { height: 92px; width: 92px; }
  .look-actions { grid-template-columns: 1fr 1fr; }
  .look-buy-actions { grid-template-columns: 1fr 1fr; }
  .look-completa-grid { grid-template-columns: repeat(4, 112px); justify-content: start; }
  .look-completa { padding: 20px; }
  .look-admin-grid { grid-template-columns: repeat(4, 1fr); }
  .look-toast { bottom: 28px; }
  .look-collage.is-card { height: auto; aspect-ratio: 16 / 11; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .look-collage.is-card > .look-tile,
  .look-collage.is-card > .look-tile.is-hero,
  .look-collage.is-card > .look-tile:nth-child(n) { grid-column: auto !important; grid-row: auto !important; display: block; }
  .look-collage.is-card > .look-tile:nth-child(n+5) { display: none; }
  .look-collage.is-card-3 > .look-tile.is-hero { grid-column: 1 !important; grid-row: 1 / 3 !important; }
  .look-collage.is-card-3 > .look-tile:nth-child(2) { grid-column: 2 !important; grid-row: 1 !important; }
  .look-collage.is-card-3 > .look-tile:nth-child(3) { grid-column: 2 !important; grid-row: 2 !important; }
  .look-collage > .look-tile:nth-child(6) { display: none; }
}

/* FF-RIFINITURE-1 — stessa regola per i mosaici dei look. */
img[src*="/clean/"],
img[srcset*="/clean/"] {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #fafaf8 !important;
  padding: 4% !important;
  box-sizing: border-box !important;
}
