/* Componente único: ETIQUETA DE ROUPA (card de produto) + VARAL (corda, pregador, fileiras).
   Usado igual na home (drop), na /loja, na PDP ("Carrega junto") e nos estados. Mexeu aqui, muda em todas.
   Marcação:  <div class="varal"><svg class="rope">…</svg><div class="rack"><article class="tag">…</article>…</div></div>
   Sem JS a corda estática cobre a 1ª fileira; com /js/varal.js é desenhada uma corda por fileira, passando pelos pregadores. */

/* ---------- etiqueta ---------- */
.tag { background: var(--paper); color: var(--ink); position: relative; padding: 12px 12px 16px; box-shadow: 0 16px 30px rgba(0,0,0,.45);
  transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.tag:hover { transform: rotate(0deg) translateY(-6px); }
.tag .hole { width: 16px; height: 16px; border-radius: 50%; background: #121212; margin: 0 auto 10px; box-shadow: inset 0 0 0 3px #bbb; }
.tag .ph { display: block; aspect-ratio: 1/1; background: #e9e8e3; overflow: hidden; position: relative; }
.tag .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tag:hover .ph img { transform: scale(1.04); }
.tag .meta { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; font: 400 17px/1 var(--f-term); }
.tag h3 { font: 400 28px/1 var(--f-display); text-transform: uppercase; }
.tag h3 a { color: inherit; text-decoration: none; }
.tag .price { font: 800 18px/1 var(--f-body); margin-top: 8px; }
.tag .act { margin-top: 12px; display: block; width: 100%; text-align: center; font: 700 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 12px; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer; }
.tag .act.out { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.tag .act:focus-visible { outline: 3px solid var(--sticker-yellow); outline-offset: 2px; }
.st { font: 700 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; border: 2px solid currentColor; transform: rotate(-3deg); display: inline-block; }
.st.ok { color: #157A34; } .st.soon { color: #C91A20; } /* vermelho um tom abaixo: texto de 11px no papel precisa de 4.5:1 */ .st.zero { color: #666; }

/* ---------- varal ---------- */
.varal { position: relative; }
.varal .rope { width: 100%; height: 70px; display: block; margin-bottom: -46px; position: relative; z-index: 2; }
.varal .rack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; z-index: 3; }  /* etiquetas e pregadores por cima da corda */
.varal.roped .rope { visibility: hidden; }
.varal .ropes { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.varal .tag::before { content: ''; position: absolute; top: -26px; left: 50%; width: 16px; height: 42px; margin-left: -8px; background: linear-gradient(90deg,#c9a24a,#e6c77a,#b88d35);
  border-radius: 3px; z-index: 3; box-shadow: 0 3px 4px rgba(0,0,0,.4); }
.varal .tag:nth-child(4n+2) { margin-top: 34px; } .varal .tag:nth-child(4n+3) { margin-top: 30px; } .varal .tag:nth-child(4n+4) { margin-top: 6px; }

@media (min-width: 601px) and (max-width: 760px) {
  .varal .rack { grid-template-columns: 1fr 1fr; gap: 20px; row-gap: 50px; }
  .varal .tag:nth-child(n) { margin-top: 0; } .varal .tag:nth-child(even) { margin-top: 26px; }
}
@media (max-width: 600px) {
  .tag { padding: 9px 9px 12px; } .tag h3 { font-size: 19px; } .tag .meta { font-size: 13px; } .tag .price { font-size: 15px; } .tag .act { font-size: 10px; padding: 10px 4px; }
  .st { font-size: 9px; padding: 4px 5px; }
  .varal .rope { height: 40px; margin-bottom: -26px; }
  .varal .rack { grid-template-columns: 1fr 1fr; gap: 14px; row-gap: 34px; }
  .varal .tag:nth-child(n) { margin-top: 0; } .varal .tag:nth-child(even) { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag, .tag .ph img { transition: none; } .tag:hover { transform: rotate(var(--r, 0deg)); } .tag:hover .ph img { transform: none; }
}
