/* MAS KM0 · pàgina «Descobreix els productes» (sistema Parada) */

/* ── 1 · Aparador ─────────────────────────────────────── */
.aparador { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .7fr); align-items: center; gap: 24px;
  padding: 110px var(--gutter) 110px; }
.ap-text h1 { font: 400 clamp(44px, 5.6vw, 100px)/1.28 "Boldonse", sans-serif; letter-spacing: -.035em; margin-top: 16px; }
.ap-text .sub { margin-top: 22px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; max-width: 32ch; }
.xifres { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.xifres li { background: var(--tinta); color: var(--groc); border-radius: 999px; padding: 9px 16px 8px; font: 400 13px/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.xifres b { font: 400 15px/1 "Boldonse", sans-serif; margin-right: 6px; }

.ap-peca { margin: 0; display: grid; justify-items: center; align-self: stretch; align-content: center; gap: 18px; }
.penja { height: min(62vh, 620px); width: 100%; display: flex; justify-content: center; align-items: center; transform-origin: 50% 0; }
.penja img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(60, 40, 0, .35)); }
.ap-fitxa { text-align: center; }
.ap-nom { font-weight: 700; font-size: 20px; }
.ap-fitxa .etiq { margin-top: 6px; }
.ap-fitxa .boto { margin-top: 14px; }

.ap-colors { align-self: center; }
.mostres { display: grid; grid-template-columns: repeat(3, 48px); gap: 12px; margin-top: 12px; }
.mostra { width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); position: relative; transition: transform .2s; }
.mostra:hover { transform: scale(1.08); }
.mostra[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--tinta); }

/* ── 2 · Col·lecció ───────────────────────────────────── */
.colleccio { background: var(--paper); padding: clamp(64px, 8vw, 120px) var(--gutter); }
.col-cap { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.col-cap h2 { font: 400 clamp(40px, 5vw, 80px)/1.2 "Boldonse", sans-serif; letter-spacing: -.03em; }
.filtres { position: sticky; top: 0; z-index: 20; max-width: 1320px; margin: 28px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 0; background: var(--paper); border-bottom: 1px solid rgba(29,29,27,.15); }
.filtre { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tinta); font-weight: 700; font-size: 15px; }
.filtre[aria-pressed="true"] { background: var(--tinta); color: var(--groc); }
.filtre .n { font: 400 12px "DM Mono", monospace; margin-left: 6px; opacity: .7; }
.filtres .sep { width: 1px; height: 28px; background: rgba(29,29,27,.2); margin: 0 6px; }
.filtre-color { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); position: relative; margin: 4px; }
.filtre-color[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--tinta); }

.graella { list-style: none; max-width: 1320px; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.graella li[hidden] { display: none; }
.targeta { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; cursor: pointer; background: #fbf8f1;
  border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 30px -20px rgba(60,45,20,.45); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.targeta:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 24px 40px -22px rgba(60,45,20,.55); }
.targeta .foto { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 22px 18px 10px;
  background: radial-gradient(60% 12% at 50% 94%, rgba(60,45,20,.16), transparent 70%), var(--fons, #fbf8f1); }
.targeta .foto img { position: absolute; inset: 22px 18px 10px; width: calc(100% - 36px); height: calc(100% - 32px); object-fit: contain; transform-origin: 50% 0; }
.targeta:hover .foto img { animation: balanceig 1.6s cubic-bezier(.3,.7,.3,1); }
@keyframes balanceig { 0% { transform: rotate(0); } 18% { transform: rotate(3.5deg); } 40% { transform: rotate(-2.4deg); } 62% { transform: rotate(1.3deg); } 82% { transform: rotate(-.5deg); } 100% { transform: rotate(0); } }
.targeta .info { padding: 14px 16px 16px; display: grid; gap: 4px; border-top: 1px dashed rgba(29,29,27,.25); }
.targeta .nom { font-weight: 700; font-size: 17px; line-height: 1.2; }
.targeta .linia2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.targeta .preu { white-space: nowrap; }
.targeta .preu { font: 400 18px/1 "Boldonse", sans-serif; letter-spacing: -.02em; }
.targeta .preu small { font: 400 11px "DM Mono", monospace; letter-spacing: .04em; margin-left: 3px; }
.targeta .punt { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); margin-right: 6px; vertical-align: -1px; }
.targeta .nou { position: absolute; top: 12px; left: 12px; background: var(--groc); color: var(--tinta); padding: 6px 9px 5px; border-radius: 4px; }
.buit { max-width: 1320px; margin: 40px auto 0; font-size: 18px; }

/* ── Fitxa (diàleg) ───────────────────────────────────── */
.fitxa { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--tinta); }
.fitxa::backdrop { background: rgba(29, 29, 27, .72); }
.fx-dins { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fx-tanca { position: absolute; z-index: 2; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--tinta); color: var(--groc); font-size: 28px; line-height: 1; cursor: pointer; }
.fx-imatge { position: relative; background: var(--groc); display: grid; place-items: center; padding: 40px 30px 80px; min-height: 520px; }
.fx-imatge img { max-height: 560px; width: auto; max-width: 100%; filter: drop-shadow(0 24px 24px rgba(60,40,0,.3)); }
.fx-vistes { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; background: var(--tinta); border-radius: 999px; padding: 4px; }
.fx-vistes button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--paper); font-weight: 700; cursor: pointer; }
.fx-vistes button[aria-pressed="true"] { background: var(--groc); color: var(--tinta); }
.fx-info { padding: 44px 36px 30px; display: flex; flex-direction: column; gap: 12px; }
.fx-info h2 { font: 400 clamp(28px, 3vw, 42px)/1.28 "Boldonse", sans-serif; letter-spacing: -.03em; }
.fx-preu { font: 400 24px/1 "Boldonse", sans-serif; } .fx-preu small { font: 400 12px "DM Mono", monospace; margin-left: 4px; }
.fx-llista { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 16px; line-height: 1.4; }
.fx-llista li { padding-left: 22px; position: relative; }
.fx-llista li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--groc); box-shadow: inset 0 0 0 2px var(--tinta); }
.fx-accions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.fx-nav { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 18px; }
.fx-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px var(--tinta); background: transparent; font-size: 18px; cursor: pointer; }

/* ── 3 · Embalatge zero ───────────────────────────────── */
.embalatge { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(72px, 9vw, 130px) var(--gutter); max-width: 1408px; margin: 0 auto; }
.emb-text h2 { font-weight: 700; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.03; letter-spacing: -.025em; margin-top: 14px; text-wrap: balance; }
.emb-text p:not(.etiq) { margin-top: 18px; font-size: 18px; line-height: 1.5; max-width: 40ch; }
.bosses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; }
.bosses li { display: grid; place-items: end center; }
.bosses img { width: 100%; height: auto; filter: drop-shadow(0 22px 20px rgba(60,40,0,.3)); }
.bosses li:nth-child(2) img { transform: translateY(-8%) rotate(-3deg); }

/* ── 4 · Ofici ────────────────────────────────────────── */
.ofici { background: var(--tinta); color: var(--paper); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(72px, 9vw, 130px) var(--gutter); overflow: hidden; }
.of-text .lockup { width: 150px; height: auto; }
.of-text h2 { font: 400 clamp(36px, 4.4vw, 72px)/1.28 "Boldonse", sans-serif; letter-spacing: -.03em; color: var(--groc); margin-top: 34px; }
.of-text p:not(.etiq) { margin-top: 20px; font-size: 18px; line-height: 1.5; max-width: 38ch; }
.peu-foto { margin-top: 26px; opacity: .6; }
.columnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: min(86vh, 820px); }
.columnes .col { display: grid; gap: 14px; align-content: start; will-change: transform; }
.columnes img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.columnes .col:nth-child(2) { margin-top: 60px; }

@media (max-width: 1000px) {
  .aparador { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 96px; gap: 26px; text-align: left; }
  .ap-peca { order: 2; } .ap-colors { order: 3; }
  .penja { height: 44vh; height: 44svh; }
  .ap-text h1 { font-size: clamp(38px, 11vw, 56px); }
  .ap-colors { justify-self: center; text-align: center; }
  .mostres { grid-template-columns: repeat(6, 44px); gap: 10px; justify-content: center; }
  .mostra { width: 44px; height: 44px; }
  .filtre-color { width: 44px; height: 44px; margin: 0; }
  .filtres .sep { flex-basis: 100%; height: 0; margin: 0; background: none; }   /* els colors, a una fila pròpia */
  .fitxa { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .fx-tanca { position: fixed; }
  .fx-accions .boto { flex: 1 1 100%; }
  .columnes { grid-template-columns: repeat(2, 1fr); } .columnes .col:nth-child(3) { display: none; }
  .peu-foto { margin-bottom: 8px; }
  .fx-dins { grid-template-columns: 1fr; }
  .fx-imatge { min-height: 0; padding: 30px 20px 76px; } .fx-imatge img { max-height: 46vh; }
  .fx-info { padding: 26px 20px 22px; }
  .embalatge, .ofici { grid-template-columns: 1fr; }
  .columnes { height: auto; } .columnes .col:nth-child(2) { margin-top: 30px; }
}
@media (max-width: 560px) {
  .graella { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .targeta .linia2 { flex-direction: column; align-items: flex-start; }
  .targeta .foto img { inset: 12px 10px 6px; width: calc(100% - 20px); height: calc(100% - 18px); } .targeta .info { padding: 10px 12px 12px; } .targeta .nom { font-size: 15px; } .targeta .preu { font-size: 15px; }
  .filtres { gap: 6px; } .filtre { padding: 0 14px; font-size: 14px; }
}
